2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU coreutils 5.3.0.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU coreutils'
271 PACKAGE_TARNAME='coreutils'
272 PACKAGE_VERSION='5.3.0'
273 PACKAGE_STRING='GNU coreutils 5.3.0'
274 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
276 ac_unique_file="src/ls.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_config_libobj_dir=lib
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEFAULT_POSIX2_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP PERL RANLIB ac_ct_RANLIB LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS MAN DF_PROG U ANSI2KNR LIBOBJS STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_EACCESS POW_LIB EOVERFLOW YACC LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP LIB_FDATASYNC SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEFAULT_POSIX2_VERSION_set=${DEFAULT_POSIX2_VERSION+set}
757 ac_env_DEFAULT_POSIX2_VERSION_value=$DEFAULT_POSIX2_VERSION
758 ac_cv_env_DEFAULT_POSIX2_VERSION_set=${DEFAULT_POSIX2_VERSION+set}
759 ac_cv_env_DEFAULT_POSIX2_VERSION_value=$DEFAULT_POSIX2_VERSION
760 ac_env_CC_set=${CC+set}
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures GNU coreutils 5.3.0 to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --program-prefix=PREFIX prepend PREFIX to installed program names
843 --program-suffix=SUFFIX append SUFFIX to installed program names
844 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of GNU coreutils 5.3.0:";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --disable-dependency-tracking speeds up one-time build
862 --enable-dependency-tracking do not reject slow dependency extractors
863 --disable-largefile omit support for large files
864 --disable-assert turn off assertions
865 --disable-rpath do not hardcode runtime library paths
866 --disable-nls do not use Native Language Support
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-afs support for the Andrew File System [default=no]
872 --without-included-regex don't compile regex; this is the default on
873 systems with version 2 of the GNU C library
874 (use with caution on other system)
875 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
877 --without-libiconv-prefix don't search for libiconv in includedir and libdir
878 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
879 --without-libintl-prefix don't search for libintl in includedir and libdir
881 Some influential environment variables:
882 DEFAULT_POSIX2_VERSION
883 POSIX version to default to; see 'config.hin'.
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <bug-coreutils@gnu.org>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
991 GNU coreutils configure 5.3.0
992 generated by GNU Autoconf 2.59
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by GNU coreutils $as_me 5.3.0, which was
1006 generated by GNU Autoconf 2.59. Invocation command line was
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1065 ac_must_keep_next=false
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
1083 ac_must_keep_next=false # Got value, back to normal.
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094 -* ) ac_must_keep_next=true ;;
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log. We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1123 # The following way of writing the cache mishandles newlines in values,
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1146 for ac_var in $ac_subst_vars
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1153 if test -n "$ac_subst_files"; then
1160 for ac_var in $ac_subst_files
1162 eval ac_val=$`echo $ac_var`
1163 echo "$ac_var='"'"'$ac_val'"'"'"
1168 if test -s confdefs.h; then
1175 sed "/^$/d" confdefs.h | sort
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1182 rm -f core *.core &&
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186 for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 # Predefined preprocessor variables.
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232 for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
1241 if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1258 # Check that the precious variables saved in the cache have kept the same
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282 echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284 echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 for ac_dir in config $srcdir/config; do
1345 if test -f $ac_dir/install-sh; then
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1349 elif test -f $ac_dir/install.sh; then
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 elif test -f $ac_dir/shtool; then
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1362 { (exit 1); exit 1; }; }
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368 ac_config_headers="$ac_config_headers config.h:config.hin"
1371 am__api_version="1.9"
1372 # Find a good install program. We prefer a C program (faster),
1373 # so one script is as good as another. But avoid the broken or
1374 # incompatible versions:
1375 # SysV /etc/install, /usr/sbin/install
1376 # SunOS /usr/etc/install
1377 # IRIX /sbin/install
1379 # AmigaOS /C/install, which installs bootblocks on floppy discs
1380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1383 # OS/2's system install, which has a completely different semantic
1384 # ./install, which can be erroneously created by make from ./install.sh.
1385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387 if test -z "$INSTALL"; then
1388 if test "${ac_cv_path_install+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395 test -z "$as_dir" && as_dir=.
1396 # Account for people who put trailing slashes in PATH elements.
1398 ./ | .// | /cC/* | \
1399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1403 # OSF1 and SCO ODT 3.0 have their own names for install.
1404 # Don't use installbsd from OSF since it installs stuff as root
1406 for ac_prog in ginstall scoinst install; do
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1409 if test $ac_prog = install &&
1410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # AIX install. It has an incompatible calling convention.
1413 elif test $ac_prog = install &&
1414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1415 # program-specific install script used by HP pwplus--don't use.
1418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1430 if test "${ac_cv_path_install+set}" = set; then
1431 INSTALL=$ac_cv_path_install
1433 # As a last resort, use the slow shell script. We don't cache a
1434 # path for INSTALL within a source directory, because that will
1435 # break other packages using the cache if that directory is
1436 # removed, or if the path is relative.
1437 INSTALL=$ac_install_sh
1440 echo "$as_me:$LINENO: result: $INSTALL" >&5
1441 echo "${ECHO_T}$INSTALL" >&6
1443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1444 # It thinks the first close brace ends the variable substitution.
1445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1451 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1452 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1455 echo timestamp > conftest.file
1456 # Do `set' in a subshell so we don't clobber the current shell's
1457 # arguments. Must try -L first in case configure is actually a
1458 # symlink; some systems play weird games with the mod time of symlinks
1459 # (eg FreeBSD returns the mod time of the symlink's containing
1462 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1463 if test "$*" = "X"; then
1465 set X `ls -t $srcdir/configure conftest.file`
1468 if test "$*" != "X $srcdir/configure conftest.file" \
1469 && test "$*" != "X conftest.file $srcdir/configure"; then
1471 # If neither matched, then we have a broken ls. This can happen
1472 # if, for instance, CONFIG_SHELL is bash and it inherits a
1473 # broken ls alias from the environment. This has actually
1474 # happened. Such a system could not be considered "sane".
1475 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1476 alias in your environment" >&5
1477 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1478 alias in your environment" >&2;}
1479 { (exit 1); exit 1; }; }
1482 test "$2" = conftest.file
1488 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1489 Check your system clock" >&5
1490 echo "$as_me: error: newly created file is older than distributed files!
1491 Check your system clock" >&2;}
1492 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1496 test "$program_prefix" != NONE &&
1497 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1498 # Use a double $ so make ignores it.
1499 test "$program_suffix" != NONE &&
1500 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1501 # Double any \ or $. echo might interpret backslashes.
1502 # By default was `s,x,x', remove it if useless.
1503 cat <<\_ACEOF >conftest.sed
1504 s/[\\$]/&&/g;s/;s,x,x,$//
1506 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1509 # expand $ac_aux_dir to an absolute path
1510 am_aux_dir=`cd $ac_aux_dir && pwd`
1512 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1513 # Use eval to expand $SHELL
1514 if eval "$MISSING --run true"; then
1515 am_missing_run="$MISSING --run "
1518 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1519 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1522 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1523 # We used to keeping the `.' as first argument, in order to
1524 # allow $(mkdir_p) to be used without argument. As in
1525 # $(mkdir_p) $(somedir)
1526 # where $(somedir) is conditionally defined. However this is wrong
1528 # 1. if the package is installed by a user who cannot write `.'
1529 # make install will fail,
1530 # 2. the above comment should most certainly read
1531 # $(mkdir_p) $(DESTDIR)$(somedir)
1532 # so it does not work when $(somedir) is undefined and
1533 # $(DESTDIR) is not.
1534 # To support the latter case, we have to write
1535 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1536 # so the `.' trick is pointless.
1537 mkdir_p='mkdir -p --'
1539 # On NextStep and OpenStep, the `mkdir' command does not
1540 # recognize any option. It will interpret all options as
1541 # directories to create, and then abort because `.' already
1543 for d in ./-p ./--version;
1545 test -d $d && rmdir $d
1547 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1548 if test -f "$ac_aux_dir/mkinstalldirs"; then
1549 mkdir_p='$(mkinstalldirs)'
1551 mkdir_p='$(install_sh) -d'
1555 for ac_prog in gawk mawk nawk awk
1557 # Extract the first word of "$ac_prog", so it can be a program name with args.
1558 set dummy $ac_prog; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_AWK+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$AWK"; then
1565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_AWK="$ac_prog"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 if test -n "$AWK"; then
1585 echo "$as_me:$LINENO: result: $AWK" >&5
1586 echo "${ECHO_T}$AWK" >&6
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1592 test -n "$AWK" && break
1595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1596 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1597 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 cat >conftest.make <<\_ACEOF
1603 @echo 'ac_maketemp="$(MAKE)"'
1605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607 if test -n "$ac_maketemp"; then
1608 eval ac_cv_prog_make_${ac_make}_set=yes
1610 eval ac_cv_prog_make_${ac_make}_set=no
1614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615 echo "$as_me:$LINENO: result: yes" >&5
1616 echo "${ECHO_T}yes" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 SET_MAKE="MAKE=${MAKE-make}"
1624 rm -rf .tst 2>/dev/null
1625 mkdir .tst 2>/dev/null
1626 if test -d .tst; then
1631 rmdir .tst 2>/dev/null
1633 # test to see if srcdir already configured
1634 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1635 test -f $srcdir/config.status; then
1636 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1637 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1638 { (exit 1); exit 1; }; }
1641 # test whether we have cygpath
1642 if test -z "$CYGPATH_W"; then
1643 if (cygpath --version) >/dev/null 2>/dev/null; then
1644 CYGPATH_W='cygpath -w'
1651 # Define the identity of the package.
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE "$PACKAGE"
1661 cat >>confdefs.h <<_ACEOF
1662 #define VERSION "$VERSION"
1665 # Some tools Automake needs.
1667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1683 # Installed binaries are usually stripped using `strip' when the user
1684 # run `make install-strip'. However `strip' might not be the right
1685 # tool to use in cross-compilation environments, therefore Automake
1686 # will honor the `STRIP' environment variable to overrule this program.
1687 if test "$cross_compiling" != no; then
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_STRIP+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$STRIP"; then
1697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 STRIP=$ac_cv_prog_STRIP
1716 if test -n "$STRIP"; then
1717 echo "$as_me:$LINENO: result: $STRIP" >&5
1718 echo "${ECHO_T}$STRIP" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$ac_cv_prog_STRIP"; then
1727 # Extract the first word of "strip", so it can be a program name with args.
1728 set dummy strip; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$ac_ct_STRIP"; then
1735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_STRIP="strip"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1755 if test -n "$ac_ct_STRIP"; then
1756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1757 echo "${ECHO_T}$ac_ct_STRIP" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1765 STRIP="$ac_cv_prog_STRIP"
1769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1771 # We need awk for the "check" target. The system "awk" is bad on
1773 # Always define AMTAR for backward compatibility.
1775 AMTAR=${AMTAR-"${am_missing_run}tar"}
1777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1785 echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
1786 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6
1787 gl_default_posix2_version=none-specified
1788 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
1789 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
1791 cat >>confdefs.h <<_ACEOF
1792 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
1796 echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
1797 echo "${ECHO_T}$gl_default_posix2_version" >&6
1801 cat >>confdefs.h <<\_ACEOF
1802 #define _GNU_SOURCE 1
1806 DEPDIR="${am__leading_dot}deps"
1808 ac_config_commands="$ac_config_commands depfiles"
1811 am_make=${MAKE-make}
1812 cat > confinc << 'END'
1817 # If we don't find an include directive, just comment out the code.
1818 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1819 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1823 # First try GNU make style include.
1824 echo "include confinc" > confmf
1825 # We grep out `Entering directory' and `Leaving directory'
1826 # messages which can occur if `w' ends up in MAKEFLAGS.
1827 # In particular we don't look at `^make:' because GNU make might
1828 # be invoked under some other name (usually "gmake"), in which
1829 # case it prints its new name instead of `make'.
1830 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1835 # Now try BSD make style include.
1836 if test "$am__include" = "#"; then
1837 echo '.include "confinc"' > confmf
1838 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1839 am__include=.include
1846 echo "$as_me:$LINENO: result: $_am_result" >&5
1847 echo "${ECHO_T}$_am_result" >&6
1848 rm -f confinc confmf
1850 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1851 if test "${enable_dependency_tracking+set}" = set; then
1852 enableval="$enable_dependency_tracking"
1855 if test "x$enable_dependency_tracking" != xno; then
1856 am_depcomp="$ac_aux_dir/depcomp"
1861 if test "x$enable_dependency_tracking" != xno; then
1872 ac_cpp='$CPP $CPPFLAGS'
1873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1913 if test -z "$ac_cv_prog_CC"; then
1915 # Extract the first word of "gcc", so it can be a program name with args.
1916 set dummy gcc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_CC"; then
1923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_CC="gcc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1955 if test -z "$CC"; then
1956 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}cc; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CC="${ac_tool_prefix}cc"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1988 echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1993 if test -z "$ac_cv_prog_CC"; then
1995 # Extract the first word of "cc", so it can be a program name with args.
1996 set dummy cc; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_CC="cc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2036 if test -z "$CC"; then
2037 # Extract the first word of "cc", so it can be a program name with args.
2038 set dummy cc; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2056 ac_prog_rejected=yes
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test $ac_prog_rejected = yes; then
2067 # We found a bogon in the path, so make sure we never use it.
2068 set dummy $ac_cv_prog_CC
2070 if test $# != 0; then
2071 # We chose a different compiler from the bogus one.
2072 # However, it has the same basename, so the bogon will be chosen
2073 # first if we set CC to just the basename; use the full file name.
2075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2081 if test -n "$CC"; then
2082 echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2090 if test -z "$CC"; then
2091 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2129 test -n "$CC" && break
2132 if test -z "$CC"; then
2136 # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_ac_ct_CC="$ac_prog"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2171 test -n "$ac_ct_CC" && break
2180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&2;}
2184 { (exit 1); exit 1; }; }
2186 # Provide some information about the compiler.
2187 echo "$as_me:$LINENO:" \
2188 "checking for C compiler version" >&5
2189 ac_compiler=`set X $ac_compile; echo $2`
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2191 (eval $ac_compiler --version </dev/null >&5) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2196 (eval $ac_compiler -v </dev/null >&5) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2201 (eval $ac_compiler -V </dev/null >&5) 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2206 cat >conftest.$ac_ext <<_ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2221 ac_clean_files_save=$ac_clean_files
2222 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2223 # Try to create an executable without -o first, disregard a.out.
2224 # It will help us diagnose broken compilers, and finding out an intuition
2226 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2227 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2228 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2229 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2230 (eval $ac_link_default) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 # Find the output, starting from the most likely. This scheme is
2235 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2238 # Be careful to initialize this variable, since it used to be cached.
2239 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2241 # b.out is created by i960 compilers.
2242 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2244 test -f "$ac_file" || continue
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2249 # This is the source file.
2252 # We found the default executable, but exeext='' is most
2256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 # FIXME: I believe we export ac_cv_exeext for Libtool,
2258 # but it would be cool to find out if it's true. Does anybody
2259 # maintain Libtool? --akim.
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2277 ac_exeext=$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_file" >&5
2279 echo "${ECHO_T}$ac_file" >&6
2281 # Check the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2286 # If not cross compiling, check that we can run a simple program.
2287 if test "$cross_compiling" != yes; then
2288 if { ac_try='./$ac_file'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 if test "$cross_compiling" = maybe; then
2299 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2300 If you meant to cross compile, use \`--host'.
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot run C compiled programs.
2303 If you meant to cross compile, use \`--host'.
2304 See \`config.log' for more details." >&2;}
2305 { (exit 1); exit 1; }; }
2309 echo "$as_me:$LINENO: result: yes" >&5
2310 echo "${ECHO_T}yes" >&6
2312 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2313 ac_clean_files=$ac_clean_files_save
2314 # Check the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2317 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2318 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2319 echo "${ECHO_T}$cross_compiling" >&6
2321 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2322 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324 (eval $ac_link) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2330 # work properly (i.e., refer to `conftest.exe'), while it won't with
2332 for ac_file in conftest.exe conftest conftest.*; do
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest$ac_cv_exeext
2351 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2352 echo "${ECHO_T}$ac_cv_exeext" >&6
2354 rm -f conftest.$ac_ext
2355 EXEEXT=$ac_cv_exeext
2357 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2358 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2359 if test "${ac_cv_objext+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 rm -f conftest.o conftest.obj
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; then
2383 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2394 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2401 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2403 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404 echo "${ECHO_T}$ac_cv_objext" >&6
2405 OBJEXT=$ac_cv_objext
2407 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2409 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2434 grep -v '^ *+' conftest.er1 >conftest.err
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2469 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_g+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2493 grep -v '^ *+' conftest.er1 >conftest.err
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2521 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2522 if test "$ac_test_CFLAGS" = set; then
2523 CFLAGS=$ac_save_CFLAGS
2524 elif test $ac_cv_prog_cc_g = yes; then
2525 if test "$GCC" = yes; then
2531 if test "$GCC" = yes; then
2537 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2538 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2539 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 ac_cv_prog_cc_stdc=no
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 #include <sys/types.h>
2553 #include <sys/stat.h>
2554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2555 struct buf { int x; };
2556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2557 static char *e (p, i)
2563 static char *f (char * (*g) (char **, int), char **p, ...)
2568 s = g (p, va_arg (v,int));
2573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2574 function prototypes and stuff, but not '\xHH' hex character constants.
2575 These don't provoke an error unfortunately, instead are silently treated
2576 as 'x'. The following induces an error, until -std1 is added to get
2577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2578 array size at least. It's necessary to write '\x00'==0 to get something
2579 that's true only with -std1. */
2580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2582 int test (int i, double x);
2583 struct s1 {int (*f) (int a);};
2584 struct s2 {int (*f) (double a);};
2585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2596 # Don't try gcc -ansi; that turns off useful extensions and
2597 # breaks some systems' header files.
2598 # AIX -qlanglvl=ansi
2599 # Ultrix and OSF/1 -std1
2600 # HP-UX 10.20 and later -Ae
2601 # HP-UX older versions -Aa -D_HPUX_SOURCE
2602 # SVR4 -Xc -D__EXTENSIONS__
2603 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2605 CC="$ac_save_CC $ac_arg"
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv_prog_cc_stdc=$ac_arg
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.err conftest.$ac_objext
2637 rm -f conftest.$ac_ext conftest.$ac_objext
2642 case "x$ac_cv_prog_cc_stdc" in
2644 echo "$as_me:$LINENO: result: none needed" >&5
2645 echo "${ECHO_T}none needed" >&6 ;;
2647 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2649 CC="$CC $ac_cv_prog_cc_stdc" ;;
2652 # Some people use a C++ compiler to compile C. Since we use `exit',
2653 # in C++ we need to declare it. In case someone uses the same compiler
2654 # for both compiling C and C++ we need to have the C++ compiler decide
2655 # the declaration of exit, since it's the most demanding environment.
2656 cat >conftest.$ac_ext <<_ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 for ac_declaration in \
2685 'extern "C" void std::exit (int) throw (); using std::exit;' \
2686 'extern "C" void std::exit (int); using std::exit;' \
2687 'extern "C" void exit (int) throw ();' \
2688 'extern "C" void exit (int);' \
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>conftest.er1
2756 grep -v '^ *+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
2761 { ac_try='test -z "$ac_c_werror_flag"
2762 || test ! -s conftest.err'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 if test -n "$ac_declaration"; then
2784 echo '#ifdef __cplusplus' >>confdefs.h
2785 echo $ac_declaration >>confdefs.h
2786 echo '#endif' >>confdefs.h
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 depcc="$CC" am_compiler_list=
2803 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2805 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2809 # We make a subdir and do the tests there. Otherwise we can end up
2810 # making bogus files that we don't know about and never remove. For
2811 # instance it was reported that on HP-UX the gcc test will end up
2812 # making a dummy file named `D' -- because `-MD' means `put the output
2815 # Copy depcomp to subdir because otherwise we won't find it if we're
2816 # using a relative directory.
2817 cp "$am_depcomp" conftest.dir
2819 # We will build objects and dependencies in a subdirectory because
2820 # it helps to detect inapplicable dependency modes. For instance
2821 # both Tru64's cc and ICC support -MD to output dependencies as a
2822 # side effect of compilation, but ICC will put the dependencies in
2823 # the current directory while Tru64 will put them in the object
2827 am_cv_CC_dependencies_compiler_type=none
2828 if test "$am_compiler_list" = ""; then
2829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2831 for depmode in $am_compiler_list; do
2832 # Setup a source with many dependencies, because some compilers
2833 # like to wrap large dependency lists on column 80 (with \), and
2834 # we should not choose a depcomp mode which is confused by this.
2836 # We need to recreate these files for each test, as the compiler may
2837 # overwrite some of them when testing with obscure command lines.
2838 # This happens at least with the AIX C compiler.
2840 for i in 1 2 3 4 5 6; do
2841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2842 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2843 # Solaris 8's {/usr,}/bin/sh.
2844 touch sub/conftst$i.h
2846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2850 # after this tag, mechanisms are not by side-effect, so they'll
2851 # only be used when explicitly requested
2852 if test "x$enable_dependency_tracking" = xyes; then
2860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2861 # mode. It turns out that the SunPro C++ compiler does not properly
2862 # handle `-M -o', and we need to detect this.
2863 if depmode=$depmode \
2864 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2866 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2867 >/dev/null 2>conftest.err &&
2868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2869 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2871 # icc doesn't choke on unknown options, it will just issue warnings
2872 # or remarks (even with -Werror). So we grep stderr for any message
2873 # that says an option was ignored or not supported.
2874 # When given -MP, icc 7.0 and 7.1 complain thusly:
2875 # icc: Command line warning: ignoring option '-M'; no argument required
2876 # The diagnosis changed in icc 8.0:
2877 # icc: Command line remark: option '-MP' not supported
2878 if (grep 'ignoring option' conftest.err ||
2879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2880 am_cv_CC_dependencies_compiler_type=$depmode
2889 am_cv_CC_dependencies_compiler_type=none
2893 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2894 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2895 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2900 test "x$enable_dependency_tracking" != xno \
2901 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2903 am__fastdepCC_FALSE='#'
2905 am__fastdepCC_TRUE='#'
2906 am__fastdepCC_FALSE=
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2917 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2918 # On Suns, sometimes $CPP names a directory.
2919 if test -n "$CPP" && test -d "$CPP"; then
2922 if test -z "$CPP"; then
2923 if test "${ac_cv_prog_CPP+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 # Double quotes because CPP needs to be expanded
2927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2930 for ac_c_preproc_warn_flag in '' yes
2932 # Use a header file that comes with gcc, so configuring glibc
2933 # with a fresh cross-compiler works.
2934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 # <limits.h> exists even on freestanding compilers.
2936 # On the NeXT, cc -E runs the code through the compiler's parser,
2937 # not just through cpp. "Syntax error" is here to catch this case.
2938 cat >conftest.$ac_ext <<_ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2945 # include <limits.h>
2947 # include <assert.h>
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 if test -z "$ac_cpp_err"; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 # Broken: fails on valid input.
2977 rm -f conftest.err conftest.$ac_ext
2979 # OK, works on sane cases. Now check whether non-existent headers
2980 # can be detected and how.
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <ac_nonexistent.h>
2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992 grep -v '^ *+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null; then
2997 if test -s conftest.err; then
2998 ac_cpp_err=$ac_c_preproc_warn_flag
2999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3006 if test -z "$ac_cpp_err"; then
3007 # Broken: success on invalid input.
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 # Passes both tests.
3017 rm -f conftest.err conftest.$ac_ext
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3034 echo "$as_me:$LINENO: result: $CPP" >&5
3035 echo "${ECHO_T}$CPP" >&6
3037 for ac_c_preproc_warn_flag in '' yes
3039 # Use a header file that comes with gcc, so configuring glibc
3040 # with a fresh cross-compiler works.
3041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3042 # <limits.h> exists even on freestanding compilers.
3043 # On the NeXT, cc -E runs the code through the compiler's parser,
3044 # not just through cpp. "Syntax error" is here to catch this case.
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3052 # include <limits.h>
3054 # include <assert.h>
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev/null; then
3066 if test -s conftest.err; then
3067 ac_cpp_err=$ac_c_preproc_warn_flag
3068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 if test -z "$ac_cpp_err"; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 # Broken: fails on valid input.
3084 rm -f conftest.err conftest.$ac_ext
3086 # OK, works on sane cases. Now check whether non-existent headers
3087 # can be detected and how.
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 #include <ac_nonexistent.h>
3096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3104 if test -s conftest.err; then
3105 ac_cpp_err=$ac_c_preproc_warn_flag
3106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3113 if test -z "$ac_cpp_err"; then
3114 # Broken: success on invalid input.
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 # Passes both tests.
3124 rm -f conftest.err conftest.$ac_ext
3127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128 rm -f conftest.err conftest.$ac_ext
3129 if $ac_preproc_ok; then
3132 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 echo "$as_me:$LINENO: checking for egrep" >&5
3147 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3148 if test "${ac_cv_prog_egrep+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3152 then ac_cv_prog_egrep='grep -E'
3153 else ac_cv_prog_egrep='egrep'
3156 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3157 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3158 EGREP=$ac_cv_prog_egrep
3162 echo "$as_me:$LINENO: checking for AIX" >&5
3163 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "yes" >/dev/null 2>&1; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6
3179 cat >>confdefs.h <<\_ACEOF
3180 #define _ALL_SOURCE 1
3184 echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3190 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3191 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3192 if test "${ac_cv_header_stdc+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216 (eval $ac_compile) 2>conftest.er1
3218 grep -v '^ *+' conftest.er1 >conftest.err
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -z "$ac_c_werror_flag"
3224 || test ! -s conftest.err'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 ac_cv_header_stdc=yes
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 ac_cv_header_stdc=no
3243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245 if test $ac_cv_header_stdc = yes; then
3246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3257 $EGREP "memchr" >/dev/null 2>&1; then
3260 ac_cv_header_stdc=no
3266 if test $ac_cv_header_stdc = yes; then
3267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 $EGREP "free" >/dev/null 2>&1; then
3281 ac_cv_header_stdc=no
3287 if test $ac_cv_header_stdc = yes; then
3288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3289 if test "$cross_compiling" = yes; then
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3299 #if ((' ' & 0x0FF) == 0x020)
3300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3303 # define ISLOWER(c) \
3304 (('a' <= (c) && (c) <= 'i') \
3305 || ('j' <= (c) && (c) <= 'r') \
3306 || ('s' <= (c) && (c) <= 'z'))
3307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3315 for (i = 0; i < 256; i++)
3316 if (XOR (islower (i), ISLOWER (i))
3317 || toupper (i) != TOUPPER (i))
3322 rm -f conftest$ac_exeext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324 (eval $ac_link) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3335 echo "$as_me: program exited with status $ac_status" >&5
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3340 ac_cv_header_stdc=no
3342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3346 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3348 if test $ac_cv_header_stdc = yes; then
3350 cat >>confdefs.h <<\_ACEOF
3351 #define STDC_HEADERS 1
3356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3367 inttypes.h stdint.h unistd.h
3369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 echo "$as_me:$LINENO: checking for $ac_header" >&5
3371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381 $ac_includes_default
3383 #include <$ac_header>
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try='test -z "$ac_c_werror_flag"
3395 || test ! -s conftest.err'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 eval "$as_ac_Header=yes"
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 eval "$as_ac_Header=no"
3414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3419 cat >>confdefs.h <<_ACEOF
3420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3428 if test "${ac_cv_header_minix_config_h+set}" = set; then
3429 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3430 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3431 if test "${ac_cv_header_minix_config_h+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3435 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3437 # Is the header compilable?
3438 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3439 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 $ac_includes_default
3447 #include <minix/config.h>
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_header_compiler=yes
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 ac_header_compiler=no
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3480 echo "${ECHO_T}$ac_header_compiler" >&6
3482 # Is the header present?
3483 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3484 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <minix/config.h>
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3511 ac_header_preproc=yes
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_header_preproc=no
3518 rm -f conftest.err conftest.$ac_ext
3519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520 echo "${ECHO_T}$ac_header_preproc" >&6
3522 # So? What about this header?
3523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3525 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3526 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3527 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3528 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3529 ac_header_preproc=yes
3532 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3533 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3535 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3537 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3538 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3539 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3540 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3542 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3543 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3546 ## ------------------------------------ ##
3547 ## Report this to bug-coreutils@gnu.org ##
3548 ## ------------------------------------ ##
3551 sed "s/^/$as_me: WARNING: /" >&2
3554 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3555 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3556 if test "${ac_cv_header_minix_config_h+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_cv_header_minix_config_h=$ac_header_preproc
3561 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3562 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3565 if test $ac_cv_header_minix_config_h = yes; then
3572 if test "$MINIX" = yes; then
3574 cat >>confdefs.h <<\_ACEOF
3575 #define _POSIX_SOURCE 1
3579 cat >>confdefs.h <<\_ACEOF
3580 #define _POSIX_1_SOURCE 2
3584 cat >>confdefs.h <<\_ACEOF
3600 cat >>confdefs.h <<\_ACEOF
3601 #define __EXTENSIONS__ 1
3606 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
3607 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
3608 if test "${PERL+set}" = set; then
3609 # `PERL' is set in the user's environment.
3610 candidate_perl_names="$PERL"
3613 candidate_perl_names='perl perl5'
3619 PERL="$am_missing_run perl"
3620 for perl in $candidate_perl_names; do
3621 # Run test in a subshell; some versions of sh will print an error if
3622 # an executable is not found, even if stderr is redirected.
3623 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
3630 echo "$as_me:$LINENO: result: $found" >&5
3631 echo "${ECHO_T}$found" >&6
3632 test $found = no && { echo "$as_me:$LINENO: WARNING:
3633 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3634 a usable version of the Perl File::Compare module. As a result,
3635 you may be unable to run a few tests or to regenerate certain
3636 files if you modify the sources from which they are derived.
3638 echo "$as_me: WARNING:
3639 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3640 a usable version of the Perl File::Compare module. As a result,
3641 you may be unable to run a few tests or to regenerate certain
3642 files if you modify the sources from which they are derived.
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_CC+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_CC"; then
3689 # Extract the first word of "gcc", so it can be a program name with args.
3690 set dummy gcc; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_CC="gcc"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3718 echo "${ECHO_T}$ac_ct_CC" >&6
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}cc; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_CC+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="${ac_tool_prefix}cc"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test -n "$CC"; then
3759 echo "$as_me:$LINENO: result: $CC" >&5
3760 echo "${ECHO_T}$CC" >&6
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3767 if test -z "$ac_cv_prog_CC"; then
3769 # Extract the first word of "cc", so it can be a program name with args.
3770 set dummy cc; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_ac_ct_CC="cc"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3798 echo "${ECHO_T}$ac_ct_CC" >&6
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3810 if test -z "$CC"; then
3811 # Extract the first word of "cc", so it can be a program name with args.
3812 set dummy cc; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_CC+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$CC"; then
3819 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3830 ac_prog_rejected=yes
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3855 if test -n "$CC"; then
3856 echo "$as_me:$LINENO: result: $CC" >&5
3857 echo "${ECHO_T}$CC" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_prog_CC+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 if test -n "$CC"; then
3896 echo "$as_me:$LINENO: result: $CC" >&5
3897 echo "${ECHO_T}$CC" >&6
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 test -n "$CC" && break
3906 if test -z "$CC"; then
3910 # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_ac_ct_CC="$ac_prog"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3937 if test -n "$ac_ct_CC"; then
3938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3939 echo "${ECHO_T}$ac_ct_CC" >&6
3941 echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3945 test -n "$ac_ct_CC" && break
3954 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3955 See \`config.log' for more details." >&5
3956 echo "$as_me: error: no acceptable C compiler found in \$PATH
3957 See \`config.log' for more details." >&2;}
3958 { (exit 1); exit 1; }; }
3960 # Provide some information about the compiler.
3961 echo "$as_me:$LINENO:" \
3962 "checking for C compiler version" >&5
3963 ac_compiler=`set X $ac_compile; echo $2`
3964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3965 (eval $ac_compiler --version </dev/null >&5) 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }
3969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3970 (eval $ac_compiler -v </dev/null >&5) 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }
3974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3975 (eval $ac_compiler -V </dev/null >&5) 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }
3980 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3981 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3982 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4036 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4037 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4038 GCC=`test $ac_compiler_gnu = yes && echo yes`
4039 ac_test_CFLAGS=${CFLAGS+set}
4040 ac_save_CFLAGS=$CFLAGS
4042 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4044 if test "${ac_cv_prog_cc_g+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4095 if test "$ac_test_CFLAGS" = set; then
4096 CFLAGS=$ac_save_CFLAGS
4097 elif test $ac_cv_prog_cc_g = yes; then
4098 if test "$GCC" = yes; then
4104 if test "$GCC" = yes; then
4110 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 ac_cv_prog_cc_stdc=no
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4141 s = g (p, va_arg (v,int));
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std1 is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std1. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 int test (int i, double x);
4156 struct s1 {int (*f) (int a);};
4157 struct s2 {int (*f) (double a);};
4158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 # Don't try gcc -ansi; that turns off useful extensions and
4170 # breaks some systems' header files.
4171 # AIX -qlanglvl=ansi
4172 # Ultrix and OSF/1 -std1
4173 # HP-UX 10.20 and later -Ae
4174 # HP-UX older versions -Aa -D_HPUX_SOURCE
4175 # SVR4 -Xc -D__EXTENSIONS__
4176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 CC="$ac_save_CC $ac_arg"
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_prog_cc_stdc=$ac_arg
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4208 rm -f conftest.err conftest.$ac_objext
4210 rm -f conftest.$ac_ext conftest.$ac_objext
4215 case "x$ac_cv_prog_cc_stdc" in
4217 echo "$as_me:$LINENO: result: none needed" >&5
4218 echo "${ECHO_T}none needed" >&6 ;;
4220 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4222 CC="$CC $ac_cv_prog_cc_stdc" ;;
4225 # Some people use a C++ compiler to compile C. Since we use `exit',
4226 # in C++ we need to declare it. In case someone uses the same compiler
4227 # for both compiling C and C++ we need to have the C++ compiler decide
4228 # the declaration of exit, since it's the most demanding environment.
4229 cat >conftest.$ac_ext <<_ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 for ac_declaration in \
4258 'extern "C" void std::exit (int) throw (); using std::exit;' \
4259 'extern "C" void std::exit (int); using std::exit;' \
4260 'extern "C" void exit (int) throw ();' \
4261 'extern "C" void exit (int);' \
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 if test -n "$ac_declaration"; then
4357 echo '#ifdef __cplusplus' >>confdefs.h
4358 echo $ac_declaration >>confdefs.h
4359 echo '#endif' >>confdefs.h
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 depcc="$CC" am_compiler_list=
4376 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382 # We make a subdir and do the tests there. Otherwise we can end up
4383 # making bogus files that we don't know about and never remove. For
4384 # instance it was reported that on HP-UX the gcc test will end up
4385 # making a dummy file named `D' -- because `-MD' means `put the output
4388 # Copy depcomp to subdir because otherwise we won't find it if we're
4389 # using a relative directory.
4390 cp "$am_depcomp" conftest.dir
4392 # We will build objects and dependencies in a subdirectory because
4393 # it helps to detect inapplicable dependency modes. For instance
4394 # both Tru64's cc and ICC support -MD to output dependencies as a
4395 # side effect of compilation, but ICC will put the dependencies in
4396 # the current directory while Tru64 will put them in the object
4400 am_cv_CC_dependencies_compiler_type=none
4401 if test "$am_compiler_list" = ""; then
4402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404 for depmode in $am_compiler_list; do
4405 # Setup a source with many dependencies, because some compilers
4406 # like to wrap large dependency lists on column 80 (with \), and
4407 # we should not choose a depcomp mode which is confused by this.
4409 # We need to recreate these files for each test, as the compiler may
4410 # overwrite some of them when testing with obscure command lines.
4411 # This happens at least with the AIX C compiler.
4413 for i in 1 2 3 4 5 6; do
4414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4416 # Solaris 8's {/usr,}/bin/sh.
4417 touch sub/conftst$i.h
4419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423 # after this tag, mechanisms are not by side-effect, so they'll
4424 # only be used when explicitly requested
4425 if test "x$enable_dependency_tracking" = xyes; then
4433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434 # mode. It turns out that the SunPro C++ compiler does not properly
4435 # handle `-M -o', and we need to detect this.
4436 if depmode=$depmode \
4437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4440 >/dev/null 2>conftest.err &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4462 am_cv_CC_dependencies_compiler_type=none
4466 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473 test "x$enable_dependency_tracking" != xno \
4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_FALSE='#'
4478 am__fastdepCC_TRUE='#'
4479 am__fastdepCC_FALSE=
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4489 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4490 # On Suns, sometimes $CPP names a directory.
4491 if test -n "$CPP" && test -d "$CPP"; then
4494 if test -z "$CPP"; then
4495 if test "${ac_cv_prog_CPP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 # Double quotes because CPP needs to be expanded
4499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4502 for ac_c_preproc_warn_flag in '' yes
4504 # Use a header file that comes with gcc, so configuring glibc
4505 # with a fresh cross-compiler works.
4506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507 # <limits.h> exists even on freestanding compilers.
4508 # On the NeXT, cc -E runs the code through the compiler's parser,
4509 # not just through cpp. "Syntax error" is here to catch this case.
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4517 # include <limits.h>
4519 # include <assert.h>
4523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4526 grep -v '^ *+' conftest.er1 >conftest.err
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } >/dev/null; then
4531 if test -s conftest.err; then
4532 ac_cpp_err=$ac_c_preproc_warn_flag
4533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4540 if test -z "$ac_cpp_err"; then
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 # Broken: fails on valid input.
4549 rm -f conftest.err conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether non-existent headers
4552 # can be detected and how.
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null; then
4569 if test -s conftest.err; then
4570 ac_cpp_err=$ac_c_preproc_warn_flag
4571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4578 if test -z "$ac_cpp_err"; then
4579 # Broken: success on invalid input.
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 # Passes both tests.
4589 rm -f conftest.err conftest.$ac_ext
4592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4593 rm -f conftest.err conftest.$ac_ext
4594 if $ac_preproc_ok; then
4606 echo "$as_me:$LINENO: result: $CPP" >&5
4607 echo "${ECHO_T}$CPP" >&6
4609 for ac_c_preproc_warn_flag in '' yes
4611 # Use a header file that comes with gcc, so configuring glibc
4612 # with a fresh cross-compiler works.
4613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4614 # <limits.h> exists even on freestanding compilers.
4615 # On the NeXT, cc -E runs the code through the compiler's parser,
4616 # not just through cpp. "Syntax error" is here to catch this case.
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4624 # include <limits.h>
4626 # include <assert.h>
4630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null; then
4638 if test -s conftest.err; then
4639 ac_cpp_err=$ac_c_preproc_warn_flag
4640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4647 if test -z "$ac_cpp_err"; then
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # Broken: fails on valid input.
4656 rm -f conftest.err conftest.$ac_ext
4658 # OK, works on sane cases. Now check whether non-existent headers
4659 # can be detected and how.
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #include <ac_nonexistent.h>
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } >/dev/null; then
4676 if test -s conftest.err; then
4677 ac_cpp_err=$ac_c_preproc_warn_flag
4678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4685 if test -z "$ac_cpp_err"; then
4686 # Broken: success on invalid input.
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 # Passes both tests.
4696 rm -f conftest.err conftest.$ac_ext
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then
4704 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4707 See \`config.log' for more details." >&2;}
4708 { (exit 1); exit 1; }; }
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4719 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4720 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 ac_pattern="Autoconf.*'x'"
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4735 ac_cv_prog_gcc_traditional=yes
4737 ac_cv_prog_gcc_traditional=no
4742 if test $ac_cv_prog_gcc_traditional = no; then
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4754 ac_cv_prog_gcc_traditional=yes
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4761 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4762 if test $ac_cv_prog_gcc_traditional = yes; then
4763 CC="$CC -traditional"
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4770 echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_prog_RANLIB+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -n "$RANLIB"; then
4776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 RANLIB=$ac_cv_prog_RANLIB
4795 if test -n "$RANLIB"; then
4796 echo "$as_me:$LINENO: result: $RANLIB" >&5
4797 echo "${ECHO_T}$RANLIB" >&6
4799 echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4804 if test -z "$ac_cv_prog_RANLIB"; then
4805 ac_ct_RANLIB=$RANLIB
4806 # Extract the first word of "ranlib", so it can be a program name with args.
4807 set dummy ranlib; ac_word=$2
4808 echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$ac_ct_RANLIB"; then
4814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_ac_ct_RANLIB="ranlib"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4834 if test -n "$ac_ct_RANLIB"; then
4835 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4836 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4838 echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4842 RANLIB=$ac_ct_RANLIB
4844 RANLIB="$ac_cv_prog_RANLIB"
4847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4850 if test "$LN_S" = "ln -s"; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852 echo "${ECHO_T}yes" >&6
4854 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4855 echo "${ECHO_T}no, using $LN_S" >&6
4858 # Make sure we can run config.sub.
4859 $ac_config_sub sun4 >/dev/null 2>&1 ||
4860 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4861 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4862 { (exit 1); exit 1; }; }
4864 echo "$as_me:$LINENO: checking build system type" >&5
4865 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4866 if test "${ac_cv_build+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_build_alias=$build_alias
4870 test -z "$ac_cv_build_alias" &&
4871 ac_cv_build_alias=`$ac_config_guess`
4872 test -z "$ac_cv_build_alias" &&
4873 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4875 { (exit 1); exit 1; }; }
4876 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4877 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4878 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4879 { (exit 1); exit 1; }; }
4882 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4883 echo "${ECHO_T}$ac_cv_build" >&6
4885 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4886 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4887 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4890 echo "$as_me:$LINENO: checking host system type" >&5
4891 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4892 if test "${ac_cv_host+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 ac_cv_host_alias=$host_alias
4896 test -z "$ac_cv_host_alias" &&
4897 ac_cv_host_alias=$ac_cv_build_alias
4898 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4899 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4900 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4901 { (exit 1); exit 1; }; }
4904 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4905 echo "${ECHO_T}$ac_cv_host" >&6
4907 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4908 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4909 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4915 for ac_func in uname
4917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4918 echo "$as_me:$LINENO: checking for $ac_func" >&5
4919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4920 if eval "test \"\${$as_ac_var+set}\" = set"; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 cat >conftest.$ac_ext <<_ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4931 #define $ac_func innocuous_$ac_func
4933 /* System header to define __stub macros and hopefully few prototypes,
4934 which can conflict with char $ac_func (); below.
4935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936 <limits.h> exists even on freestanding compilers. */
4939 # include <limits.h>
4941 # include <assert.h>
4946 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4954 /* The GNU C library defines this for functions which it implements
4955 to always fail with ENOSYS. Some functions are actually named
4956 something starting with __ and the normal name is an alias. */
4957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4960 char (*f) () = $ac_func;
4969 return f != $ac_func;
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest$ac_exeext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 eval "$as_ac_var=yes"
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 eval "$as_ac_var=no"
5003 rm -f conftest.err conftest.$ac_objext \
5004 conftest$ac_exeext conftest.$ac_ext
5006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5008 if test `eval echo '${'$as_ac_var'}'` = yes; then
5009 cat >>confdefs.h <<_ACEOF
5010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5012 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5018 for ac_func in chroot
5020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_func" >&5
5022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_var+set}\" = set"; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5034 #define $ac_func innocuous_$ac_func
5036 /* System header to define __stub macros and hopefully few prototypes,
5037 which can conflict with char $ac_func (); below.
5038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 <limits.h> exists even on freestanding compilers. */
5042 # include <limits.h>
5044 # include <assert.h>
5049 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5057 /* The GNU C library defines this for functions which it implements
5058 to always fail with ENOSYS. Some functions are actually named
5059 something starting with __ and the normal name is an alias. */
5060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 char (*f) () = $ac_func;
5072 return f != $ac_func;
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 eval "$as_ac_var=yes"
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 eval "$as_ac_var=no"
5106 rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5111 if test `eval echo '${'$as_ac_var'}'` = yes; then
5112 cat >>confdefs.h <<_ACEOF
5113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5115 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5121 for ac_func in gethostid
5123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5124 echo "$as_me:$LINENO: checking for $ac_func" >&5
5125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5126 if eval "test \"\${$as_ac_var+set}\" = set"; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5137 #define $ac_func innocuous_$ac_func
5139 /* System header to define __stub macros and hopefully few prototypes,
5140 which can conflict with char $ac_func (); below.
5141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142 <limits.h> exists even on freestanding compilers. */
5145 # include <limits.h>
5147 # include <assert.h>
5152 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5160 /* The GNU C library defines this for functions which it implements
5161 to always fail with ENOSYS. Some functions are actually named
5162 something starting with __ and the normal name is an alias. */
5163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166 char (*f) () = $ac_func;
5175 return f != $ac_func;
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182 (eval $ac_link) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try='test -z "$ac_c_werror_flag"
5190 || test ! -s conftest.err'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 eval "$as_ac_var=yes"
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 eval "$as_ac_var=no"
5209 rm -f conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5214 if test `eval echo '${'$as_ac_var'}'` = yes; then
5215 cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5218 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5224 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5225 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5226 if test "${ac_cv_search_strerror+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 ac_func_search_save_LIBS=$LIBS
5230 ac_cv_search_strerror=no
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5238 /* Override any gcc2 internal prototype to avoid an error. */
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>conftest.er1
5257 grep -v '^ *+' conftest.er1 >conftest.err
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag"
5263 || test ! -s conftest.err'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; } &&
5269 { ac_try='test -s conftest$ac_exeext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_search_strerror="none required"
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 if test "$ac_cv_search_strerror" = no; then
5284 for ac_lib in cposix; do
5285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_search_strerror="-l$ac_lib"
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5337 rm -f conftest.err conftest.$ac_objext \
5338 conftest$ac_exeext conftest.$ac_ext
5341 LIBS=$ac_func_search_save_LIBS
5343 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5344 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5345 if test "$ac_cv_search_strerror" != no; then
5346 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5350 # Check whether --enable-largefile or --disable-largefile was given.
5351 if test "${enable_largefile+set}" = set; then
5352 enableval="$enable_largefile"
5355 if test "$enable_largefile" != no; then
5357 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5358 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5359 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 ac_cv_sys_largefile_CC=no
5363 if test "$GCC" != yes; then
5366 # IRIX 6.2 and later do not support large files by default,
5367 # so use the C compiler's -n32 option if that helps.
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <sys/types.h>
5375 /* Check that off_t can represent 2**63 - 1 correctly.
5376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5377 since some C++ compilers masquerading as C compilers
5378 incorrectly reject 9223372036854775807. */
5379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5381 && LARGE_OFF_T % 2147483647 == 1)
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f conftest.err conftest.$ac_objext
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_cv_sys_largefile_CC=' -n32'; break
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5449 rm -f conftest.err conftest.$ac_objext
5453 rm -f conftest.$ac_ext
5456 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5457 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5458 if test "$ac_cv_sys_largefile_CC" != no; then
5459 CC=$CC$ac_cv_sys_largefile_CC
5462 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5463 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5464 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 ac_cv_sys_file_offset_bits=no
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <sys/types.h>
5476 /* Check that off_t can represent 2**63 - 1 correctly.
5477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5478 since some C++ compilers masquerading as C compilers
5479 incorrectly reject 9223372036854775807. */
5480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5482 && LARGE_OFF_T % 2147483647 == 1)
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>conftest.er1
5496 grep -v '^ *+' conftest.er1 >conftest.err
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -z "$ac_c_werror_flag"
5502 || test ! -s conftest.err'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; } &&
5508 { ac_try='test -s conftest.$ac_objext'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5516 echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521 cat >conftest.$ac_ext <<_ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #define _FILE_OFFSET_BITS 64
5528 #include <sys/types.h>
5529 /* Check that off_t can represent 2**63 - 1 correctly.
5530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5531 since some C++ compilers masquerading as C compilers
5532 incorrectly reject 9223372036854775807. */
5533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5535 && LARGE_OFF_T % 2147483647 == 1)
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>conftest.er1
5549 grep -v '^ *+' conftest.er1 >conftest.err
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -z "$ac_c_werror_flag"
5555 || test ! -s conftest.err'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_sys_file_offset_bits=64; break
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5578 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5579 if test "$ac_cv_sys_file_offset_bits" != no; then
5581 cat >>confdefs.h <<_ACEOF
5582 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5587 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5588 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5589 if test "${ac_cv_sys_large_files+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_sys_large_files=no
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <sys/types.h>
5601 /* Check that off_t can represent 2**63 - 1 correctly.
5602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5603 since some C++ compilers masquerading as C compilers
5604 incorrectly reject 9223372036854775807. */
5605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5607 && LARGE_OFF_T % 2147483647 == 1)
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1 >conftest.err
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #define _LARGE_FILES 1
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_sys_large_files=1; break
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5702 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5703 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5704 if test "$ac_cv_sys_large_files" != no; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define _LARGE_FILES $ac_cv_sys_large_files
5714 echo "$as_me:$LINENO: checking for function prototypes" >&5
5715 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5716 if test "$ac_cv_prog_cc_stdc" != no; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6
5720 cat >>confdefs.h <<\_ACEOF
5721 #define PROTOTYPES 1
5725 cat >>confdefs.h <<\_ACEOF
5726 #define __PROTOTYPES 1
5730 echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5735 if test "$ac_cv_prog_cc_stdc" != no; then
5738 U=_ ANSI2KNR=./ansi2knr
5740 # Ensure some checks needed by ansi2knr itself.
5743 for ac_header in string.h
5745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5747 echo "$as_me:$LINENO: checking for $ac_header" >&5
5748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5755 # Is the header compilable?
5756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 $ac_includes_default
5765 #include <$ac_header>
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_header_compiler=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_header_compiler=no
5796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5798 echo "${ECHO_T}$ac_header_compiler" >&6
5800 # Is the header present?
5801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <$ac_header>
5811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1 >conftest.err
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } >/dev/null; then
5819 if test -s conftest.err; then
5820 ac_cpp_err=$ac_c_preproc_warn_flag
5821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5828 if test -z "$ac_cpp_err"; then
5829 ac_header_preproc=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 ac_header_preproc=no
5836 rm -f conftest.err conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5838 echo "${ECHO_T}$ac_header_preproc" >&6
5840 # So? What about this header?
5841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5847 ac_header_preproc=yes
5850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5864 ## ------------------------------------ ##
5865 ## Report this to bug-coreutils@gnu.org ##
5866 ## ------------------------------------ ##
5869 sed "s/^/$as_me: WARNING: /" >&2
5872 echo "$as_me:$LINENO: checking for $ac_header" >&5
5873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 eval "$as_ac_Header=\$ac_header_preproc"
5879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5884 cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5893 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5894 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5895 if test "${ac_cv_c_bigendian+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 # See if sys/param.h defines the BYTE_ORDER macro.
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 #include <sys/param.h>
5911 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 # It does; now see whether it defined to BIG_ENDIAN or not.
5942 cat >conftest.$ac_ext <<_ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5948 #include <sys/types.h>
5949 #include <sys/param.h>
5954 #if BYTE_ORDER != BIG_ENDIAN
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_c_bigendian=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cv_c_bigendian=no
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 # It does not; compile a test program.
5997 if test "$cross_compiling" = yes; then
5998 # try to guess the endianness by grepping values into an object file
5999 ac_cv_c_bigendian=unknown
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6007 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6008 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6009 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6010 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6011 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6015 _ascii (); _ebcdic ();
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6043 ac_cv_c_bigendian=yes
6045 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6046 if test "$ac_cv_c_bigendian" = unknown; then
6047 ac_cv_c_bigendian=no
6049 # finding both strings is unlikely to happen, but who knows?
6050 ac_cv_c_bigendian=unknown
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6069 /* Are we little or big endian? From Harbison&Steele. */
6073 char c[sizeof (long)];
6076 exit (u.c[sizeof (long) - 1] == 1);
6079 rm -f conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_c_bigendian=no
6092 echo "$as_me: program exited with status $ac_status" >&5
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_c_bigendian=yes
6099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6105 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6106 case $ac_cv_c_bigendian in
6109 cat >>confdefs.h <<\_ACEOF
6110 #define WORDS_BIGENDIAN 1
6116 { { echo "$as_me:$LINENO: error: unknown endianness
6117 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6118 echo "$as_me: error: unknown endianness
6119 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6120 { (exit 1); exit 1; }; } ;;
6123 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6124 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6125 if test "${ac_cv_c_const+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6138 /* FIXME: Include the comments suggested by Paul. */
6140 /* Ultrix mips cc rejects this. */
6141 typedef int charset[2];
6143 /* SunOS 4.1.1 cc rejects this. */
6144 char const *const *ccp;
6146 /* NEC SVR4.0.2 mips cc rejects this. */
6147 struct point {int x, y;};
6148 static struct point const zero = {0,0};
6149 /* AIX XL C 1.02.0.0 rejects this.
6150 It does not let you subtract one const X* pointer from another in
6151 an arm of an if-expression whose if-part is not a constant
6153 const char *g = "string";
6154 ccp = &g + (g ? g-g : 0);
6155 /* HPUX 7.0 cc rejects these. */
6158 ccp = (char const *const *) p;
6159 { /* SCO 3.2v4 cc rejects this. */
6161 char const *s = 0 ? (char *) 0 : (char const *) 0;
6165 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6167 const int *foo = &x[0];
6170 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6171 typedef const int *iptr;
6175 { /* AIX XL C 1.02.0.0 rejects this saying
6176 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6177 struct s { int j; const int *ap[3]; };
6178 struct s *b; b->j = 5;
6180 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6221 echo "${ECHO_T}$ac_cv_c_const" >&6
6222 if test $ac_cv_c_const = no; then
6224 cat >>confdefs.h <<\_ACEOF
6230 echo "$as_me:$LINENO: checking for working volatile" >&5
6231 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6232 if test "${ac_cv_c_volatile+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_c_volatile=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6284 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6285 if test $ac_cv_c_volatile = no; then
6287 cat >>confdefs.h <<\_ACEOF
6293 echo "$as_me:$LINENO: checking for inline" >&5
6294 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6295 if test "${ac_cv_c_inline+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 for ac_kw in inline __inline__ __inline; do
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6308 static $ac_kw foo_t static_foo () {return 0; }
6309 $ac_kw foo_t foo () {return 0; }
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1 >conftest.err
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_c_inline=$ac_kw; break
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6346 echo "${ECHO_T}$ac_cv_c_inline" >&6
6349 case $ac_cv_c_inline in
6352 case $ac_cv_c_inline in
6354 *) ac_val=$ac_cv_c_inline;;
6356 cat >>confdefs.h <<_ACEOF
6358 #define inline $ac_val
6364 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
6365 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
6366 if test "${ac_cv_c_long_double+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6376 long double foo = 0.0;
6380 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
6381 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
6382 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_cv_c_long_double=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_cv_c_long_double=no
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
6421 echo "${ECHO_T}$ac_cv_c_long_double" >&6
6422 if test $ac_cv_c_long_double = yes; then
6424 cat >>confdefs.h <<\_ACEOF
6425 #define HAVE_LONG_DOUBLE 1
6432 for ac_header in errno.h
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo "$as_me:$LINENO: checking for $ac_header" >&5
6437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 # Is the header compilable?
6445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6454 #include <$ac_header>
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_header_compiler=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_header_compiler=no
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487 echo "${ECHO_T}$ac_header_compiler" >&6
6489 # Is the header present?
6490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <$ac_header>
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } >/dev/null; then
6508 if test -s conftest.err; then
6509 ac_cpp_err=$ac_c_preproc_warn_flag
6510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6517 if test -z "$ac_cpp_err"; then
6518 ac_header_preproc=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_header_preproc=no
6525 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6527 echo "${ECHO_T}$ac_header_preproc" >&6
6529 # So? What about this header?
6530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6536 ac_header_preproc=yes
6539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6553 ## ------------------------------------ ##
6554 ## Report this to bug-coreutils@gnu.org ##
6555 ## ------------------------------------ ##
6558 sed "s/^/$as_me: WARNING: /" >&2
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 eval "$as_ac_Header=\$ac_header_preproc"
6568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6573 cat >>confdefs.h <<_ACEOF
6574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 for ac_header in fcntl.h
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588 echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6596 # Is the header compilable?
6597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6606 #include <$ac_header>
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -z "$ac_c_werror_flag"
6618 || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_header_compiler=yes
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_header_compiler=no
6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6639 echo "${ECHO_T}$ac_header_compiler" >&6
6641 # Is the header present?
6642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <$ac_header>
6652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } >/dev/null; then
6660 if test -s conftest.err; then
6661 ac_cpp_err=$ac_c_preproc_warn_flag
6662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6669 if test -z "$ac_cpp_err"; then
6670 ac_header_preproc=yes
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_header_preproc=no
6677 rm -f conftest.err conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6679 echo "${ECHO_T}$ac_header_preproc" >&6
6681 # So? What about this header?
6682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6688 ac_header_preproc=yes
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6705 ## ------------------------------------ ##
6706 ## Report this to bug-coreutils@gnu.org ##
6707 ## ------------------------------------ ##
6710 sed "s/^/$as_me: WARNING: /" >&2
6713 echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 eval "$as_ac_Header=\$ac_header_preproc"
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 for ac_header in float.h
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740 echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748 # Is the header compilable?
6749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 #include <$ac_header>
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 (eval $ac_compile) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest.$ac_objext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_header_compiler=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_header_compiler=no
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6791 echo "${ECHO_T}$ac_header_compiler" >&6
6793 # Is the header present?
6794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null; then
6812 if test -s conftest.err; then
6813 ac_cpp_err=$ac_c_preproc_warn_flag
6814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6821 if test -z "$ac_cpp_err"; then
6822 ac_header_preproc=yes
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_header_preproc=no
6829 rm -f conftest.err conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6831 echo "${ECHO_T}$ac_header_preproc" >&6
6833 # So? What about this header?
6834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6840 ac_header_preproc=yes
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6857 ## ------------------------------------ ##
6858 ## Report this to bug-coreutils@gnu.org ##
6859 ## ------------------------------------ ##
6862 sed "s/^/$as_me: WARNING: /" >&2
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 eval "$as_ac_Header=\$ac_header_preproc"
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6888 for ac_header in hurd.h
6890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6892 echo "$as_me:$LINENO: checking for $ac_header" >&5
6893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6900 # Is the header compilable?
6901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 $ac_includes_default
6910 #include <$ac_header>
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag"
6922 || test ! -s conftest.err'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; } &&
6928 { ac_try='test -s conftest.$ac_objext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_header_compiler=yes
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_header_compiler=no
6941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943 echo "${ECHO_T}$ac_header_compiler" >&6
6945 # Is the header present?
6946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 #include <$ac_header>
6956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null; then
6964 if test -s conftest.err; then
6965 ac_cpp_err=$ac_c_preproc_warn_flag
6966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6973 if test -z "$ac_cpp_err"; then
6974 ac_header_preproc=yes
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_header_preproc=no
6981 rm -f conftest.err conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6983 echo "${ECHO_T}$ac_header_preproc" >&6
6985 # So? What about this header?
6986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6992 ac_header_preproc=yes
6995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7009 ## ------------------------------------ ##
7010 ## Report this to bug-coreutils@gnu.org ##
7011 ## ------------------------------------ ##
7014 sed "s/^/$as_me: WARNING: /" >&2
7017 echo "$as_me:$LINENO: checking for $ac_header" >&5
7018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 eval "$as_ac_Header=\$ac_header_preproc"
7024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7029 cat >>confdefs.h <<_ACEOF
7030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040 for ac_header in limits.h
7042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo "$as_me:$LINENO: checking for $ac_header" >&5
7045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7052 # Is the header compilable?
7053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 $ac_includes_default
7062 #include <$ac_header>
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_header_compiler=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_header_compiler=no
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <$ac_header>
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_c_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7125 if test -z "$ac_cpp_err"; then
7126 ac_header_preproc=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_header_preproc=no
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7137 # So? What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7144 ac_header_preproc=yes
7147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7161 ## ------------------------------------ ##
7162 ## Report this to bug-coreutils@gnu.org ##
7163 ## ------------------------------------ ##
7166 sed "s/^/$as_me: WARNING: /" >&2
7169 echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 eval "$as_ac_Header=\$ac_header_preproc"
7176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192 for ac_header in memory.h
7194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7196 echo "$as_me:$LINENO: checking for $ac_header" >&5
7197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204 # Is the header compilable?
7205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7214 #include <$ac_header>
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7220 grep -v '^ *+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_header_compiler=yes
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 ac_header_compiler=no
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7247 echo "${ECHO_T}$ac_header_compiler" >&6
7249 # Is the header present?
7250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 #include <$ac_header>
7260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } >/dev/null; then
7268 if test -s conftest.err; then
7269 ac_cpp_err=$ac_c_preproc_warn_flag
7270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7277 if test -z "$ac_cpp_err"; then
7278 ac_header_preproc=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_header_preproc=no
7285 rm -f conftest.err conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7287 echo "${ECHO_T}$ac_header_preproc" >&6
7289 # So? What about this header?
7290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7296 ac_header_preproc=yes
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7313 ## ------------------------------------ ##
7314 ## Report this to bug-coreutils@gnu.org ##
7315 ## ------------------------------------ ##
7318 sed "s/^/$as_me: WARNING: /" >&2
7321 echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 eval "$as_ac_Header=\$ac_header_preproc"
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344 for ac_header in mntent.h
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348 echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356 # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7366 #include <$ac_header>
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -z "$ac_c_werror_flag"
7378 || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_header_compiler=yes
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_header_compiler=no
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <$ac_header>
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
7422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7429 if test -z "$ac_cpp_err"; then
7430 ac_header_preproc=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_header_preproc=no
7437 rm -f conftest.err conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439 echo "${ECHO_T}$ac_header_preproc" >&6
7441 # So? What about this header?
7442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7448 ac_header_preproc=yes
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7465 ## ------------------------------------ ##
7466 ## Report this to bug-coreutils@gnu.org ##
7467 ## ------------------------------------ ##
7470 sed "s/^/$as_me: WARNING: /" >&2
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 eval "$as_ac_Header=\$ac_header_preproc"
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 for ac_header in mnttab.h
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500 echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7508 # Is the header compilable?
7509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7518 #include <$ac_header>
7520 rm -f conftest.$ac_objext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7522 (eval $ac_compile) 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } &&
7529 { ac_try='test -z "$ac_c_werror_flag"
7530 || test ! -s conftest.err'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; }; then
7542 ac_header_compiler=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 ac_header_compiler=no
7549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 #include <$ac_header>
7564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } >/dev/null; then
7572 if test -s conftest.err; then
7573 ac_cpp_err=$ac_c_preproc_warn_flag
7574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7581 if test -z "$ac_cpp_err"; then
7582 ac_header_preproc=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7587 ac_header_preproc=no
7589 rm -f conftest.err conftest.$ac_ext
7590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7591 echo "${ECHO_T}$ac_header_preproc" >&6
7593 # So? What about this header?
7594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7600 ac_header_preproc=yes
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7617 ## ------------------------------------ ##
7618 ## Report this to bug-coreutils@gnu.org ##
7619 ## ------------------------------------ ##
7622 sed "s/^/$as_me: WARNING: /" >&2
7625 echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 eval "$as_ac_Header=\$ac_header_preproc"
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7648 for ac_header in netdb.h
7650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7660 # Is the header compilable?
7661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 #include <$ac_header>
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_header_compiler=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_header_compiler=no
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7703 echo "${ECHO_T}$ac_header_compiler" >&6
7705 # Is the header present?
7706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <$ac_header>
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7733 if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_header_preproc=no
7741 rm -f conftest.err conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7743 echo "${ECHO_T}$ac_header_preproc" >&6
7745 # So? What about this header?
7746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7752 ac_header_preproc=yes
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7769 ## ------------------------------------ ##
7770 ## Report this to bug-coreutils@gnu.org ##
7771 ## ------------------------------------ ##
7774 sed "s/^/$as_me: WARNING: /" >&2
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 eval "$as_ac_Header=\$ac_header_preproc"
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 for ac_header in paths.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7822 #include <$ac_header>
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_header_compiler=no
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <$ac_header>
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7897 # So? What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7921 ## ------------------------------------ ##
7922 ## Report this to bug-coreutils@gnu.org ##
7923 ## ------------------------------------ ##
7926 sed "s/^/$as_me: WARNING: /" >&2
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 eval "$as_ac_Header=\$ac_header_preproc"
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 for ac_header in stdlib.h
7954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7964 # Is the header compilable?
7965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7966 echo $ECHO_N "checking $ac_header usability... $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 #include <$ac_header>
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag"
7986 || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest.$ac_objext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_header_compiler=yes
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_header_compiler=no
8005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8007 echo "${ECHO_T}$ac_header_compiler" >&6
8009 # Is the header present?
8010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #include <$ac_header>
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } >/dev/null; then
8028 if test -s conftest.err; then
8029 ac_cpp_err=$ac_c_preproc_warn_flag
8030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8037 if test -z "$ac_cpp_err"; then
8038 ac_header_preproc=yes
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_header_preproc=no
8045 rm -f conftest.err conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8047 echo "${ECHO_T}$ac_header_preproc" >&6
8049 # So? What about this header?
8050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8056 ac_header_preproc=yes
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8073 ## ------------------------------------ ##
8074 ## Report this to bug-coreutils@gnu.org ##
8075 ## ------------------------------------ ##
8078 sed "s/^/$as_me: WARNING: /" >&2
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 eval "$as_ac_Header=\$ac_header_preproc"
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 for ac_header in stddef.h
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108 echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #include <$ac_header>
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_header_compiler=no
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159 echo "${ECHO_T}$ac_header_compiler" >&6
8161 # Is the header present?
8162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 #include <$ac_header>
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_c_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8189 if test -z "$ac_cpp_err"; then
8190 ac_header_preproc=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_header_preproc=no
8197 rm -f conftest.err conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6
8201 # So? What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8225 ## ------------------------------------ ##
8226 ## Report this to bug-coreutils@gnu.org ##
8227 ## ------------------------------------ ##
8230 sed "s/^/$as_me: WARNING: /" >&2
8233 echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 eval "$as_ac_Header=\$ac_header_preproc"
8240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8245 cat >>confdefs.h <<_ACEOF
8246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8256 for ac_header in stdint.h
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268 # Is the header compilable?
8269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <$ac_header>
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_header_compiler=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_header_compiler=no
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <$ac_header>
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null; then
8332 if test -s conftest.err; then
8333 ac_cpp_err=$ac_c_preproc_warn_flag
8334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8341 if test -z "$ac_cpp_err"; then
8342 ac_header_preproc=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8377 ## ------------------------------------ ##
8378 ## Report this to bug-coreutils@gnu.org ##
8379 ## ------------------------------------ ##
8382 sed "s/^/$as_me: WARNING: /" >&2
8385 echo "$as_me:$LINENO: checking for $ac_header" >&5
8386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 eval "$as_ac_Header=\$ac_header_preproc"
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397 cat >>confdefs.h <<_ACEOF
8398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408 for ac_header in string.h
8410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8412 echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8420 # Is the header compilable?
8421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #include <$ac_header>
8432 rm -f conftest.$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag"
8442 || test ! -s conftest.err'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_header_compiler=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_header_compiler=no
8461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8463 echo "${ECHO_T}$ac_header_compiler" >&6
8465 # Is the header present?
8466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <$ac_header>
8476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } >/dev/null; then
8484 if test -s conftest.err; then
8485 ac_cpp_err=$ac_c_preproc_warn_flag
8486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8493 if test -z "$ac_cpp_err"; then
8494 ac_header_preproc=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_header_preproc=no
8501 rm -f conftest.err conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8503 echo "${ECHO_T}$ac_header_preproc" >&6
8505 # So? What about this header?
8506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8512 ac_header_preproc=yes
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8529 ## ------------------------------------ ##
8530 ## Report this to bug-coreutils@gnu.org ##
8531 ## ------------------------------------ ##
8534 sed "s/^/$as_me: WARNING: /" >&2
8537 echo "$as_me:$LINENO: checking for $ac_header" >&5
8538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 eval "$as_ac_Header=\$ac_header_preproc"
8544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549 cat >>confdefs.h <<_ACEOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 for ac_header in sys/filsys.h
8562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8564 echo "$as_me:$LINENO: checking for $ac_header" >&5
8565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8572 # Is the header compilable?
8573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8582 #include <$ac_header>
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest.$ac_objext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_header_compiler=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_compiler=no
8613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8615 echo "${ECHO_T}$ac_header_compiler" >&6
8617 # Is the header present?
8618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 #include <$ac_header>
8628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } >/dev/null; then
8636 if test -s conftest.err; then
8637 ac_cpp_err=$ac_c_preproc_warn_flag
8638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8645 if test -z "$ac_cpp_err"; then
8646 ac_header_preproc=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 ac_header_preproc=no
8653 rm -f conftest.err conftest.$ac_ext
8654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8655 echo "${ECHO_T}$ac_header_preproc" >&6
8657 # So? What about this header?
8658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8664 ac_header_preproc=yes
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8681 ## ------------------------------------ ##
8682 ## Report this to bug-coreutils@gnu.org ##
8683 ## ------------------------------------ ##
8686 sed "s/^/$as_me: WARNING: /" >&2
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 eval "$as_ac_Header=\$ac_header_preproc"
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8701 cat >>confdefs.h <<_ACEOF
8702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 for ac_header in sys/fs/s5param.h
8714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716 echo "$as_me:$LINENO: checking for $ac_header" >&5
8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8724 # Is the header compilable?
8725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #include <$ac_header>
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -z "$ac_c_werror_flag"
8746 || test ! -s conftest.err'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; } &&
8752 { ac_try='test -s conftest.$ac_objext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_header_compiler=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 ac_header_compiler=no
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 #include <$ac_header>
8780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } >/dev/null; then
8788 if test -s conftest.err; then
8789 ac_cpp_err=$ac_c_preproc_warn_flag
8790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8797 if test -z "$ac_cpp_err"; then
8798 ac_header_preproc=yes
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 ac_header_preproc=no
8805 rm -f conftest.err conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8807 echo "${ECHO_T}$ac_header_preproc" >&6
8809 # So? What about this header?
8810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8816 ac_header_preproc=yes
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8833 ## ------------------------------------ ##
8834 ## Report this to bug-coreutils@gnu.org ##
8835 ## ------------------------------------ ##
8838 sed "s/^/$as_me: WARNING: /" >&2
8841 echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 eval "$as_ac_Header=\$ac_header_preproc"
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853 cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8864 for ac_header in sys/fs_types.h
8866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868 echo "$as_me:$LINENO: checking for $ac_header" >&5
8869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876 # Is the header compilable?
8877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 $ac_includes_default
8886 #include <$ac_header>
8888 rm -f conftest.$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890 (eval $ac_compile) 2>conftest.er1
8892 grep -v '^ *+' conftest.er1 >conftest.err
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -z "$ac_c_werror_flag"
8898 || test ! -s conftest.err'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_header_compiler=no
8917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8919 echo "${ECHO_T}$ac_header_compiler" >&6
8921 # Is the header present?
8922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 #include <$ac_header>
8932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } >/dev/null; then
8940 if test -s conftest.err; then
8941 ac_cpp_err=$ac_c_preproc_warn_flag
8942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8949 if test -z "$ac_cpp_err"; then
8950 ac_header_preproc=yes
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_header_preproc=no
8957 rm -f conftest.err conftest.$ac_ext
8958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8959 echo "${ECHO_T}$ac_header_preproc" >&6
8961 # So? What about this header?
8962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8968 ac_header_preproc=yes
8971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8985 ## ------------------------------------ ##
8986 ## Report this to bug-coreutils@gnu.org ##
8987 ## ------------------------------------ ##
8990 sed "s/^/$as_me: WARNING: /" >&2
8993 echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 eval "$as_ac_Header=\$ac_header_preproc"
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016 for ac_header in sys/fstyp.h
9018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9028 # Is the header compilable?
9029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9038 #include <$ac_header>
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>conftest.er1
9044 grep -v '^ *+' conftest.er1 >conftest.err
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag"
9050 || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try='test -s conftest.$ac_objext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_header_compiler=yes
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_header_compiler=no
9069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9071 echo "${ECHO_T}$ac_header_compiler" >&6
9073 # Is the header present?
9074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 #include <$ac_header>
9084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } >/dev/null; then
9092 if test -s conftest.err; then
9093 ac_cpp_err=$ac_c_preproc_warn_flag
9094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9101 if test -z "$ac_cpp_err"; then
9102 ac_header_preproc=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_header_preproc=no
9109 rm -f conftest.err conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111 echo "${ECHO_T}$ac_header_preproc" >&6
9113 # So? What about this header?
9114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120 ac_header_preproc=yes
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9137 ## ------------------------------------ ##
9138 ## Report this to bug-coreutils@gnu.org ##
9139 ## ------------------------------------ ##
9142 sed "s/^/$as_me: WARNING: /" >&2
9145 echo "$as_me:$LINENO: checking for $ac_header" >&5
9146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 eval "$as_ac_Header=\$ac_header_preproc"
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h <<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9168 for ac_header in sys/ioctl.h
9170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 # Is the header compilable?
9181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 #include <$ac_header>
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_header_compiler=no
9221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9223 echo "${ECHO_T}$ac_header_compiler" >&6
9225 # Is the header present?
9226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 #include <$ac_header>
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } >/dev/null; then
9244 if test -s conftest.err; then
9245 ac_cpp_err=$ac_c_preproc_warn_flag
9246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9253 if test -z "$ac_cpp_err"; then
9254 ac_header_preproc=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_header_preproc=no
9261 rm -f conftest.err conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9263 echo "${ECHO_T}$ac_header_preproc" >&6
9265 # So? What about this header?
9266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9272 ac_header_preproc=yes
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9289 ## ------------------------------------ ##
9290 ## Report this to bug-coreutils@gnu.org ##
9291 ## ------------------------------------ ##
9294 sed "s/^/$as_me: WARNING: /" >&2
9297 echo "$as_me:$LINENO: checking for $ac_header" >&5
9298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 eval "$as_ac_Header=\$ac_header_preproc"
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9309 cat >>confdefs.h <<_ACEOF
9310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320 for ac_header in sys/mntent.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9332 # Is the header compilable?
9333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 $ac_includes_default
9342 #include <$ac_header>
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_header_compiler=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_compiler=no
9373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 echo "${ECHO_T}$ac_header_compiler" >&6
9377 # Is the header present?
9378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <$ac_header>
9388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } >/dev/null; then
9396 if test -s conftest.err; then
9397 ac_cpp_err=$ac_c_preproc_warn_flag
9398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9405 if test -z "$ac_cpp_err"; then
9406 ac_header_preproc=yes
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_header_preproc=no
9413 rm -f conftest.err conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9441 ## ------------------------------------ ##
9442 ## Report this to bug-coreutils@gnu.org ##
9443 ## ------------------------------------ ##
9446 sed "s/^/$as_me: WARNING: /" >&2
9449 echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 eval "$as_ac_Header=\$ac_header_preproc"
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 for ac_header in sys/param.h
9474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476 echo "$as_me:$LINENO: checking for $ac_header" >&5
9477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484 # Is the header compilable?
9485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 $ac_includes_default
9494 #include <$ac_header>
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_header_compiler=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_header_compiler=no
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9527 echo "${ECHO_T}$ac_header_compiler" >&6
9529 # Is the header present?
9530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 #include <$ac_header>
9540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } >/dev/null; then
9548 if test -s conftest.err; then
9549 ac_cpp_err=$ac_c_preproc_warn_flag
9550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9557 if test -z "$ac_cpp_err"; then
9558 ac_header_preproc=yes
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_header_preproc=no
9565 rm -f conftest.err conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6
9569 # So? What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576 ac_header_preproc=yes
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9593 ## ------------------------------------ ##
9594 ## Report this to bug-coreutils@gnu.org ##
9595 ## ------------------------------------ ##
9598 sed "s/^/$as_me: WARNING: /" >&2
9601 echo "$as_me:$LINENO: checking for $ac_header" >&5
9602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 eval "$as_ac_Header=\$ac_header_preproc"
9608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9613 cat >>confdefs.h <<_ACEOF
9614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 for ac_header in sys/resource.h
9626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9628 echo "$as_me:$LINENO: checking for $ac_header" >&5
9629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9636 # Is the header compilable?
9637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 #include <$ac_header>
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_header_compiler=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_header_compiler=no
9677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9679 echo "${ECHO_T}$ac_header_compiler" >&6
9681 # Is the header present?
9682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <$ac_header>
9692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } >/dev/null; then
9700 if test -s conftest.err; then
9701 ac_cpp_err=$ac_c_preproc_warn_flag
9702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 if test -z "$ac_cpp_err"; then
9710 ac_header_preproc=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_header_preproc=no
9717 rm -f conftest.err conftest.$ac_ext
9718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9719 echo "${ECHO_T}$ac_header_preproc" >&6
9721 # So? What about this header?
9722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9728 ac_header_preproc=yes
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9745 ## ------------------------------------ ##
9746 ## Report this to bug-coreutils@gnu.org ##
9747 ## ------------------------------------ ##
9750 sed "s/^/$as_me: WARNING: /" >&2
9753 echo "$as_me:$LINENO: checking for $ac_header" >&5
9754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 eval "$as_ac_Header=\$ac_header_preproc"
9760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9765 cat >>confdefs.h <<_ACEOF
9766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9776 for ac_header in sys/socket.h
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780 echo "$as_me:$LINENO: checking for $ac_header" >&5
9781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788 # Is the header compilable?
9789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9798 #include <$ac_header>
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802 (eval $ac_compile) 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_c_werror_flag"
9810 || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest.$ac_objext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_header_compiler=yes
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_compiler=no
9829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9831 echo "${ECHO_T}$ac_header_compiler" >&6
9833 # Is the header present?
9834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } >/dev/null; then
9852 if test -s conftest.err; then
9853 ac_cpp_err=$ac_c_preproc_warn_flag
9854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9861 if test -z "$ac_cpp_err"; then
9862 ac_header_preproc=yes
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_header_preproc=no
9869 rm -f conftest.err conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9871 echo "${ECHO_T}$ac_header_preproc" >&6
9873 # So? What about this header?
9874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9880 ac_header_preproc=yes
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9897 ## ------------------------------------ ##
9898 ## Report this to bug-coreutils@gnu.org ##
9899 ## ------------------------------------ ##
9902 sed "s/^/$as_me: WARNING: /" >&2
9905 echo "$as_me:$LINENO: checking for $ac_header" >&5
9906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 eval "$as_ac_Header=\$ac_header_preproc"
9912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9917 cat >>confdefs.h <<_ACEOF
9918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9928 for ac_header in sys/statfs.h
9930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9932 echo "$as_me:$LINENO: checking for $ac_header" >&5
9933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9940 # Is the header compilable?
9941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <$ac_header>
9952 rm -f conftest.$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954 (eval $ac_compile) 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_header_compiler=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_header_compiler=no
9981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <$ac_header>
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } >/dev/null; then
10004 if test -s conftest.err; then
10005 ac_cpp_err=$ac_c_preproc_warn_flag
10006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10013 if test -z "$ac_cpp_err"; then
10014 ac_header_preproc=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_preproc=no
10021 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10025 # So? What about this header?
10026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10032 ac_header_preproc=yes
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10049 ## ------------------------------------ ##
10050 ## Report this to bug-coreutils@gnu.org ##
10051 ## ------------------------------------ ##
10054 sed "s/^/$as_me: WARNING: /" >&2
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 eval "$as_ac_Header=\$ac_header_preproc"
10064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069 cat >>confdefs.h <<_ACEOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10080 for ac_header in sys/statvfs.h
10082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10084 echo "$as_me:$LINENO: checking for $ac_header" >&5
10085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10092 # Is the header compilable?
10093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 $ac_includes_default
10102 #include <$ac_header>
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_header_compiler=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_compiler=no
10133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 echo "${ECHO_T}$ac_header_compiler" >&6
10137 # Is the header present?
10138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <$ac_header>
10148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } >/dev/null; then
10156 if test -s conftest.err; then
10157 ac_cpp_err=$ac_c_preproc_warn_flag
10158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10165 if test -z "$ac_cpp_err"; then
10166 ac_header_preproc=yes
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10201 ## ------------------------------------ ##
10202 ## Report this to bug-coreutils@gnu.org ##
10203 ## ------------------------------------ ##
10206 sed "s/^/$as_me: WARNING: /" >&2
10209 echo "$as_me:$LINENO: checking for $ac_header" >&5
10210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 eval "$as_ac_Header=\$ac_header_preproc"
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232 for ac_header in sys/systeminfo.h
10234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236 echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244 # Is the header compilable?
10245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 $ac_includes_default
10254 #include <$ac_header>
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_header_compiler=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_header_compiler=no
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287 echo "${ECHO_T}$ac_header_compiler" >&6
10289 # Is the header present?
10290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <$ac_header>
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_c_preproc_warn_flag
10310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10317 if test -z "$ac_cpp_err"; then
10318 ac_header_preproc=yes
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_header_preproc=no
10325 rm -f conftest.err conftest.$ac_ext
10326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327 echo "${ECHO_T}$ac_header_preproc" >&6
10329 # So? What about this header?
10330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336 ac_header_preproc=yes
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10353 ## ------------------------------------ ##
10354 ## Report this to bug-coreutils@gnu.org ##
10355 ## ------------------------------------ ##
10358 sed "s/^/$as_me: WARNING: /" >&2
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 eval "$as_ac_Header=\$ac_header_preproc"
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10384 for ac_header in sys/time.h
10386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10388 echo "$as_me:$LINENO: checking for $ac_header" >&5
10389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10396 # Is the header compilable?
10397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10406 #include <$ac_header>
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410 (eval $ac_compile) 2>conftest.er1
10412 grep -v '^ *+' conftest.er1 >conftest.err
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag"
10418 || test ! -s conftest.err'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_header_compiler=yes
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10435 ac_header_compiler=no
10437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10439 echo "${ECHO_T}$ac_header_compiler" >&6
10441 # Is the header present?
10442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10443 echo $ECHO_N "checking $ac_header presence... $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. */
10450 #include <$ac_header>
10452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } >/dev/null; then
10460 if test -s conftest.err; then
10461 ac_cpp_err=$ac_c_preproc_warn_flag
10462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10469 if test -z "$ac_cpp_err"; then
10470 ac_header_preproc=yes
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_header_preproc=no
10477 rm -f conftest.err conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10479 echo "${ECHO_T}$ac_header_preproc" >&6
10481 # So? What about this header?
10482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10488 ac_header_preproc=yes
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10505 ## ------------------------------------ ##
10506 ## Report this to bug-coreutils@gnu.org ##
10507 ## ------------------------------------ ##
10510 sed "s/^/$as_me: WARNING: /" >&2
10513 echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 eval "$as_ac_Header=\$ac_header_preproc"
10520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10525 cat >>confdefs.h <<_ACEOF
10526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10536 for ac_header in sys/timeb.h
10538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10540 echo "$as_me:$LINENO: checking for $ac_header" >&5
10541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10548 # Is the header compilable?
10549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 $ac_includes_default
10558 #include <$ac_header>
10560 rm -f conftest.$ac_objext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10562 (eval $ac_compile) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest.$ac_objext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_header_compiler=yes
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_header_compiler=no
10589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591 echo "${ECHO_T}$ac_header_compiler" >&6
10593 # Is the header present?
10594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <$ac_header>
10604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev/null; then
10612 if test -s conftest.err; then
10613 ac_cpp_err=$ac_c_preproc_warn_flag
10614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10621 if test -z "$ac_cpp_err"; then
10622 ac_header_preproc=yes
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_header_preproc=no
10629 rm -f conftest.err conftest.$ac_ext
10630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10631 echo "${ECHO_T}$ac_header_preproc" >&6
10633 # So? What about this header?
10634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10640 ac_header_preproc=yes
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657 ## ------------------------------------ ##
10658 ## Report this to bug-coreutils@gnu.org ##
10659 ## ------------------------------------ ##
10662 sed "s/^/$as_me: WARNING: /" >&2
10665 echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 eval "$as_ac_Header=\$ac_header_preproc"
10672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10677 cat >>confdefs.h <<_ACEOF
10678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688 for ac_header in sys/vfs.h
10690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10692 echo "$as_me:$LINENO: checking for $ac_header" >&5
10693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10700 # Is the header compilable?
10701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 $ac_includes_default
10710 #include <$ac_header>
10712 rm -f conftest.$ac_objext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714 (eval $ac_compile) 2>conftest.er1
10716 grep -v '^ *+' conftest.er1 >conftest.err
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag"
10722 || test ! -s conftest.err'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_header_compiler=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_header_compiler=no
10741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10743 echo "${ECHO_T}$ac_header_compiler" >&6
10745 # Is the header present?
10746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10748 cat >conftest.$ac_ext <<_ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 #include <$ac_header>
10756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } >/dev/null; then
10764 if test -s conftest.err; then
10765 ac_cpp_err=$ac_c_preproc_warn_flag
10766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10773 if test -z "$ac_cpp_err"; then
10774 ac_header_preproc=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_header_preproc=no
10781 rm -f conftest.err conftest.$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10783 echo "${ECHO_T}$ac_header_preproc" >&6
10785 # So? What about this header?
10786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10792 ac_header_preproc=yes
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10809 ## ------------------------------------ ##
10810 ## Report this to bug-coreutils@gnu.org ##
10811 ## ------------------------------------ ##
10814 sed "s/^/$as_me: WARNING: /" >&2
10817 echo "$as_me:$LINENO: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 eval "$as_ac_Header=\$ac_header_preproc"
10824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10829 cat >>confdefs.h <<_ACEOF
10830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840 for ac_header in sys/wait.h
10842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10844 echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10852 # Is the header compilable?
10853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 $ac_includes_default
10862 #include <$ac_header>
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866 (eval $ac_compile) 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag"
10874 || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest.$ac_objext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_header_compiler=yes
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_header_compiler=no
10893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10895 echo "${ECHO_T}$ac_header_compiler" >&6
10897 # Is the header present?
10898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 #include <$ac_header>
10908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } >/dev/null; then
10916 if test -s conftest.err; then
10917 ac_cpp_err=$ac_c_preproc_warn_flag
10918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10925 if test -z "$ac_cpp_err"; then
10926 ac_header_preproc=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_header_preproc=no
10933 rm -f conftest.err conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10935 echo "${ECHO_T}$ac_header_preproc" >&6
10937 # So? What about this header?
10938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10944 ac_header_preproc=yes
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961 ## ------------------------------------ ##
10962 ## Report this to bug-coreutils@gnu.org ##
10963 ## ------------------------------------ ##
10966 sed "s/^/$as_me: WARNING: /" >&2
10969 echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 eval "$as_ac_Header=\$ac_header_preproc"
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10981 cat >>confdefs.h <<_ACEOF
10982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 for ac_header in syslog.h
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996 echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11004 # Is the header compilable?
11005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11014 #include <$ac_header>
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_header_compiler=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_header_compiler=no
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6
11049 # Is the header present?
11050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 #include <$ac_header>
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11077 if test -z "$ac_cpp_err"; then
11078 ac_header_preproc=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_header_preproc=no
11085 rm -f conftest.err conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6
11089 # So? What about this header?
11090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096 ac_header_preproc=yes
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11113 ## ------------------------------------ ##
11114 ## Report this to bug-coreutils@gnu.org ##
11115 ## ------------------------------------ ##
11118 sed "s/^/$as_me: WARNING: /" >&2
11121 echo "$as_me:$LINENO: checking for $ac_header" >&5
11122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 eval "$as_ac_Header=\$ac_header_preproc"
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11144 for ac_header in termios.h
11146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11148 echo "$as_me:$LINENO: checking for $ac_header" >&5
11149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11156 # Is the header compilable?
11157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 $ac_includes_default
11166 #include <$ac_header>
11168 rm -f conftest.$ac_objext
11169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11170 (eval $ac_compile) 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag"
11178 || test ! -s conftest.err'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest.$ac_objext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_header_compiler=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_compiler=no
11197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6
11201 # Is the header present?
11202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <$ac_header>
11212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215 grep -v '^ *+' conftest.er1 >conftest.err
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } >/dev/null; then
11220 if test -s conftest.err; then
11221 ac_cpp_err=$ac_c_preproc_warn_flag
11222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229 if test -z "$ac_cpp_err"; then
11230 ac_header_preproc=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_preproc=no
11237 rm -f conftest.err conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6
11241 # So? What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248 ac_header_preproc=yes
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11265 ## ------------------------------------ ##
11266 ## Report this to bug-coreutils@gnu.org ##
11267 ## ------------------------------------ ##
11270 sed "s/^/$as_me: WARNING: /" >&2
11273 echo "$as_me:$LINENO: checking for $ac_header" >&5
11274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 eval "$as_ac_Header=\$ac_header_preproc"
11280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11296 for ac_header in unistd.h
11298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11300 echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11308 # Is the header compilable?
11309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 #include <$ac_header>
11320 rm -f conftest.$ac_objext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_header_compiler=yes
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_compiler=no
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6
11353 # Is the header present?
11354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <$ac_header>
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev/null; then
11372 if test -s conftest.err; then
11373 ac_cpp_err=$ac_c_preproc_warn_flag
11374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11381 if test -z "$ac_cpp_err"; then
11382 ac_header_preproc=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc=yes
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11417 ## ------------------------------------ ##
11418 ## Report this to bug-coreutils@gnu.org ##
11419 ## ------------------------------------ ##
11422 sed "s/^/$as_me: WARNING: /" >&2
11425 echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 eval "$as_ac_Header=\$ac_header_preproc"
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11437 cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 for ac_header in utime.h
11450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11452 echo "$as_me:$LINENO: checking for $ac_header" >&5
11453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11460 # Is the header compilable?
11461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 #include <$ac_header>
11472 rm -f conftest.$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11476 grep -v '^ *+' conftest.er1 >conftest.err
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_header_compiler=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6
11505 # Is the header present?
11506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } >/dev/null; then
11524 if test -s conftest.err; then
11525 ac_cpp_err=$ac_c_preproc_warn_flag
11526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533 if test -z "$ac_cpp_err"; then
11534 ac_header_preproc=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_header_preproc=no
11541 rm -f conftest.err conftest.$ac_ext
11542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 echo "${ECHO_T}$ac_header_preproc" >&6
11545 # So? What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552 ac_header_preproc=yes
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11569 ## ------------------------------------ ##
11570 ## Report this to bug-coreutils@gnu.org ##
11571 ## ------------------------------------ ##
11574 sed "s/^/$as_me: WARNING: /" >&2
11577 echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 eval "$as_ac_Header=\$ac_header_preproc"
11584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11707 for ac_header in sys/mount.h sys/sysctl.h
11709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 echo "$as_me:$LINENO: checking for $ac_header" >&5
11711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11722 #if HAVE_SYS_PARAM_H
11723 #include <sys/param.h>
11726 #include <$ac_header>
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag"
11738 || test ! -s conftest.err'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 eval "$as_ac_Header=yes"
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 eval "$as_ac_Header=no"
11757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11776 ac_header_dirent=no
11777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 cat >conftest.$ac_ext <<_ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 #include <sys/types.h>
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 eval "$as_ac_Header=yes"
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 eval "$as_ac_Header=no"
11831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11836 cat >>confdefs.h <<_ACEOF
11837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11840 ac_header_dirent=$ac_hdr; break
11844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11845 if test $ac_header_dirent = dirent.h; then
11846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11848 if test "${ac_cv_search_opendir+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 ac_func_search_save_LIBS=$LIBS
11852 ac_cv_search_opendir=no
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11860 /* Override any gcc2 internal prototype to avoid an error. */
11864 /* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_search_opendir="none required"
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11903 rm -f conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 if test "$ac_cv_search_opendir" = no; then
11906 for ac_lib in dir; do
11907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11915 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_search_opendir="-l$ac_lib"
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11959 rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_func_search_save_LIBS
11965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11967 if test "$ac_cv_search_opendir" != no; then
11968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11975 if test "${ac_cv_search_opendir+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_func_search_save_LIBS=$LIBS
11979 ac_cv_search_opendir=no
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_search_opendir="none required"
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12030 rm -f conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 if test "$ac_cv_search_opendir" = no; then
12033 for ac_lib in x; do
12034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12042 /* Override any gcc2 internal prototype to avoid an error. */
12046 /* We use char because int might match the return type of a gcc2
12047 builtin and then its argument prototype would still apply. */
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag"
12067 || test ! -s conftest.err'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest$ac_exeext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_search_opendir="-l$ac_lib"
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12086 rm -f conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_func_search_save_LIBS
12092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12094 if test "$ac_cv_search_opendir" != no; then
12095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12101 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12102 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12103 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12116 static struct stat ac_aggr;
12117 if (ac_aggr.st_blocks)
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_member_struct_stat_st_blocks=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12160 static struct stat ac_aggr;
12161 if (sizeof ac_aggr.st_blocks)
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag"
12177 || test ! -s conftest.err'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_member_struct_stat_st_blocks=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_member_struct_stat_st_blocks=no
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12201 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12202 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_ST_BLOCKS 1
12215 "fileblocks.$ac_objext" | \
12216 *" fileblocks.$ac_objext" | \
12217 "fileblocks.$ac_objext "* | \
12218 *" fileblocks.$ac_objext "* ) ;;
12219 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12225 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12226 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12227 if test "${ac_cv_header_stat_broken+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <sys/types.h>
12237 #include <sys/stat.h>
12239 #if defined(S_ISBLK) && defined(S_IFDIR)
12240 # if S_ISBLK (S_IFDIR)
12245 #if defined(S_ISBLK) && defined(S_IFCHR)
12246 # if S_ISBLK (S_IFCHR)
12251 #if defined(S_ISLNK) && defined(S_IFREG)
12252 # if S_ISLNK (S_IFREG)
12257 #if defined(S_ISSOCK) && defined(S_IFREG)
12258 # if S_ISSOCK (S_IFREG)
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "You lose" >/dev/null 2>&1; then
12266 ac_cv_header_stat_broken=yes
12268 ac_cv_header_stat_broken=no
12273 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12274 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12275 if test $ac_cv_header_stat_broken = yes; then
12277 cat >>confdefs.h <<\_ACEOF
12278 #define STAT_MACROS_BROKEN 1
12283 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
12284 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
12285 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_save_CPPFLAGS="$CPPFLAGS"
12289 ac_cv_struct_st_mtim_nsec=no
12290 # tv_nsec -- the usual case
12291 # _tv_nsec -- Solaris 2.6, if
12292 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
12293 # && !defined __EXTENSIONS__)
12294 # st__tim.tv_nsec -- UnixWare 2.1.2
12295 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
12296 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <sys/types.h>
12304 #include <sys/stat.h>
12308 struct stat s; s.st_mtim.ST_MTIM_NSEC;
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_struct_st_mtim_nsec=$ac_val; break
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 CPPFLAGS="$ac_save_CPPFLAGS"
12345 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
12346 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
12348 if test $ac_cv_struct_st_mtim_nsec != no; then
12350 cat >>confdefs.h <<_ACEOF
12351 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
12357 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
12358 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
12359 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 #include <sys/types.h>
12369 #include <sys/stat.h>
12373 struct stat s; s.st_dm_mode;
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest.$ac_objext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 ac_cv_struct_st_dm_mode=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 ac_cv_struct_st_dm_mode=no
12407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12409 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
12410 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
12412 if test $ac_cv_struct_st_dm_mode = yes; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_ST_DM_MODE 1
12421 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12422 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12423 if test "${ac_cv_type_uid_t+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 #include <sys/types.h>
12435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12436 $EGREP "uid_t" >/dev/null 2>&1; then
12437 ac_cv_type_uid_t=yes
12439 ac_cv_type_uid_t=no
12444 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12445 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12446 if test $ac_cv_type_uid_t = no; then
12448 cat >>confdefs.h <<\_ACEOF
12453 cat >>confdefs.h <<\_ACEOF
12459 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
12460 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
12461 if test "${ac_cv_type_getgroups+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 if test "$cross_compiling" = yes; then
12465 ac_cv_type_getgroups=cross
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 /* Thanks to Mike Rendell for this test. */
12474 #include <sys/types.h>
12477 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12482 gid_t gidset[NGID];
12484 union { gid_t gval; long lval; } val;
12487 for (i = 0; i < NGID; i++)
12488 gidset[i] = val.gval;
12489 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12491 /* Exit non-zero if getgroups seems to require an array of ints. This
12492 happens when gid_t is short but getgroups modifies an array of ints. */
12493 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12496 rm -f conftest$ac_exeext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498 (eval $ac_link) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_type_getgroups=gid_t
12509 echo "$as_me: program exited with status $ac_status" >&5
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ( exit $ac_status )
12514 ac_cv_type_getgroups=int
12516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518 if test $ac_cv_type_getgroups = cross; then
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <unistd.h>
12528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12530 ac_cv_type_getgroups=gid_t
12532 ac_cv_type_getgroups=int
12538 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
12539 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
12541 cat >>confdefs.h <<_ACEOF
12542 #define GETGROUPS_T $ac_cv_type_getgroups
12546 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12547 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12548 if test "${ac_cv_type_mbstate_t+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_includes_default
12558 # include <wchar.h>
12562 mbstate_t x; return sizeof x;
12567 rm -f conftest.$ac_objext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12569 (eval $ac_compile) 2>conftest.er1
12571 grep -v '^ *+' conftest.er1 >conftest.err
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag"
12577 || test ! -s conftest.err'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_type_mbstate_t=yes
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 ac_cv_type_mbstate_t=no
12596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12598 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12600 if test $ac_cv_type_mbstate_t = yes; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_MBSTATE_T 1
12608 cat >>confdefs.h <<\_ACEOF
12609 #define mbstate_t int
12613 echo "$as_me:$LINENO: checking for mode_t" >&5
12614 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12615 if test "${ac_cv_type_mode_t+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12630 if (sizeof (mode_t))
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_type_mode_t=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_type_mode_t=no
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12668 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12669 if test $ac_cv_type_mode_t = yes; then
12673 cat >>confdefs.h <<_ACEOF
12679 echo "$as_me:$LINENO: checking for off_t" >&5
12680 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12681 if test "${ac_cv_type_off_t+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12696 if (sizeof (off_t))
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag"
12712 || test ! -s conftest.err'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_type_off_t=yes
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 ac_cv_type_off_t=no
12731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12734 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12735 if test $ac_cv_type_off_t = yes; then
12739 cat >>confdefs.h <<_ACEOF
12745 echo "$as_me:$LINENO: checking for pid_t" >&5
12746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12747 if test "${ac_cv_type_pid_t+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12762 if (sizeof (pid_t))
12768 rm -f conftest.$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>conftest.er1
12772 grep -v '^ *+' conftest.er1 >conftest.err
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest.$ac_objext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_type_pid_t=yes
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 ac_cv_type_pid_t=no
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12801 if test $ac_cv_type_pid_t = yes; then
12805 cat >>confdefs.h <<_ACEOF
12811 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12813 if test "${ac_cv_type_signal+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 #include <sys/types.h>
12823 #include <signal.h>
12828 extern "C" void (*signal (int, void (*)(int)))(int);
12830 void (*signal ()) ();
12841 rm -f conftest.$ac_objext
12842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843 (eval $ac_compile) 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest.$ac_objext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 ac_cv_type_signal=void
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_cv_type_signal=int
12870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12873 echo "${ECHO_T}$ac_cv_type_signal" >&6
12875 cat >>confdefs.h <<_ACEOF
12876 #define RETSIGTYPE $ac_cv_type_signal
12880 echo "$as_me:$LINENO: checking for size_t" >&5
12881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12882 if test "${ac_cv_type_size_t+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12897 if (sizeof (size_t))
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag"
12913 || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_type_size_t=yes
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_type_size_t=no
12932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12934 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12935 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12936 if test $ac_cv_type_size_t = yes; then
12940 cat >>confdefs.h <<_ACEOF
12941 #define size_t unsigned
12947 echo "$as_me:$LINENO: checking for uint32_t" >&5
12948 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12949 if test "${gl_cv_c_uint32_t+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 gl_cv_c_uint32_t=no
12953 for ac_type in "uint32_t" "unsigned int" \
12954 "unsigned long int" "unsigned short int"; do
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 $ac_includes_default
12965 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>conftest.er1
12976 grep -v '^ *+' conftest.er1 >conftest.err
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag"
12982 || test ! -s conftest.err'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 gl_cv_c_uint32_t=$ac_type
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
13000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13001 test "$gl_cv_c_uint32_t" != no && break
13004 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
13005 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
13006 case "$gl_cv_c_uint32_t" in
13010 cat >>confdefs.h <<\_ACEOF
13011 #define _UINT32_T 1
13015 cat >>confdefs.h <<_ACEOF
13016 #define uint32_t $gl_cv_c_uint32_t
13022 echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
13023 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
13024 if test "${gl_cv_c_uint32_max+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 $ac_includes_default
13037 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
13044 rm -f conftest.$ac_objext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag"
13054 || test ! -s conftest.err'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 gl_cv_c_uint32_max=yes
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 gl_cv_c_uint32_max=no
13073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13075 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
13076 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
13077 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
13082 cat >>confdefs.h <<\_ACEOF
13083 #define UINT32_MAX 4294967295U
13090 echo "$as_me:$LINENO: checking for inttypes.h" >&5
13091 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
13092 if test "${gl_cv_header_inttypes_h+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include <sys/types.h>
13102 #include <inttypes.h>
13106 uintmax_t i = (uintmax_t) -1;
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest.$ac_objext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 gl_cv_header_inttypes_h=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 gl_cv_header_inttypes_h=no
13140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13142 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
13143 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
13144 if test $gl_cv_header_inttypes_h = yes; then
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13153 echo "$as_me:$LINENO: checking for stdint.h" >&5
13154 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
13155 if test "${gl_cv_header_stdint_h+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 #include <sys/types.h>
13165 #include <stdint.h>
13169 uintmax_t i = (uintmax_t) -1;
13174 rm -f conftest.$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>conftest.er1
13178 grep -v '^ *+' conftest.er1 >conftest.err
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag"
13184 || test ! -s conftest.err'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest.$ac_objext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 gl_cv_header_stdint_h=yes
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 gl_cv_header_stdint_h=no
13203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13205 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
13206 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
13207 if test $gl_cv_header_stdint_h = yes; then
13209 cat >>confdefs.h <<_ACEOF
13210 #define HAVE_STDINT_H_WITH_UINTMAX 1
13216 echo "$as_me:$LINENO: checking for unsigned long long" >&5
13217 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
13218 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 unsigned long long ull = 1ULL; int i = 63;
13231 unsigned long long ullmax = (unsigned long long) -1;
13232 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_type_unsigned_long_long=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_type_unsigned_long_long=no
13266 rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13269 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
13270 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
13271 if test $ac_cv_type_unsigned_long_long = yes; then
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_UNSIGNED_LONG_LONG 1
13282 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
13284 test $ac_cv_type_unsigned_long_long = yes \
13285 && ac_type='unsigned long long' \
13286 || ac_type='unsigned long'
13288 cat >>confdefs.h <<_ACEOF
13289 #define uintmax_t $ac_type
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_UINTMAX_T 1
13301 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13302 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13303 if test "${gl_cv_c_uintptr_t+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 gl_cv_c_uintptr_t=no
13307 for ac_type in "uintptr_t" "unsigned int" \
13308 "unsigned long int" "unsigned long long int"; do
13309 cat >conftest.$ac_ext <<_ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13319 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13330 grep -v '^ *+' conftest.er1 >conftest.err
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 gl_cv_c_uintptr_t=$ac_type
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13355 test $gl_cv_c_uintptr_t != no && break
13358 echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
13359 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6
13360 case $gl_cv_c_uintptr_t in
13364 cat >>confdefs.h <<_ACEOF
13365 #define uintptr_t $gl_cv_c_uintptr_t
13371 echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
13372 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6
13373 if test "${gl_cv_c_uintptr_max+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13386 #ifndef UINTPTR_MAX
13387 error: UINTPTR_MAX is not defined.
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395 (eval $ac_compile) 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 gl_cv_c_uintptr_max=yes
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 gl_cv_c_uintptr_max=no
13422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
13425 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6
13426 case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
13431 cat >>confdefs.h <<\_ACEOF
13432 #define UINTPTR_MAX ((uintptr_t) -1)
13438 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13439 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13440 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 cat >conftest.$ac_ext <<_ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 #include <sys/types.h>
13453 return makedev(0, 0);
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag"
13468 || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_cv_header_sys_types_h_makedev=yes
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ac_cv_header_sys_types_h_makedev=no
13487 rm -f conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13492 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13494 if test $ac_cv_header_sys_types_h_makedev = no; then
13495 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13496 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13497 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13498 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13502 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13504 # Is the header compilable?
13505 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13506 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13514 #include <sys/mkdev.h>
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>conftest.er1
13520 grep -v '^ *+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag"
13526 || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_header_compiler=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_compiler=no
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13547 echo "${ECHO_T}$ac_header_compiler" >&6
13549 # Is the header present?
13550 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13551 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <sys/mkdev.h>
13560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null; then
13568 if test -s conftest.err; then
13569 ac_cpp_err=$ac_c_preproc_warn_flag
13570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13577 if test -z "$ac_cpp_err"; then
13578 ac_header_preproc=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13585 rm -f conftest.err conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587 echo "${ECHO_T}$ac_header_preproc" >&6
13589 # So? What about this header?
13590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13593 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13595 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13596 ac_header_preproc=yes
13599 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13600 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13602 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13604 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13606 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13608 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13610 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13613 ## ------------------------------------ ##
13614 ## Report this to bug-coreutils@gnu.org ##
13615 ## ------------------------------------ ##
13618 sed "s/^/$as_me: WARNING: /" >&2
13621 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13622 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13623 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13629 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13632 if test $ac_cv_header_sys_mkdev_h = yes; then
13634 cat >>confdefs.h <<\_ACEOF
13635 #define MAJOR_IN_MKDEV 1
13642 if test $ac_cv_header_sys_mkdev_h = no; then
13643 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13644 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13645 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13650 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13652 # Is the header compilable?
13653 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13654 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $ac_includes_default
13662 #include <sys/sysmacros.h>
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag"
13674 || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_header_compiler=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_header_compiler=no
13693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695 echo "${ECHO_T}$ac_header_compiler" >&6
13697 # Is the header present?
13698 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13699 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 #include <sys/sysmacros.h>
13708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } >/dev/null; then
13716 if test -s conftest.err; then
13717 ac_cpp_err=$ac_c_preproc_warn_flag
13718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13725 if test -z "$ac_cpp_err"; then
13726 ac_header_preproc=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_header_preproc=no
13733 rm -f conftest.err conftest.$ac_ext
13734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13735 echo "${ECHO_T}$ac_header_preproc" >&6
13737 # So? What about this header?
13738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13740 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13741 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13743 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13744 ac_header_preproc=yes
13747 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13748 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13750 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13752 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13754 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13756 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13758 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13761 ## ------------------------------------ ##
13762 ## Report this to bug-coreutils@gnu.org ##
13763 ## ------------------------------------ ##
13766 sed "s/^/$as_me: WARNING: /" >&2
13769 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13770 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13771 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13780 if test $ac_cv_header_sys_sysmacros_h = yes; then
13782 cat >>confdefs.h <<\_ACEOF
13783 #define MAJOR_IN_SYSMACROS 1
13793 echo "$as_me:$LINENO: checking host operating system" >&5
13794 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
13795 if test "${gl_cv_host_operating_system+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 # These operating system names do not use the default heuristic below.
13801 # They are in reverse order, so that more-specific prefixes come first.
13802 winnt*) os='Windows NT';;
13804 sysv*) os='Unix System V';;
13805 superux*) os='SUPER-UX';;
13806 sunos*) os='SunOS';;
13808 sco*) os='SCO Unix';;
13809 riscos*) os='RISC OS';;
13810 riscix*) os='RISCiX';;
13814 plan9*) os='Plan 9';;
13817 openbsd*) os='OpenBSD';;
13818 nsk*) os='NonStop Kernel';;
13819 nonstopux*) os='NonStop-UX';;
13820 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
13821 netbsd*) os='NetBSD';;
13822 knetbsd*-gnu) os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
13823 kfreebsd*-gnu) os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
13824 msdosdjgpp*) os='DJGPP';;
13825 mpeix*) os='MPE/iX';;
13827 mingw*) os='MinGW';;
13828 lynxos*) os='LynxOS';;
13829 linux*) os='GNU/Linux';;
13830 hpux*) os='HP-UX';;
13831 hiux*) os='HI-UX';;
13833 freebsd*) os='FreeBSD';;
13834 dgux*) os='DG/UX';;
13835 bsdi*) os='BSD/OS';;
13839 atheos*) os='AtheOS';;
13840 amigaos*) os='Amiga OS';;
13843 # The default heuristic takes the initial alphabetic string
13844 # from $host_os, but capitalizes its first letter.
13847 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
13849 expr "X$host_os" : 'X.\([A-Za-z]*\)'
13853 # If $host_os does not start with an alphabetic string, use it unchanged.
13857 gl_cv_host_operating_system=$os
13859 echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
13860 echo "${ECHO_T}$gl_cv_host_operating_system" >&6
13862 cat >>confdefs.h <<_ACEOF
13863 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
13868 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
13869 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
13870 # Check whether --enable-assert or --disable-assert was given.
13871 if test "${enable_assert+set}" = set; then
13872 enableval="$enable_assert"
13873 echo "$as_me:$LINENO: result: no" >&5
13874 echo "${ECHO_T}no" >&6
13876 cat >>confdefs.h <<\_ACEOF
13881 echo "$as_me:$LINENO: result: yes" >&5
13882 echo "${ECHO_T}yes" >&6
13886 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13888 if test "${ac_cv_header_time+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <sys/time.h>
13904 if ((struct tm *) 0)
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest.$ac_objext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_header_time=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_cv_header_time=no
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13941 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13942 echo "${ECHO_T}$ac_cv_header_time" >&6
13943 if test $ac_cv_header_time = yes; then
13945 cat >>confdefs.h <<\_ACEOF
13946 #define TIME_WITH_SYS_TIME 1
13963 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
13964 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
13965 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13975 #ifdef TIME_WITH_SYS_TIME
13976 # include <sys/time.h>
13979 # ifdef HAVE_SYS_TIME_H
13980 # include <sys/time.h>
13985 #ifdef HAVE_UTIME_H
13986 # include <utime.h>
13992 static struct utimbuf x; x.actime = x.modtime;
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 fu_cv_sys_struct_utimbuf=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 fu_cv_sys_struct_utimbuf=no
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14029 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
14030 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
14032 if test $fu_cv_sys_struct_utimbuf = yes; then
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_STRUCT_UTIMBUF 1
14040 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
14041 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
14042 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14052 #include <sys/types.h>
14053 #ifdef HAVE_DIRENT_H
14054 # include <dirent.h>
14055 #else /* not HAVE_DIRENT_H */
14056 # define dirent direct
14057 # ifdef HAVE_SYS_NDIR_H
14058 # include <sys/ndir.h>
14059 # endif /* HAVE_SYS_NDIR_H */
14060 # ifdef HAVE_SYS_DIR_H
14061 # include <sys/dir.h>
14062 # endif /* HAVE_SYS_DIR_H */
14063 # ifdef HAVE_NDIR_H
14065 # endif /* HAVE_NDIR_H */
14066 #endif /* HAVE_DIRENT_H */
14071 struct dirent dp; dp.d_type = 0;
14076 rm -f conftest.$ac_objext conftest$ac_exeext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078 (eval $ac_link) 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag"
14086 || test ! -s conftest.err'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest$ac_exeext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 jm_cv_struct_dirent_d_type=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 jm_cv_struct_dirent_d_type=no
14105 rm -f conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14110 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
14111 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
14112 if test $jm_cv_struct_dirent_d_type = yes; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14121 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
14122 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
14123 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14133 #include <sys/types.h>
14134 #ifdef HAVE_DIRENT_H
14135 # include <dirent.h>
14136 #else /* not HAVE_DIRENT_H */
14137 # define dirent direct
14138 # ifdef HAVE_SYS_NDIR_H
14139 # include <sys/ndir.h>
14140 # endif /* HAVE_SYS_NDIR_H */
14141 # ifdef HAVE_SYS_DIR_H
14142 # include <sys/dir.h>
14143 # endif /* HAVE_SYS_DIR_H */
14144 # ifdef HAVE_NDIR_H
14146 # endif /* HAVE_NDIR_H */
14147 #endif /* HAVE_DIRENT_H */
14152 struct dirent dp; dp.d_ino = 0;
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 jm_cv_struct_dirent_d_ino=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 jm_cv_struct_dirent_d_ino=no
14186 rm -f conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
14192 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
14193 if test $jm_cv_struct_dirent_d_ino = yes; then
14195 cat >>confdefs.h <<\_ACEOF
14196 #define D_INO_IN_DIRENT 1
14214 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
14215 unistd.h sys/time.h utmp.h utmpx.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_compiler=no
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev/null; then
14291 if test -s conftest.err; then
14292 ac_cpp_err=$ac_c_preproc_warn_flag
14293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## ------------------------------------ ##
14337 ## Report this to bug-coreutils@gnu.org ##
14338 ## ------------------------------------ ##
14341 sed "s/^/$as_me: WARNING: /" >&2
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370 #include <string.h>
14371 #include <stdlib.h>
14374 # include <unistd.h>
14377 #include <sys/types.h>
14378 #if TIME_WITH_SYS_TIME
14379 # include <sys/time.h>
14382 # if HAVE_SYS_TIME_H
14383 # include <sys/time.h>
14402 echo "$as_me:$LINENO: checking whether free is declared" >&5
14403 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14404 if test "${ac_cv_have_decl_free+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14419 char *p = (char *) free;
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_have_decl_free=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_have_decl_free=no
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14458 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14459 if test $ac_cv_have_decl_free = yes; then
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DECL_FREE 1
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_FREE 0
14473 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14474 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14475 if test "${ac_cv_have_decl_getenv+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. */
14490 char *p = (char *) getenv;
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag"
14507 || test ! -s conftest.err'
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); }; } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 ac_cv_have_decl_getenv=yes
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14524 ac_cv_have_decl_getenv=no
14526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14529 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14530 if test $ac_cv_have_decl_getenv = yes; then
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_DECL_GETENV 1
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_DECL_GETENV 0
14544 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
14545 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
14546 if test "${ac_cv_have_decl_geteuid+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14561 char *p = (char *) geteuid;
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14590 ac_cv_have_decl_geteuid=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_have_decl_geteuid=no
14597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14599 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
14600 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
14601 if test $ac_cv_have_decl_geteuid = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_DECL_GETEUID 1
14609 cat >>confdefs.h <<_ACEOF
14610 #define HAVE_DECL_GETEUID 0
14615 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
14616 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
14617 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14632 char *p = (char *) getgrgid;
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_cv_have_decl_getgrgid=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_cv_have_decl_getgrgid=no
14668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
14671 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
14672 if test $ac_cv_have_decl_getgrgid = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_DECL_GETGRGID 1
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DECL_GETGRGID 0
14686 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
14687 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
14688 if test "${ac_cv_have_decl_getlogin+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14703 char *p = (char *) getlogin;
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>conftest.er1
14714 grep -v '^ *+' conftest.er1 >conftest.err
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
14719 { ac_try='test -z "$ac_c_werror_flag"
14720 || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_cv_have_decl_getlogin=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_cv_have_decl_getlogin=no
14739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14741 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
14742 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
14743 if test $ac_cv_have_decl_getlogin = yes; then
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_DECL_GETLOGIN 1
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_DECL_GETLOGIN 0
14757 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
14758 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
14759 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14774 char *p = (char *) getpwuid;
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -z "$ac_c_werror_flag"
14791 || test ! -s conftest.err'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; } &&
14797 { ac_try='test -s conftest.$ac_objext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_have_decl_getpwuid=yes
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_cv_have_decl_getpwuid=no
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
14813 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
14814 if test $ac_cv_have_decl_getpwuid = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_DECL_GETPWUID 1
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_DECL_GETPWUID 0
14828 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
14829 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
14830 if test "${ac_cv_have_decl_getuid+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14845 char *p = (char *) getuid;
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_have_decl_getuid=yes
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_have_decl_getuid=no
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
14884 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
14885 if test $ac_cv_have_decl_getuid = yes; then
14887 cat >>confdefs.h <<_ACEOF
14888 #define HAVE_DECL_GETUID 1
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_DECL_GETUID 0
14899 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
14900 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
14901 if test "${ac_cv_have_decl_getutent+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14916 char *p = (char *) getutent;
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925 (eval $ac_compile) 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } &&
14932 { ac_try='test -z "$ac_c_werror_flag"
14933 || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest.$ac_objext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_have_decl_getutent=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_cv_have_decl_getutent=no
14952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
14955 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
14956 if test $ac_cv_have_decl_getutent = yes; then
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DECL_GETUTENT 1
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_DECL_GETUTENT 0
14970 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
14971 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
14972 if test "${ac_cv_have_decl_lseek+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14987 char *p = (char *) lseek;
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996 (eval $ac_compile) 2>conftest.er1
14998 grep -v '^ *+' conftest.er1 >conftest.err
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag"
15004 || test ! -s conftest.err'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 ac_cv_have_decl_lseek=yes
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 ac_cv_have_decl_lseek=no
15023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
15026 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
15027 if test $ac_cv_have_decl_lseek = yes; then
15029 cat >>confdefs.h <<_ACEOF
15030 #define HAVE_DECL_LSEEK 1
15035 cat >>confdefs.h <<_ACEOF
15036 #define HAVE_DECL_LSEEK 0
15041 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15042 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
15043 if test "${ac_cv_have_decl_malloc+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15058 char *p = (char *) malloc;
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag"
15075 || test ! -s conftest.err'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_have_decl_malloc=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_cv_have_decl_malloc=no
15094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15097 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
15098 if test $ac_cv_have_decl_malloc = yes; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_DECL_MALLOC 1
15106 cat >>confdefs.h <<_ACEOF
15107 #define HAVE_DECL_MALLOC 0
15112 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
15113 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
15114 if test "${ac_cv_have_decl_memchr+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15129 char *p = (char *) memchr;
15136 rm -f conftest.$ac_objext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138 (eval $ac_compile) 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag"
15146 || test ! -s conftest.err'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_have_decl_memchr=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_have_decl_memchr=no
15165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
15168 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
15169 if test $ac_cv_have_decl_memchr = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DECL_MEMCHR 1
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_DECL_MEMCHR 0
15183 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
15184 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
15185 if test "${ac_cv_have_decl_memrchr+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15200 char *p = (char *) memrchr;
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209 (eval $ac_compile) 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -z "$ac_c_werror_flag"
15217 || test ! -s conftest.err'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest.$ac_objext'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15229 ac_cv_have_decl_memrchr=yes
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_cv_have_decl_memrchr=no
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
15239 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
15240 if test $ac_cv_have_decl_memrchr = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_DECL_MEMRCHR 1
15248 cat >>confdefs.h <<_ACEOF
15249 #define HAVE_DECL_MEMRCHR 0
15254 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
15255 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
15256 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15271 char *p = (char *) nanosleep;
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_have_decl_nanosleep=yes
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_have_decl_nanosleep=no
15307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
15310 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
15311 if test $ac_cv_have_decl_nanosleep = yes; then
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_DECL_NANOSLEEP 1
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_DECL_NANOSLEEP 0
15325 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15326 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
15327 if test "${ac_cv_have_decl_realloc+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15342 char *p = (char *) realloc;
15349 rm -f conftest.$ac_objext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15351 (eval $ac_compile) 2>conftest.er1
15353 grep -v '^ *+' conftest.er1 >conftest.err
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -z "$ac_c_werror_flag"
15359 || test ! -s conftest.err'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_have_decl_realloc=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_cv_have_decl_realloc=no
15378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15381 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
15382 if test $ac_cv_have_decl_realloc = yes; then
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_DECL_REALLOC 1
15390 cat >>confdefs.h <<_ACEOF
15391 #define HAVE_DECL_REALLOC 0
15396 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
15397 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
15398 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 cat >conftest.$ac_ext <<_ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15413 char *p = (char *) stpcpy;
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 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_objext'
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 ac_cv_have_decl_stpcpy=yes
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_cv_have_decl_stpcpy=no
15449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
15452 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
15453 if test $ac_cv_have_decl_stpcpy = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456 #define HAVE_DECL_STPCPY 1
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_DECL_STPCPY 0
15467 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
15468 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
15469 if test "${ac_cv_have_decl_strndup+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15484 char *p = (char *) strndup;
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_have_decl_strndup=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_have_decl_strndup=no
15520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
15523 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
15524 if test $ac_cv_have_decl_strndup = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_DECL_STRNDUP 1
15532 cat >>confdefs.h <<_ACEOF
15533 #define HAVE_DECL_STRNDUP 0
15538 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
15539 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
15540 if test "${ac_cv_have_decl_strnlen+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15555 char *p = (char *) strnlen;
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_cv_have_decl_strnlen=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_have_decl_strnlen=no
15591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15593 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
15594 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
15595 if test $ac_cv_have_decl_strnlen = yes; then
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_DECL_STRNLEN 1
15603 cat >>confdefs.h <<_ACEOF
15604 #define HAVE_DECL_STRNLEN 0
15609 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15610 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
15611 if test "${ac_cv_have_decl_strstr+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15626 char *p = (char *) strstr;
15633 rm -f conftest.$ac_objext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15635 (eval $ac_compile) 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_c_werror_flag"
15643 || test ! -s conftest.err'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_have_decl_strstr=yes
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_have_decl_strstr=no
15662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
15665 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
15666 if test $ac_cv_have_decl_strstr = yes; then
15668 cat >>confdefs.h <<_ACEOF
15669 #define HAVE_DECL_STRSTR 1
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_DECL_STRSTR 0
15680 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
15681 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
15682 if test "${ac_cv_have_decl_strtoul+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15697 char *p = (char *) strtoul;
15704 rm -f conftest.$ac_objext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706 (eval $ac_compile) 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -z "$ac_c_werror_flag"
15714 || test ! -s conftest.err'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try='test -s conftest.$ac_objext'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_have_decl_strtoul=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 ac_cv_have_decl_strtoul=no
15733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
15736 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
15737 if test $ac_cv_have_decl_strtoul = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_DECL_STRTOUL 1
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE_DECL_STRTOUL 0
15751 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
15752 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
15753 if test "${ac_cv_have_decl_strtoull+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15768 char *p = (char *) strtoull;
15775 rm -f conftest.$ac_objext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15777 (eval $ac_compile) 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag"
15785 || test ! -s conftest.err'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest.$ac_objext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_cv_have_decl_strtoull=yes
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_cv_have_decl_strtoull=no
15804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
15807 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
15808 if test $ac_cv_have_decl_strtoull = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_DECL_STRTOULL 1
15816 cat >>confdefs.h <<_ACEOF
15817 #define HAVE_DECL_STRTOULL 0
15822 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
15823 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
15824 if test "${ac_cv_have_decl_ttyname+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15839 char *p = (char *) ttyname;
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_have_decl_ttyname=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_cv_have_decl_ttyname=no
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
15878 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
15879 if test $ac_cv_have_decl_ttyname = yes; then
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_DECL_TTYNAME 1
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_DECL_TTYNAME 0
15899 am_getline_needs_run_time_check=no
15900 echo "$as_me:$LINENO: checking for getline" >&5
15901 echo $ECHO_N "checking for getline... $ECHO_C" >&6
15902 if test "${ac_cv_func_getline+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
15912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15913 #define getline innocuous_getline
15915 /* System header to define __stub macros and hopefully few prototypes,
15916 which can conflict with char getline (); below.
15917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918 <limits.h> exists even on freestanding compilers. */
15921 # include <limits.h>
15923 # include <assert.h>
15928 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15936 /* The GNU C library defines this for functions which it implements
15937 to always fail with ENOSYS. Some functions are actually named
15938 something starting with __ and the normal name is an alias. */
15939 #if defined (__stub_getline) || defined (__stub___getline)
15942 char (*f) () = getline;
15951 return f != getline;
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958 (eval $ac_link) 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest$ac_exeext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15978 ac_cv_func_getline=yes
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_func_getline=no
15985 rm -f conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
15989 echo "${ECHO_T}$ac_cv_func_getline" >&6
15990 if test $ac_cv_func_getline = yes; then
15991 am_getline_needs_run_time_check=yes
15993 am_cv_func_working_getline=no
15996 if test $am_getline_needs_run_time_check = yes; then
15997 echo "$as_me:$LINENO: checking for working getline function" >&5
15998 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15999 if test "${am_cv_func_working_getline+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16003 if test "$cross_compiling" = yes; then
16004 am_cv_func_working_getline=no
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16013 # include <stdio.h>
16014 # include <stdlib.h>
16015 # include <string.h>
16017 { /* Based on a test program from Karl Heuer. */
16021 FILE *in = fopen ("./conftest.data", "r");
16024 len = getline (&line, &siz, in);
16025 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16029 rm -f conftest$ac_exeext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16031 (eval $ac_link) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 am_cv_func_working_getline=yes
16042 echo "$as_me: program exited with status $ac_status" >&5
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ( exit $ac_status )
16047 am_cv_func_working_getline=no
16049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16053 echo "${ECHO_T}$am_cv_func_working_getline" >&6
16056 if test $am_cv_func_working_getline = no; then
16058 cat >>confdefs.h <<\_ACEOF
16059 #define getline gnu_getline
16063 "getline.$ac_objext" | \
16064 *" getline.$ac_objext" | \
16065 "getline.$ac_objext "* | \
16066 *" getline.$ac_objext "* ) ;;
16067 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
16071 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16072 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16073 case " $LIBOBJS " in
16074 *" getndelim2.$ac_objext "* ) ;;
16075 *) case $LIBOBJS in
16076 "getndelim2.$ac_objext" | \
16077 *" getndelim2.$ac_objext" | \
16078 "getndelim2.$ac_objext "* | \
16079 *" getndelim2.$ac_objext "* ) ;;
16080 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16087 for ac_func in getdelim
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16092 if eval "test \"\${$as_ac_var+set}\" = set"; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16111 # include <limits.h>
16113 # include <assert.h>
16118 /* Override any gcc2 internal prototype to avoid an error. */
16123 /* We use char because int might match the return type of a gcc2
16124 builtin and then its argument prototype would still apply. */
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132 char (*f) () = $ac_func;
16141 return f != $ac_func;
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1 >conftest.err
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 eval "$as_ac_var=yes"
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 eval "$as_ac_var=no"
16175 rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16180 if test `eval echo '${'$as_ac_var'}'` = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16194 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16195 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
16196 if test "${ac_cv_header_stdbool_h+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. */
16206 #include <stdbool.h>
16208 "error: bool is not defined"
16211 "error: false is not defined"
16214 "error: false is not 0"
16217 "error: true is not defined"
16220 "error: true is not 1"
16222 #ifndef __bool_true_false_are_defined
16223 "error: __bool_true_false_are_defined is not defined"
16226 struct s { _Bool s: 1; _Bool t; } s;
16228 char a[true == 1 ? 1 : -1];
16229 char b[false == 0 ? 1 : -1];
16230 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16231 char d[(bool) -0.5 == true ? 1 : -1];
16233 char f[(_Bool) -0.0 == false ? 1 : -1];
16235 char h[sizeof (_Bool)];
16236 char i[sizeof s.t];
16237 enum { j = false, k = true, l = false * true, m = true * 256 };
16239 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16245 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag"
16262 || test ! -s conftest.err'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_header_stdbool_h=yes
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 ac_cv_header_stdbool_h=no
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16284 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
16285 echo "$as_me:$LINENO: checking for _Bool" >&5
16286 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
16287 if test "${ac_cv_type__Bool+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 $ac_includes_default
16302 if (sizeof (_Bool))
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_cv_type__Bool=yes
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_cv_type__Bool=no
16337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16340 echo "${ECHO_T}$ac_cv_type__Bool" >&6
16341 if test $ac_cv_type__Bool = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE__BOOL 1
16350 if test $ac_cv_header_stdbool_h = yes; then
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STDBOOL_H 1
16360 # Define two additional variables used in the Makefile substitution.
16362 if test "$ac_cv_header_stdbool_h" = yes; then
16365 STDBOOL_H='stdbool.h'
16369 if test "$ac_cv_type__Bool" = yes; then
16376 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
16377 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
16378 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 # Arrange for deletion of the temporary directory this test might create.
16383 ac_clean_files="$ac_clean_files confdir-slash"
16384 if test "$cross_compiling" = yes; then
16385 gl_cv_func_mkdir_trailing_slash_bug=yes
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16395 # include <sys/types.h>
16396 # include <sys/stat.h>
16397 # include <stdlib.h>
16400 rmdir ("confdir-slash");
16401 exit (mkdir ("confdir-slash/", 0700));
16405 rm -f conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407 (eval $ac_link) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 gl_cv_func_mkdir_trailing_slash_bug=no
16418 echo "$as_me: program exited with status $ac_status" >&5
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ( exit $ac_status )
16423 gl_cv_func_mkdir_trailing_slash_bug=yes
16425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16430 echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
16431 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6
16433 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
16435 "mkdir.$ac_objext" | \
16436 *" mkdir.$ac_objext" | \
16437 "mkdir.$ac_objext "* | \
16438 *" mkdir.$ac_objext "* ) ;;
16439 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
16443 cat >>confdefs.h <<\_ACEOF
16444 #define mkdir rpl_mkdir
16451 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16452 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16453 if test "${ac_cv_have_decl_getenv+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 $ac_includes_default
16467 char *p = (char *) getenv;
16474 rm -f conftest.$ac_objext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16476 (eval $ac_compile) 2>conftest.er1
16478 grep -v '^ *+' conftest.er1 >conftest.err
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag"
16484 || test ! -s conftest.err'
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_cv_have_decl_getenv=yes
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_have_decl_getenv=no
16503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16506 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16507 if test $ac_cv_have_decl_getenv = yes; then
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_DECL_GETENV 1
16515 cat >>confdefs.h <<_ACEOF
16516 #define HAVE_DECL_GETENV 0
16525 for ac_func in mkstemp
16527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16528 echo "$as_me:$LINENO: checking for $ac_func" >&5
16529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16530 if eval "test \"\${$as_ac_var+set}\" = set"; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16541 #define $ac_func innocuous_$ac_func
16543 /* System header to define __stub macros and hopefully few prototypes,
16544 which can conflict with char $ac_func (); below.
16545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546 <limits.h> exists even on freestanding compilers. */
16549 # include <limits.h>
16551 # include <assert.h>
16556 /* Override any gcc2 internal prototype to avoid an error. */
16561 /* We use char because int might match the return type of a gcc2
16562 builtin and then its argument prototype would still apply. */
16564 /* The GNU C library defines this for functions which it implements
16565 to always fail with ENOSYS. Some functions are actually named
16566 something starting with __ and the normal name is an alias. */
16567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16570 char (*f) () = $ac_func;
16579 return f != $ac_func;
16584 rm -f conftest.$ac_objext conftest$ac_exeext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16586 (eval $ac_link) 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
16593 { ac_try='test -z "$ac_c_werror_flag"
16594 || test ! -s conftest.err'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 eval "$as_ac_var=yes"
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 eval "$as_ac_var=no"
16613 rm -f conftest.err conftest.$ac_objext \
16614 conftest$ac_exeext conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16618 if test `eval echo '${'$as_ac_var'}'` = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16625 "$ac_func.$ac_objext" | \
16626 *" $ac_func.$ac_objext" | \
16627 "$ac_func.$ac_objext "* | \
16628 *" $ac_func.$ac_objext "* ) ;;
16629 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16636 if test $ac_cv_func_mkstemp = no; then
16637 gl_cv_func_mkstemp_limitations=yes
16639 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
16640 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
16641 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 mkdir conftest.mkstemp
16646 if test "$cross_compiling" = yes; then
16647 gl_cv_func_mkstemp_limitations=yes
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16657 # include <stdlib.h>
16658 # include <unistd.h>
16662 for (i = 0; i < 70; i++)
16664 char template[] = "conftest.mkstemp/coXXXXXX";
16665 int fd = mkstemp (template);
16674 rm -f conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 gl_cv_func_mkstemp_limitations=no
16687 echo "$as_me: program exited with status $ac_status" >&5
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ( exit $ac_status )
16692 gl_cv_func_mkstemp_limitations=yes
16694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16696 rm -rf conftest.mkstemp
16700 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
16701 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
16704 if test $gl_cv_func_mkstemp_limitations = yes; then
16706 "mkstemp.$ac_objext" | \
16707 *" mkstemp.$ac_objext" | \
16708 "mkstemp.$ac_objext "* | \
16709 *" mkstemp.$ac_objext "* ) ;;
16710 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
16714 "tempname.$ac_objext" | \
16715 *" tempname.$ac_objext" | \
16716 "tempname.$ac_objext "* | \
16717 *" tempname.$ac_objext "* ) ;;
16718 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
16722 cat >>confdefs.h <<\_ACEOF
16723 #define mkstemp rpl_mkstemp
16744 for ac_header in stdint.h
16746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16748 echo "$as_me:$LINENO: checking for $ac_header" >&5
16749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16756 # Is the header compilable?
16757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 #include <$ac_header>
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>conftest.er1
16772 grep -v '^ *+' conftest.er1 >conftest.err
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -z "$ac_c_werror_flag"
16778 || test ! -s conftest.err'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest.$ac_objext'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 ac_header_compiler=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ac_header_compiler=no
16797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16799 echo "${ECHO_T}$ac_header_compiler" >&6
16801 # Is the header present?
16802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 #include <$ac_header>
16812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } >/dev/null; then
16820 if test -s conftest.err; then
16821 ac_cpp_err=$ac_c_preproc_warn_flag
16822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16829 if test -z "$ac_cpp_err"; then
16830 ac_header_preproc=yes
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_header_preproc=no
16837 rm -f conftest.err conftest.$ac_ext
16838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16839 echo "${ECHO_T}$ac_header_preproc" >&6
16841 # So? What about this header?
16842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16848 ac_header_preproc=yes
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16865 ## ------------------------------------ ##
16866 ## Report this to bug-coreutils@gnu.org ##
16867 ## ------------------------------------ ##
16870 sed "s/^/$as_me: WARNING: /" >&2
16873 echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 eval "$as_ac_Header=\$ac_header_preproc"
16880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16885 cat >>confdefs.h <<_ACEOF
16886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16895 for ac_func in __secure_getenv gettimeofday
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16919 # include <limits.h>
16921 # include <assert.h>
16926 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 char (*f) () = $ac_func;
16949 return f != $ac_func;
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 eval "$as_ac_var=no"
16983 rm -f conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989 cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17008 # for constant arguments. Useless!
17009 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17010 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17011 if test "${ac_cv_working_alloca_h+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <alloca.h>
17024 char *p = (char *) alloca (2 * sizeof (int));
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>conftest.er1
17033 grep -v '^ *+' conftest.er1 >conftest.err
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag"
17039 || test ! -s conftest.err'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_cv_working_alloca_h=yes
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17056 ac_cv_working_alloca_h=no
17058 rm -f conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17062 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17063 if test $ac_cv_working_alloca_h = yes; then
17065 cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_ALLOCA_H 1
17071 echo "$as_me:$LINENO: checking for alloca" >&5
17072 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17073 if test "${ac_cv_func_alloca_works+set}" = set; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 # define alloca __builtin_alloca
17086 # include <malloc.h>
17087 # define alloca _alloca
17090 # include <alloca.h>
17095 # ifndef alloca /* predefined by HP cc +Olibcalls */
17106 char *p = (char *) alloca (1);
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113 (eval $ac_link) 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag"
17121 || test ! -s conftest.err'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } &&
17127 { ac_try='test -s conftest$ac_exeext'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_func_alloca_works=yes
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_cv_func_alloca_works=no
17140 rm -f conftest.err conftest.$ac_objext \
17141 conftest$ac_exeext conftest.$ac_ext
17143 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17146 if test $ac_cv_func_alloca_works = yes; then
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_ALLOCA 1
17153 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17154 # that cause trouble. Some versions do not even contain alloca or
17155 # contain a buggy version. If you still want to use their alloca,
17156 # use ar to extract alloca.o from them instead of compiling alloca.c.
17158 ALLOCA=alloca.$ac_objext
17160 cat >>confdefs.h <<\_ACEOF
17165 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17167 if test "${ac_cv_os_cray+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 #if defined(CRAY) && ! defined(CRAY2)
17183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17184 $EGREP "webecray" >/dev/null 2>&1; then
17192 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17193 echo "${ECHO_T}$ac_cv_os_cray" >&6
17194 if test $ac_cv_os_cray = yes; then
17195 for ac_func in _getb67 GETB67 getb67; do
17196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 echo "$as_me:$LINENO: checking for $ac_func" >&5
17198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17199 if eval "test \"\${$as_ac_var+set}\" = set"; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17210 #define $ac_func innocuous_$ac_func
17212 /* System header to define __stub macros and hopefully few prototypes,
17213 which can conflict with char $ac_func (); below.
17214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17215 <limits.h> exists even on freestanding compilers. */
17218 # include <limits.h>
17220 # include <assert.h>
17225 /* Override any gcc2 internal prototype to avoid an error. */
17230 /* We use char because int might match the return type of a gcc2
17231 builtin and then its argument prototype would still apply. */
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17239 char (*f) () = $ac_func;
17248 return f != $ac_func;
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255 (eval $ac_link) 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag"
17263 || test ! -s conftest.err'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 eval "$as_ac_var=yes"
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 eval "$as_ac_var=no"
17282 rm -f conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17287 if test `eval echo '${'$as_ac_var'}'` = yes; then
17289 cat >>confdefs.h <<_ACEOF
17290 #define CRAY_STACKSEG_END $ac_func
17299 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17301 if test "${ac_cv_c_stack_direction+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 if test "$cross_compiling" = yes; then
17305 ac_cv_c_stack_direction=0
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17314 find_stack_direction ()
17316 static char *addr = 0;
17321 return find_stack_direction ();
17324 return (&dummy > addr) ? 1 : -1;
17330 exit (find_stack_direction () < 0);
17333 rm -f conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335 (eval $ac_link) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_c_stack_direction=1
17346 echo "$as_me: program exited with status $ac_status" >&5
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 ( exit $ac_status )
17351 ac_cv_c_stack_direction=-1
17353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17357 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17359 cat >>confdefs.h <<_ACEOF
17360 #define STACK_DIRECTION $ac_cv_c_stack_direction
17371 if test $ac_cv_func_alloca_works = no; then
17375 # Define an additional variable used in the Makefile substitution.
17376 if test $ac_cv_working_alloca_h = yes; then
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17384 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17390 $EGREP "Need own alloca" >/dev/null 2>&1; then
17392 cat >>confdefs.h <<\_ACEOF
17393 #define HAVE_ALLOCA 1
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_ALLOCA_H 1
17415 for ac_header in stdlib.h
17417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419 echo "$as_me:$LINENO: checking for $ac_header" >&5
17420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17427 # Is the header compilable?
17428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 $ac_includes_default
17437 #include <$ac_header>
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 ac_header_compiler=yes
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ac_header_compiler=no
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17470 echo "${ECHO_T}$ac_header_compiler" >&6
17472 # Is the header present?
17473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <$ac_header>
17483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } >/dev/null; then
17491 if test -s conftest.err; then
17492 ac_cpp_err=$ac_c_preproc_warn_flag
17493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17500 if test -z "$ac_cpp_err"; then
17501 ac_header_preproc=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_header_preproc=no
17508 rm -f conftest.err conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17510 echo "${ECHO_T}$ac_header_preproc" >&6
17512 # So? What about this header?
17513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17519 ac_header_preproc=yes
17522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17536 ## ------------------------------------ ##
17537 ## Report this to bug-coreutils@gnu.org ##
17538 ## ------------------------------------ ##
17541 sed "s/^/$as_me: WARNING: /" >&2
17544 echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 eval "$as_ac_Header=\$ac_header_preproc"
17551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17556 cat >>confdefs.h <<_ACEOF
17557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17564 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17565 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17566 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 if test "$cross_compiling" = yes; then
17570 ac_cv_func_malloc_0_nonnull=no
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 #if STDC_HEADERS || HAVE_STDLIB_H
17579 # include <stdlib.h>
17587 exit (malloc (0) ? 0 : 1);
17592 rm -f conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_func_malloc_0_nonnull=yes
17605 echo "$as_me: program exited with status $ac_status" >&5
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ( exit $ac_status )
17610 ac_cv_func_malloc_0_nonnull=no
17612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17615 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17616 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17617 if test $ac_cv_func_malloc_0_nonnull = yes; then
17618 gl_cv_func_malloc_0_nonnull=1
17620 gl_cv_func_malloc_0_nonnull=0
17625 cat >>confdefs.h <<_ACEOF
17626 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17631 echo "$as_me:$LINENO: checking for long long" >&5
17632 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17633 if test "${ac_cv_type_long_long+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 long long ll = 1LL; int i = 63;
17646 long long llmax = (long long) -1;
17647 return ll << i | ll >> i | llmax / ll | llmax % ll;
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654 (eval $ac_link) 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_type_long_long=yes
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_type_long_long=no
17681 rm -f conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17685 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17686 if test $ac_cv_type_long_long = yes; then
17688 cat >>confdefs.h <<\_ACEOF
17689 #define HAVE_LONG_LONG 1
17695 echo "$as_me:$LINENO: checking for long double" >&5
17696 echo $ECHO_N "checking for long double... $ECHO_C" >&6
17697 if test "${gt_cv_c_long_double+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 if test "$GCC" = yes; then
17701 gt_cv_c_long_double=yes
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17710 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
17711 long double foo = 0.0;
17712 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
17713 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
17723 rm -f conftest.$ac_objext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest.$ac_objext'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 gt_cv_c_long_double=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 gt_cv_c_long_double=no
17752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17755 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
17756 echo "${ECHO_T}$gt_cv_c_long_double" >&6
17757 if test $gt_cv_c_long_double = yes; then
17759 cat >>confdefs.h <<\_ACEOF
17760 #define HAVE_LONG_DOUBLE 1
17772 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
17773 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
17774 if test "${ac_cv_win_or_dos+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17788 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
17789 neither MSDOS nor Windows
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_cv_win_or_dos=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 ac_cv_win_or_dos=no
17824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17827 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
17828 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
17830 if test x"$ac_cv_win_or_dos" = xyes; then
17831 ac_fs_accepts_drive_letter_prefix=1
17832 ac_fs_backslash_is_file_name_separator=1
17834 ac_fs_accepts_drive_letter_prefix=0
17835 ac_fs_backslash_is_file_name_separator=0
17842 cat >>confdefs.h <<_ACEOF
17843 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
17851 cat >>confdefs.h <<_ACEOF
17852 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
17856 echo "$as_me:$LINENO: checking for long file names" >&5
17857 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
17858 if test "${ac_cv_sys_long_file_names+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 ac_cv_sys_long_file_names=yes
17862 # Test for long file names in all the places we know might matter:
17863 # . the current directory, where building will happen
17864 # $prefix/lib where we will be installing things
17865 # $exec_prefix/lib likewise
17866 # eval it to expand exec_prefix.
17867 # $TMPDIR if set, where it might want to write temporary files
17868 # if $TMPDIR is not set:
17869 # /tmp where it might want to write temporary files
17870 # /var/tmp likewise
17871 # /usr/tmp likewise
17872 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
17875 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
17877 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
17878 test -d $ac_dir || continue
17879 test -w $ac_dir || continue # It is less confusing to not echo anything here.
17880 ac_xdir=$ac_dir/cf$$
17881 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
17882 ac_tf1=$ac_xdir/conftest9012345
17883 ac_tf2=$ac_xdir/conftest9012346
17884 (echo 1 >$ac_tf1) 2>/dev/null
17885 (echo 2 >$ac_tf2) 2>/dev/null
17886 ac_val=`cat $ac_tf1 2>/dev/null`
17887 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
17888 ac_cv_sys_long_file_names=no
17889 rm -rf $ac_xdir 2>/dev/null
17892 rm -rf $ac_xdir 2>/dev/null
17895 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
17896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
17897 if test $ac_cv_sys_long_file_names = yes; then
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_LONG_FILE_NAMES 1
17918 for ac_func in pathconf
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 cat >conftest.$ac_ext <<_ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934 #define $ac_func innocuous_$ac_func
17936 /* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17942 # include <limits.h>
17944 # include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error. */
17954 /* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963 char (*f) () = $ac_func;
17972 return f != $ac_func;
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979 (eval $ac_link) 2>conftest.er1
17981 grep -v '^ *+' conftest.er1 >conftest.err
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag"
17987 || test ! -s conftest.err'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 eval "$as_ac_var=yes"
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 eval "$as_ac_var=no"
18006 rm -f conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18011 if test `eval echo '${'$as_ac_var'}'` = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18025 echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
18026 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6
18027 if test "${gl_cv_func_c99_strtold+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 /* On HP-UX before 11.23, strtold returns a struct instead of
18037 long double. Reject implementations like that, by requiring
18038 compatibility with the C99 prototype. */
18039 #include <stdlib.h>
18040 static long double (*p) (char const *, char **) = strtold;
18042 test (char const *nptr, char **endptr)
18045 r = strtold (nptr, endptr);
18051 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058 (eval $ac_compile) 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest.$ac_objext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 gl_cv_func_c99_strtold=yes
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 gl_cv_func_c99_strtold=no
18085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18087 echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
18088 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6
18089 if test $gl_cv_func_c99_strtold = yes; then
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_C99_STRTOLD 1
18114 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
18116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18118 echo "$as_me:$LINENO: checking for $ac_header" >&5
18119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18126 # Is the header compilable?
18127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 $ac_includes_default
18136 #include <$ac_header>
18138 rm -f conftest.$ac_objext
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_header_compiler=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_header_compiler=no
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18169 echo "${ECHO_T}$ac_header_compiler" >&6
18171 # Is the header present?
18172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <$ac_header>
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } >/dev/null; then
18190 if test -s conftest.err; then
18191 ac_cpp_err=$ac_c_preproc_warn_flag
18192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18199 if test -z "$ac_cpp_err"; then
18200 ac_header_preproc=yes
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18205 ac_header_preproc=no
18207 rm -f conftest.err conftest.$ac_ext
18208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6
18211 # So? What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18218 ac_header_preproc=yes
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18235 ## ------------------------------------ ##
18236 ## Report this to bug-coreutils@gnu.org ##
18237 ## ------------------------------------ ##
18240 sed "s/^/$as_me: WARNING: /" >&2
18243 echo "$as_me:$LINENO: checking for $ac_header" >&5
18244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 eval "$as_ac_Header=\$ac_header_preproc"
18250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18255 cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18264 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
18265 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
18266 if test "${ac_cv_search_gethostbyname+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_func_search_save_LIBS=$LIBS
18270 ac_cv_search_gethostbyname=no
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18278 /* Override any gcc2 internal prototype to avoid an error. */
18282 /* We use char because int might match the return type of a gcc2
18283 builtin and then its argument prototype would still apply. */
18284 char gethostbyname ();
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18295 (eval $ac_link) 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag"
18303 || test ! -s conftest.err'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_cv_search_gethostbyname="none required"
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18321 rm -f conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 if test "$ac_cv_search_gethostbyname" = no; then
18324 for ac_lib in inet nsl; do
18325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18333 /* Override any gcc2 internal prototype to avoid an error. */
18337 /* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
18339 char gethostbyname ();
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18352 grep -v '^ *+' conftest.er1 >conftest.err
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -z "$ac_c_werror_flag"
18358 || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest$ac_exeext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_search_gethostbyname="-l$ac_lib"
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18377 rm -f conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_func_search_save_LIBS
18383 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
18384 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
18385 if test "$ac_cv_search_gethostbyname" != no; then
18386 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
18395 for ac_func in getaddrinfo gethostbyname gethostbyaddr inet_ntoa
18397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18400 if eval "test \"\${$as_ac_var+set}\" = set"; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18411 #define $ac_func innocuous_$ac_func
18413 /* System header to define __stub macros and hopefully few prototypes,
18414 which can conflict with char $ac_func (); below.
18415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18416 <limits.h> exists even on freestanding compilers. */
18419 # include <limits.h>
18421 # include <assert.h>
18426 /* Override any gcc2 internal prototype to avoid an error. */
18431 /* We use char because int might match the return type of a gcc2
18432 builtin and then its argument prototype would still apply. */
18434 /* The GNU C library defines this for functions which it implements
18435 to always fail with ENOSYS. Some functions are actually named
18436 something starting with __ and the normal name is an alias. */
18437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18440 char (*f) () = $ac_func;
18449 return f != $ac_func;
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456 (eval $ac_link) 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 eval "$as_ac_var=yes"
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 eval "$as_ac_var=no"
18483 rm -f conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
18486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18516 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
18517 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
18518 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 $ac_includes_default
18532 char *p = (char *) strerror_r;
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541 (eval $ac_compile) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_have_decl_strerror_r=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_have_decl_strerror_r=no
18568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18570 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
18571 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
18572 if test $ac_cv_have_decl_strerror_r = yes; then
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_DECL_STRERROR_R 1
18580 cat >>confdefs.h <<_ACEOF
18581 #define HAVE_DECL_STRERROR_R 0
18589 for ac_func in strerror_r
18591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592 echo "$as_me:$LINENO: checking for $ac_func" >&5
18593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18594 if eval "test \"\${$as_ac_var+set}\" = set"; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18605 #define $ac_func innocuous_$ac_func
18607 /* System header to define __stub macros and hopefully few prototypes,
18608 which can conflict with char $ac_func (); below.
18609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18610 <limits.h> exists even on freestanding compilers. */
18613 # include <limits.h>
18615 # include <assert.h>
18620 /* Override any gcc2 internal prototype to avoid an error. */
18625 /* We use char because int might match the return type of a gcc2
18626 builtin and then its argument prototype would still apply. */
18628 /* The GNU C library defines this for functions which it implements
18629 to always fail with ENOSYS. Some functions are actually named
18630 something starting with __ and the normal name is an alias. */
18631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18634 char (*f) () = $ac_func;
18643 return f != $ac_func;
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 eval "$as_ac_var=yes"
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 eval "$as_ac_var=no"
18677 rm -f conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18682 if test `eval echo '${'$as_ac_var'}'` = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18690 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
18691 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
18692 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 ac_cv_func_strerror_r_char_p=no
18697 if test $ac_cv_have_decl_strerror_r = yes; then
18698 cat >conftest.$ac_ext <<_ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 $ac_includes_default
18710 char x = *strerror_r (0, buf, sizeof buf);
18711 char *p = strerror_r (0, buf, sizeof buf);
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719 (eval $ac_compile) 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag"
18727 || test ! -s conftest.err'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_func_strerror_r_char_p=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747 # strerror_r is not declared. Choose between
18748 # systems that have relatively inaccessible declarations for the
18749 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
18750 # former has a strerror_r that returns char*, while the latter
18751 # has a strerror_r that returns `int'.
18752 # This test should segfault on the DEC system.
18753 if test "$cross_compiling" = yes; then
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 $ac_includes_default
18763 extern char *strerror_r ();
18768 char x = *strerror_r (0, buf, sizeof buf);
18769 exit (!isalpha (x));
18774 rm -f conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776 (eval $ac_link) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_func_strerror_r_char_p=yes
18787 echo "$as_me: program exited with status $ac_status" >&5
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18797 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
18798 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
18799 if test $ac_cv_func_strerror_r_char_p = yes; then
18801 cat >>confdefs.h <<\_ACEOF
18802 #define STRERROR_R_CHAR_P 1
18808 echo "$as_me:$LINENO: checking for error_at_line" >&5
18809 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
18810 if test "${ac_cv_lib_error_at_line+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 cat >conftest.$ac_ext <<_ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819 $ac_includes_default
18823 error_at_line (0, 0, "", 0, "");
18828 rm -f conftest.$ac_objext conftest$ac_exeext
18829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18830 (eval $ac_link) 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag"
18838 || test ! -s conftest.err'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try='test -s conftest$ac_exeext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 ac_cv_lib_error_at_line=yes
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 ac_cv_lib_error_at_line=no
18857 rm -f conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18860 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18861 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
18862 if test $ac_cv_lib_error_at_line = no; then
18864 "error.$ac_objext" | \
18865 *" error.$ac_objext" | \
18866 "error.$ac_objext "* | \
18867 *" error.$ac_objext "* ) ;;
18868 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
18880 for ac_func in isascii
18882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18883 echo "$as_me:$LINENO: checking for $ac_func" >&5
18884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18885 if eval "test \"\${$as_ac_var+set}\" = set"; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18896 #define $ac_func innocuous_$ac_func
18898 /* System header to define __stub macros and hopefully few prototypes,
18899 which can conflict with char $ac_func (); below.
18900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901 <limits.h> exists even on freestanding compilers. */
18904 # include <limits.h>
18906 # include <assert.h>
18911 /* Override any gcc2 internal prototype to avoid an error. */
18916 /* We use char because int might match the return type of a gcc2
18917 builtin and then its argument prototype would still apply. */
18919 /* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18925 char (*f) () = $ac_func;
18934 return f != $ac_func;
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941 (eval $ac_link) 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest$ac_exeext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 eval "$as_ac_var=yes"
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 eval "$as_ac_var=no"
18968 rm -f conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext conftest.$ac_ext
18971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18973 if test `eval echo '${'$as_ac_var'}'` = yes; then
18974 cat >>confdefs.h <<_ACEOF
18975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19011 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19012 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19013 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 $ac_includes_default
19026 static struct stat ac_aggr;
19027 if (ac_aggr.st_blocks)
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_cv_member_struct_stat_st_blocks=yes
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19066 $ac_includes_default
19070 static struct stat ac_aggr;
19071 if (sizeof ac_aggr.st_blocks)
19077 rm -f conftest.$ac_objext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079 (eval $ac_compile) 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag"
19087 || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_member_struct_stat_st_blocks=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_member_struct_stat_st_blocks=no
19106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19111 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19112 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19119 cat >>confdefs.h <<\_ACEOF
19120 #define HAVE_ST_BLOCKS 1
19125 "fileblocks.$ac_objext" | \
19126 *" fileblocks.$ac_objext" | \
19127 "fileblocks.$ac_objext "* | \
19128 *" fileblocks.$ac_objext "* ) ;;
19129 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
19135 if test $ac_cv_member_struct_stat_st_blocks = no; then
19175 for ac_header in sys/mount.h
19177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178 echo "$as_me:$LINENO: checking for $ac_header" >&5
19179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19189 $ac_includes_default
19190 #if HAVE_SYS_PARAM_H
19191 #include <sys/param.h>
19194 #include <$ac_header>
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag"
19206 || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 eval "$as_ac_Header=yes"
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 eval "$as_ac_Header=no"
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19230 cat >>confdefs.h <<_ACEOF
19231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19240 echo "checking how to get file system space usage..."
19241 ac_fsusage_space=no
19243 # Perform only the link test since it seems there are no variants of the
19244 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
19245 # because that got a false positive on SCO OSR5. Adding the declaration
19246 # of a `struct statvfs' causes this test to fail (as it should) on such
19247 # systems. That system is reported to work fine with STAT_STATFS4 which
19248 # is what it gets when this test fails.
19249 if test $ac_fsusage_space = no; then
19251 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19252 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
19253 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <sys/types.h>
19264 Do not use statvfs on systems with GNU libc, because that function stats
19265 all preceding entries in /proc/mounts, and that makes df hang if even
19266 one of the corresponding file systems is hard-mounted, but not available.
19268 #include <sys/statvfs.h>
19272 struct statvfs fsd; statvfs (0, &fsd);
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19279 (eval $ac_link) 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_c_werror_flag"
19287 || test ! -s conftest.err'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; } &&
19293 { ac_try='test -s conftest$ac_exeext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 fu_cv_sys_stat_statvfs=yes
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 fu_cv_sys_stat_statvfs=no
19306 rm -f conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19309 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19310 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
19311 if test $fu_cv_sys_stat_statvfs = yes; then
19312 ac_fsusage_space=yes
19314 cat >>confdefs.h <<\_ACEOF
19315 #define STAT_STATVFS 1
19321 if test $ac_fsusage_space = no; then
19322 # DEC Alpha running OSF/1
19323 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19324 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
19325 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 if test "$cross_compiling" = yes; then
19329 fu_cv_sys_stat_statfs3_osf1=no
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19338 #include <sys/param.h>
19339 #include <sys/types.h>
19340 #include <sys/mount.h>
19345 exit (statfs (".", &fsd, sizeof (struct statfs)));
19348 rm -f conftest$ac_exeext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350 (eval $ac_link) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 fu_cv_sys_stat_statfs3_osf1=yes
19361 echo "$as_me: program exited with status $ac_status" >&5
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ( exit $ac_status )
19366 fu_cv_sys_stat_statfs3_osf1=no
19368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19372 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19373 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
19374 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19375 ac_fsusage_space=yes
19377 cat >>confdefs.h <<\_ACEOF
19378 #define STAT_STATFS3_OSF1 1
19384 if test $ac_fsusage_space = no; then
19386 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
19387 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
19388 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 if test "$cross_compiling" = yes; then
19392 fu_cv_sys_stat_statfs2_bsize=no
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 #ifdef HAVE_SYS_PARAM_H
19402 #include <sys/param.h>
19404 #ifdef HAVE_SYS_MOUNT_H
19405 #include <sys/mount.h>
19407 #ifdef HAVE_SYS_VFS_H
19408 #include <sys/vfs.h>
19414 exit (statfs (".", &fsd));
19417 rm -f conftest$ac_exeext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19419 (eval $ac_link) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 fu_cv_sys_stat_statfs2_bsize=yes
19430 echo "$as_me: program exited with status $ac_status" >&5
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ( exit $ac_status )
19435 fu_cv_sys_stat_statfs2_bsize=no
19437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19442 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
19443 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19444 ac_fsusage_space=yes
19446 cat >>confdefs.h <<\_ACEOF
19447 #define STAT_STATFS2_BSIZE 1
19453 if test $ac_fsusage_space = no; then
19455 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19456 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
19457 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 if test "$cross_compiling" = yes; then
19461 fu_cv_sys_stat_statfs4=no
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 #include <sys/types.h>
19470 #include <sys/statfs.h>
19474 exit (statfs (".", &fsd, sizeof fsd, 0));
19477 rm -f conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479 (eval $ac_link) 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 fu_cv_sys_stat_statfs4=yes
19490 echo "$as_me: program exited with status $ac_status" >&5
19491 echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19494 ( exit $ac_status )
19495 fu_cv_sys_stat_statfs4=no
19497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19502 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
19503 if test $fu_cv_sys_stat_statfs4 = yes; then
19504 ac_fsusage_space=yes
19506 cat >>confdefs.h <<\_ACEOF
19507 #define STAT_STATFS4 1
19513 if test $ac_fsusage_space = no; then
19514 # 4.4BSD and NetBSD
19515 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
19516 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
19517 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 if test "$cross_compiling" = yes; then
19521 fu_cv_sys_stat_statfs2_fsize=no
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <sys/types.h>
19530 #ifdef HAVE_SYS_PARAM_H
19531 #include <sys/param.h>
19533 #ifdef HAVE_SYS_MOUNT_H
19534 #include <sys/mount.h>
19540 exit (statfs (".", &fsd));
19543 rm -f conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545 (eval $ac_link) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 fu_cv_sys_stat_statfs2_fsize=yes
19556 echo "$as_me: program exited with status $ac_status" >&5
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ( exit $ac_status )
19561 fu_cv_sys_stat_statfs2_fsize=no
19563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19567 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19568 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
19569 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19570 ac_fsusage_space=yes
19572 cat >>confdefs.h <<\_ACEOF
19573 #define STAT_STATFS2_FSIZE 1
19579 if test $ac_fsusage_space = no; then
19581 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19582 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
19583 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 if test "$cross_compiling" = yes; then
19587 fu_cv_sys_stat_fs_data=no
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <sys/types.h>
19596 #ifdef HAVE_SYS_PARAM_H
19597 #include <sys/param.h>
19599 #ifdef HAVE_SYS_MOUNT_H
19600 #include <sys/mount.h>
19602 #ifdef HAVE_SYS_FS_TYPES_H
19603 #include <sys/fs_types.h>
19607 struct fs_data fsd;
19608 /* Ultrix's statfs returns 1 for success,
19609 0 for not mounted, -1 for failure. */
19610 exit (statfs (".", &fsd) != 1);
19613 rm -f conftest$ac_exeext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 (eval $ac_link) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 fu_cv_sys_stat_fs_data=yes
19626 echo "$as_me: program exited with status $ac_status" >&5
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ( exit $ac_status )
19631 fu_cv_sys_stat_fs_data=no
19633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19637 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19638 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
19639 if test $fu_cv_sys_stat_fs_data = yes; then
19640 ac_fsusage_space=yes
19642 cat >>confdefs.h <<\_ACEOF
19643 #define STAT_STATFS2_FS_DATA 1
19649 if test $ac_fsusage_space = no; then
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 #include <sys/filsys.h>
19660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19663 grep -v '^ *+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } >/dev/null; then
19668 if test -s conftest.err; then
19669 ac_cpp_err=$ac_c_preproc_warn_flag
19670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19677 if test -z "$ac_cpp_err"; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define STAT_READ_FILSYS 1
19683 ac_fsusage_space=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19690 rm -f conftest.err conftest.$ac_ext
19693 if test $ac_fsusage_space = yes; then
19701 if test $gl_cv_fs_space = yes; then
19703 "fsusage.$ac_objext" | \
19704 *" fsusage.$ac_objext" | \
19705 "fsusage.$ac_objext "* | \
19706 *" fsusage.$ac_objext "* ) ;;
19707 *) LIBOBJS="$LIBOBJS fsusage.$ac_objext" ;;
19724 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
19726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19728 echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19736 # Is the header compilable?
19737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745 $ac_includes_default
19746 #include <$ac_header>
19748 rm -f conftest.$ac_objext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19750 (eval $ac_compile) 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -z "$ac_c_werror_flag"
19758 || test ! -s conftest.err'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; } &&
19764 { ac_try='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_header_compiler=yes
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_header_compiler=no
19777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 echo "${ECHO_T}$ac_header_compiler" >&6
19781 # Is the header present?
19782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <$ac_header>
19792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev/null; then
19800 if test -s conftest.err; then
19801 ac_cpp_err=$ac_c_preproc_warn_flag
19802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19809 if test -z "$ac_cpp_err"; then
19810 ac_header_preproc=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_header_preproc=no
19817 rm -f conftest.err conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 echo "${ECHO_T}$ac_header_preproc" >&6
19821 # So? What about this header?
19822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19828 ac_header_preproc=yes
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19845 ## ------------------------------------ ##
19846 ## Report this to bug-coreutils@gnu.org ##
19847 ## ------------------------------------ ##
19850 sed "s/^/$as_me: WARNING: /" >&2
19853 echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 eval "$as_ac_Header=\$ac_header_preproc"
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19865 cat >>confdefs.h <<_ACEOF
19866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19874 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19875 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
19876 if test "${fu_cv_sys_truncating_statfs+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. */
19886 #if !defined(sun) && !defined(__sun)
19887 choke -- this is a workaround for a Sun-specific problem
19889 #include <sys/types.h>
19890 #include <sys/vfs.h>
19894 struct statfs t; long c = *(t.f_spare);
19899 rm -f conftest.$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 fu_cv_sys_truncating_statfs=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 fu_cv_sys_truncating_statfs=no
19928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19931 if test $fu_cv_sys_truncating_statfs = yes; then
19933 cat >>confdefs.h <<\_ACEOF
19934 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19938 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19939 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
19946 for ac_func in atexit
19948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19949 echo "$as_me:$LINENO: checking for $ac_func" >&5
19950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19951 if eval "test \"\${$as_ac_var+set}\" = set"; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19962 #define $ac_func innocuous_$ac_func
19964 /* System header to define __stub macros and hopefully few prototypes,
19965 which can conflict with char $ac_func (); below.
19966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967 <limits.h> exists even on freestanding compilers. */
19970 # include <limits.h>
19972 # include <assert.h>
19977 /* Override any gcc2 internal prototype to avoid an error. */
19982 /* We use char because int might match the return type of a gcc2
19983 builtin and then its argument prototype would still apply. */
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19991 char (*f) () = $ac_func;
20000 return f != $ac_func;
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007 (eval $ac_link) 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
20014 { ac_try='test -z "$ac_c_werror_flag"
20015 || test ! -s conftest.err'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest$ac_exeext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 eval "$as_ac_var=yes"
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 eval "$as_ac_var=no"
20034 rm -f conftest.err conftest.$ac_objext \
20035 conftest$ac_exeext conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20039 if test `eval echo '${'$as_ac_var'}'` = yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20046 "$ac_func.$ac_objext" | \
20047 *" $ac_func.$ac_objext" | \
20048 "$ac_func.$ac_objext "* | \
20049 *" $ac_func.$ac_objext "* ) ;;
20050 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20057 if test $ac_cv_func_atexit = no; then
20065 for ac_func in dup2
20067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_var+set}\" = set"; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20081 #define $ac_func innocuous_$ac_func
20083 /* System header to define __stub macros and hopefully few prototypes,
20084 which can conflict with char $ac_func (); below.
20085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20086 <limits.h> exists even on freestanding compilers. */
20089 # include <limits.h>
20091 # include <assert.h>
20096 /* Override any gcc2 internal prototype to avoid an error. */
20101 /* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20104 /* The GNU C library defines this for functions which it implements
20105 to always fail with ENOSYS. Some functions are actually named
20106 something starting with __ and the normal name is an alias. */
20107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20110 char (*f) () = $ac_func;
20119 return f != $ac_func;
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20126 (eval $ac_link) 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -z "$ac_c_werror_flag"
20134 || test ! -s conftest.err'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; } &&
20140 { ac_try='test -s conftest$ac_exeext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 eval "$as_ac_var=yes"
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20151 eval "$as_ac_var=no"
20153 rm -f conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20158 if test `eval echo '${'$as_ac_var'}'` = yes; then
20159 cat >>confdefs.h <<_ACEOF
20160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20165 "$ac_func.$ac_objext" | \
20166 *" $ac_func.$ac_objext" | \
20167 "$ac_func.$ac_objext "* | \
20168 *" $ac_func.$ac_objext "* ) ;;
20169 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20176 if test $ac_cv_func_dup2 = no; then
20195 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
20196 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
20197 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 if test "$cross_compiling" = yes; then
20201 ac_cv_func_fnmatch_gnu=cross
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20210 # include <stdlib.h>
20211 # include <fnmatch.h>
20212 # define y(a, b, c) (fnmatch (a, b, c) == 0)
20213 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
20219 (!(y ("a*", "abc", 0)
20220 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
20221 && y ("a\\\\bc", "abc", 0)
20222 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
20223 && y ("*x", ".x", 0)
20224 && n ("*x", ".x", FNM_PERIOD)
20225 && y ("xxXX", "xXxX", FNM_CASEFOLD)
20226 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
20227 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
20228 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
20229 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
20230 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_func_fnmatch_gnu=yes
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ( exit $ac_status )
20253 ac_cv_func_fnmatch_gnu=no
20255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
20259 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
20260 if test $ac_cv_func_fnmatch_gnu = yes; then
20261 rm -f lib/fnmatch.h
20263 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
20264 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
20265 if test "${ac_cv_have_decl_getenv+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 $ac_includes_default
20279 char *p = (char *) getenv;
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag"
20296 || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_have_decl_getenv=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_have_decl_getenv=no
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
20318 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
20319 if test $ac_cv_have_decl_getenv = yes; then
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_DECL_GETENV 1
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_DECL_GETENV 0
20341 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
20343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344 echo "$as_me:$LINENO: checking for $ac_func" >&5
20345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20346 if eval "test \"\${$as_ac_var+set}\" = set"; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20357 #define $ac_func innocuous_$ac_func
20359 /* System header to define __stub macros and hopefully few prototypes,
20360 which can conflict with char $ac_func (); below.
20361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362 <limits.h> exists even on freestanding compilers. */
20365 # include <limits.h>
20367 # include <assert.h>
20372 /* Override any gcc2 internal prototype to avoid an error. */
20377 /* We use char because int might match the return type of a gcc2
20378 builtin and then its argument prototype would still apply. */
20380 /* The GNU C library defines this for functions which it implements
20381 to always fail with ENOSYS. Some functions are actually named
20382 something starting with __ and the normal name is an alias. */
20383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20386 char (*f) () = $ac_func;
20395 return f != $ac_func;
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>conftest.er1
20404 grep -v '^ *+' conftest.er1 >conftest.err
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag"
20410 || test ! -s conftest.err'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 eval "$as_ac_var=yes"
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 eval "$as_ac_var=no"
20429 rm -f conftest.err conftest.$ac_objext \
20430 conftest$ac_exeext conftest.$ac_ext
20432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20434 if test `eval echo '${'$as_ac_var'}'` = yes; then
20435 cat >>confdefs.h <<_ACEOF
20436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20444 for ac_header in wchar.h wctype.h
20446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20448 echo "$as_me:$LINENO: checking for $ac_header" >&5
20449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20456 # Is the header compilable?
20457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20459 cat >conftest.$ac_ext <<_ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 $ac_includes_default
20466 #include <$ac_header>
20468 rm -f conftest.$ac_objext
20469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20470 (eval $ac_compile) 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } &&
20477 { ac_try='test -z "$ac_c_werror_flag"
20478 || test ! -s conftest.err'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest.$ac_objext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 ac_header_compiler=yes
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 ac_header_compiler=no
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20499 echo "${ECHO_T}$ac_header_compiler" >&6
20501 # Is the header present?
20502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <$ac_header>
20512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } >/dev/null; then
20520 if test -s conftest.err; then
20521 ac_cpp_err=$ac_c_preproc_warn_flag
20522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20529 if test -z "$ac_cpp_err"; then
20530 ac_header_preproc=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_header_preproc=no
20537 rm -f conftest.err conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20539 echo "${ECHO_T}$ac_header_preproc" >&6
20541 # So? What about this header?
20542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20548 ac_header_preproc=yes
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20565 ## ------------------------------------ ##
20566 ## Report this to bug-coreutils@gnu.org ##
20567 ## ------------------------------------ ##
20570 sed "s/^/$as_me: WARNING: /" >&2
20573 echo "$as_me:$LINENO: checking for $ac_header" >&5
20574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 eval "$as_ac_Header=\$ac_header_preproc"
20580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20594 "fnmatch.$ac_objext" | \
20595 *" fnmatch.$ac_objext" | \
20596 "fnmatch.$ac_objext "* | \
20597 *" fnmatch.$ac_objext "* ) ;;
20598 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
20601 FNMATCH_H=fnmatch.h
20606 if test $ac_cv_func_fnmatch_gnu != yes; then
20608 cat >>confdefs.h <<\_ACEOF
20609 #define fnmatch gnu_fnmatch
20617 for ac_func in gethostname
20619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20620 echo "$as_me:$LINENO: checking for $ac_func" >&5
20621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20622 if eval "test \"\${$as_ac_var+set}\" = set"; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20633 #define $ac_func innocuous_$ac_func
20635 /* System header to define __stub macros and hopefully few prototypes,
20636 which can conflict with char $ac_func (); below.
20637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638 <limits.h> exists even on freestanding compilers. */
20641 # include <limits.h>
20643 # include <assert.h>
20648 /* Override any gcc2 internal prototype to avoid an error. */
20653 /* We use char because int might match the return type of a gcc2
20654 builtin and then its argument prototype would still apply. */
20656 /* The GNU C library defines this for functions which it implements
20657 to always fail with ENOSYS. Some functions are actually named
20658 something starting with __ and the normal name is an alias. */
20659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20662 char (*f) () = $ac_func;
20671 return f != $ac_func;
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest$ac_exeext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 eval "$as_ac_var=yes"
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 eval "$as_ac_var=no"
20705 rm -f conftest.err conftest.$ac_objext \
20706 conftest$ac_exeext conftest.$ac_ext
20708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20710 if test `eval echo '${'$as_ac_var'}'` = yes; then
20711 cat >>confdefs.h <<_ACEOF
20712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20717 "$ac_func.$ac_objext" | \
20718 *" $ac_func.$ac_objext" | \
20719 "$ac_func.$ac_objext "* | \
20720 *" $ac_func.$ac_objext "* ) ;;
20721 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20728 if test $ac_cv_func_gethostname = no; then
20731 for ac_func in uname
20733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20734 echo "$as_me:$LINENO: checking for $ac_func" >&5
20735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20736 if eval "test \"\${$as_ac_var+set}\" = set"; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20747 #define $ac_func innocuous_$ac_func
20749 /* System header to define __stub macros and hopefully few prototypes,
20750 which can conflict with char $ac_func (); below.
20751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20752 <limits.h> exists even on freestanding compilers. */
20755 # include <limits.h>
20757 # include <assert.h>
20762 /* Override any gcc2 internal prototype to avoid an error. */
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20770 /* The GNU C library defines this for functions which it implements
20771 to always fail with ENOSYS. Some functions are actually named
20772 something starting with __ and the normal name is an alias. */
20773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20776 char (*f) () = $ac_func;
20785 return f != $ac_func;
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792 (eval $ac_link) 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try='test -z "$ac_c_werror_flag"
20800 || test ! -s conftest.err'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest$ac_exeext'
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808 (eval $ac_try) 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 eval "$as_ac_var=yes"
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 eval "$as_ac_var=no"
20819 rm -f conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20824 if test `eval echo '${'$as_ac_var'}'` = yes; then
20825 cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20835 ac_have_func=no # yes means we've found a way to get the load average.
20837 # Make sure getloadavg.c is where it belongs, at configure-time.
20838 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
20839 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
20840 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
20841 { (exit 1); exit 1; }; }
20845 # Check for getloadavg, but be sure not to touch the cache variable.
20846 (echo "$as_me:$LINENO: checking for getloadavg" >&5
20847 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
20848 if test "${ac_cv_func_getloadavg+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
20858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20859 #define getloadavg innocuous_getloadavg
20861 /* System header to define __stub macros and hopefully few prototypes,
20862 which can conflict with char getloadavg (); below.
20863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20864 <limits.h> exists even on freestanding compilers. */
20867 # include <limits.h>
20869 # include <assert.h>
20874 /* Override any gcc2 internal prototype to avoid an error. */
20879 /* We use char because int might match the return type of a gcc2
20880 builtin and then its argument prototype would still apply. */
20881 char getloadavg ();
20882 /* The GNU C library defines this for functions which it implements
20883 to always fail with ENOSYS. Some functions are actually named
20884 something starting with __ and the normal name is an alias. */
20885 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
20888 char (*f) () = getloadavg;
20897 return f != getloadavg;
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904 (eval $ac_link) 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try='test -z "$ac_c_werror_flag"
20912 || test ! -s conftest.err'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest$ac_exeext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_cv_func_getloadavg=yes
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_cv_func_getloadavg=no
20931 rm -f conftest.err conftest.$ac_objext \
20932 conftest$ac_exeext conftest.$ac_ext
20934 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
20935 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
20936 if test $ac_cv_func_getloadavg = yes; then
20941 ) && ac_have_func=yes
20943 # On HPUX9, an unprivileged user can get load averages through this function.
20945 for ac_func in pstat_getdynamic
20947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20948 echo "$as_me:$LINENO: checking for $ac_func" >&5
20949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20950 if eval "test \"\${$as_ac_var+set}\" = set"; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20961 #define $ac_func innocuous_$ac_func
20963 /* System header to define __stub macros and hopefully few prototypes,
20964 which can conflict with char $ac_func (); below.
20965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20966 <limits.h> exists even on freestanding compilers. */
20969 # include <limits.h>
20971 # include <assert.h>
20976 /* Override any gcc2 internal prototype to avoid an error. */
20981 /* We use char because int might match the return type of a gcc2
20982 builtin and then its argument prototype would still apply. */
20984 /* The GNU C library defines this for functions which it implements
20985 to always fail with ENOSYS. Some functions are actually named
20986 something starting with __ and the normal name is an alias. */
20987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20990 char (*f) () = $ac_func;
20999 return f != $ac_func;
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_c_werror_flag"
21014 || test ! -s conftest.err'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 eval "$as_ac_var=yes"
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 eval "$as_ac_var=no"
21033 rm -f conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
21036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21038 if test `eval echo '${'$as_ac_var'}'` = yes; then
21039 cat >>confdefs.h <<_ACEOF
21040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21047 # Solaris has libkstat which does not require root.
21049 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
21050 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
21051 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 ac_check_lib_save_LIBS=$LIBS
21055 LIBS="-lkstat $LIBS"
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21063 /* Override any gcc2 internal prototype to avoid an error. */
21067 /* We use char because int might match the return type of a gcc2
21068 builtin and then its argument prototype would still apply. */
21069 char kstat_open ();
21078 rm -f conftest.$ac_objext conftest$ac_exeext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080 (eval $ac_link) 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try='test -z "$ac_c_werror_flag"
21088 || test ! -s conftest.err'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; } &&
21094 { ac_try='test -s conftest$ac_exeext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_lib_kstat_kstat_open=yes
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21105 ac_cv_lib_kstat_kstat_open=no
21107 rm -f conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
21109 LIBS=$ac_check_lib_save_LIBS
21111 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
21112 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
21113 if test $ac_cv_lib_kstat_kstat_open = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define HAVE_LIBKSTAT 1
21118 LIBS="-lkstat $LIBS"
21122 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
21124 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21125 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21126 # to get the right answer into the cache.
21127 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
21128 if test $ac_have_func = no; then
21129 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
21130 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
21131 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 ac_check_lib_save_LIBS=$LIBS
21136 cat >conftest.$ac_ext <<_ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21143 /* Override any gcc2 internal prototype to avoid an error. */
21147 /* We use char because int might match the return type of a gcc2
21148 builtin and then its argument prototype would still apply. */
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160 (eval $ac_link) 2>conftest.er1
21162 grep -v '^ *+' conftest.er1 >conftest.err
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_c_werror_flag"
21168 || test ! -s conftest.err'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest$ac_exeext'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; }; then
21180 ac_cv_lib_elf_elf_begin=yes
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_cv_lib_elf_elf_begin=no
21187 rm -f conftest.err conftest.$ac_objext \
21188 conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21191 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21192 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21193 if test $ac_cv_lib_elf_elf_begin = yes; then
21198 if test $ac_have_func = no; then
21199 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
21200 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
21201 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_check_lib_save_LIBS=$LIBS
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 /* Override any gcc2 internal prototype to avoid an error. */
21217 /* We use char because int might match the return type of a gcc2
21218 builtin and then its argument prototype would still apply. */
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230 (eval $ac_link) 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag"
21238 || test ! -s conftest.err'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try='test -s conftest$ac_exeext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_cv_lib_kvm_kvm_open=yes
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_cv_lib_kvm_kvm_open=no
21257 rm -f conftest.err conftest.$ac_objext \
21258 conftest$ac_exeext conftest.$ac_ext
21259 LIBS=$ac_check_lib_save_LIBS
21261 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
21262 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
21263 if test $ac_cv_lib_kvm_kvm_open = yes; then
21267 # Check for the 4.4BSD definition of getloadavg.
21268 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
21269 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
21270 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 ac_check_lib_save_LIBS=$LIBS
21274 LIBS="-lutil $LIBS"
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21282 /* Override any gcc2 internal prototype to avoid an error. */
21286 /* We use char because int might match the return type of a gcc2
21287 builtin and then its argument prototype would still apply. */
21288 char getloadavg ();
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest$ac_exeext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_cv_lib_util_getloadavg=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_cv_lib_util_getloadavg=no
21326 rm -f conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
21331 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
21332 if test $ac_cv_lib_util_getloadavg = yes; then
21333 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
21338 if test $ac_have_func = no; then
21339 # There is a commonly available library for RS/6000 AIX.
21340 # Since it is not a standard part of AIX, it might be installed locally.
21341 ac_getloadavg_LIBS=$LIBS
21342 LIBS="-L/usr/local/lib $LIBS"
21343 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
21344 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
21345 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 ac_check_lib_save_LIBS=$LIBS
21349 LIBS="-lgetloadavg $LIBS"
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21357 /* Override any gcc2 internal prototype to avoid an error. */
21361 /* We use char because int might match the return type of a gcc2
21362 builtin and then its argument prototype would still apply. */
21363 char getloadavg ();
21372 rm -f conftest.$ac_objext conftest$ac_exeext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21374 (eval $ac_link) 2>conftest.er1
21376 grep -v '^ *+' conftest.er1 >conftest.err
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
21381 { ac_try='test -z "$ac_c_werror_flag"
21382 || test ! -s conftest.err'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; } &&
21388 { ac_try='test -s conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_lib_getloadavg_getloadavg=yes
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_cv_lib_getloadavg_getloadavg=no
21401 rm -f conftest.err conftest.$ac_objext \
21402 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21405 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21406 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
21407 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
21408 LIBS="-lgetloadavg $LIBS"
21410 LIBS=$ac_getloadavg_LIBS
21415 # Make sure it is really in the library, if we think we found it,
21416 # otherwise set up the replacement function.
21418 for ac_func in getloadavg
21420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 echo "$as_me:$LINENO: checking for $ac_func" >&5
21422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21423 if eval "test \"\${$as_ac_var+set}\" = set"; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21434 #define $ac_func innocuous_$ac_func
21436 /* System header to define __stub macros and hopefully few prototypes,
21437 which can conflict with char $ac_func (); below.
21438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439 <limits.h> exists even on freestanding compilers. */
21442 # include <limits.h>
21444 # include <assert.h>
21449 /* Override any gcc2 internal prototype to avoid an error. */
21454 /* We use char because int might match the return type of a gcc2
21455 builtin and then its argument prototype would still apply. */
21457 /* The GNU C library defines this for functions which it implements
21458 to always fail with ENOSYS. Some functions are actually named
21459 something starting with __ and the normal name is an alias. */
21460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21463 char (*f) () = $ac_func;
21472 return f != $ac_func;
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479 (eval $ac_link) 2>conftest.er1
21481 grep -v '^ *+' conftest.er1 >conftest.err
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
21486 { ac_try='test -z "$ac_c_werror_flag"
21487 || test ! -s conftest.err'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 eval "$as_ac_var=yes"
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 eval "$as_ac_var=no"
21506 rm -f conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21511 if test `eval echo '${'$as_ac_var'}'` = yes; then
21512 cat >>confdefs.h <<_ACEOF
21513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21518 "getloadavg.$ac_objext" | \
21519 *" getloadavg.$ac_objext" | \
21520 "getloadavg.$ac_objext "* | \
21521 *" getloadavg.$ac_objext "* ) ;;
21522 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
21526 cat >>confdefs.h <<\_ACEOF
21527 #define C_GETLOADAVG 1
21530 # Figure out what our getloadavg.c needs.
21532 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21533 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21534 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
21535 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21539 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
21541 # Is the header compilable?
21542 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
21543 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 $ac_includes_default
21551 #include <sys/dg_sys_info.h>
21553 rm -f conftest.$ac_objext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21555 (eval $ac_compile) 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } &&
21562 { ac_try='test -z "$ac_c_werror_flag"
21563 || test ! -s conftest.err'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; } &&
21569 { ac_try='test -s conftest.$ac_objext'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ac_header_compiler=yes
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_header_compiler=no
21582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21584 echo "${ECHO_T}$ac_header_compiler" >&6
21586 # Is the header present?
21587 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
21588 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 #include <sys/dg_sys_info.h>
21597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } >/dev/null; then
21605 if test -s conftest.err; then
21606 ac_cpp_err=$ac_c_preproc_warn_flag
21607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21614 if test -z "$ac_cpp_err"; then
21615 ac_header_preproc=yes
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ac_header_preproc=no
21622 rm -f conftest.err conftest.$ac_ext
21623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6
21626 # So? What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
21630 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
21632 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
21633 ac_header_preproc=yes
21636 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
21637 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
21639 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
21641 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
21643 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
21645 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
21647 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
21650 ## ------------------------------------ ##
21651 ## Report this to bug-coreutils@gnu.org ##
21652 ## ------------------------------------ ##
21655 sed "s/^/$as_me: WARNING: /" >&2
21658 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21659 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
21660 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
21665 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21666 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
21669 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
21672 cat >>confdefs.h <<\_ACEOF
21677 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
21678 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
21679 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_check_lib_save_LIBS=$LIBS
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21691 /* Override any gcc2 internal prototype to avoid an error. */
21695 /* We use char because int might match the return type of a gcc2
21696 builtin and then its argument prototype would still apply. */
21697 char dg_sys_info ();
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708 (eval $ac_link) 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag"
21716 || test ! -s conftest.err'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest$ac_exeext'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_cv_lib_dgc_dg_sys_info=yes
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 ac_cv_lib_dgc_dg_sys_info=no
21735 rm -f conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 LIBS=$ac_check_lib_save_LIBS
21739 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21740 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
21741 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
21742 cat >>confdefs.h <<_ACEOF
21743 #define HAVE_LIBDGC 1
21754 if test "${ac_cv_header_locale_h+set}" = set; then
21755 echo "$as_me:$LINENO: checking for locale.h" >&5
21756 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
21757 if test "${ac_cv_header_locale_h+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
21763 # Is the header compilable?
21764 echo "$as_me:$LINENO: checking locale.h usability" >&5
21765 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 $ac_includes_default
21773 #include <locale.h>
21775 rm -f conftest.$ac_objext
21776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777 (eval $ac_compile) 2>conftest.er1
21779 grep -v '^ *+' conftest.er1 >conftest.err
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try='test -z "$ac_c_werror_flag"
21785 || test ! -s conftest.err'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try='test -s conftest.$ac_objext'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; }; then
21797 ac_header_compiler=yes
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21802 ac_header_compiler=no
21804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806 echo "${ECHO_T}$ac_header_compiler" >&6
21808 # Is the header present?
21809 echo "$as_me:$LINENO: checking locale.h presence" >&5
21810 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include <locale.h>
21819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } >/dev/null; then
21827 if test -s conftest.err; then
21828 ac_cpp_err=$ac_c_preproc_warn_flag
21829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21836 if test -z "$ac_cpp_err"; then
21837 ac_header_preproc=yes
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_header_preproc=no
21844 rm -f conftest.err conftest.$ac_ext
21845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21846 echo "${ECHO_T}$ac_header_preproc" >&6
21848 # So? What about this header?
21849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21851 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
21852 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21853 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
21854 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
21855 ac_header_preproc=yes
21858 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
21859 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
21860 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
21861 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
21863 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
21865 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
21867 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
21869 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
21872 ## ------------------------------------ ##
21873 ## Report this to bug-coreutils@gnu.org ##
21874 ## ------------------------------------ ##
21877 sed "s/^/$as_me: WARNING: /" >&2
21880 echo "$as_me:$LINENO: checking for locale.h" >&5
21881 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
21882 if test "${ac_cv_header_locale_h+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 ac_cv_header_locale_h=$ac_header_preproc
21887 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
21888 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
21894 for ac_func in setlocale
21896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897 echo "$as_me:$LINENO: checking for $ac_func" >&5
21898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_var+set}\" = set"; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 cat >conftest.$ac_ext <<_ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21910 #define $ac_func innocuous_$ac_func
21912 /* System header to define __stub macros and hopefully few prototypes,
21913 which can conflict with char $ac_func (); below.
21914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915 <limits.h> exists even on freestanding compilers. */
21918 # include <limits.h>
21920 # include <assert.h>
21925 /* Override any gcc2 internal prototype to avoid an error. */
21930 /* We use char because int might match the return type of a gcc2
21931 builtin and then its argument prototype would still apply. */
21933 /* The GNU C library defines this for functions which it implements
21934 to always fail with ENOSYS. Some functions are actually named
21935 something starting with __ and the normal name is an alias. */
21936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21939 char (*f) () = $ac_func;
21948 return f != $ac_func;
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } &&
21962 { ac_try='test -z "$ac_c_werror_flag"
21963 || test ! -s conftest.err'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; } &&
21969 { ac_try='test -s conftest$ac_exeext'
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 eval "$as_ac_var=yes"
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 eval "$as_ac_var=no"
21982 rm -f conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21987 if test `eval echo '${'$as_ac_var'}'` = yes; then
21988 cat >>confdefs.h <<_ACEOF
21989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21996 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21997 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21998 # Irix 4.0.5F has the header but not the library.
21999 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
22002 cat >>confdefs.h <<\_ACEOF
22008 if test $ac_have_func = no; then
22009 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22010 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
22011 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
22012 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
22016 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
22018 # Is the header compilable?
22019 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
22020 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 #include <inq_stats/cpustats.h>
22030 rm -f conftest.$ac_objext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032 (eval $ac_compile) 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_c_werror_flag"
22040 || test ! -s conftest.err'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest.$ac_objext'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_header_compiler=yes
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_header_compiler=no
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22061 echo "${ECHO_T}$ac_header_compiler" >&6
22063 # Is the header present?
22064 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
22065 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 #include <inq_stats/cpustats.h>
22074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } >/dev/null; then
22082 if test -s conftest.err; then
22083 ac_cpp_err=$ac_c_preproc_warn_flag
22084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22091 if test -z "$ac_cpp_err"; then
22092 ac_header_preproc=yes
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 ac_header_preproc=no
22099 rm -f conftest.err conftest.$ac_ext
22100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22101 echo "${ECHO_T}$ac_header_preproc" >&6
22103 # So? What about this header?
22104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22106 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
22107 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
22109 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
22110 ac_header_preproc=yes
22113 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
22114 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
22116 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
22118 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
22120 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
22122 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
22123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
22124 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
22127 ## ------------------------------------ ##
22128 ## Report this to bug-coreutils@gnu.org ##
22129 ## ------------------------------------ ##
22132 sed "s/^/$as_me: WARNING: /" >&2
22135 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
22136 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
22137 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
22142 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
22143 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
22146 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
22149 cat >>confdefs.h <<\_ACEOF
22154 cat >>confdefs.h <<\_ACEOF
22163 if test $ac_have_func = no; then
22164 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22165 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
22166 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
22167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22170 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
22171 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
22173 # Is the header compilable?
22174 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
22175 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 $ac_includes_default
22183 #include <sys/cpustats.h>
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187 (eval $ac_compile) 2>conftest.er1
22189 grep -v '^ *+' conftest.er1 >conftest.err
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -z "$ac_c_werror_flag"
22195 || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_header_compiler=yes
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_header_compiler=no
22214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22216 echo "${ECHO_T}$ac_header_compiler" >&6
22218 # Is the header present?
22219 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
22220 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
22221 cat >conftest.$ac_ext <<_ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h. */
22227 #include <sys/cpustats.h>
22229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } >/dev/null; then
22237 if test -s conftest.err; then
22238 ac_cpp_err=$ac_c_preproc_warn_flag
22239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22246 if test -z "$ac_cpp_err"; then
22247 ac_header_preproc=yes
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 ac_header_preproc=no
22254 rm -f conftest.err conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22256 echo "${ECHO_T}$ac_header_preproc" >&6
22258 # So? What about this header?
22259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22261 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
22262 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
22264 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
22265 ac_header_preproc=yes
22268 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
22269 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
22270 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
22271 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
22273 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
22274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
22275 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
22276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
22277 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
22279 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
22282 ## ------------------------------------ ##
22283 ## Report this to bug-coreutils@gnu.org ##
22284 ## ------------------------------------ ##
22287 sed "s/^/$as_me: WARNING: /" >&2
22290 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
22291 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
22292 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 ac_cv_header_sys_cpustats_h=$ac_header_preproc
22297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
22298 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
22301 if test $ac_cv_header_sys_cpustats_h = yes; then
22302 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
22311 if test $ac_have_func = no; then
22313 for ac_header in mach/mach.h
22315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22317 echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22325 # Is the header compilable?
22326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 $ac_includes_default
22335 #include <$ac_header>
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339 (eval $ac_compile) 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } &&
22346 { ac_try='test -z "$ac_c_werror_flag"
22347 || test ! -s conftest.err'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; } &&
22353 { ac_try='test -s conftest.$ac_objext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_header_compiler=yes
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 ac_header_compiler=no
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22368 echo "${ECHO_T}$ac_header_compiler" >&6
22370 # Is the header present?
22371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 #include <$ac_header>
22381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22382 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
22389 if test -s conftest.err; then
22390 ac_cpp_err=$ac_c_preproc_warn_flag
22391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22398 if test -z "$ac_cpp_err"; then
22399 ac_header_preproc=yes
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_header_preproc=no
22406 rm -f conftest.err conftest.$ac_ext
22407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22408 echo "${ECHO_T}$ac_header_preproc" >&6
22410 # So? What about this header?
22411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22417 ac_header_preproc=yes
22420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22434 ## ------------------------------------ ##
22435 ## Report this to bug-coreutils@gnu.org ##
22436 ## ------------------------------------ ##
22439 sed "s/^/$as_me: WARNING: /" >&2
22442 echo "$as_me:$LINENO: checking for $ac_header" >&5
22443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 eval "$as_ac_Header=\$ac_header_preproc"
22449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22454 cat >>confdefs.h <<_ACEOF
22455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22465 for ac_header in nlist.h
22467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22469 echo "$as_me:$LINENO: checking for $ac_header" >&5
22470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22477 # Is the header compilable?
22478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 $ac_includes_default
22487 #include <$ac_header>
22489 rm -f conftest.$ac_objext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22491 (eval $ac_compile) 2>conftest.er1
22493 grep -v '^ *+' conftest.er1 >conftest.err
22495 cat conftest.err >&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
22498 { ac_try='test -z "$ac_c_werror_flag"
22499 || test ! -s conftest.err'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; } &&
22505 { ac_try='test -s conftest.$ac_objext'
22506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507 (eval $ac_try) 2>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 ac_header_compiler=yes
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22516 ac_header_compiler=no
22518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22520 echo "${ECHO_T}$ac_header_compiler" >&6
22522 # Is the header present?
22523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 #include <$ac_header>
22533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } >/dev/null; then
22541 if test -s conftest.err; then
22542 ac_cpp_err=$ac_c_preproc_warn_flag
22543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22550 if test -z "$ac_cpp_err"; then
22551 ac_header_preproc=yes
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_header_preproc=no
22558 rm -f conftest.err conftest.$ac_ext
22559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22560 echo "${ECHO_T}$ac_header_preproc" >&6
22562 # So? What about this header?
22563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22569 ac_header_preproc=yes
22572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22586 ## ------------------------------------ ##
22587 ## Report this to bug-coreutils@gnu.org ##
22588 ## ------------------------------------ ##
22591 sed "s/^/$as_me: WARNING: /" >&2
22594 echo "$as_me:$LINENO: checking for $ac_header" >&5
22595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 eval "$as_ac_Header=\$ac_header_preproc"
22601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22606 cat >>confdefs.h <<_ACEOF
22607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22609 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
22610 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
22611 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22625 static struct nlist ac_aggr;
22626 if (ac_aggr.n_un.n_name)
22632 rm -f conftest.$ac_objext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22634 (eval $ac_compile) 2>conftest.er1
22636 grep -v '^ *+' conftest.er1 >conftest.err
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } &&
22641 { ac_try='test -z "$ac_c_werror_flag"
22642 || test ! -s conftest.err'
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; } &&
22648 { ac_try='test -s conftest.$ac_objext'
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
22654 ac_cv_member_struct_nlist_n_un_n_name=yes
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22670 static struct nlist ac_aggr;
22671 if (sizeof ac_aggr.n_un.n_name)
22677 rm -f conftest.$ac_objext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22679 (eval $ac_compile) 2>conftest.er1
22681 grep -v '^ *+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } &&
22686 { ac_try='test -z "$ac_c_werror_flag"
22687 || test ! -s conftest.err'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; } &&
22693 { ac_try='test -s conftest.$ac_objext'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; }; then
22699 ac_cv_member_struct_nlist_n_un_n_name=yes
22701 echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22704 ac_cv_member_struct_nlist_n_un_n_name=no
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
22711 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
22712 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
22714 cat >>confdefs.h <<_ACEOF
22715 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22719 cat >>confdefs.h <<\_ACEOF
22720 #define NLIST_NAME_UNION 1
22734 # Some definitions of getloadavg require that the program be installed setgid.
22735 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
22736 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
22737 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
22738 echo $ECHO_N "(cached) $ECHO_C" >&6
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
22747 #ifdef LDAV_PRIVILEGED
22748 Yowza Am I SETGID yet
22751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22752 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
22753 ac_cv_func_getloadavg_setgid=yes
22755 ac_cv_func_getloadavg_setgid=no
22760 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
22761 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
22762 if test $ac_cv_func_getloadavg_setgid = yes; then
22765 cat >>confdefs.h <<\_ACEOF
22766 #define GETLOADAVG_PRIVILEGED 1
22773 if test $ac_cv_func_getloadavg_setgid = yes; then
22774 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
22775 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
22776 if test "${ac_cv_group_kmem+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
22780 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
22781 # If we got an error (system does not support symlinks), try without -L.
22782 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
22783 ac_cv_group_kmem=`echo $ac_ls_output \
22784 | sed -ne 's/[ ][ ]*/ /g;
22785 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
22789 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
22790 echo "${ECHO_T}$ac_cv_group_kmem" >&6
22791 KMEM_GROUP=$ac_cv_group_kmem
22793 if test "x$ac_save_LIBS" = x; then
22794 GETLOADAVG_LIBS=$LIBS
22796 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
22802 echo "$as_me:$LINENO: checking whether getpass is declared" >&5
22803 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
22804 if test "${ac_cv_have_decl_getpass+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 $ac_includes_default
22818 char *p = (char *) getpass;
22825 rm -f conftest.$ac_objext
22826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22827 (eval $ac_compile) 2>conftest.er1
22829 grep -v '^ *+' conftest.er1 >conftest.err
22831 cat conftest.err >&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } &&
22834 { ac_try='test -z "$ac_c_werror_flag"
22835 || test ! -s conftest.err'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; } &&
22841 { ac_try='test -s conftest.$ac_objext'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; }; then
22847 ac_cv_have_decl_getpass=yes
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_cv_have_decl_getpass=no
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
22857 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
22858 if test $ac_cv_have_decl_getpass = yes; then
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_DECL_GETPASS 1
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE_DECL_GETPASS 0
22877 for ac_header in stdio_ext.h
22879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22881 echo "$as_me:$LINENO: checking for $ac_header" >&5
22882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22889 # Is the header compilable?
22890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 #include <$ac_header>
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903 (eval $ac_compile) 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } &&
22910 { ac_try='test -z "$ac_c_werror_flag"
22911 || test ! -s conftest.err'
22912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913 (eval $ac_try) 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; } &&
22917 { ac_try='test -s conftest.$ac_objext'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; }; then
22923 ac_header_compiler=yes
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22928 ac_header_compiler=no
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22932 echo "${ECHO_T}$ac_header_compiler" >&6
22934 # Is the header present?
22935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 #include <$ac_header>
22945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } >/dev/null; then
22953 if test -s conftest.err; then
22954 ac_cpp_err=$ac_c_preproc_warn_flag
22955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22962 if test -z "$ac_cpp_err"; then
22963 ac_header_preproc=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_header_preproc=no
22970 rm -f conftest.err conftest.$ac_ext
22971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22972 echo "${ECHO_T}$ac_header_preproc" >&6
22974 # So? What about this header?
22975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22981 ac_header_preproc=yes
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22991 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22998 ## ------------------------------------ ##
22999 ## Report this to bug-coreutils@gnu.org ##
23000 ## ------------------------------------ ##
23003 sed "s/^/$as_me: WARNING: /" >&2
23006 echo "$as_me:$LINENO: checking for $ac_header" >&5
23007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 eval "$as_ac_Header=\$ac_header_preproc"
23013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23018 cat >>confdefs.h <<_ACEOF
23019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23028 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
23029 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
23030 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 $ac_includes_default
23043 #ifndef fflush_unlocked
23044 char *p = (char *) fflush_unlocked;
23051 rm -f conftest.$ac_objext
23052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23053 (eval $ac_compile) 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } &&
23060 { ac_try='test -z "$ac_c_werror_flag"
23061 || test ! -s conftest.err'
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; } &&
23067 { ac_try='test -s conftest.$ac_objext'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073 ac_cv_have_decl_fflush_unlocked=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_cv_have_decl_fflush_unlocked=no
23080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23083 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23084 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23102 echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
23103 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
23104 if test "${ac_cv_have_decl_flockfile+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 $ac_includes_default
23118 char *p = (char *) flockfile;
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127 (eval $ac_compile) 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } &&
23134 { ac_try='test -z "$ac_c_werror_flag"
23135 || test ! -s conftest.err'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; } &&
23141 { ac_try='test -s conftest.$ac_objext'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_have_decl_flockfile=yes
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_cv_have_decl_flockfile=no
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
23157 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
23158 if test $ac_cv_have_decl_flockfile = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define HAVE_DECL_FLOCKFILE 1
23166 cat >>confdefs.h <<_ACEOF
23167 #define HAVE_DECL_FLOCKFILE 0
23176 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23177 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23178 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 $ac_includes_default
23191 #ifndef fputs_unlocked
23192 char *p = (char *) fputs_unlocked;
23199 rm -f conftest.$ac_objext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_have_decl_fputs_unlocked=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_have_decl_fputs_unlocked=no
23228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23231 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23232 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define HAVE_DECL_FPUTS_UNLOCKED 1
23240 cat >>confdefs.h <<_ACEOF
23241 #define HAVE_DECL_FPUTS_UNLOCKED 0
23250 echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
23251 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
23252 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 $ac_includes_default
23265 #ifndef funlockfile
23266 char *p = (char *) funlockfile;
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275 (eval $ac_compile) 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
23282 { ac_try='test -z "$ac_c_werror_flag"
23283 || test ! -s conftest.err'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; } &&
23289 { ac_try='test -s conftest.$ac_objext'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_have_decl_funlockfile=yes
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_cv_have_decl_funlockfile=no
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
23305 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
23306 if test $ac_cv_have_decl_funlockfile = yes; then
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_DECL_FUNLOCKFILE 1
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_DECL_FUNLOCKFILE 0
23324 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23325 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23326 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23327 echo $ECHO_N "(cached) $ECHO_C" >&6
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 $ac_includes_default
23339 #ifndef putc_unlocked
23340 char *p = (char *) putc_unlocked;
23347 rm -f conftest.$ac_objext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23349 (eval $ac_compile) 2>conftest.er1
23351 grep -v '^ *+' conftest.er1 >conftest.err
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } &&
23356 { ac_try='test -z "$ac_c_werror_flag"
23357 || test ! -s conftest.err'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest.$ac_objext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_cv_have_decl_putc_unlocked=yes
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_cv_have_decl_putc_unlocked=no
23376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23378 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23379 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23380 if test $ac_cv_have_decl_putc_unlocked = yes; then
23382 cat >>confdefs.h <<_ACEOF
23383 #define HAVE_DECL_PUTC_UNLOCKED 1
23388 cat >>confdefs.h <<_ACEOF
23389 #define HAVE_DECL_PUTC_UNLOCKED 0
23399 for ac_func in getpass
23401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23402 echo "$as_me:$LINENO: checking for $ac_func" >&5
23403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23404 if eval "test \"\${$as_ac_var+set}\" = set"; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23415 #define $ac_func innocuous_$ac_func
23417 /* System header to define __stub macros and hopefully few prototypes,
23418 which can conflict with char $ac_func (); below.
23419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23420 <limits.h> exists even on freestanding compilers. */
23423 # include <limits.h>
23425 # include <assert.h>
23430 /* Override any gcc2 internal prototype to avoid an error. */
23435 /* We use char because int might match the return type of a gcc2
23436 builtin and then its argument prototype would still apply. */
23438 /* The GNU C library defines this for functions which it implements
23439 to always fail with ENOSYS. Some functions are actually named
23440 something starting with __ and the normal name is an alias. */
23441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23444 char (*f) () = $ac_func;
23453 return f != $ac_func;
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -z "$ac_c_werror_flag"
23468 || test ! -s conftest.err'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; } &&
23474 { ac_try='test -s conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 eval "$as_ac_var=yes"
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 eval "$as_ac_var=no"
23487 rm -f conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
23490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23492 if test `eval echo '${'$as_ac_var'}'` = yes; then
23493 cat >>confdefs.h <<_ACEOF
23494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23499 "$ac_func.$ac_objext" | \
23500 *" $ac_func.$ac_objext" | \
23501 "$ac_func.$ac_objext "* | \
23502 *" $ac_func.$ac_objext "* ) ;;
23503 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23517 if test $ac_cv_func_getpass = no; then
23551 for ac_func in getusershell
23553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23554 echo "$as_me:$LINENO: checking for $ac_func" >&5
23555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_var+set}\" = set"; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23567 #define $ac_func innocuous_$ac_func
23569 /* System header to define __stub macros and hopefully few prototypes,
23570 which can conflict with char $ac_func (); below.
23571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23572 <limits.h> exists even on freestanding compilers. */
23575 # include <limits.h>
23577 # include <assert.h>
23582 /* Override any gcc2 internal prototype to avoid an error. */
23587 /* We use char because int might match the return type of a gcc2
23588 builtin and then its argument prototype would still apply. */
23590 /* The GNU C library defines this for functions which it implements
23591 to always fail with ENOSYS. Some functions are actually named
23592 something starting with __ and the normal name is an alias. */
23593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23596 char (*f) () = $ac_func;
23605 return f != $ac_func;
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23612 (eval $ac_link) 2>conftest.er1
23614 grep -v '^ *+' conftest.er1 >conftest.err
23616 cat conftest.err >&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } &&
23619 { ac_try='test -z "$ac_c_werror_flag"
23620 || test ! -s conftest.err'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; } &&
23626 { ac_try='test -s conftest$ac_exeext'
23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; }; then
23632 eval "$as_ac_var=yes"
23634 echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 eval "$as_ac_var=no"
23639 rm -f conftest.err conftest.$ac_objext \
23640 conftest$ac_exeext conftest.$ac_ext
23642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23644 if test `eval echo '${'$as_ac_var'}'` = yes; then
23645 cat >>confdefs.h <<_ACEOF
23646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23651 "$ac_func.$ac_objext" | \
23652 *" $ac_func.$ac_objext" | \
23653 "$ac_func.$ac_objext "* | \
23654 *" $ac_func.$ac_objext "* ) ;;
23655 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23662 if test $ac_cv_func_getusershell = no; then
23677 for ac_func in memchr
23679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23680 echo "$as_me:$LINENO: checking for $ac_func" >&5
23681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23682 if eval "test \"\${$as_ac_var+set}\" = set"; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23693 #define $ac_func innocuous_$ac_func
23695 /* System header to define __stub macros and hopefully few prototypes,
23696 which can conflict with char $ac_func (); below.
23697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698 <limits.h> exists even on freestanding compilers. */
23701 # include <limits.h>
23703 # include <assert.h>
23708 /* Override any gcc2 internal prototype to avoid an error. */
23713 /* We use char because int might match the return type of a gcc2
23714 builtin and then its argument prototype would still apply. */
23716 /* The GNU C library defines this for functions which it implements
23717 to always fail with ENOSYS. Some functions are actually named
23718 something starting with __ and the normal name is an alias. */
23719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23722 char (*f) () = $ac_func;
23731 return f != $ac_func;
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23738 (eval $ac_link) 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_c_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest$ac_exeext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 eval "$as_ac_var=yes"
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 eval "$as_ac_var=no"
23765 rm -f conftest.err conftest.$ac_objext \
23766 conftest$ac_exeext conftest.$ac_ext
23768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23770 if test `eval echo '${'$as_ac_var'}'` = yes; then
23771 cat >>confdefs.h <<_ACEOF
23772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23777 "$ac_func.$ac_objext" | \
23778 *" $ac_func.$ac_objext" | \
23779 "$ac_func.$ac_objext "* | \
23780 *" $ac_func.$ac_objext "* ) ;;
23781 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23788 if test $ac_cv_func_memchr = no; then
23791 for ac_header in bp-sym.h
23793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23795 echo "$as_me:$LINENO: checking for $ac_header" >&5
23796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23803 # Is the header compilable?
23804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 $ac_includes_default
23813 #include <$ac_header>
23815 rm -f conftest.$ac_objext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23817 (eval $ac_compile) 2>conftest.er1
23819 grep -v '^ *+' conftest.er1 >conftest.err
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } &&
23824 { ac_try='test -z "$ac_c_werror_flag"
23825 || test ! -s conftest.err'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; } &&
23831 { ac_try='test -s conftest.$ac_objext'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_header_compiler=yes
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_header_compiler=no
23844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23846 echo "${ECHO_T}$ac_header_compiler" >&6
23848 # Is the header present?
23849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23857 #include <$ac_header>
23859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23862 grep -v '^ *+' conftest.er1 >conftest.err
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } >/dev/null; then
23867 if test -s conftest.err; then
23868 ac_cpp_err=$ac_c_preproc_warn_flag
23869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23876 if test -z "$ac_cpp_err"; then
23877 ac_header_preproc=yes
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ac_header_preproc=no
23884 rm -f conftest.err conftest.$ac_ext
23885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23886 echo "${ECHO_T}$ac_header_preproc" >&6
23888 # So? What about this header?
23889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23895 ac_header_preproc=yes
23898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23912 ## ------------------------------------ ##
23913 ## Report this to bug-coreutils@gnu.org ##
23914 ## ------------------------------------ ##
23917 sed "s/^/$as_me: WARNING: /" >&2
23920 echo "$as_me:$LINENO: checking for $ac_header" >&5
23921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 eval "$as_ac_Header=\$ac_header_preproc"
23927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23932 cat >>confdefs.h <<_ACEOF
23933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23945 for ac_func in memcpy
23947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23948 echo "$as_me:$LINENO: checking for $ac_func" >&5
23949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23950 if eval "test \"\${$as_ac_var+set}\" = set"; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23961 #define $ac_func innocuous_$ac_func
23963 /* System header to define __stub macros and hopefully few prototypes,
23964 which can conflict with char $ac_func (); below.
23965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23966 <limits.h> exists even on freestanding compilers. */
23969 # include <limits.h>
23971 # include <assert.h>
23976 /* Override any gcc2 internal prototype to avoid an error. */
23981 /* We use char because int might match the return type of a gcc2
23982 builtin and then its argument prototype would still apply. */
23984 /* The GNU C library defines this for functions which it implements
23985 to always fail with ENOSYS. Some functions are actually named
23986 something starting with __ and the normal name is an alias. */
23987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23990 char (*f) () = $ac_func;
23999 return f != $ac_func;
24004 rm -f conftest.$ac_objext conftest$ac_exeext
24005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24006 (eval $ac_link) 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } &&
24013 { ac_try='test -z "$ac_c_werror_flag"
24014 || test ! -s conftest.err'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; } &&
24020 { ac_try='test -s conftest$ac_exeext'
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 eval "$as_ac_var=yes"
24028 echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24031 eval "$as_ac_var=no"
24033 rm -f conftest.err conftest.$ac_objext \
24034 conftest$ac_exeext conftest.$ac_ext
24036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24038 if test `eval echo '${'$as_ac_var'}'` = yes; then
24039 cat >>confdefs.h <<_ACEOF
24040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24045 "$ac_func.$ac_objext" | \
24046 *" $ac_func.$ac_objext" | \
24047 "$ac_func.$ac_objext "* | \
24048 *" $ac_func.$ac_objext "* ) ;;
24049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24056 if test $ac_cv_func_memcpy = no; then
24064 for ac_func in memmove
24066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24067 echo "$as_me:$LINENO: checking for $ac_func" >&5
24068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24069 if eval "test \"\${$as_ac_var+set}\" = set"; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 cat >conftest.$ac_ext <<_ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24080 #define $ac_func innocuous_$ac_func
24082 /* System header to define __stub macros and hopefully few prototypes,
24083 which can conflict with char $ac_func (); below.
24084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24085 <limits.h> exists even on freestanding compilers. */
24088 # include <limits.h>
24090 # include <assert.h>
24095 /* Override any gcc2 internal prototype to avoid an error. */
24100 /* We use char because int might match the return type of a gcc2
24101 builtin and then its argument prototype would still apply. */
24103 /* The GNU C library defines this for functions which it implements
24104 to always fail with ENOSYS. Some functions are actually named
24105 something starting with __ and the normal name is an alias. */
24106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24109 char (*f) () = $ac_func;
24118 return f != $ac_func;
24123 rm -f conftest.$ac_objext conftest$ac_exeext
24124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24125 (eval $ac_link) 2>conftest.er1
24127 grep -v '^ *+' conftest.er1 >conftest.err
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } &&
24132 { ac_try='test -z "$ac_c_werror_flag"
24133 || test ! -s conftest.err'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; } &&
24139 { ac_try='test -s conftest$ac_exeext'
24140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141 (eval $ac_try) 2>&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); }; }; then
24145 eval "$as_ac_var=yes"
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 eval "$as_ac_var=no"
24152 rm -f conftest.err conftest.$ac_objext \
24153 conftest$ac_exeext conftest.$ac_ext
24155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24157 if test `eval echo '${'$as_ac_var'}'` = yes; then
24158 cat >>confdefs.h <<_ACEOF
24159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24164 "$ac_func.$ac_objext" | \
24165 *" $ac_func.$ac_objext" | \
24166 "$ac_func.$ac_objext "* | \
24167 *" $ac_func.$ac_objext "* ) ;;
24168 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24175 if test $ac_cv_func_memmove = no; then
24187 for ac_func in mempcpy
24189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24190 echo "$as_me:$LINENO: checking for $ac_func" >&5
24191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24192 if eval "test \"\${$as_ac_var+set}\" = set"; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24203 #define $ac_func innocuous_$ac_func
24205 /* System header to define __stub macros and hopefully few prototypes,
24206 which can conflict with char $ac_func (); below.
24207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24208 <limits.h> exists even on freestanding compilers. */
24211 # include <limits.h>
24213 # include <assert.h>
24218 /* Override any gcc2 internal prototype to avoid an error. */
24223 /* We use char because int might match the return type of a gcc2
24224 builtin and then its argument prototype would still apply. */
24226 /* The GNU C library defines this for functions which it implements
24227 to always fail with ENOSYS. Some functions are actually named
24228 something starting with __ and the normal name is an alias. */
24229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24232 char (*f) () = $ac_func;
24241 return f != $ac_func;
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248 (eval $ac_link) 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -z "$ac_c_werror_flag"
24256 || test ! -s conftest.err'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; } &&
24262 { ac_try='test -s conftest$ac_exeext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268 eval "$as_ac_var=yes"
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 eval "$as_ac_var=no"
24275 rm -f conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24280 if test `eval echo '${'$as_ac_var'}'` = yes; then
24281 cat >>confdefs.h <<_ACEOF
24282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24287 "$ac_func.$ac_objext" | \
24288 *" $ac_func.$ac_objext" | \
24289 "$ac_func.$ac_objext "* | \
24290 *" $ac_func.$ac_objext "* ) ;;
24291 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24298 if test $ac_cv_func_mempcpy = no; then
24308 for ac_func in memrchr
24310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24311 echo "$as_me:$LINENO: checking for $ac_func" >&5
24312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24313 if eval "test \"\${$as_ac_var+set}\" = set"; then
24314 echo $ECHO_N "(cached) $ECHO_C" >&6
24316 cat >conftest.$ac_ext <<_ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h. */
24322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24324 #define $ac_func innocuous_$ac_func
24326 /* System header to define __stub macros and hopefully few prototypes,
24327 which can conflict with char $ac_func (); below.
24328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24329 <limits.h> exists even on freestanding compilers. */
24332 # include <limits.h>
24334 # include <assert.h>
24339 /* Override any gcc2 internal prototype to avoid an error. */
24344 /* We use char because int might match the return type of a gcc2
24345 builtin and then its argument prototype would still apply. */
24347 /* The GNU C library defines this for functions which it implements
24348 to always fail with ENOSYS. Some functions are actually named
24349 something starting with __ and the normal name is an alias. */
24350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24353 char (*f) () = $ac_func;
24362 return f != $ac_func;
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24369 (eval $ac_link) 2>conftest.er1
24371 grep -v '^ *+' conftest.er1 >conftest.err
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } &&
24376 { ac_try='test -z "$ac_c_werror_flag"
24377 || test ! -s conftest.err'
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; } &&
24383 { ac_try='test -s conftest$ac_exeext'
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 eval "$as_ac_var=yes"
24391 echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24394 eval "$as_ac_var=no"
24396 rm -f conftest.err conftest.$ac_objext \
24397 conftest$ac_exeext conftest.$ac_ext
24399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24401 if test `eval echo '${'$as_ac_var'}'` = yes; then
24402 cat >>confdefs.h <<_ACEOF
24403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24408 "$ac_func.$ac_objext" | \
24409 *" $ac_func.$ac_objext" | \
24410 "$ac_func.$ac_objext "* | \
24411 *" $ac_func.$ac_objext "* ) ;;
24412 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24419 if test $ac_cv_func_memrchr = no; then
24425 for ac_func in memset
24427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24428 echo "$as_me:$LINENO: checking for $ac_func" >&5
24429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24430 if eval "test \"\${$as_ac_var+set}\" = set"; then
24431 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 cat >conftest.$ac_ext <<_ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h. */
24439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24441 #define $ac_func innocuous_$ac_func
24443 /* System header to define __stub macros and hopefully few prototypes,
24444 which can conflict with char $ac_func (); below.
24445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24446 <limits.h> exists even on freestanding compilers. */
24449 # include <limits.h>
24451 # include <assert.h>
24456 /* Override any gcc2 internal prototype to avoid an error. */
24461 /* We use char because int might match the return type of a gcc2
24462 builtin and then its argument prototype would still apply. */
24464 /* The GNU C library defines this for functions which it implements
24465 to always fail with ENOSYS. Some functions are actually named
24466 something starting with __ and the normal name is an alias. */
24467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24470 char (*f) () = $ac_func;
24479 return f != $ac_func;
24484 rm -f conftest.$ac_objext conftest$ac_exeext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24486 (eval $ac_link) 2>conftest.er1
24488 grep -v '^ *+' conftest.er1 >conftest.err
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } &&
24493 { ac_try='test -z "$ac_c_werror_flag"
24494 || test ! -s conftest.err'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest$ac_exeext'
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24506 eval "$as_ac_var=yes"
24508 echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24511 eval "$as_ac_var=no"
24513 rm -f conftest.err conftest.$ac_objext \
24514 conftest$ac_exeext conftest.$ac_ext
24516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24518 if test `eval echo '${'$as_ac_var'}'` = yes; then
24519 cat >>confdefs.h <<_ACEOF
24520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24525 "$ac_func.$ac_objext" | \
24526 *" $ac_func.$ac_objext" | \
24527 "$ac_func.$ac_objext "* | \
24528 *" $ac_func.$ac_objext "* ) ;;
24529 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24536 if test $ac_cv_func_memset = no; then
24545 for ac_header in stdlib.h sys/time.h unistd.h
24547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24549 echo "$as_me:$LINENO: checking for $ac_header" >&5
24550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24557 # Is the header compilable?
24558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 $ac_includes_default
24567 #include <$ac_header>
24569 rm -f conftest.$ac_objext
24570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24571 (eval $ac_compile) 2>conftest.er1
24573 grep -v '^ *+' conftest.er1 >conftest.err
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } &&
24578 { ac_try='test -z "$ac_c_werror_flag"
24579 || test ! -s conftest.err'
24580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24581 (eval $ac_try) 2>&5
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); }; } &&
24585 { ac_try='test -s conftest.$ac_objext'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; }; then
24591 ac_header_compiler=yes
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24596 ac_header_compiler=no
24598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24600 echo "${ECHO_T}$ac_header_compiler" >&6
24602 # Is the header present?
24603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 #include <$ac_header>
24613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24616 grep -v '^ *+' conftest.er1 >conftest.err
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } >/dev/null; then
24621 if test -s conftest.err; then
24622 ac_cpp_err=$ac_c_preproc_warn_flag
24623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24630 if test -z "$ac_cpp_err"; then
24631 ac_header_preproc=yes
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 ac_header_preproc=no
24638 rm -f conftest.err conftest.$ac_ext
24639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640 echo "${ECHO_T}$ac_header_preproc" >&6
24642 # So? What about this header?
24643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24649 ac_header_preproc=yes
24652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24666 ## ------------------------------------ ##
24667 ## Report this to bug-coreutils@gnu.org ##
24668 ## ------------------------------------ ##
24671 sed "s/^/$as_me: WARNING: /" >&2
24674 echo "$as_me:$LINENO: checking for $ac_header" >&5
24675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 eval "$as_ac_Header=\$ac_header_preproc"
24681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24686 cat >>confdefs.h <<_ACEOF
24687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24695 for ac_func in alarm
24697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24698 echo "$as_me:$LINENO: checking for $ac_func" >&5
24699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24700 if eval "test \"\${$as_ac_var+set}\" = set"; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24703 cat >conftest.$ac_ext <<_ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24711 #define $ac_func innocuous_$ac_func
24713 /* System header to define __stub macros and hopefully few prototypes,
24714 which can conflict with char $ac_func (); below.
24715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24716 <limits.h> exists even on freestanding compilers. */
24719 # include <limits.h>
24721 # include <assert.h>
24726 /* Override any gcc2 internal prototype to avoid an error. */
24731 /* We use char because int might match the return type of a gcc2
24732 builtin and then its argument prototype would still apply. */
24734 /* The GNU C library defines this for functions which it implements
24735 to always fail with ENOSYS. Some functions are actually named
24736 something starting with __ and the normal name is an alias. */
24737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24740 char (*f) () = $ac_func;
24749 return f != $ac_func;
24754 rm -f conftest.$ac_objext conftest$ac_exeext
24755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24756 (eval $ac_link) 2>conftest.er1
24758 grep -v '^ *+' conftest.er1 >conftest.err
24760 cat conftest.err >&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); } &&
24763 { ac_try='test -z "$ac_c_werror_flag"
24764 || test ! -s conftest.err'
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; } &&
24770 { ac_try='test -s conftest$ac_exeext'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; }; then
24776 eval "$as_ac_var=yes"
24778 echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 eval "$as_ac_var=no"
24783 rm -f conftest.err conftest.$ac_objext \
24784 conftest$ac_exeext conftest.$ac_ext
24786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24788 if test `eval echo '${'$as_ac_var'}'` = yes; then
24789 cat >>confdefs.h <<_ACEOF
24790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24796 echo "$as_me:$LINENO: checking for working mktime" >&5
24797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
24798 if test "${ac_cv_func_working_mktime+set}" = set; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 if test "$cross_compiling" = yes; then
24802 ac_cv_func_working_mktime=no
24804 cat >conftest.$ac_ext <<_ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 /* Test program from Paul Eggert and Tony Leneis. */
24811 #if TIME_WITH_SYS_TIME
24812 # include <sys/time.h>
24815 # if HAVE_SYS_TIME_H
24816 # include <sys/time.h>
24823 # include <stdlib.h>
24827 # include <unistd.h>
24831 # define alarm(X) /* empty */
24834 /* Work around redefinition to rpl_putenv by other config tests. */
24837 static time_t time_t_max;
24838 static time_t time_t_min;
24840 /* Values we'll use to set the TZ environment variable. */
24841 static char *tz_strings[] = {
24842 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24843 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24845 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24847 /* Fail if mktime fails to convert a date in the spring-forward gap.
24848 Based on a problem report from Andreas Jaeger. */
24850 spring_forward_gap ()
24852 /* glibc (up to about 1998-10-07) failed this test. */
24855 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24856 instead of "TZ=America/Vancouver" in order to detect the bug even
24857 on systems that don't support the Olson extension, or don't have the
24858 full zoneinfo tables installed. */
24859 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24868 if (mktime (&tm) == (time_t)-1)
24877 if ((lt = localtime (&now)) && mktime (lt) != now)
24885 mktime_test1 (now);
24886 mktime_test1 ((time_t) (time_t_max - now));
24887 mktime_test1 ((time_t) (time_t_min + now));
24893 /* Based on code from Ariel Faigon. */
24903 if (tm.tm_mon != 2 || tm.tm_mday != 31)
24913 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24914 now = mktime (&tm);
24915 if (now != (time_t) -1)
24917 struct tm *lt = localtime (&now);
24919 && lt->tm_year == tm.tm_year
24920 && lt->tm_mon == tm.tm_mon
24921 && lt->tm_mday == tm.tm_mday
24922 && lt->tm_hour == tm.tm_hour
24923 && lt->tm_min == tm.tm_min
24924 && lt->tm_sec == tm.tm_sec
24925 && lt->tm_yday == tm.tm_yday
24926 && lt->tm_wday == tm.tm_wday
24927 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24928 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24939 /* This test makes some buggy mktime implementations loop.
24940 Give up after 60 seconds; a mktime slower than that
24941 isn't worth using anyway. */
24944 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
24947 if ((time_t) -1 < 0)
24948 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
24950 delta = time_t_max / 997; /* a suitable prime number */
24951 for (i = 0; i < N_STRINGS; i++)
24954 putenv (tz_strings[i]);
24956 for (t = 0; t <= time_t_max - delta; t += delta)
24958 mktime_test ((time_t) 1);
24959 mktime_test ((time_t) (60 * 60));
24960 mktime_test ((time_t) (60 * 60 * 24));
24962 for (j = 1; 0 < j; j *= 2)
24964 bigtime_test (j - 1);
24967 spring_forward_gap ();
24971 rm -f conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 ac_cv_func_working_mktime=yes
24984 echo "$as_me: program exited with status $ac_status" >&5
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ( exit $ac_status )
24989 ac_cv_func_working_mktime=no
24991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24995 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
24996 if test $ac_cv_func_working_mktime = no; then
24998 "mktime.$ac_objext" | \
24999 *" mktime.$ac_objext" | \
25000 "mktime.$ac_objext "* | \
25001 *" mktime.$ac_objext "* ) ;;
25002 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
25009 if test $ac_cv_func_working_mktime = no; then
25011 cat >>confdefs.h <<\_ACEOF
25012 #define mktime rpl_mktime
25019 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
25020 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
25021 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 cat >conftest.$ac_ext <<_ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25035 char *p = (char *) euidaccess;
25042 rm -f conftest.$ac_objext
25043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25044 (eval $ac_compile) 2>conftest.er1
25046 grep -v '^ *+' conftest.er1 >conftest.err
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } &&
25051 { ac_try='test -z "$ac_c_werror_flag"
25052 || test ! -s conftest.err'
25053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054 (eval $ac_try) 2>&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); }; } &&
25058 { ac_try='test -s conftest.$ac_objext'
25059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060 (eval $ac_try) 2>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); }; }; then
25064 ac_cv_have_decl_euidaccess=yes
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ac_cv_have_decl_euidaccess=no
25071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
25074 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
25075 if test $ac_cv_have_decl_euidaccess = yes; then
25077 cat >>confdefs.h <<_ACEOF
25078 #define HAVE_DECL_EUIDACCESS 1
25083 cat >>confdefs.h <<_ACEOF
25084 #define HAVE_DECL_EUIDACCESS 0
25094 for ac_header in libgen.h
25096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25098 echo "$as_me:$LINENO: checking for $ac_header" >&5
25099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25106 # Is the header compilable?
25107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25109 cat >conftest.$ac_ext <<_ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h. */
25115 $ac_includes_default
25116 #include <$ac_header>
25118 rm -f conftest.$ac_objext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25120 (eval $ac_compile) 2>conftest.er1
25122 grep -v '^ *+' conftest.er1 >conftest.err
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest.$ac_objext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 ac_header_compiler=yes
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25145 ac_header_compiler=no
25147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25149 echo "${ECHO_T}$ac_header_compiler" >&6
25151 # Is the header present?
25152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25160 #include <$ac_header>
25162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25165 grep -v '^ *+' conftest.er1 >conftest.err
25167 cat conftest.err >&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } >/dev/null; then
25170 if test -s conftest.err; then
25171 ac_cpp_err=$ac_c_preproc_warn_flag
25172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25179 if test -z "$ac_cpp_err"; then
25180 ac_header_preproc=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ac_header_preproc=no
25187 rm -f conftest.err conftest.$ac_ext
25188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25189 echo "${ECHO_T}$ac_header_preproc" >&6
25191 # So? What about this header?
25192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25198 ac_header_preproc=yes
25201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25215 ## ------------------------------------ ##
25216 ## Report this to bug-coreutils@gnu.org ##
25217 ## ------------------------------------ ##
25220 sed "s/^/$as_me: WARNING: /" >&2
25223 echo "$as_me:$LINENO: checking for $ac_header" >&5
25224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
25228 eval "$as_ac_Header=\$ac_header_preproc"
25230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25235 cat >>confdefs.h <<_ACEOF
25236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25245 echo "$as_me:$LINENO: checking whether setregid is declared" >&5
25246 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6
25247 if test "${ac_cv_have_decl_setregid+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25250 cat >conftest.$ac_ext <<_ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 $ac_includes_default
25261 char *p = (char *) setregid;
25268 rm -f conftest.$ac_objext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25270 (eval $ac_compile) 2>conftest.er1
25272 grep -v '^ *+' conftest.er1 >conftest.err
25274 cat conftest.err >&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
25277 { ac_try='test -z "$ac_c_werror_flag"
25278 || test ! -s conftest.err'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } &&
25284 { ac_try='test -s conftest.$ac_objext'
25285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_have_decl_setregid=yes
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_have_decl_setregid=no
25297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
25300 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6
25301 if test $ac_cv_have_decl_setregid = yes; then
25303 cat >>confdefs.h <<_ACEOF
25304 #define HAVE_DECL_SETREGID 1
25309 cat >>confdefs.h <<_ACEOF
25310 #define HAVE_DECL_SETREGID 0
25318 echo "$as_me:$LINENO: checking for getgroups" >&5
25319 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
25320 if test "${ac_cv_func_getgroups+set}" = set; then
25321 echo $ECHO_N "(cached) $ECHO_C" >&6
25323 cat >conftest.$ac_ext <<_ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25331 #define getgroups innocuous_getgroups
25333 /* System header to define __stub macros and hopefully few prototypes,
25334 which can conflict with char getgroups (); below.
25335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25336 <limits.h> exists even on freestanding compilers. */
25339 # include <limits.h>
25341 # include <assert.h>
25346 /* Override any gcc2 internal prototype to avoid an error. */
25351 /* We use char because int might match the return type of a gcc2
25352 builtin and then its argument prototype would still apply. */
25354 /* The GNU C library defines this for functions which it implements
25355 to always fail with ENOSYS. Some functions are actually named
25356 something starting with __ and the normal name is an alias. */
25357 #if defined (__stub_getgroups) || defined (__stub___getgroups)
25360 char (*f) () = getgroups;
25369 return f != getgroups;
25374 rm -f conftest.$ac_objext conftest$ac_exeext
25375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376 (eval $ac_link) 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -z "$ac_c_werror_flag"
25384 || test ! -s conftest.err'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest$ac_exeext'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_func_getgroups=yes
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_cv_func_getgroups=no
25403 rm -f conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25407 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
25410 # If we don't yet have getgroups, see if it's in -lbsd.
25411 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25413 if test $ac_cv_func_getgroups = no; then
25414 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25415 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
25416 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25419 ac_check_lib_save_LIBS=$LIBS
25421 cat >conftest.$ac_ext <<_ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h. */
25428 /* Override any gcc2 internal prototype to avoid an error. */
25432 /* We use char because int might match the return type of a gcc2
25433 builtin and then its argument prototype would still apply. */
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445 (eval $ac_link) 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
25452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest$ac_exeext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_lib_bsd_getgroups=yes
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25470 ac_cv_lib_bsd_getgroups=no
25472 rm -f conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS
25476 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25477 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25478 if test $ac_cv_lib_bsd_getgroups = yes; then
25479 GETGROUPS_LIB=-lbsd
25484 # Run the program to test the functionality of the system-supplied
25485 # getgroups function only if there is such a function.
25486 if test $ac_cv_func_getgroups = yes; then
25487 echo "$as_me:$LINENO: checking for working getgroups" >&5
25488 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25489 if test "${ac_cv_func_getgroups_works+set}" = set; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 if test "$cross_compiling" = yes; then
25493 ac_cv_func_getgroups_works=no
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25501 $ac_includes_default
25505 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25506 exit (getgroups (0, 0) == -1 ? 1 : 0);
25511 rm -f conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513 (eval $ac_link) 2>&5
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_func_getgroups_works=yes
25524 echo "$as_me: program exited with status $ac_status" >&5
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25528 ( exit $ac_status )
25529 ac_cv_func_getgroups_works=no
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25535 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25536 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
25537 if test $ac_cv_func_getgroups_works = yes; then
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_GETGROUPS 1
25558 for ac_func in euidaccess
25560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25561 echo "$as_me:$LINENO: checking for $ac_func" >&5
25562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25563 if eval "test \"\${$as_ac_var+set}\" = set"; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25574 #define $ac_func innocuous_$ac_func
25576 /* System header to define __stub macros and hopefully few prototypes,
25577 which can conflict with char $ac_func (); below.
25578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25579 <limits.h> exists even on freestanding compilers. */
25582 # include <limits.h>
25584 # include <assert.h>
25589 /* Override any gcc2 internal prototype to avoid an error. */
25594 /* We use char because int might match the return type of a gcc2
25595 builtin and then its argument prototype would still apply. */
25597 /* The GNU C library defines this for functions which it implements
25598 to always fail with ENOSYS. Some functions are actually named
25599 something starting with __ and the normal name is an alias. */
25600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25603 char (*f) () = $ac_func;
25612 return f != $ac_func;
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25619 (eval $ac_link) 2>conftest.er1
25621 grep -v '^ *+' conftest.er1 >conftest.err
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -z "$ac_c_werror_flag"
25627 || test ! -s conftest.err'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; } &&
25633 { ac_try='test -s conftest$ac_exeext'
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 eval "$as_ac_var=yes"
25641 echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25644 eval "$as_ac_var=no"
25646 rm -f conftest.err conftest.$ac_objext \
25647 conftest$ac_exeext conftest.$ac_ext
25649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25651 if test `eval echo '${'$as_ac_var'}'` = yes; then
25652 cat >>confdefs.h <<_ACEOF
25653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25658 "$ac_func.$ac_objext" | \
25659 *" $ac_func.$ac_objext" | \
25660 "$ac_func.$ac_objext "* | \
25661 *" $ac_func.$ac_objext "* ) ;;
25662 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25669 if test $ac_cv_func_euidaccess = no; then
25688 # Solaris 9 needs -lgen to get the eaccess function.
25689 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25690 # programs in the package would end up linked with that potentially-shared
25691 # library, inducing unnecessary run-time overhead.
25692 gl_saved_libs=$LIBS
25693 echo "$as_me:$LINENO: checking for library containing eaccess" >&5
25694 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6
25695 if test "${ac_cv_search_eaccess+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 ac_func_search_save_LIBS=$LIBS
25699 ac_cv_search_eaccess=no
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25707 /* Override any gcc2 internal prototype to avoid an error. */
25711 /* We use char because int might match the return type of a gcc2
25712 builtin and then its argument prototype would still apply. */
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724 (eval $ac_link) 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest$ac_exeext'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_search_eaccess="none required"
25746 echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25750 rm -f conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
25752 if test "$ac_cv_search_eaccess" = no; then
25753 for ac_lib in gen; do
25754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25762 /* Override any gcc2 internal prototype to avoid an error. */
25766 /* We use char because int might match the return type of a gcc2
25767 builtin and then its argument prototype would still apply. */
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779 (eval $ac_link) 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } &&
25786 { ac_try='test -z "$ac_c_werror_flag"
25787 || test ! -s conftest.err'
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; } &&
25793 { ac_try='test -s conftest$ac_exeext'
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; }; then
25799 ac_cv_search_eaccess="-l$ac_lib"
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f conftest.err conftest.$ac_objext \
25807 conftest$ac_exeext conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25812 echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
25813 echo "${ECHO_T}$ac_cv_search_eaccess" >&6
25814 if test "$ac_cv_search_eaccess" != no; then
25815 test "$ac_cv_search_eaccess" = "none required" || LIBS="$ac_cv_search_eaccess $LIBS"
25816 test "$ac_cv_search_eaccess" = "none required" ||
25817 LIB_EACCESS=$ac_cv_search_eaccess
25822 for ac_func in eaccess
25824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25825 echo "$as_me:$LINENO: checking for $ac_func" >&5
25826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25827 if eval "test \"\${$as_ac_var+set}\" = set"; then
25828 echo $ECHO_N "(cached) $ECHO_C" >&6
25830 cat >conftest.$ac_ext <<_ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25838 #define $ac_func innocuous_$ac_func
25840 /* System header to define __stub macros and hopefully few prototypes,
25841 which can conflict with char $ac_func (); below.
25842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843 <limits.h> exists even on freestanding compilers. */
25846 # include <limits.h>
25848 # include <assert.h>
25853 /* Override any gcc2 internal prototype to avoid an error. */
25858 /* We use char because int might match the return type of a gcc2
25859 builtin and then its argument prototype would still apply. */
25861 /* The GNU C library defines this for functions which it implements
25862 to always fail with ENOSYS. Some functions are actually named
25863 something starting with __ and the normal name is an alias. */
25864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25867 char (*f) () = $ac_func;
25876 return f != $ac_func;
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883 (eval $ac_link) 2>conftest.er1
25885 grep -v '^ *+' conftest.er1 >conftest.err
25887 cat conftest.err >&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
25890 { ac_try='test -z "$ac_c_werror_flag"
25891 || test ! -s conftest.err'
25892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893 (eval $ac_try) 2>&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); }; } &&
25897 { ac_try='test -s conftest$ac_exeext'
25898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899 (eval $ac_try) 2>&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); }; }; then
25903 eval "$as_ac_var=yes"
25905 echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25908 eval "$as_ac_var=no"
25910 rm -f conftest.err conftest.$ac_objext \
25911 conftest$ac_exeext conftest.$ac_ext
25913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25915 if test `eval echo '${'$as_ac_var'}'` = yes; then
25916 cat >>confdefs.h <<_ACEOF
25917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25923 LIBS=$gl_saved_libs
25930 cat >>confdefs.h <<\_ACEOF
25931 #define PREFER_NONREENTRANT_EUIDACCESS 1
25937 for ac_func in readlink
25939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25940 echo "$as_me:$LINENO: checking for $ac_func" >&5
25941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25942 if eval "test \"\${$as_ac_var+set}\" = set"; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25953 #define $ac_func innocuous_$ac_func
25955 /* System header to define __stub macros and hopefully few prototypes,
25956 which can conflict with char $ac_func (); below.
25957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25958 <limits.h> exists even on freestanding compilers. */
25961 # include <limits.h>
25963 # include <assert.h>
25968 /* Override any gcc2 internal prototype to avoid an error. */
25973 /* We use char because int might match the return type of a gcc2
25974 builtin and then its argument prototype would still apply. */
25976 /* The GNU C library defines this for functions which it implements
25977 to always fail with ENOSYS. Some functions are actually named
25978 something starting with __ and the normal name is an alias. */
25979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25982 char (*f) () = $ac_func;
25991 return f != $ac_func;
25996 rm -f conftest.$ac_objext conftest$ac_exeext
25997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25998 (eval $ac_link) 2>conftest.er1
26000 grep -v '^ *+' conftest.er1 >conftest.err
26002 cat conftest.err >&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } &&
26005 { ac_try='test -z "$ac_c_werror_flag"
26006 || test ! -s conftest.err'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; } &&
26012 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26018 eval "$as_ac_var=yes"
26020 echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 eval "$as_ac_var=no"
26025 rm -f conftest.err conftest.$ac_objext \
26026 conftest$ac_exeext conftest.$ac_ext
26028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26030 if test `eval echo '${'$as_ac_var'}'` = yes; then
26031 cat >>confdefs.h <<_ACEOF
26032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26038 if test $ac_cv_func_readlink = no; then
26040 "readlink.$ac_objext" | \
26041 *" readlink.$ac_objext" | \
26042 "readlink.$ac_objext "* | \
26043 *" readlink.$ac_objext "* ) ;;
26044 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
26054 for ac_func in rmdir
26056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26057 echo "$as_me:$LINENO: checking for $ac_func" >&5
26058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26059 if eval "test \"\${$as_ac_var+set}\" = set"; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26070 #define $ac_func innocuous_$ac_func
26072 /* System header to define __stub macros and hopefully few prototypes,
26073 which can conflict with char $ac_func (); below.
26074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26075 <limits.h> exists even on freestanding compilers. */
26078 # include <limits.h>
26080 # include <assert.h>
26085 /* Override any gcc2 internal prototype to avoid an error. */
26090 /* We use char because int might match the return type of a gcc2
26091 builtin and then its argument prototype would still apply. */
26093 /* The GNU C library defines this for functions which it implements
26094 to always fail with ENOSYS. Some functions are actually named
26095 something starting with __ and the normal name is an alias. */
26096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26099 char (*f) () = $ac_func;
26108 return f != $ac_func;
26113 rm -f conftest.$ac_objext conftest$ac_exeext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26115 (eval $ac_link) 2>conftest.er1
26117 grep -v '^ *+' conftest.er1 >conftest.err
26119 cat conftest.err >&5
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); } &&
26122 { ac_try='test -z "$ac_c_werror_flag"
26123 || test ! -s conftest.err'
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest$ac_exeext'
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 eval "$as_ac_var=yes"
26137 echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26140 eval "$as_ac_var=no"
26142 rm -f conftest.err conftest.$ac_objext \
26143 conftest$ac_exeext conftest.$ac_ext
26145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26147 if test `eval echo '${'$as_ac_var'}'` = yes; then
26148 cat >>confdefs.h <<_ACEOF
26149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26154 "$ac_func.$ac_objext" | \
26155 *" $ac_func.$ac_objext" | \
26156 "$ac_func.$ac_objext "* | \
26157 *" $ac_func.$ac_objext "* ) ;;
26158 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26165 if test $ac_cv_func_rmdir = no; then
26174 for ac_func in rpmatch
26176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26177 echo "$as_me:$LINENO: checking for $ac_func" >&5
26178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26179 if eval "test \"\${$as_ac_var+set}\" = set"; then
26180 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 cat >conftest.$ac_ext <<_ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26190 #define $ac_func innocuous_$ac_func
26192 /* System header to define __stub macros and hopefully few prototypes,
26193 which can conflict with char $ac_func (); below.
26194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26195 <limits.h> exists even on freestanding compilers. */
26198 # include <limits.h>
26200 # include <assert.h>
26205 /* Override any gcc2 internal prototype to avoid an error. */
26210 /* We use char because int might match the return type of a gcc2
26211 builtin and then its argument prototype would still apply. */
26213 /* The GNU C library defines this for functions which it implements
26214 to always fail with ENOSYS. Some functions are actually named
26215 something starting with __ and the normal name is an alias. */
26216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26219 char (*f) () = $ac_func;
26228 return f != $ac_func;
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235 (eval $ac_link) 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } &&
26242 { ac_try='test -z "$ac_c_werror_flag"
26243 || test ! -s conftest.err'
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest$ac_exeext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255 eval "$as_ac_var=yes"
26257 echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26260 eval "$as_ac_var=no"
26262 rm -f conftest.err conftest.$ac_objext \
26263 conftest$ac_exeext conftest.$ac_ext
26265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26267 if test `eval echo '${'$as_ac_var'}'` = yes; then
26268 cat >>confdefs.h <<_ACEOF
26269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26274 "$ac_func.$ac_objext" | \
26275 *" $ac_func.$ac_objext" | \
26276 "$ac_func.$ac_objext "* | \
26277 *" $ac_func.$ac_objext "* ) ;;
26278 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26285 if test $ac_cv_func_rpmatch = no; then
26292 for ac_func in setenv unsetenv
26294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295 echo "$as_me:$LINENO: checking for $ac_func" >&5
26296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_var+set}\" = set"; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 cat >conftest.$ac_ext <<_ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26308 #define $ac_func innocuous_$ac_func
26310 /* System header to define __stub macros and hopefully few prototypes,
26311 which can conflict with char $ac_func (); below.
26312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26313 <limits.h> exists even on freestanding compilers. */
26316 # include <limits.h>
26318 # include <assert.h>
26323 /* Override any gcc2 internal prototype to avoid an error. */
26328 /* We use char because int might match the return type of a gcc2
26329 builtin and then its argument prototype would still apply. */
26331 /* The GNU C library defines this for functions which it implements
26332 to always fail with ENOSYS. Some functions are actually named
26333 something starting with __ and the normal name is an alias. */
26334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26337 char (*f) () = $ac_func;
26346 return f != $ac_func;
26351 rm -f conftest.$ac_objext conftest$ac_exeext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>conftest.er1
26355 grep -v '^ *+' conftest.er1 >conftest.err
26357 cat conftest.err >&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } &&
26360 { ac_try='test -z "$ac_c_werror_flag"
26361 || test ! -s conftest.err'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest$ac_exeext'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 eval "$as_ac_var=yes"
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 eval "$as_ac_var=no"
26380 rm -f conftest.err conftest.$ac_objext \
26381 conftest$ac_exeext conftest.$ac_ext
26383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26385 if test `eval echo '${'$as_ac_var'}'` = yes; then
26386 cat >>confdefs.h <<_ACEOF
26387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26392 "$ac_func.$ac_objext" | \
26393 *" $ac_func.$ac_objext" | \
26394 "$ac_func.$ac_objext "* | \
26395 *" $ac_func.$ac_objext "* ) ;;
26396 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26403 if test $ac_cv_func_setenv = no; then
26414 for ac_header in search.h
26416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26418 echo "$as_me:$LINENO: checking for $ac_header" >&5
26419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26426 # Is the header compilable?
26427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26429 cat >conftest.$ac_ext <<_ACEOF
26432 cat confdefs.h >>conftest.$ac_ext
26433 cat >>conftest.$ac_ext <<_ACEOF
26434 /* end confdefs.h. */
26435 $ac_includes_default
26436 #include <$ac_header>
26438 rm -f conftest.$ac_objext
26439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26440 (eval $ac_compile) 2>conftest.er1
26442 grep -v '^ *+' conftest.er1 >conftest.err
26444 cat conftest.err >&5
26445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } &&
26447 { ac_try='test -z "$ac_c_werror_flag"
26448 || test ! -s conftest.err'
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; } &&
26454 { ac_try='test -s conftest.$ac_objext'
26455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456 (eval $ac_try) 2>&5
26458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); }; }; then
26460 ac_header_compiler=yes
26462 echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26465 ac_header_compiler=no
26467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26469 echo "${ECHO_T}$ac_header_compiler" >&6
26471 # Is the header present?
26472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26474 cat >conftest.$ac_ext <<_ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h. */
26480 #include <$ac_header>
26482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26485 grep -v '^ *+' conftest.er1 >conftest.err
26487 cat conftest.err >&5
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); } >/dev/null; then
26490 if test -s conftest.err; then
26491 ac_cpp_err=$ac_c_preproc_warn_flag
26492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26499 if test -z "$ac_cpp_err"; then
26500 ac_header_preproc=yes
26502 echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26505 ac_header_preproc=no
26507 rm -f conftest.err conftest.$ac_ext
26508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26509 echo "${ECHO_T}$ac_header_preproc" >&6
26511 # So? What about this header?
26512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26518 ac_header_preproc=yes
26521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26535 ## ------------------------------------ ##
26536 ## Report this to bug-coreutils@gnu.org ##
26537 ## ------------------------------------ ##
26540 sed "s/^/$as_me: WARNING: /" >&2
26543 echo "$as_me:$LINENO: checking for $ac_header" >&5
26544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26546 echo $ECHO_N "(cached) $ECHO_C" >&6
26548 eval "$as_ac_Header=\$ac_header_preproc"
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26555 cat >>confdefs.h <<_ACEOF
26556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26564 for ac_func in tsearch
26566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26567 echo "$as_me:$LINENO: checking for $ac_func" >&5
26568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26569 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26580 #define $ac_func innocuous_$ac_func
26582 /* System header to define __stub macros and hopefully few prototypes,
26583 which can conflict with char $ac_func (); below.
26584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26585 <limits.h> exists even on freestanding compilers. */
26588 # include <limits.h>
26590 # include <assert.h>
26595 /* Override any gcc2 internal prototype to avoid an error. */
26600 /* We use char because int might match the return type of a gcc2
26601 builtin and then its argument prototype would still apply. */
26603 /* The GNU C library defines this for functions which it implements
26604 to always fail with ENOSYS. Some functions are actually named
26605 something starting with __ and the normal name is an alias. */
26606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26609 char (*f) () = $ac_func;
26618 return f != $ac_func;
26623 rm -f conftest.$ac_objext conftest$ac_exeext
26624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26625 (eval $ac_link) 2>conftest.er1
26627 grep -v '^ *+' conftest.er1 >conftest.err
26629 cat conftest.err >&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); } &&
26632 { ac_try='test -z "$ac_c_werror_flag"
26633 || test ! -s conftest.err'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; } &&
26639 { ac_try='test -s conftest$ac_exeext'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; }; then
26645 eval "$as_ac_var=yes"
26647 echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26650 eval "$as_ac_var=no"
26652 rm -f conftest.err conftest.$ac_objext \
26653 conftest$ac_exeext conftest.$ac_ext
26655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26657 if test `eval echo '${'$as_ac_var'}'` = yes; then
26658 cat >>confdefs.h <<_ACEOF
26659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26667 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
26668 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
26669 if test "${gt_cv_var_errno_declaration+set}" = set; then
26670 echo $ECHO_N "(cached) $ECHO_C" >&6
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26680 extern struct { int foo; } errno;
26689 rm -f conftest.$ac_objext
26690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26691 (eval $ac_compile) 2>conftest.er1
26693 grep -v '^ *+' conftest.er1 >conftest.err
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } &&
26698 { ac_try='test -z "$ac_c_werror_flag"
26699 || test ! -s conftest.err'
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; } &&
26705 { ac_try='test -s conftest.$ac_objext'
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 gt_cv_var_errno_declaration=no
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 gt_cv_var_errno_declaration=yes
26718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26721 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
26722 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
26723 if test $gt_cv_var_errno_declaration = yes; then
26725 cat >>confdefs.h <<\_ACEOF
26726 #define HAVE_ERRNO_DECL 1
26733 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26734 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26735 if test "${gt_cv_var_environ_declaration+set}" = set; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26739 cat >conftest.$ac_ext <<_ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h. */
26745 #include <unistd.h>
26746 extern struct { int foo; } environ;
26755 rm -f conftest.$ac_objext
26756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26757 (eval $ac_compile) 2>conftest.er1
26759 grep -v '^ *+' conftest.er1 >conftest.err
26761 cat conftest.err >&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); } &&
26764 { ac_try='test -z "$ac_c_werror_flag"
26765 || test ! -s conftest.err'
26766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); }; } &&
26771 { ac_try='test -s conftest.$ac_objext'
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; }; then
26777 gt_cv_var_environ_declaration=no
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 gt_cv_var_environ_declaration=yes
26784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26787 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26788 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
26789 if test $gt_cv_var_environ_declaration = yes; then
26791 cat >>confdefs.h <<\_ACEOF
26792 #define HAVE_ENVIRON_DECL 1
26799 if test $ac_cv_func_unsetenv = no; then
26810 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
26811 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
26812 if test "${gt_cv_var_errno_declaration+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26823 extern struct { int foo; } errno;
26832 rm -f conftest.$ac_objext
26833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26834 (eval $ac_compile) 2>conftest.er1
26836 grep -v '^ *+' conftest.er1 >conftest.err
26838 cat conftest.err >&5
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); } &&
26841 { ac_try='test -z "$ac_c_werror_flag"
26842 || test ! -s conftest.err'
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; } &&
26848 { ac_try='test -s conftest.$ac_objext'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; }; then
26854 gt_cv_var_errno_declaration=no
26856 echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26859 gt_cv_var_errno_declaration=yes
26861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26864 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
26865 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
26866 if test $gt_cv_var_errno_declaration = yes; then
26868 cat >>confdefs.h <<\_ACEOF
26869 #define HAVE_ERRNO_DECL 1
26876 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26877 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26878 if test "${gt_cv_var_environ_declaration+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 cat >conftest.$ac_ext <<_ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26888 #include <unistd.h>
26889 extern struct { int foo; } environ;
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900 (eval $ac_compile) 2>conftest.er1
26902 grep -v '^ *+' conftest.er1 >conftest.err
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
26907 { ac_try='test -z "$ac_c_werror_flag"
26908 || test ! -s conftest.err'
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest.$ac_objext'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920 gt_cv_var_environ_declaration=no
26922 echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26925 gt_cv_var_environ_declaration=yes
26927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26931 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
26932 if test $gt_cv_var_environ_declaration = yes; then
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_ENVIRON_DECL 1
26942 echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
26943 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
26944 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953 #include <stdlib.h>
26958 #if defined(__STDC__) || defined(__cplusplus)
26959 int unsetenv (const char *name);
26972 rm -f conftest.$ac_objext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26974 (eval $ac_compile) 2>conftest.er1
26976 grep -v '^ *+' conftest.er1 >conftest.err
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag"
26982 || test ! -s conftest.err'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; } &&
26988 { ac_try='test -s conftest.$ac_objext'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 gt_cv_func_unsetenv_ret='int'
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 gt_cv_func_unsetenv_ret='void'
27001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27003 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
27004 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
27005 if test $gt_cv_func_unsetenv_ret = 'void'; then
27007 cat >>confdefs.h <<\_ACEOF
27008 #define VOID_UNSETENV 1
27016 for ac_func in sig2str
27018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27019 echo "$as_me:$LINENO: checking for $ac_func" >&5
27020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27021 if eval "test \"\${$as_ac_var+set}\" = set"; then
27022 echo $ECHO_N "(cached) $ECHO_C" >&6
27024 cat >conftest.$ac_ext <<_ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h. */
27030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27032 #define $ac_func innocuous_$ac_func
27034 /* System header to define __stub macros and hopefully few prototypes,
27035 which can conflict with char $ac_func (); below.
27036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27037 <limits.h> exists even on freestanding compilers. */
27040 # include <limits.h>
27042 # include <assert.h>
27047 /* Override any gcc2 internal prototype to avoid an error. */
27052 /* We use char because int might match the return type of a gcc2
27053 builtin and then its argument prototype would still apply. */
27055 /* The GNU C library defines this for functions which it implements
27056 to always fail with ENOSYS. Some functions are actually named
27057 something starting with __ and the normal name is an alias. */
27058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27061 char (*f) () = $ac_func;
27070 return f != $ac_func;
27075 rm -f conftest.$ac_objext conftest$ac_exeext
27076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27077 (eval $ac_link) 2>conftest.er1
27079 grep -v '^ *+' conftest.er1 >conftest.err
27081 cat conftest.err >&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } &&
27084 { ac_try='test -z "$ac_c_werror_flag"
27085 || test ! -s conftest.err'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; } &&
27091 { ac_try='test -s conftest$ac_exeext'
27092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093 (eval $ac_try) 2>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097 eval "$as_ac_var=yes"
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27102 eval "$as_ac_var=no"
27104 rm -f conftest.err conftest.$ac_objext \
27105 conftest$ac_exeext conftest.$ac_ext
27107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27109 if test `eval echo '${'$as_ac_var'}'` = yes; then
27110 cat >>confdefs.h <<_ACEOF
27111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27116 "$ac_func.$ac_objext" | \
27117 *" $ac_func.$ac_objext" | \
27118 "$ac_func.$ac_objext "* | \
27119 *" $ac_func.$ac_objext "* ) ;;
27120 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27127 if test $ac_cv_func_sig2str = no; then
27137 for ac_func in stpcpy
27139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27140 echo "$as_me:$LINENO: checking for $ac_func" >&5
27141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27142 if eval "test \"\${$as_ac_var+set}\" = set"; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27145 cat >conftest.$ac_ext <<_ACEOF
27148 cat confdefs.h >>conftest.$ac_ext
27149 cat >>conftest.$ac_ext <<_ACEOF
27150 /* end confdefs.h. */
27151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27153 #define $ac_func innocuous_$ac_func
27155 /* System header to define __stub macros and hopefully few prototypes,
27156 which can conflict with char $ac_func (); below.
27157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27158 <limits.h> exists even on freestanding compilers. */
27161 # include <limits.h>
27163 # include <assert.h>
27168 /* Override any gcc2 internal prototype to avoid an error. */
27173 /* We use char because int might match the return type of a gcc2
27174 builtin and then its argument prototype would still apply. */
27176 /* The GNU C library defines this for functions which it implements
27177 to always fail with ENOSYS. Some functions are actually named
27178 something starting with __ and the normal name is an alias. */
27179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27182 char (*f) () = $ac_func;
27191 return f != $ac_func;
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27198 (eval $ac_link) 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
27205 { ac_try='test -z "$ac_c_werror_flag"
27206 || test ! -s conftest.err'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest$ac_exeext'
27213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214 (eval $ac_try) 2>&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); }; }; then
27218 eval "$as_ac_var=yes"
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 eval "$as_ac_var=no"
27225 rm -f conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext conftest.$ac_ext
27228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27230 if test `eval echo '${'$as_ac_var'}'` = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27237 "$ac_func.$ac_objext" | \
27238 *" $ac_func.$ac_objext" | \
27239 "$ac_func.$ac_objext "* | \
27240 *" $ac_func.$ac_objext "* ) ;;
27241 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27248 if test $ac_cv_func_stpcpy = no; then
27256 for ac_func in strcspn
27258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27259 echo "$as_me:$LINENO: checking for $ac_func" >&5
27260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27261 if eval "test \"\${$as_ac_var+set}\" = set"; then
27262 echo $ECHO_N "(cached) $ECHO_C" >&6
27264 cat >conftest.$ac_ext <<_ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27272 #define $ac_func innocuous_$ac_func
27274 /* System header to define __stub macros and hopefully few prototypes,
27275 which can conflict with char $ac_func (); below.
27276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27277 <limits.h> exists even on freestanding compilers. */
27280 # include <limits.h>
27282 # include <assert.h>
27287 /* Override any gcc2 internal prototype to avoid an error. */
27292 /* We use char because int might match the return type of a gcc2
27293 builtin and then its argument prototype would still apply. */
27295 /* The GNU C library defines this for functions which it implements
27296 to always fail with ENOSYS. Some functions are actually named
27297 something starting with __ and the normal name is an alias. */
27298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27301 char (*f) () = $ac_func;
27310 return f != $ac_func;
27315 rm -f conftest.$ac_objext conftest$ac_exeext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27317 (eval $ac_link) 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest$ac_exeext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 eval "$as_ac_var=yes"
27339 echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27342 eval "$as_ac_var=no"
27344 rm -f conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
27347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27349 if test `eval echo '${'$as_ac_var'}'` = yes; then
27350 cat >>confdefs.h <<_ACEOF
27351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27356 "$ac_func.$ac_objext" | \
27357 *" $ac_func.$ac_objext" | \
27358 "$ac_func.$ac_objext "* | \
27359 *" $ac_func.$ac_objext "* ) ;;
27360 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27367 if test $ac_cv_func_strcspn = no; then
27372 echo "$as_me:$LINENO: checking whether strdup is declared" >&5
27373 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
27374 if test "${ac_cv_have_decl_strdup+set}" = set; then
27375 echo $ECHO_N "(cached) $ECHO_C" >&6
27377 cat >conftest.$ac_ext <<_ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h. */
27383 $ac_includes_default
27388 char *p = (char *) strdup;
27395 rm -f conftest.$ac_objext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27397 (eval $ac_compile) 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
27404 { ac_try='test -z "$ac_c_werror_flag"
27405 || test ! -s conftest.err'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest.$ac_objext'
27412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413 (eval $ac_try) 2>&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; }; then
27417 ac_cv_have_decl_strdup=yes
27419 echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27422 ac_cv_have_decl_strdup=no
27424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
27427 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
27428 if test $ac_cv_have_decl_strdup = yes; then
27430 cat >>confdefs.h <<_ACEOF
27431 #define HAVE_DECL_STRDUP 1
27436 cat >>confdefs.h <<_ACEOF
27437 #define HAVE_DECL_STRDUP 0
27447 for ac_func in strdup
27449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450 echo "$as_me:$LINENO: checking for $ac_func" >&5
27451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27452 if eval "test \"\${$as_ac_var+set}\" = set"; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27455 cat >conftest.$ac_ext <<_ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h. */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27463 #define $ac_func innocuous_$ac_func
27465 /* System header to define __stub macros and hopefully few prototypes,
27466 which can conflict with char $ac_func (); below.
27467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468 <limits.h> exists even on freestanding compilers. */
27471 # include <limits.h>
27473 # include <assert.h>
27478 /* Override any gcc2 internal prototype to avoid an error. */
27483 /* We use char because int might match the return type of a gcc2
27484 builtin and then its argument prototype would still apply. */
27486 /* The GNU C library defines this for functions which it implements
27487 to always fail with ENOSYS. Some functions are actually named
27488 something starting with __ and the normal name is an alias. */
27489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27492 char (*f) () = $ac_func;
27501 return f != $ac_func;
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508 (eval $ac_link) 2>conftest.er1
27510 grep -v '^ *+' conftest.er1 >conftest.err
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag"
27516 || test ! -s conftest.err'
27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518 (eval $ac_try) 2>&5
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; } &&
27522 { ac_try='test -s conftest$ac_exeext'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; }; then
27528 eval "$as_ac_var=yes"
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 eval "$as_ac_var=no"
27535 rm -f conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext conftest.$ac_ext
27538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541 cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27547 "$ac_func.$ac_objext" | \
27548 *" $ac_func.$ac_objext" | \
27549 "$ac_func.$ac_objext "* | \
27550 *" $ac_func.$ac_objext "* ) ;;
27551 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27571 for ac_func in strndup
27573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27574 echo "$as_me:$LINENO: checking for $ac_func" >&5
27575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27576 if eval "test \"\${$as_ac_var+set}\" = set"; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27579 cat >conftest.$ac_ext <<_ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h. */
27585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27587 #define $ac_func innocuous_$ac_func
27589 /* System header to define __stub macros and hopefully few prototypes,
27590 which can conflict with char $ac_func (); below.
27591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27592 <limits.h> exists even on freestanding compilers. */
27595 # include <limits.h>
27597 # include <assert.h>
27602 /* Override any gcc2 internal prototype to avoid an error. */
27607 /* We use char because int might match the return type of a gcc2
27608 builtin and then its argument prototype would still apply. */
27610 /* The GNU C library defines this for functions which it implements
27611 to always fail with ENOSYS. Some functions are actually named
27612 something starting with __ and the normal name is an alias. */
27613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27616 char (*f) () = $ac_func;
27625 return f != $ac_func;
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27632 (eval $ac_link) 2>conftest.er1
27634 grep -v '^ *+' conftest.er1 >conftest.err
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } &&
27639 { ac_try='test -z "$ac_c_werror_flag"
27640 || test ! -s conftest.err'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest$ac_exeext'
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; }; then
27652 eval "$as_ac_var=yes"
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27657 eval "$as_ac_var=no"
27659 rm -f conftest.err conftest.$ac_objext \
27660 conftest$ac_exeext conftest.$ac_ext
27662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27664 if test `eval echo '${'$as_ac_var'}'` = yes; then
27665 cat >>confdefs.h <<_ACEOF
27666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27671 "$ac_func.$ac_objext" | \
27672 *" $ac_func.$ac_objext" | \
27673 "$ac_func.$ac_objext "* | \
27674 *" $ac_func.$ac_objext "* ) ;;
27675 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27682 if test $ac_cv_func_strndup = no; then
27684 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
27685 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
27686 if test "${ac_cv_have_decl_strnlen+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 cat >conftest.$ac_ext <<_ACEOF
27692 cat confdefs.h >>conftest.$ac_ext
27693 cat >>conftest.$ac_ext <<_ACEOF
27694 /* end confdefs.h. */
27695 $ac_includes_default
27700 char *p = (char *) strnlen;
27707 rm -f conftest.$ac_objext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709 (eval $ac_compile) 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest.$ac_objext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_have_decl_strnlen=yes
27731 echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27734 ac_cv_have_decl_strnlen=no
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27738 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
27739 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
27740 if test $ac_cv_have_decl_strnlen = yes; then
27742 cat >>confdefs.h <<_ACEOF
27743 #define HAVE_DECL_STRNLEN 1
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_DECL_STRNLEN 0
27762 echo "$as_me:$LINENO: checking for working strnlen" >&5
27763 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
27764 if test "${ac_cv_func_strnlen_working+set}" = set; then
27765 echo $ECHO_N "(cached) $ECHO_C" >&6
27767 if test "$cross_compiling" = yes; then
27768 ac_cv_func_strnlen_working=no
27770 cat >conftest.$ac_ext <<_ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h. */
27776 $ac_includes_default
27782 #define S_LEN (sizeof S - 1)
27784 /* At least one implementation is buggy: that of AIX 4.3 would
27785 give strnlen (S, 1) == 3. */
27788 for (i = 0; i < S_LEN + 1; ++i)
27790 int expected = i <= S_LEN ? i : S_LEN;
27791 if (strnlen (S, i) != expected)
27800 rm -f conftest$ac_exeext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802 (eval $ac_link) 2>&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807 (eval $ac_try) 2>&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_func_strnlen_working=yes
27813 echo "$as_me: program exited with status $ac_status" >&5
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27817 ( exit $ac_status )
27818 ac_cv_func_strnlen_working=no
27820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27823 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
27824 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
27825 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
27826 "strnlen.$ac_objext" | \
27827 *" strnlen.$ac_objext" | \
27828 "strnlen.$ac_objext "* | \
27829 *" strnlen.$ac_objext "* ) ;;
27830 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
27834 if test $ac_cv_func_strnlen_working = no; then
27835 # This is necessary because automake-1.6.1 doens't understand
27836 # that the above use of AC_FUNC_STRNLEN means we may have to use
27838 #AC_LIBOBJ(strnlen)
27840 cat >>confdefs.h <<\_ACEOF
27841 #define strnlen rpl_strnlen
27849 for ac_func in strpbrk
27851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27852 echo "$as_me:$LINENO: checking for $ac_func" >&5
27853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27854 if eval "test \"\${$as_ac_var+set}\" = set"; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 cat >conftest.$ac_ext <<_ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27865 #define $ac_func innocuous_$ac_func
27867 /* System header to define __stub macros and hopefully few prototypes,
27868 which can conflict with char $ac_func (); below.
27869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27870 <limits.h> exists even on freestanding compilers. */
27873 # include <limits.h>
27875 # include <assert.h>
27880 /* Override any gcc2 internal prototype to avoid an error. */
27885 /* We use char because int might match the return type of a gcc2
27886 builtin and then its argument prototype would still apply. */
27888 /* The GNU C library defines this for functions which it implements
27889 to always fail with ENOSYS. Some functions are actually named
27890 something starting with __ and the normal name is an alias. */
27891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27894 char (*f) () = $ac_func;
27903 return f != $ac_func;
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27910 (eval $ac_link) 2>conftest.er1
27912 grep -v '^ *+' conftest.er1 >conftest.err
27914 cat conftest.err >&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
27917 { ac_try='test -z "$ac_c_werror_flag"
27918 || test ! -s conftest.err'
27919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920 (eval $ac_try) 2>&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; } &&
27924 { ac_try='test -s conftest$ac_exeext'
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; }; then
27930 eval "$as_ac_var=yes"
27932 echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27935 eval "$as_ac_var=no"
27937 rm -f conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
27940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27942 if test `eval echo '${'$as_ac_var'}'` = yes; then
27943 cat >>confdefs.h <<_ACEOF
27944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27949 "$ac_func.$ac_objext" | \
27950 *" $ac_func.$ac_objext" | \
27951 "$ac_func.$ac_objext "* | \
27952 *" $ac_func.$ac_objext "* ) ;;
27953 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27960 if test $ac_cv_func_strpbrk = no; then
27966 for ac_func in strstr
27968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27969 echo "$as_me:$LINENO: checking for $ac_func" >&5
27970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27971 if eval "test \"\${$as_ac_var+set}\" = set"; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27982 #define $ac_func innocuous_$ac_func
27984 /* System header to define __stub macros and hopefully few prototypes,
27985 which can conflict with char $ac_func (); below.
27986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27987 <limits.h> exists even on freestanding compilers. */
27990 # include <limits.h>
27992 # include <assert.h>
27997 /* Override any gcc2 internal prototype to avoid an error. */
28002 /* We use char because int might match the return type of a gcc2
28003 builtin and then its argument prototype would still apply. */
28005 /* The GNU C library defines this for functions which it implements
28006 to always fail with ENOSYS. Some functions are actually named
28007 something starting with __ and the normal name is an alias. */
28008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28011 char (*f) () = $ac_func;
28020 return f != $ac_func;
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28027 (eval $ac_link) 2>conftest.er1
28029 grep -v '^ *+' conftest.er1 >conftest.err
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } &&
28034 { ac_try='test -z "$ac_c_werror_flag"
28035 || test ! -s conftest.err'
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; } &&
28041 { ac_try='test -s conftest$ac_exeext'
28042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; }; then
28047 eval "$as_ac_var=yes"
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28052 eval "$as_ac_var=no"
28054 rm -f conftest.err conftest.$ac_objext \
28055 conftest$ac_exeext conftest.$ac_ext
28057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28059 if test `eval echo '${'$as_ac_var'}'` = yes; then
28060 cat >>confdefs.h <<_ACEOF
28061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28066 "$ac_func.$ac_objext" | \
28067 *" $ac_func.$ac_objext" | \
28068 "$ac_func.$ac_objext "* | \
28069 *" $ac_func.$ac_objext "* ) ;;
28070 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28077 if test $ac_cv_func_strstr = no; then
28081 echo "$as_me:$LINENO: checking for working strtod" >&5
28082 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
28083 if test "${ac_cv_func_strtod+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28086 if test "$cross_compiling" = yes; then
28087 ac_cv_func_strtod=no
28089 cat >conftest.$ac_ext <<_ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h. */
28101 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
28102 char *string = " +69";
28105 value = strtod (string, &term);
28106 if (value != 69 || term != (string + 4))
28111 /* Under Solaris 2.4, strtod returns the wrong value for the
28112 terminating character under some conditions. */
28113 char *string = "NaN";
28115 strtod (string, &term);
28116 if (term != string && *(term - 1) == 0)
28123 rm -f conftest$ac_exeext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28125 (eval $ac_link) 2>&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; }; then
28134 ac_cv_func_strtod=yes
28136 echo "$as_me: program exited with status $ac_status" >&5
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 ( exit $ac_status )
28141 ac_cv_func_strtod=no
28143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28146 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
28147 echo "${ECHO_T}$ac_cv_func_strtod" >&6
28148 if test $ac_cv_func_strtod = no; then
28150 "strtod.$ac_objext" | \
28151 *" strtod.$ac_objext" | \
28152 "strtod.$ac_objext "* | \
28153 *" strtod.$ac_objext "* ) ;;
28154 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
28157 echo "$as_me:$LINENO: checking for pow" >&5
28158 echo $ECHO_N "checking for pow... $ECHO_C" >&6
28159 if test "${ac_cv_func_pow+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28162 cat >conftest.$ac_ext <<_ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
28169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28170 #define pow innocuous_pow
28172 /* System header to define __stub macros and hopefully few prototypes,
28173 which can conflict with char pow (); below.
28174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28175 <limits.h> exists even on freestanding compilers. */
28178 # include <limits.h>
28180 # include <assert.h>
28185 /* Override any gcc2 internal prototype to avoid an error. */
28190 /* We use char because int might match the return type of a gcc2
28191 builtin and then its argument prototype would still apply. */
28193 /* The GNU C library defines this for functions which it implements
28194 to always fail with ENOSYS. Some functions are actually named
28195 something starting with __ and the normal name is an alias. */
28196 #if defined (__stub_pow) || defined (__stub___pow)
28199 char (*f) () = pow;
28213 rm -f conftest.$ac_objext conftest$ac_exeext
28214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28215 (eval $ac_link) 2>conftest.er1
28217 grep -v '^ *+' conftest.er1 >conftest.err
28219 cat conftest.err >&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); } &&
28222 { ac_try='test -z "$ac_c_werror_flag"
28223 || test ! -s conftest.err'
28224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28225 (eval $ac_try) 2>&5
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; } &&
28229 { ac_try='test -s conftest$ac_exeext'
28230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231 (eval $ac_try) 2>&5
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; }; then
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28242 rm -f conftest.err conftest.$ac_objext \
28243 conftest$ac_exeext conftest.$ac_ext
28245 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
28246 echo "${ECHO_T}$ac_cv_func_pow" >&6
28248 if test $ac_cv_func_pow = no; then
28249 echo "$as_me:$LINENO: checking for pow in -lm" >&5
28250 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
28251 if test "${ac_cv_lib_m_pow+set}" = set; then
28252 echo $ECHO_N "(cached) $ECHO_C" >&6
28254 ac_check_lib_save_LIBS=$LIBS
28256 cat >conftest.$ac_ext <<_ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28263 /* Override any gcc2 internal prototype to avoid an error. */
28267 /* We use char because int might match the return type of a gcc2
28268 builtin and then its argument prototype would still apply. */
28278 rm -f conftest.$ac_objext conftest$ac_exeext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28280 (eval $ac_link) 2>conftest.er1
28282 grep -v '^ *+' conftest.er1 >conftest.err
28284 cat conftest.err >&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
28287 { ac_try='test -z "$ac_c_werror_flag"
28288 || test ! -s conftest.err'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest$ac_exeext'
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 ac_cv_lib_m_pow=yes
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28307 rm -f conftest.err conftest.$ac_objext \
28308 conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28311 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
28312 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
28313 if test $ac_cv_lib_m_pow = yes; then
28316 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
28317 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
28326 if test $ac_cv_func_strtod = no; then
28328 cat >>confdefs.h <<\_ACEOF
28329 #define strtod rpl_strtod
28348 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
28349 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
28350 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28353 cat >conftest.$ac_ext <<_ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h. */
28359 #include <inttypes.h>
28361 inttypes_h_defines_strtoimax
28364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28365 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
28366 jm_cv_func_strtoimax_macro=yes
28368 jm_cv_func_strtoimax_macro=no
28373 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
28374 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
28376 if test "$jm_cv_func_strtoimax_macro" != yes; then
28378 for ac_func in strtoimax
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28394 #define $ac_func innocuous_$ac_func
28396 /* System header to define __stub macros and hopefully few prototypes,
28397 which can conflict with char $ac_func (); below.
28398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399 <limits.h> exists even on freestanding compilers. */
28402 # include <limits.h>
28404 # include <assert.h>
28409 /* Override any gcc2 internal prototype to avoid an error. */
28414 /* We use char because int might match the return type of a gcc2
28415 builtin and then its argument prototype would still apply. */
28417 /* The GNU C library defines this for functions which it implements
28418 to always fail with ENOSYS. Some functions are actually named
28419 something starting with __ and the normal name is an alias. */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28423 char (*f) () = $ac_func;
28432 return f != $ac_func;
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439 (eval $ac_link) 2>conftest.er1
28441 grep -v '^ *+' conftest.er1 >conftest.err
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
28446 { ac_try='test -z "$ac_c_werror_flag"
28447 || test ! -s conftest.err'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest$ac_exeext'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 eval "$as_ac_var=yes"
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28464 eval "$as_ac_var=no"
28466 rm -f conftest.err conftest.$ac_objext \
28467 conftest$ac_exeext conftest.$ac_ext
28469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28471 if test `eval echo '${'$as_ac_var'}'` = yes; then
28472 cat >>confdefs.h <<_ACEOF
28473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28478 "$ac_func.$ac_objext" | \
28479 *" $ac_func.$ac_objext" | \
28480 "$ac_func.$ac_objext "* | \
28481 *" $ac_func.$ac_objext "* ) ;;
28482 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28489 if test $ac_cv_func_strtoimax = no; then
28494 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
28496 test $ac_cv_type_long_long = yes \
28497 && ac_type='long long' \
28500 cat >>confdefs.h <<_ACEOF
28501 #define intmax_t $ac_type
28506 cat >>confdefs.h <<\_ACEOF
28507 #define HAVE_INTMAX_T 1
28512 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
28513 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
28514 if test "${ac_cv_have_decl_strtoll+set}" = set; then
28515 echo $ECHO_N "(cached) $ECHO_C" >&6
28517 cat >conftest.$ac_ext <<_ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h. */
28523 $ac_includes_default
28528 char *p = (char *) strtoll;
28535 rm -f conftest.$ac_objext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28537 (eval $ac_compile) 2>conftest.er1
28539 grep -v '^ *+' conftest.er1 >conftest.err
28541 cat conftest.err >&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try='test -z "$ac_c_werror_flag"
28545 || test ! -s conftest.err'
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest.$ac_objext'
28552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553 (eval $ac_try) 2>&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
28557 ac_cv_have_decl_strtoll=yes
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28562 ac_cv_have_decl_strtoll=no
28564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
28567 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
28568 if test $ac_cv_have_decl_strtoll = yes; then
28570 cat >>confdefs.h <<_ACEOF
28571 #define HAVE_DECL_STRTOLL 1
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_DECL_STRTOLL 0
28591 if test "$ac_cv_type_long_long" = yes; then
28593 for ac_func in strtoll
28595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28596 echo "$as_me:$LINENO: checking for $ac_func" >&5
28597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28598 if eval "test \"\${$as_ac_var+set}\" = set"; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28609 #define $ac_func innocuous_$ac_func
28611 /* System header to define __stub macros and hopefully few prototypes,
28612 which can conflict with char $ac_func (); below.
28613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28614 <limits.h> exists even on freestanding compilers. */
28617 # include <limits.h>
28619 # include <assert.h>
28624 /* Override any gcc2 internal prototype to avoid an error. */
28629 /* We use char because int might match the return type of a gcc2
28630 builtin and then its argument prototype would still apply. */
28632 /* The GNU C library defines this for functions which it implements
28633 to always fail with ENOSYS. Some functions are actually named
28634 something starting with __ and the normal name is an alias. */
28635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28638 char (*f) () = $ac_func;
28647 return f != $ac_func;
28652 rm -f conftest.$ac_objext conftest$ac_exeext
28653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28654 (eval $ac_link) 2>conftest.er1
28656 grep -v '^ *+' conftest.er1 >conftest.err
28658 cat conftest.err >&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } &&
28661 { ac_try='test -z "$ac_c_werror_flag"
28662 || test ! -s conftest.err'
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; } &&
28668 { ac_try='test -s conftest$ac_exeext'
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 eval "$as_ac_var=yes"
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 eval "$as_ac_var=no"
28681 rm -f conftest.err conftest.$ac_objext \
28682 conftest$ac_exeext conftest.$ac_ext
28684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28686 if test `eval echo '${'$as_ac_var'}'` = yes; then
28687 cat >>confdefs.h <<_ACEOF
28688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28693 "$ac_func.$ac_objext" | \
28694 *" $ac_func.$ac_objext" | \
28695 "$ac_func.$ac_objext "* | \
28696 *" $ac_func.$ac_objext "* ) ;;
28697 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28704 if test $ac_cv_func_strtoll = no; then
28713 for ac_func in strtol
28715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28716 echo "$as_me:$LINENO: checking for $ac_func" >&5
28717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28718 if eval "test \"\${$as_ac_var+set}\" = set"; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 cat >conftest.$ac_ext <<_ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h. */
28727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28729 #define $ac_func innocuous_$ac_func
28731 /* System header to define __stub macros and hopefully few prototypes,
28732 which can conflict with char $ac_func (); below.
28733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28734 <limits.h> exists even on freestanding compilers. */
28737 # include <limits.h>
28739 # include <assert.h>
28744 /* Override any gcc2 internal prototype to avoid an error. */
28749 /* We use char because int might match the return type of a gcc2
28750 builtin and then its argument prototype would still apply. */
28752 /* The GNU C library defines this for functions which it implements
28753 to always fail with ENOSYS. Some functions are actually named
28754 something starting with __ and the normal name is an alias. */
28755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28758 char (*f) () = $ac_func;
28767 return f != $ac_func;
28772 rm -f conftest.$ac_objext conftest$ac_exeext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28774 (eval $ac_link) 2>conftest.er1
28776 grep -v '^ *+' conftest.er1 >conftest.err
28778 cat conftest.err >&5
28779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780 (exit $ac_status); } &&
28781 { ac_try='test -z "$ac_c_werror_flag"
28782 || test ! -s conftest.err'
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest$ac_exeext'
28789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790 (eval $ac_try) 2>&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; }; then
28794 eval "$as_ac_var=yes"
28796 echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28799 eval "$as_ac_var=no"
28801 rm -f conftest.err conftest.$ac_objext \
28802 conftest$ac_exeext conftest.$ac_ext
28804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28806 if test `eval echo '${'$as_ac_var'}'` = yes; then
28807 cat >>confdefs.h <<_ACEOF
28808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28813 "$ac_func.$ac_objext" | \
28814 *" $ac_func.$ac_objext" | \
28815 "$ac_func.$ac_objext "* | \
28816 *" $ac_func.$ac_objext "* ) ;;
28817 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28824 if test $ac_cv_func_strtol = no; then
28839 if test "$ac_cv_type_unsigned_long_long" = yes; then
28841 for ac_func in strtoull
28843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28844 echo "$as_me:$LINENO: checking for $ac_func" >&5
28845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28846 if eval "test \"\${$as_ac_var+set}\" = set"; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28857 #define $ac_func innocuous_$ac_func
28859 /* System header to define __stub macros and hopefully few prototypes,
28860 which can conflict with char $ac_func (); below.
28861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28862 <limits.h> exists even on freestanding compilers. */
28865 # include <limits.h>
28867 # include <assert.h>
28872 /* Override any gcc2 internal prototype to avoid an error. */
28877 /* We use char because int might match the return type of a gcc2
28878 builtin and then its argument prototype would still apply. */
28880 /* The GNU C library defines this for functions which it implements
28881 to always fail with ENOSYS. Some functions are actually named
28882 something starting with __ and the normal name is an alias. */
28883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28886 char (*f) () = $ac_func;
28895 return f != $ac_func;
28900 rm -f conftest.$ac_objext conftest$ac_exeext
28901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28902 (eval $ac_link) 2>conftest.er1
28904 grep -v '^ *+' conftest.er1 >conftest.err
28906 cat conftest.err >&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
28909 { ac_try='test -z "$ac_c_werror_flag"
28910 || test ! -s conftest.err'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest$ac_exeext'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; }; then
28922 eval "$as_ac_var=yes"
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 eval "$as_ac_var=no"
28929 rm -f conftest.err conftest.$ac_objext \
28930 conftest$ac_exeext conftest.$ac_ext
28932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28934 if test `eval echo '${'$as_ac_var'}'` = yes; then
28935 cat >>confdefs.h <<_ACEOF
28936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28941 "$ac_func.$ac_objext" | \
28942 *" $ac_func.$ac_objext" | \
28943 "$ac_func.$ac_objext "* | \
28944 *" $ac_func.$ac_objext "* ) ;;
28945 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28952 if test $ac_cv_func_strtoull = no; then
28961 for ac_func in strtoul
28963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28964 echo "$as_me:$LINENO: checking for $ac_func" >&5
28965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28966 if eval "test \"\${$as_ac_var+set}\" = set"; then
28967 echo $ECHO_N "(cached) $ECHO_C" >&6
28969 cat >conftest.$ac_ext <<_ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h. */
28975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28977 #define $ac_func innocuous_$ac_func
28979 /* System header to define __stub macros and hopefully few prototypes,
28980 which can conflict with char $ac_func (); below.
28981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28982 <limits.h> exists even on freestanding compilers. */
28985 # include <limits.h>
28987 # include <assert.h>
28992 /* Override any gcc2 internal prototype to avoid an error. */
28997 /* We use char because int might match the return type of a gcc2
28998 builtin and then its argument prototype would still apply. */
29000 /* The GNU C library defines this for functions which it implements
29001 to always fail with ENOSYS. Some functions are actually named
29002 something starting with __ and the normal name is an alias. */
29003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29006 char (*f) () = $ac_func;
29015 return f != $ac_func;
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29022 (eval $ac_link) 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag"
29030 || test ! -s conftest.err'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest$ac_exeext'
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 eval "$as_ac_var=yes"
29044 echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 eval "$as_ac_var=no"
29049 rm -f conftest.err conftest.$ac_objext \
29050 conftest$ac_exeext conftest.$ac_ext
29052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29054 if test `eval echo '${'$as_ac_var'}'` = yes; then
29055 cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29061 "$ac_func.$ac_objext" | \
29062 *" $ac_func.$ac_objext" | \
29063 "$ac_func.$ac_objext "* | \
29064 *" $ac_func.$ac_objext "* ) ;;
29065 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29072 if test $ac_cv_func_strtoul = no; then
29091 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
29092 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
29093 if test "${jm_cv_func_strtoumax_macro+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. */
29102 #include <inttypes.h>
29104 inttypes_h_defines_strtoumax
29107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29108 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
29109 jm_cv_func_strtoumax_macro=yes
29111 jm_cv_func_strtoumax_macro=no
29116 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
29117 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
29119 if test "$jm_cv_func_strtoumax_macro" != yes; then
29121 for ac_func in strtoumax
29123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29124 echo "$as_me:$LINENO: checking for $ac_func" >&5
29125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29126 if eval "test \"\${$as_ac_var+set}\" = set"; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29137 #define $ac_func innocuous_$ac_func
29139 /* System header to define __stub macros and hopefully few prototypes,
29140 which can conflict with char $ac_func (); below.
29141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29142 <limits.h> exists even on freestanding compilers. */
29145 # include <limits.h>
29147 # include <assert.h>
29152 /* Override any gcc2 internal prototype to avoid an error. */
29157 /* We use char because int might match the return type of a gcc2
29158 builtin and then its argument prototype would still apply. */
29160 /* The GNU C library defines this for functions which it implements
29161 to always fail with ENOSYS. Some functions are actually named
29162 something starting with __ and the normal name is an alias. */
29163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29166 char (*f) () = $ac_func;
29175 return f != $ac_func;
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29182 (eval $ac_link) 2>conftest.er1
29184 grep -v '^ *+' conftest.er1 >conftest.err
29186 cat conftest.err >&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); } &&
29189 { ac_try='test -z "$ac_c_werror_flag"
29190 || test ! -s conftest.err'
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; } &&
29196 { ac_try='test -s conftest$ac_exeext'
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; }; then
29202 eval "$as_ac_var=yes"
29204 echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29207 eval "$as_ac_var=no"
29209 rm -f conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
29212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29214 if test `eval echo '${'$as_ac_var'}'` = yes; then
29215 cat >>confdefs.h <<_ACEOF
29216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29221 "$ac_func.$ac_objext" | \
29222 *" $ac_func.$ac_objext" | \
29223 "$ac_func.$ac_objext "* | \
29224 *" $ac_func.$ac_objext "* ) ;;
29225 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29232 if test $ac_cv_func_strtoumax = no; then
29237 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
29239 test $ac_cv_type_unsigned_long_long = yes \
29240 && ac_type='unsigned long long' \
29241 || ac_type='unsigned long'
29243 cat >>confdefs.h <<_ACEOF
29244 #define uintmax_t $ac_type
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_UINTMAX_T 1
29255 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
29256 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
29257 if test "${ac_cv_have_decl_strtoull+set}" = set; then
29258 echo $ECHO_N "(cached) $ECHO_C" >&6
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
29271 char *p = (char *) strtoull;
29278 rm -f conftest.$ac_objext
29279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29280 (eval $ac_compile) 2>conftest.er1
29282 grep -v '^ *+' conftest.er1 >conftest.err
29284 cat conftest.err >&5
29285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286 (exit $ac_status); } &&
29287 { ac_try='test -z "$ac_c_werror_flag"
29288 || test ! -s conftest.err'
29289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290 (eval $ac_try) 2>&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); }; } &&
29294 { ac_try='test -s conftest.$ac_objext'
29295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296 (eval $ac_try) 2>&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; }; then
29300 ac_cv_have_decl_strtoull=yes
29302 echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29305 ac_cv_have_decl_strtoull=no
29307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
29310 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
29311 if test $ac_cv_have_decl_strtoull = yes; then
29313 cat >>confdefs.h <<_ACEOF
29314 #define HAVE_DECL_STRTOULL 1
29319 cat >>confdefs.h <<_ACEOF
29320 #define HAVE_DECL_STRTOULL 0
29336 for ac_func in strverscmp
29338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29339 echo "$as_me:$LINENO: checking for $ac_func" >&5
29340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29341 if eval "test \"\${$as_ac_var+set}\" = set"; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29344 cat >conftest.$ac_ext <<_ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h. */
29350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29352 #define $ac_func innocuous_$ac_func
29354 /* System header to define __stub macros and hopefully few prototypes,
29355 which can conflict with char $ac_func (); below.
29356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29357 <limits.h> exists even on freestanding compilers. */
29360 # include <limits.h>
29362 # include <assert.h>
29367 /* Override any gcc2 internal prototype to avoid an error. */
29372 /* We use char because int might match the return type of a gcc2
29373 builtin and then its argument prototype would still apply. */
29375 /* The GNU C library defines this for functions which it implements
29376 to always fail with ENOSYS. Some functions are actually named
29377 something starting with __ and the normal name is an alias. */
29378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29381 char (*f) () = $ac_func;
29390 return f != $ac_func;
29395 rm -f conftest.$ac_objext conftest$ac_exeext
29396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29397 (eval $ac_link) 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_c_werror_flag"
29405 || test ! -s conftest.err'
29406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; } &&
29411 { ac_try='test -s conftest$ac_exeext'
29412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413 (eval $ac_try) 2>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); }; }; then
29417 eval "$as_ac_var=yes"
29419 echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29422 eval "$as_ac_var=no"
29424 rm -f conftest.err conftest.$ac_objext \
29425 conftest$ac_exeext conftest.$ac_ext
29427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29429 if test `eval echo '${'$as_ac_var'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29436 "$ac_func.$ac_objext" | \
29437 *" $ac_func.$ac_objext" | \
29438 "$ac_func.$ac_objext "* | \
29439 *" $ac_func.$ac_objext "* ) ;;
29440 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29447 if test $ac_cv_func_strverscmp = no; then
29455 echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
29456 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
29457 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
29458 echo $ECHO_N "(cached) $ECHO_C" >&6
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29475 $EGREP "yes" >/dev/null 2>&1; then
29480 if test -n "$have_eoverflow"; then
29481 ac_cv_decl_EOVERFLOW=yes
29483 cat >conftest.$ac_ext <<_ACEOF
29486 cat confdefs.h >>conftest.$ac_ext
29487 cat >>conftest.$ac_ext <<_ACEOF
29488 /* end confdefs.h. */
29490 #define _XOPEN_SOURCE_EXTENDED 1
29497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29498 $EGREP "yes" >/dev/null 2>&1; then
29503 if test -n "$have_eoverflow"; then
29504 if test "$cross_compiling" = yes; then
29505 # Depending upon the size, compute the lo and hi bounds.
29506 cat >conftest.$ac_ext <<_ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29513 #define _XOPEN_SOURCE_EXTENDED 1
29515 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29517 #include <stdlib.h>
29522 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
29529 rm -f conftest.$ac_objext
29530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29531 (eval $ac_compile) 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } &&
29538 { ac_try='test -z "$ac_c_werror_flag"
29539 || test ! -s conftest.err'
29540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541 (eval $ac_try) 2>&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; } &&
29545 { ac_try='test -s conftest.$ac_objext'
29546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547 (eval $ac_try) 2>&5
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; }; then
29553 cat >conftest.$ac_ext <<_ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h. */
29560 #define _XOPEN_SOURCE_EXTENDED 1
29562 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29564 #include <stdlib.h>
29569 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
29576 rm -f conftest.$ac_objext
29577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29578 (eval $ac_compile) 2>conftest.er1
29580 grep -v '^ *+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } &&
29585 { ac_try='test -z "$ac_c_werror_flag"
29586 || test ! -s conftest.err'
29587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588 (eval $ac_try) 2>&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest.$ac_objext'
29593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594 (eval $ac_try) 2>&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); }; }; then
29598 ac_hi=$ac_mid; break
29600 echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29603 ac_lo=`expr $ac_mid + 1`
29604 if test $ac_lo -le $ac_mid; then
29608 ac_mid=`expr 2 '*' $ac_mid + 1`
29610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29613 echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29616 cat >conftest.$ac_ext <<_ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h. */
29623 #define _XOPEN_SOURCE_EXTENDED 1
29625 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29627 #include <stdlib.h>
29632 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
29639 rm -f conftest.$ac_objext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29641 (eval $ac_compile) 2>conftest.er1
29643 grep -v '^ *+' conftest.er1 >conftest.err
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
29648 { ac_try='test -z "$ac_c_werror_flag"
29649 || test ! -s conftest.err'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; } &&
29655 { ac_try='test -s conftest.$ac_objext'
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; }; then
29663 cat >conftest.$ac_ext <<_ACEOF
29666 cat confdefs.h >>conftest.$ac_ext
29667 cat >>conftest.$ac_ext <<_ACEOF
29668 /* end confdefs.h. */
29670 #define _XOPEN_SOURCE_EXTENDED 1
29672 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29674 #include <stdlib.h>
29679 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
29686 rm -f conftest.$ac_objext
29687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29688 (eval $ac_compile) 2>conftest.er1
29690 grep -v '^ *+' conftest.er1 >conftest.err
29692 cat conftest.err >&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } &&
29695 { ac_try='test -z "$ac_c_werror_flag"
29696 || test ! -s conftest.err'
29697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698 (eval $ac_try) 2>&5
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); }; } &&
29702 { ac_try='test -s conftest.$ac_objext'
29703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704 (eval $ac_try) 2>&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; }; then
29708 ac_lo=$ac_mid; break
29710 echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.$ac_ext >&5
29713 ac_hi=`expr '(' $ac_mid ')' - 1`
29714 if test $ac_mid -le $ac_hi; then
29718 ac_mid=`expr 2 '*' $ac_mid`
29720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29723 echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29731 # Binary search between lo and hi bounds.
29732 while test "x$ac_lo" != "x$ac_hi"; do
29733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29734 cat >conftest.$ac_ext <<_ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29741 #define _XOPEN_SOURCE_EXTENDED 1
29743 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29745 #include <stdlib.h>
29750 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
29757 rm -f conftest.$ac_objext
29758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29759 (eval $ac_compile) 2>conftest.er1
29761 grep -v '^ *+' conftest.er1 >conftest.err
29763 cat conftest.err >&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } &&
29766 { ac_try='test -z "$ac_c_werror_flag"
29767 || test ! -s conftest.err'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; } &&
29773 { ac_try='test -s conftest.$ac_objext'
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; }; then
29781 echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29784 ac_lo=`expr '(' $ac_mid ')' + 1`
29786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29789 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
29793 if test "$cross_compiling" = yes; then
29794 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29795 See \`config.log' for more details." >&5
29796 echo "$as_me: error: cannot run test program while cross compiling
29797 See \`config.log' for more details." >&2;}
29798 { (exit 1); exit 1; }; }
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29807 #define _XOPEN_SOURCE_EXTENDED 1
29809 /* The following two lines are a workaround against an autoconf-2.52 bug. */
29811 #include <stdlib.h>
29813 long longval () { return EOVERFLOW; }
29814 unsigned long ulongval () { return EOVERFLOW; }
29816 #include <stdlib.h>
29821 FILE *f = fopen ("conftest.val", "w");
29824 if ((EOVERFLOW) < 0)
29826 long i = longval ();
29827 if (i != (EOVERFLOW))
29829 fprintf (f, "%ld\n", i);
29833 unsigned long i = ulongval ();
29834 if (i != (EOVERFLOW))
29836 fprintf (f, "%lu\n", i);
29838 exit (ferror (f) || fclose (f) != 0);
29844 rm -f conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846 (eval $ac_link) 2>&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851 (eval $ac_try) 2>&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); }; }; then
29855 ac_cv_decl_EOVERFLOW=`cat conftest.val`
29857 echo "$as_me: program exited with status $ac_status" >&5
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29867 ac_cv_decl_EOVERFLOW=E2BIG
29872 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
29873 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
29874 if test "$ac_cv_decl_EOVERFLOW" != yes; then
29876 cat >>confdefs.h <<_ACEOF
29877 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
29880 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
29885 echo "$as_me:$LINENO: checking for signed" >&5
29886 echo $ECHO_N "checking for signed... $ECHO_C" >&6
29887 if test "${bh_cv_c_signed+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29890 cat >conftest.$ac_ext <<_ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h. */
29905 rm -f conftest.$ac_objext
29906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29907 (eval $ac_compile) 2>conftest.er1
29909 grep -v '^ *+' conftest.er1 >conftest.err
29911 cat conftest.err >&5
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } &&
29914 { ac_try='test -z "$ac_c_werror_flag"
29915 || test ! -s conftest.err'
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; } &&
29921 { ac_try='test -s conftest.$ac_objext'
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; }; then
29929 echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29936 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
29937 echo "${ECHO_T}$bh_cv_c_signed" >&6
29938 if test $bh_cv_c_signed = no; then
29940 cat >>confdefs.h <<\_ACEOF
29947 echo "$as_me:$LINENO: checking for wchar_t" >&5
29948 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
29949 if test "${gt_cv_c_wchar_t+set}" = set; then
29950 echo $ECHO_N "(cached) $ECHO_C" >&6
29952 cat >conftest.$ac_ext <<_ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h. */
29958 #include <stddef.h>
29959 wchar_t foo = (wchar_t)'\0';
29968 rm -f conftest.$ac_objext
29969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29970 (eval $ac_compile) 2>conftest.er1
29972 grep -v '^ *+' conftest.er1 >conftest.err
29974 cat conftest.err >&5
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); } &&
29977 { ac_try='test -z "$ac_c_werror_flag"
29978 || test ! -s conftest.err'
29979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980 (eval $ac_try) 2>&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; } &&
29984 { ac_try='test -s conftest.$ac_objext'
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; }; then
29990 gt_cv_c_wchar_t=yes
29992 echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29999 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
30000 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
30001 if test $gt_cv_c_wchar_t = yes; then
30003 cat >>confdefs.h <<\_ACEOF
30004 #define HAVE_WCHAR_T 1
30010 echo "$as_me:$LINENO: checking for wint_t" >&5
30011 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
30012 if test "${gt_cv_c_wint_t+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30015 cat >conftest.$ac_ext <<_ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h. */
30022 wint_t foo = (wchar_t)'\0';
30031 rm -f conftest.$ac_objext
30032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30033 (eval $ac_compile) 2>conftest.er1
30035 grep -v '^ *+' conftest.er1 >conftest.err
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } &&
30040 { ac_try='test -z "$ac_c_werror_flag"
30041 || test ! -s conftest.err'
30042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30043 (eval $ac_try) 2>&5
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; } &&
30047 { ac_try='test -s conftest.$ac_objext'
30048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30049 (eval $ac_try) 2>&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30062 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
30063 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
30064 if test $gt_cv_c_wint_t = yes; then
30066 cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_WINT_T 1
30075 echo "$as_me:$LINENO: checking for intmax_t" >&5
30076 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
30077 if test "${gt_cv_c_intmax_t+set}" = set; then
30078 echo $ECHO_N "(cached) $ECHO_C" >&6
30080 cat >conftest.$ac_ext <<_ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30087 #include <stddef.h>
30088 #include <stdlib.h>
30089 #if HAVE_STDINT_H_WITH_UINTMAX
30090 #include <stdint.h>
30092 #if HAVE_INTTYPES_H_WITH_UINTMAX
30093 #include <inttypes.h>
30104 rm -f conftest.$ac_objext
30105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30106 (eval $ac_compile) 2>conftest.er1
30108 grep -v '^ *+' conftest.er1 >conftest.err
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag"
30114 || test ! -s conftest.err'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
30126 gt_cv_c_intmax_t=yes
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 gt_cv_c_intmax_t=no
30133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30135 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
30136 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
30137 if test $gt_cv_c_intmax_t = yes; then
30139 cat >>confdefs.h <<\_ACEOF
30140 #define HAVE_INTMAX_T 1
30145 test $ac_cv_type_long_long = yes \
30146 && ac_type='long long' \
30149 cat >>confdefs.h <<_ACEOF
30150 #define intmax_t $ac_type
30158 for ac_func in vasnprintf
30160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30161 echo "$as_me:$LINENO: checking for $ac_func" >&5
30162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30163 if eval "test \"\${$as_ac_var+set}\" = set"; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 cat >conftest.$ac_ext <<_ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h. */
30172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30174 #define $ac_func innocuous_$ac_func
30176 /* System header to define __stub macros and hopefully few prototypes,
30177 which can conflict with char $ac_func (); below.
30178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30179 <limits.h> exists even on freestanding compilers. */
30182 # include <limits.h>
30184 # include <assert.h>
30189 /* Override any gcc2 internal prototype to avoid an error. */
30194 /* We use char because int might match the return type of a gcc2
30195 builtin and then its argument prototype would still apply. */
30197 /* The GNU C library defines this for functions which it implements
30198 to always fail with ENOSYS. Some functions are actually named
30199 something starting with __ and the normal name is an alias. */
30200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30203 char (*f) () = $ac_func;
30212 return f != $ac_func;
30217 rm -f conftest.$ac_objext conftest$ac_exeext
30218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30219 (eval $ac_link) 2>conftest.er1
30221 grep -v '^ *+' conftest.er1 >conftest.err
30223 cat conftest.err >&5
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } &&
30226 { ac_try='test -z "$ac_c_werror_flag"
30227 || test ! -s conftest.err'
30228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229 (eval $ac_try) 2>&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; } &&
30233 { ac_try='test -s conftest$ac_exeext'
30234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235 (eval $ac_try) 2>&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); }; }; then
30239 eval "$as_ac_var=yes"
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30244 eval "$as_ac_var=no"
30246 rm -f conftest.err conftest.$ac_objext \
30247 conftest$ac_exeext conftest.$ac_ext
30249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30251 if test `eval echo '${'$as_ac_var'}'` = yes; then
30252 cat >>confdefs.h <<_ACEOF
30253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30258 "$ac_func.$ac_objext" | \
30259 *" $ac_func.$ac_objext" | \
30260 "$ac_func.$ac_objext "* | \
30261 *" $ac_func.$ac_objext "* ) ;;
30262 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30269 if test $ac_cv_func_vasnprintf = no; then
30271 "printf-args.$ac_objext" | \
30272 *" printf-args.$ac_objext" | \
30273 "printf-args.$ac_objext "* | \
30274 *" printf-args.$ac_objext "* ) ;;
30275 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
30279 "printf-parse.$ac_objext" | \
30280 *" printf-parse.$ac_objext" | \
30281 "printf-parse.$ac_objext "* | \
30282 *" printf-parse.$ac_objext "* ) ;;
30283 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
30287 "asnprintf.$ac_objext" | \
30288 *" asnprintf.$ac_objext" | \
30289 "asnprintf.$ac_objext "* | \
30290 *" asnprintf.$ac_objext "* ) ;;
30291 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
30307 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
30308 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
30309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 cat >conftest.$ac_ext <<_ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h. */
30318 $ac_includes_default
30322 if ((ptrdiff_t *) 0)
30324 if (sizeof (ptrdiff_t))
30330 rm -f conftest.$ac_objext
30331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30332 (eval $ac_compile) 2>conftest.er1
30334 grep -v '^ *+' conftest.er1 >conftest.err
30336 cat conftest.err >&5
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } &&
30339 { ac_try='test -z "$ac_c_werror_flag"
30340 || test ! -s conftest.err'
30341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342 (eval $ac_try) 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30348 (eval $ac_try) 2>&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; }; then
30352 ac_cv_type_ptrdiff_t=yes
30354 echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30357 ac_cv_type_ptrdiff_t=no
30359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30361 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
30362 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
30363 if test $ac_cv_type_ptrdiff_t = yes; then
30365 cat >>confdefs.h <<_ACEOF
30366 #define HAVE_PTRDIFF_T 1
30382 for ac_func in snprintf wcslen
30384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30385 echo "$as_me:$LINENO: checking for $ac_func" >&5
30386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30387 if eval "test \"\${$as_ac_var+set}\" = set"; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30390 cat >conftest.$ac_ext <<_ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30398 #define $ac_func innocuous_$ac_func
30400 /* System header to define __stub macros and hopefully few prototypes,
30401 which can conflict with char $ac_func (); below.
30402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30403 <limits.h> exists even on freestanding compilers. */
30406 # include <limits.h>
30408 # include <assert.h>
30413 /* Override any gcc2 internal prototype to avoid an error. */
30418 /* We use char because int might match the return type of a gcc2
30419 builtin and then its argument prototype would still apply. */
30421 /* The GNU C library defines this for functions which it implements
30422 to always fail with ENOSYS. Some functions are actually named
30423 something starting with __ and the normal name is an alias. */
30424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30427 char (*f) () = $ac_func;
30436 return f != $ac_func;
30441 rm -f conftest.$ac_objext conftest$ac_exeext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30443 (eval $ac_link) 2>conftest.er1
30445 grep -v '^ *+' conftest.er1 >conftest.err
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_c_werror_flag"
30451 || test ! -s conftest.err'
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest$ac_exeext'
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 eval "$as_ac_var=yes"
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30468 eval "$as_ac_var=no"
30470 rm -f conftest.err conftest.$ac_objext \
30471 conftest$ac_exeext conftest.$ac_ext
30473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30475 if test `eval echo '${'$as_ac_var'}'` = yes; then
30476 cat >>confdefs.h <<_ACEOF
30477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30490 for ac_func in vasprintf
30492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30493 echo "$as_me:$LINENO: checking for $ac_func" >&5
30494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30495 if eval "test \"\${$as_ac_var+set}\" = set"; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 cat >conftest.$ac_ext <<_ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30506 #define $ac_func innocuous_$ac_func
30508 /* System header to define __stub macros and hopefully few prototypes,
30509 which can conflict with char $ac_func (); below.
30510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30511 <limits.h> exists even on freestanding compilers. */
30514 # include <limits.h>
30516 # include <assert.h>
30521 /* Override any gcc2 internal prototype to avoid an error. */
30526 /* We use char because int might match the return type of a gcc2
30527 builtin and then its argument prototype would still apply. */
30529 /* The GNU C library defines this for functions which it implements
30530 to always fail with ENOSYS. Some functions are actually named
30531 something starting with __ and the normal name is an alias. */
30532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30535 char (*f) () = $ac_func;
30544 return f != $ac_func;
30549 rm -f conftest.$ac_objext conftest$ac_exeext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30551 (eval $ac_link) 2>conftest.er1
30553 grep -v '^ *+' conftest.er1 >conftest.err
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag"
30559 || test ! -s conftest.err'
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest$ac_exeext'
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 eval "$as_ac_var=yes"
30573 echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30576 eval "$as_ac_var=no"
30578 rm -f conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
30581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30583 if test `eval echo '${'$as_ac_var'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30590 "$ac_func.$ac_objext" | \
30591 *" $ac_func.$ac_objext" | \
30592 "$ac_func.$ac_objext "* | \
30593 *" $ac_func.$ac_objext "* ) ;;
30594 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30601 if test $ac_cv_func_vasprintf = no; then
30603 "asprintf.$ac_objext" | \
30604 *" asprintf.$ac_objext" | \
30605 "asprintf.$ac_objext "* | \
30606 *" asprintf.$ac_objext "* ) ;;
30607 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
30636 echo "$as_me:$LINENO: checking for struct timespec" >&5
30637 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
30638 if test "${fu_cv_sys_struct_timespec+set}" = set; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 cat >conftest.$ac_ext <<_ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h. */
30648 # if TIME_WITH_SYS_TIME
30649 # include <sys/time.h>
30652 # if HAVE_SYS_TIME_H
30653 # include <sys/time.h>
30662 static struct timespec x; x.tv_sec = x.tv_nsec;
30667 rm -f conftest.$ac_objext
30668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30669 (eval $ac_compile) 2>conftest.er1
30671 grep -v '^ *+' conftest.er1 >conftest.err
30673 cat conftest.err >&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } &&
30676 { ac_try='test -z "$ac_c_werror_flag"
30677 || test ! -s conftest.err'
30678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679 (eval $ac_try) 2>&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); }; } &&
30683 { ac_try='test -s conftest.$ac_objext'
30684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685 (eval $ac_try) 2>&5
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); }; }; then
30689 fu_cv_sys_struct_timespec=yes
30691 echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30694 fu_cv_sys_struct_timespec=no
30696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30699 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
30700 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
30702 if test $fu_cv_sys_struct_timespec = yes; then
30704 cat >>confdefs.h <<\_ACEOF
30705 #define HAVE_STRUCT_TIMESPEC 1
30710 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
30711 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
30712 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30715 ac_save_CPPFLAGS="$CPPFLAGS"
30716 ac_cv_struct_st_mtim_nsec=no
30717 # tv_nsec -- the usual case
30718 # _tv_nsec -- Solaris 2.6, if
30719 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
30720 # && !defined __EXTENSIONS__)
30721 # st__tim.tv_nsec -- UnixWare 2.1.2
30722 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
30723 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
30724 cat >conftest.$ac_ext <<_ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h. */
30730 #include <sys/types.h>
30731 #include <sys/stat.h>
30735 struct stat s; s.st_mtim.ST_MTIM_NSEC;
30740 rm -f conftest.$ac_objext
30741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30742 (eval $ac_compile) 2>conftest.er1
30744 grep -v '^ *+' conftest.er1 >conftest.err
30746 cat conftest.err >&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); } &&
30749 { ac_try='test -z "$ac_c_werror_flag"
30750 || test ! -s conftest.err'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; } &&
30756 { ac_try='test -s conftest.$ac_objext'
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; }; then
30762 ac_cv_struct_st_mtim_nsec=$ac_val; break
30764 echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30770 CPPFLAGS="$ac_save_CPPFLAGS"
30772 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
30773 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
30775 if test $ac_cv_struct_st_mtim_nsec != no; then
30777 cat >>confdefs.h <<_ACEOF
30778 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
30787 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
30788 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
30789 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30804 char *p = (char *) nanosleep;
30811 rm -f conftest.$ac_objext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30813 (eval $ac_compile) 2>conftest.er1
30815 grep -v '^ *+' conftest.er1 >conftest.err
30817 cat conftest.err >&5
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); } &&
30820 { ac_try='test -z "$ac_c_werror_flag"
30821 || test ! -s conftest.err'
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest.$ac_objext'
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 ac_cv_have_decl_nanosleep=yes
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30838 ac_cv_have_decl_nanosleep=no
30840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
30843 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
30844 if test $ac_cv_have_decl_nanosleep = yes; then
30846 cat >>confdefs.h <<_ACEOF
30847 #define HAVE_DECL_NANOSLEEP 1
30852 cat >>confdefs.h <<_ACEOF
30853 #define HAVE_DECL_NANOSLEEP 0
30862 # getdate.y works with bison only.
30863 : ${YACC='bison -y'}
30866 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30867 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30868 if test "${ac_cv_struct_tm+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30871 cat >conftest.$ac_ext <<_ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h. */
30877 #include <sys/types.h>
30883 struct tm *tp; tp->tm_sec;
30888 rm -f conftest.$ac_objext
30889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30890 (eval $ac_compile) 2>conftest.er1
30892 grep -v '^ *+' conftest.er1 >conftest.err
30894 cat conftest.err >&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } &&
30897 { ac_try='test -z "$ac_c_werror_flag"
30898 || test ! -s conftest.err'
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; } &&
30904 { ac_try='test -s conftest.$ac_objext'
30905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30906 (eval $ac_try) 2>&5
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; }; then
30910 ac_cv_struct_tm=time.h
30912 echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30915 ac_cv_struct_tm=sys/time.h
30917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30919 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30920 echo "${ECHO_T}$ac_cv_struct_tm" >&6
30921 if test $ac_cv_struct_tm = sys/time.h; then
30923 cat >>confdefs.h <<\_ACEOF
30924 #define TM_IN_SYS_TIME 1
30930 # dnl Persuade glibc <time.h> to declare these functions.
30933 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30934 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30936 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
30937 # programs in the package would end up linked with that potentially-shared
30938 # library, inducing unnecessary run-time overhead.
30939 fetish_saved_libs=$LIBS
30940 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
30941 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
30942 if test "${ac_cv_search_clock_gettime+set}" = set; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30945 ac_func_search_save_LIBS=$LIBS
30946 ac_cv_search_clock_gettime=no
30947 cat >conftest.$ac_ext <<_ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h. */
30954 /* Override any gcc2 internal prototype to avoid an error. */
30958 /* We use char because int might match the return type of a gcc2
30959 builtin and then its argument prototype would still apply. */
30960 char clock_gettime ();
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30971 (eval $ac_link) 2>conftest.er1
30973 grep -v '^ *+' conftest.er1 >conftest.err
30975 cat conftest.err >&5
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); } &&
30978 { ac_try='test -z "$ac_c_werror_flag"
30979 || test ! -s conftest.err'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest$ac_exeext'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 ac_cv_search_clock_gettime="none required"
30993 echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30997 rm -f conftest.err conftest.$ac_objext \
30998 conftest$ac_exeext conftest.$ac_ext
30999 if test "$ac_cv_search_clock_gettime" = no; then
31000 for ac_lib in rt posix4; do
31001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31002 cat >conftest.$ac_ext <<_ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h. */
31009 /* Override any gcc2 internal prototype to avoid an error. */
31013 /* We use char because int might match the return type of a gcc2
31014 builtin and then its argument prototype would still apply. */
31015 char clock_gettime ();
31024 rm -f conftest.$ac_objext conftest$ac_exeext
31025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026 (eval $ac_link) 2>conftest.er1
31028 grep -v '^ *+' conftest.er1 >conftest.err
31030 cat conftest.err >&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); } &&
31033 { ac_try='test -z "$ac_c_werror_flag"
31034 || test ! -s conftest.err'
31035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31036 (eval $ac_try) 2>&5
31038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039 (exit $ac_status); }; } &&
31040 { ac_try='test -s conftest$ac_exeext'
31041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042 (eval $ac_try) 2>&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; }; then
31046 ac_cv_search_clock_gettime="-l$ac_lib"
31049 echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31053 rm -f conftest.err conftest.$ac_objext \
31054 conftest$ac_exeext conftest.$ac_ext
31057 LIBS=$ac_func_search_save_LIBS
31059 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31060 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31061 if test "$ac_cv_search_clock_gettime" != no; then
31062 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
31063 test "$ac_cv_search_clock_gettime" = "none required" ||
31064 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
31070 for ac_func in clock_gettime clock_settime
31072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31073 echo "$as_me:$LINENO: checking for $ac_func" >&5
31074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31075 if eval "test \"\${$as_ac_var+set}\" = set"; then
31076 echo $ECHO_N "(cached) $ECHO_C" >&6
31078 cat >conftest.$ac_ext <<_ACEOF
31081 cat confdefs.h >>conftest.$ac_ext
31082 cat >>conftest.$ac_ext <<_ACEOF
31083 /* end confdefs.h. */
31084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31086 #define $ac_func innocuous_$ac_func
31088 /* System header to define __stub macros and hopefully few prototypes,
31089 which can conflict with char $ac_func (); below.
31090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31091 <limits.h> exists even on freestanding compilers. */
31094 # include <limits.h>
31096 # include <assert.h>
31101 /* Override any gcc2 internal prototype to avoid an error. */
31106 /* We use char because int might match the return type of a gcc2
31107 builtin and then its argument prototype would still apply. */
31109 /* The GNU C library defines this for functions which it implements
31110 to always fail with ENOSYS. Some functions are actually named
31111 something starting with __ and the normal name is an alias. */
31112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31115 char (*f) () = $ac_func;
31124 return f != $ac_func;
31129 rm -f conftest.$ac_objext conftest$ac_exeext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31131 (eval $ac_link) 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } &&
31138 { ac_try='test -z "$ac_c_werror_flag"
31139 || test ! -s conftest.err'
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; } &&
31145 { ac_try='test -s conftest$ac_exeext'
31146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147 (eval $ac_try) 2>&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); }; }; then
31151 eval "$as_ac_var=yes"
31153 echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31156 eval "$as_ac_var=no"
31158 rm -f conftest.err conftest.$ac_objext \
31159 conftest$ac_exeext conftest.$ac_ext
31161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31163 if test `eval echo '${'$as_ac_var'}'` = yes; then
31164 cat >>confdefs.h <<_ACEOF
31165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31171 LIBS=$fetish_saved_libs
31174 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
31175 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
31176 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
31177 echo $ECHO_N "(cached) $ECHO_C" >&6
31179 cat >conftest.$ac_ext <<_ACEOF
31182 cat confdefs.h >>conftest.$ac_ext
31183 cat >>conftest.$ac_ext <<_ACEOF
31184 /* end confdefs.h. */
31190 static struct tm ac_aggr;
31191 if (ac_aggr.tm_gmtoff)
31197 rm -f conftest.$ac_objext
31198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31199 (eval $ac_compile) 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } &&
31206 { ac_try='test -z "$ac_c_werror_flag"
31207 || test ! -s conftest.err'
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; } &&
31213 { ac_try='test -s conftest.$ac_objext'
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31219 ac_cv_member_struct_tm_tm_gmtoff=yes
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 cat >conftest.$ac_ext <<_ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h. */
31235 static struct tm ac_aggr;
31236 if (sizeof ac_aggr.tm_gmtoff)
31242 rm -f conftest.$ac_objext
31243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31244 (eval $ac_compile) 2>conftest.er1
31246 grep -v '^ *+' conftest.er1 >conftest.err
31248 cat conftest.err >&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); } &&
31251 { ac_try='test -z "$ac_c_werror_flag"
31252 || test ! -s conftest.err'
31253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31254 (eval $ac_try) 2>&5
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; } &&
31258 { ac_try='test -s conftest.$ac_objext'
31259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31260 (eval $ac_try) 2>&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); }; }; then
31264 ac_cv_member_struct_tm_tm_gmtoff=yes
31266 echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31269 ac_cv_member_struct_tm_tm_gmtoff=no
31271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
31276 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
31277 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
31279 cat >>confdefs.h <<\_ACEOF
31280 #define HAVE_TM_GMTOFF 1
31299 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
31301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31302 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 cat >conftest.$ac_ext <<_ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h. */
31310 #include <sys/types.h>
31311 #include <$ac_cv_struct_tm>
31317 static struct tm ac_aggr;
31318 if (ac_aggr.tm_zone)
31324 rm -f conftest.$ac_objext
31325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31326 (eval $ac_compile) 2>conftest.er1
31328 grep -v '^ *+' conftest.er1 >conftest.err
31330 cat conftest.err >&5
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } &&
31333 { ac_try='test -z "$ac_c_werror_flag"
31334 || test ! -s conftest.err'
31335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31336 (eval $ac_try) 2>&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); }; } &&
31340 { ac_try='test -s conftest.$ac_objext'
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; }; then
31346 ac_cv_member_struct_tm_tm_zone=yes
31348 echo "$as_me: failed program was:" >&5
31349 sed 's/^/| /' conftest.$ac_ext >&5
31351 cat >conftest.$ac_ext <<_ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h. */
31357 #include <sys/types.h>
31358 #include <$ac_cv_struct_tm>
31364 static struct tm ac_aggr;
31365 if (sizeof ac_aggr.tm_zone)
31371 rm -f conftest.$ac_objext
31372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31373 (eval $ac_compile) 2>conftest.er1
31375 grep -v '^ *+' conftest.er1 >conftest.err
31377 cat conftest.err >&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); } &&
31380 { ac_try='test -z "$ac_c_werror_flag"
31381 || test ! -s conftest.err'
31382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383 (eval $ac_try) 2>&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; } &&
31387 { ac_try='test -s conftest.$ac_objext'
31388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31389 (eval $ac_try) 2>&5
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; }; then
31393 ac_cv_member_struct_tm_tm_zone=yes
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ac_cv_member_struct_tm_tm_zone=no
31400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
31406 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31408 cat >>confdefs.h <<_ACEOF
31409 #define HAVE_STRUCT_TM_TM_ZONE 1
31415 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31417 cat >>confdefs.h <<\_ACEOF
31418 #define HAVE_TM_ZONE 1
31422 echo "$as_me:$LINENO: checking for tzname" >&5
31423 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
31424 if test "${ac_cv_var_tzname+set}" = set; then
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
31427 cat >conftest.$ac_ext <<_ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h. */
31434 #ifndef tzname /* For SGI. */
31435 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
31446 rm -f conftest.$ac_objext conftest$ac_exeext
31447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31448 (eval $ac_link) 2>conftest.er1
31450 grep -v '^ *+' conftest.er1 >conftest.err
31452 cat conftest.err >&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } &&
31455 { ac_try='test -z "$ac_c_werror_flag"
31456 || test ! -s conftest.err'
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); }; } &&
31462 { ac_try='test -s conftest$ac_exeext'
31463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31464 (eval $ac_try) 2>&5
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); }; }; then
31468 ac_cv_var_tzname=yes
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31473 ac_cv_var_tzname=no
31475 rm -f conftest.err conftest.$ac_objext \
31476 conftest$ac_exeext conftest.$ac_ext
31478 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
31479 echo "${ECHO_T}$ac_cv_var_tzname" >&6
31480 if test $ac_cv_var_tzname = yes; then
31482 cat >>confdefs.h <<\_ACEOF
31483 #define HAVE_TZNAME 1
31493 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
31494 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
31495 case " $LIBOBJS " in
31496 *" getndelim2.$ac_objext "* ) ;;
31497 *) case $LIBOBJS in
31498 "getndelim2.$ac_objext" | \
31499 *" getndelim2.$ac_objext" | \
31500 "getndelim2.$ac_objext "* | \
31501 *" getndelim2.$ac_objext "* ) ;;
31502 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
31514 if test -z "$GETOPT_H"; then
31517 for ac_header in getopt.h
31519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31521 echo "$as_me:$LINENO: checking for $ac_header" >&5
31522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31529 # Is the header compilable?
31530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31532 cat >conftest.$ac_ext <<_ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h. */
31538 $ac_includes_default
31539 #include <$ac_header>
31541 rm -f conftest.$ac_objext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31543 (eval $ac_compile) 2>conftest.er1
31545 grep -v '^ *+' conftest.er1 >conftest.err
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag"
31551 || test ! -s conftest.err'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; } &&
31557 { ac_try='test -s conftest.$ac_objext'
31558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559 (eval $ac_try) 2>&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); }; }; then
31563 ac_header_compiler=yes
31565 echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31568 ac_header_compiler=no
31570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31572 echo "${ECHO_T}$ac_header_compiler" >&6
31574 # Is the header present?
31575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 #include <$ac_header>
31585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31588 grep -v '^ *+' conftest.er1 >conftest.err
31590 cat conftest.err >&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } >/dev/null; then
31593 if test -s conftest.err; then
31594 ac_cpp_err=$ac_c_preproc_warn_flag
31595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31602 if test -z "$ac_cpp_err"; then
31603 ac_header_preproc=yes
31605 echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31608 ac_header_preproc=no
31610 rm -f conftest.err conftest.$ac_ext
31611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31612 echo "${ECHO_T}$ac_header_preproc" >&6
31614 # So? What about this header?
31615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31621 ac_header_preproc=yes
31624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31638 ## ------------------------------------ ##
31639 ## Report this to bug-coreutils@gnu.org ##
31640 ## ------------------------------------ ##
31643 sed "s/^/$as_me: WARNING: /" >&2
31646 echo "$as_me:$LINENO: checking for $ac_header" >&5
31647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31651 eval "$as_ac_Header=\$ac_header_preproc"
31653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31658 cat >>confdefs.h <<_ACEOF
31659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31669 for ac_func in getopt_long_only
31671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31672 echo "$as_me:$LINENO: checking for $ac_func" >&5
31673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31674 if eval "test \"\${$as_ac_var+set}\" = set"; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31677 cat >conftest.$ac_ext <<_ACEOF
31680 cat confdefs.h >>conftest.$ac_ext
31681 cat >>conftest.$ac_ext <<_ACEOF
31682 /* end confdefs.h. */
31683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31685 #define $ac_func innocuous_$ac_func
31687 /* System header to define __stub macros and hopefully few prototypes,
31688 which can conflict with char $ac_func (); below.
31689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31690 <limits.h> exists even on freestanding compilers. */
31693 # include <limits.h>
31695 # include <assert.h>
31700 /* Override any gcc2 internal prototype to avoid an error. */
31705 /* We use char because int might match the return type of a gcc2
31706 builtin and then its argument prototype would still apply. */
31708 /* The GNU C library defines this for functions which it implements
31709 to always fail with ENOSYS. Some functions are actually named
31710 something starting with __ and the normal name is an alias. */
31711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31714 char (*f) () = $ac_func;
31723 return f != $ac_func;
31728 rm -f conftest.$ac_objext conftest$ac_exeext
31729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31730 (eval $ac_link) 2>conftest.er1
31732 grep -v '^ *+' conftest.er1 >conftest.err
31734 cat conftest.err >&5
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); } &&
31737 { ac_try='test -z "$ac_c_werror_flag"
31738 || test ! -s conftest.err'
31739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740 (eval $ac_try) 2>&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest$ac_exeext'
31745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746 (eval $ac_try) 2>&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; }; then
31750 eval "$as_ac_var=yes"
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31755 eval "$as_ac_var=no"
31757 rm -f conftest.err conftest.$ac_objext \
31758 conftest$ac_exeext conftest.$ac_ext
31760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31762 if test `eval echo '${'$as_ac_var'}'` = yes; then
31763 cat >>confdefs.h <<_ACEOF
31764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31773 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
31774 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
31775 if test "${ac_cv_have_decl_optreset+set}" = set; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31778 cat >conftest.$ac_ext <<_ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h. */
31784 #include <getopt.h>
31790 char *p = (char *) optreset;
31797 rm -f conftest.$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799 (eval $ac_compile) 2>conftest.er1
31801 grep -v '^ *+' conftest.er1 >conftest.err
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } &&
31806 { ac_try='test -z "$ac_c_werror_flag"
31807 || test ! -s conftest.err'
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest.$ac_objext'
31814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815 (eval $ac_try) 2>&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; }; then
31819 ac_cv_have_decl_optreset=yes
31821 echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 ac_cv_have_decl_optreset=no
31826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
31829 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
31830 if test $ac_cv_have_decl_optreset = yes; then
31835 if test -n "$GETOPT_H"; then
31839 "getopt.$ac_objext" | \
31840 *" getopt.$ac_objext" | \
31841 "getopt.$ac_objext "* | \
31842 *" getopt.$ac_objext "* ) ;;
31843 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
31847 "getopt1.$ac_objext" | \
31848 *" getopt1.$ac_objext" | \
31849 "getopt1.$ac_objext "* | \
31850 *" getopt1.$ac_objext "* ) ;;
31851 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
31855 cat >>confdefs.h <<\_ACEOF
31856 #define __GETOPT_PREFIX rpl_
31876 for ac_header in OS.h
31878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31880 echo "$as_me:$LINENO: checking for $ac_header" >&5
31881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31883 echo $ECHO_N "(cached) $ECHO_C" >&6
31885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31888 # Is the header compilable?
31889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31891 cat >conftest.$ac_ext <<_ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h. */
31897 $ac_includes_default
31898 #include <$ac_header>
31900 rm -f conftest.$ac_objext
31901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31902 (eval $ac_compile) 2>conftest.er1
31904 grep -v '^ *+' conftest.er1 >conftest.err
31906 cat conftest.err >&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); } &&
31909 { ac_try='test -z "$ac_c_werror_flag"
31910 || test ! -s conftest.err'
31911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912 (eval $ac_try) 2>&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; } &&
31916 { ac_try='test -s conftest.$ac_objext'
31917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31918 (eval $ac_try) 2>&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; }; then
31922 ac_header_compiler=yes
31924 echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31927 ac_header_compiler=no
31929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31931 echo "${ECHO_T}$ac_header_compiler" >&6
31933 # Is the header present?
31934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31936 cat >conftest.$ac_ext <<_ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h. */
31942 #include <$ac_header>
31944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31947 grep -v '^ *+' conftest.er1 >conftest.err
31949 cat conftest.err >&5
31950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951 (exit $ac_status); } >/dev/null; then
31952 if test -s conftest.err; then
31953 ac_cpp_err=$ac_c_preproc_warn_flag
31954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31961 if test -z "$ac_cpp_err"; then
31962 ac_header_preproc=yes
31964 echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31967 ac_header_preproc=no
31969 rm -f conftest.err conftest.$ac_ext
31970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31971 echo "${ECHO_T}$ac_header_preproc" >&6
31973 # So? What about this header?
31974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31980 ac_header_preproc=yes
31983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31997 ## ------------------------------------ ##
31998 ## Report this to bug-coreutils@gnu.org ##
31999 ## ------------------------------------ ##
32002 sed "s/^/$as_me: WARNING: /" >&2
32005 echo "$as_me:$LINENO: checking for $ac_header" >&5
32006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32010 eval "$as_ac_Header=\$ac_header_preproc"
32012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32017 cat >>confdefs.h <<_ACEOF
32018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32026 for ac_func in getpagesize
32028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32029 echo "$as_me:$LINENO: checking for $ac_func" >&5
32030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32031 if eval "test \"\${$as_ac_var+set}\" = set"; then
32032 echo $ECHO_N "(cached) $ECHO_C" >&6
32034 cat >conftest.$ac_ext <<_ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h. */
32040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32042 #define $ac_func innocuous_$ac_func
32044 /* System header to define __stub macros and hopefully few prototypes,
32045 which can conflict with char $ac_func (); below.
32046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32047 <limits.h> exists even on freestanding compilers. */
32050 # include <limits.h>
32052 # include <assert.h>
32057 /* Override any gcc2 internal prototype to avoid an error. */
32062 /* We use char because int might match the return type of a gcc2
32063 builtin and then its argument prototype would still apply. */
32065 /* The GNU C library defines this for functions which it implements
32066 to always fail with ENOSYS. Some functions are actually named
32067 something starting with __ and the normal name is an alias. */
32068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32071 char (*f) () = $ac_func;
32080 return f != $ac_func;
32085 rm -f conftest.$ac_objext conftest$ac_exeext
32086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32087 (eval $ac_link) 2>conftest.er1
32089 grep -v '^ *+' conftest.er1 >conftest.err
32091 cat conftest.err >&5
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); } &&
32094 { ac_try='test -z "$ac_c_werror_flag"
32095 || test ! -s conftest.err'
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest$ac_exeext'
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 eval "$as_ac_var=yes"
32109 echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32112 eval "$as_ac_var=no"
32114 rm -f conftest.err conftest.$ac_objext \
32115 conftest$ac_exeext conftest.$ac_ext
32117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32119 if test `eval echo '${'$as_ac_var'}'` = yes; then
32120 cat >>confdefs.h <<_ACEOF
32121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32130 for ac_func in gettimeofday
32132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32133 echo "$as_me:$LINENO: checking for $ac_func" >&5
32134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32135 if eval "test \"\${$as_ac_var+set}\" = set"; then
32136 echo $ECHO_N "(cached) $ECHO_C" >&6
32138 cat >conftest.$ac_ext <<_ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32146 #define $ac_func innocuous_$ac_func
32148 /* System header to define __stub macros and hopefully few prototypes,
32149 which can conflict with char $ac_func (); below.
32150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32151 <limits.h> exists even on freestanding compilers. */
32154 # include <limits.h>
32156 # include <assert.h>
32161 /* Override any gcc2 internal prototype to avoid an error. */
32166 /* We use char because int might match the return type of a gcc2
32167 builtin and then its argument prototype would still apply. */
32169 /* The GNU C library defines this for functions which it implements
32170 to always fail with ENOSYS. Some functions are actually named
32171 something starting with __ and the normal name is an alias. */
32172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32175 char (*f) () = $ac_func;
32184 return f != $ac_func;
32189 rm -f conftest.$ac_objext conftest$ac_exeext
32190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32191 (eval $ac_link) 2>conftest.er1
32193 grep -v '^ *+' conftest.er1 >conftest.err
32195 cat conftest.err >&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); } &&
32198 { ac_try='test -z "$ac_c_werror_flag"
32199 || test ! -s conftest.err'
32200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201 (eval $ac_try) 2>&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); }; } &&
32205 { ac_try='test -s conftest$ac_exeext'
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; }; then
32211 eval "$as_ac_var=yes"
32213 echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32216 eval "$as_ac_var=no"
32218 rm -f conftest.err conftest.$ac_objext \
32219 conftest$ac_exeext conftest.$ac_ext
32221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32223 if test `eval echo '${'$as_ac_var'}'` = yes; then
32224 cat >>confdefs.h <<_ACEOF
32225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32251 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
32252 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
32253 if test "${ac_cv_type_getgroups+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32256 if test "$cross_compiling" = yes; then
32257 ac_cv_type_getgroups=cross
32259 cat >conftest.$ac_ext <<_ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 /* Thanks to Mike Rendell for this test. */
32266 #include <sys/types.h>
32269 #define MAX(x, y) ((x) > (y) ? (x) : (y))
32274 gid_t gidset[NGID];
32276 union { gid_t gval; long lval; } val;
32279 for (i = 0; i < NGID; i++)
32280 gidset[i] = val.gval;
32281 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
32283 /* Exit non-zero if getgroups seems to require an array of ints. This
32284 happens when gid_t is short but getgroups modifies an array of ints. */
32285 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
32288 rm -f conftest$ac_exeext
32289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32290 (eval $ac_link) 2>&5
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
32299 ac_cv_type_getgroups=gid_t
32301 echo "$as_me: program exited with status $ac_status" >&5
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32305 ( exit $ac_status )
32306 ac_cv_type_getgroups=int
32308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32310 if test $ac_cv_type_getgroups = cross; then
32311 cat >conftest.$ac_ext <<_ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32317 #include <unistd.h>
32320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32321 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
32322 ac_cv_type_getgroups=gid_t
32324 ac_cv_type_getgroups=int
32330 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
32331 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
32333 cat >>confdefs.h <<_ACEOF
32334 #define GETGROUPS_T $ac_cv_type_getgroups
32374 # Check whether --with-afs or --without-afs was given.
32375 if test "${with_afs+set}" = set; then
32376 withval="$with_afs"
32377 test "$withval" = no || with_afs=yes
32381 if test "$with_afs" = yes; then
32383 cat >>confdefs.h <<\_ACEOF
32403 for ac_header in wchar.h
32405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32407 echo "$as_me:$LINENO: checking for $ac_header" >&5
32408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32410 echo $ECHO_N "(cached) $ECHO_C" >&6
32412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32415 # Is the header compilable?
32416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32418 cat >conftest.$ac_ext <<_ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h. */
32424 $ac_includes_default
32425 #include <$ac_header>
32427 rm -f conftest.$ac_objext
32428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32429 (eval $ac_compile) 2>conftest.er1
32431 grep -v '^ *+' conftest.er1 >conftest.err
32433 cat conftest.err >&5
32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435 (exit $ac_status); } &&
32436 { ac_try='test -z "$ac_c_werror_flag"
32437 || test ! -s conftest.err'
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; } &&
32443 { ac_try='test -s conftest.$ac_objext'
32444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445 (eval $ac_try) 2>&5
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449 ac_header_compiler=yes
32451 echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32454 ac_header_compiler=no
32456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32458 echo "${ECHO_T}$ac_header_compiler" >&6
32460 # Is the header present?
32461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32463 cat >conftest.$ac_ext <<_ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h. */
32469 #include <$ac_header>
32471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32474 grep -v '^ *+' conftest.er1 >conftest.err
32476 cat conftest.err >&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } >/dev/null; then
32479 if test -s conftest.err; then
32480 ac_cpp_err=$ac_c_preproc_warn_flag
32481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32488 if test -z "$ac_cpp_err"; then
32489 ac_header_preproc=yes
32491 echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32494 ac_header_preproc=no
32496 rm -f conftest.err conftest.$ac_ext
32497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32498 echo "${ECHO_T}$ac_header_preproc" >&6
32500 # So? What about this header?
32501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32507 ac_header_preproc=yes
32510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32524 ## ------------------------------------ ##
32525 ## Report this to bug-coreutils@gnu.org ##
32526 ## ------------------------------------ ##
32529 sed "s/^/$as_me: WARNING: /" >&2
32532 echo "$as_me:$LINENO: checking for $ac_header" >&5
32533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32537 eval "$as_ac_Header=\$ac_header_preproc"
32539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32544 cat >>confdefs.h <<_ACEOF
32545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32555 for ac_header in wctype.h
32557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32559 echo "$as_me:$LINENO: checking for $ac_header" >&5
32560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32567 # Is the header compilable?
32568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32570 cat >conftest.$ac_ext <<_ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32576 $ac_includes_default
32577 #include <$ac_header>
32579 rm -f conftest.$ac_objext
32580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32581 (eval $ac_compile) 2>conftest.er1
32583 grep -v '^ *+' conftest.er1 >conftest.err
32585 cat conftest.err >&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
32588 { ac_try='test -z "$ac_c_werror_flag"
32589 || test ! -s conftest.err'
32590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591 (eval $ac_try) 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; } &&
32595 { ac_try='test -s conftest.$ac_objext'
32596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597 (eval $ac_try) 2>&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); }; }; then
32601 ac_header_compiler=yes
32603 echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32606 ac_header_compiler=no
32608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32610 echo "${ECHO_T}$ac_header_compiler" >&6
32612 # Is the header present?
32613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32615 cat >conftest.$ac_ext <<_ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h. */
32621 #include <$ac_header>
32623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32626 grep -v '^ *+' conftest.er1 >conftest.err
32628 cat conftest.err >&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); } >/dev/null; then
32631 if test -s conftest.err; then
32632 ac_cpp_err=$ac_c_preproc_warn_flag
32633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32640 if test -z "$ac_cpp_err"; then
32641 ac_header_preproc=yes
32643 echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32646 ac_header_preproc=no
32648 rm -f conftest.err conftest.$ac_ext
32649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32650 echo "${ECHO_T}$ac_header_preproc" >&6
32652 # So? What about this header?
32653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32659 ac_header_preproc=yes
32662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32676 ## ------------------------------------ ##
32677 ## Report this to bug-coreutils@gnu.org ##
32678 ## ------------------------------------ ##
32681 sed "s/^/$as_me: WARNING: /" >&2
32684 echo "$as_me:$LINENO: checking for $ac_header" >&5
32685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32687 echo $ECHO_N "(cached) $ECHO_C" >&6
32689 eval "$as_ac_Header=\$ac_header_preproc"
32691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32696 cat >>confdefs.h <<_ACEOF
32697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32707 for ac_func in iswprint
32709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710 echo "$as_me:$LINENO: checking for $ac_func" >&5
32711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32712 if eval "test \"\${$as_ac_var+set}\" = set"; then
32713 echo $ECHO_N "(cached) $ECHO_C" >&6
32715 cat >conftest.$ac_ext <<_ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h. */
32721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32723 #define $ac_func innocuous_$ac_func
32725 /* System header to define __stub macros and hopefully few prototypes,
32726 which can conflict with char $ac_func (); below.
32727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32728 <limits.h> exists even on freestanding compilers. */
32731 # include <limits.h>
32733 # include <assert.h>
32738 /* Override any gcc2 internal prototype to avoid an error. */
32743 /* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32746 /* The GNU C library defines this for functions which it implements
32747 to always fail with ENOSYS. Some functions are actually named
32748 something starting with __ and the normal name is an alias. */
32749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32752 char (*f) () = $ac_func;
32761 return f != $ac_func;
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32768 (eval $ac_link) 2>conftest.er1
32770 grep -v '^ *+' conftest.er1 >conftest.err
32772 cat conftest.err >&5
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); } &&
32775 { ac_try='test -z "$ac_c_werror_flag"
32776 || test ! -s conftest.err'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest$ac_exeext'
32783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784 (eval $ac_try) 2>&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); }; }; then
32788 eval "$as_ac_var=yes"
32790 echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32793 eval "$as_ac_var=no"
32795 rm -f conftest.err conftest.$ac_objext \
32796 conftest$ac_exeext conftest.$ac_ext
32798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32800 if test `eval echo '${'$as_ac_var'}'` = yes; then
32801 cat >>confdefs.h <<_ACEOF
32802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32811 for ac_func in mbsinit
32813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32814 echo "$as_me:$LINENO: checking for $ac_func" >&5
32815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32816 if eval "test \"\${$as_ac_var+set}\" = set"; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32819 cat >conftest.$ac_ext <<_ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h. */
32825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32827 #define $ac_func innocuous_$ac_func
32829 /* System header to define __stub macros and hopefully few prototypes,
32830 which can conflict with char $ac_func (); below.
32831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32832 <limits.h> exists even on freestanding compilers. */
32835 # include <limits.h>
32837 # include <assert.h>
32842 /* Override any gcc2 internal prototype to avoid an error. */
32847 /* We use char because int might match the return type of a gcc2
32848 builtin and then its argument prototype would still apply. */
32850 /* The GNU C library defines this for functions which it implements
32851 to always fail with ENOSYS. Some functions are actually named
32852 something starting with __ and the normal name is an alias. */
32853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32856 char (*f) () = $ac_func;
32865 return f != $ac_func;
32870 rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32872 (eval $ac_link) 2>conftest.er1
32874 grep -v '^ *+' conftest.er1 >conftest.err
32876 cat conftest.err >&5
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); } &&
32879 { ac_try='test -z "$ac_c_werror_flag"
32880 || test ! -s conftest.err'
32881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882 (eval $ac_try) 2>&5
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; } &&
32886 { ac_try='test -s conftest$ac_exeext'
32887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888 (eval $ac_try) 2>&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; }; then
32892 eval "$as_ac_var=yes"
32894 echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32897 eval "$as_ac_var=no"
32899 rm -f conftest.err conftest.$ac_objext \
32900 conftest$ac_exeext conftest.$ac_ext
32902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32904 if test `eval echo '${'$as_ac_var'}'` = yes; then
32905 cat >>confdefs.h <<_ACEOF
32906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32939 for ac_func in iswcntrl wcwidth
32941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32942 echo "$as_me:$LINENO: checking for $ac_func" >&5
32943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32944 if eval "test \"\${$as_ac_var+set}\" = set"; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32947 cat >conftest.$ac_ext <<_ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h. */
32953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32955 #define $ac_func innocuous_$ac_func
32957 /* System header to define __stub macros and hopefully few prototypes,
32958 which can conflict with char $ac_func (); below.
32959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32960 <limits.h> exists even on freestanding compilers. */
32963 # include <limits.h>
32965 # include <assert.h>
32970 /* Override any gcc2 internal prototype to avoid an error. */
32975 /* We use char because int might match the return type of a gcc2
32976 builtin and then its argument prototype would still apply. */
32978 /* The GNU C library defines this for functions which it implements
32979 to always fail with ENOSYS. Some functions are actually named
32980 something starting with __ and the normal name is an alias. */
32981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32984 char (*f) () = $ac_func;
32993 return f != $ac_func;
32998 rm -f conftest.$ac_objext conftest$ac_exeext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33000 (eval $ac_link) 2>conftest.er1
33002 grep -v '^ *+' conftest.er1 >conftest.err
33004 cat conftest.err >&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
33007 { ac_try='test -z "$ac_c_werror_flag"
33008 || test ! -s conftest.err'
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest$ac_exeext'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 eval "$as_ac_var=yes"
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33025 eval "$as_ac_var=no"
33027 rm -f conftest.err conftest.$ac_objext \
33028 conftest$ac_exeext conftest.$ac_ext
33030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33032 if test `eval echo '${'$as_ac_var'}'` = yes; then
33033 cat >>confdefs.h <<_ACEOF
33034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33041 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
33042 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
33043 if test "${gl_cv_func_mbrtowc+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33046 cat >conftest.$ac_ext <<_ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h. */
33056 mbstate_t state; return ! (sizeof state && mbrtowc);
33061 rm -f conftest.$ac_objext conftest$ac_exeext
33062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33063 (eval $ac_link) 2>conftest.er1
33065 grep -v '^ *+' conftest.er1 >conftest.err
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_c_werror_flag"
33071 || test ! -s conftest.err'
33072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073 (eval $ac_try) 2>&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); }; } &&
33077 { ac_try='test -s conftest$ac_exeext'
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; }; then
33083 gl_cv_func_mbrtowc=yes
33085 echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33088 gl_cv_func_mbrtowc=no
33090 rm -f conftest.err conftest.$ac_objext \
33091 conftest$ac_exeext conftest.$ac_ext
33093 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
33094 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
33095 if test $gl_cv_func_mbrtowc = yes; then
33097 cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_MBRTOWC 1
33104 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
33105 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
33106 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
33107 echo $ECHO_N "(cached) $ECHO_C" >&6
33109 cat >conftest.$ac_ext <<_ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h. */
33116 /* AIX 3.2.5 declares wcwidth in <string.h>. */
33118 # include <string.h>
33121 # include <wchar.h>
33129 char *p = (char *) wcwidth;
33136 rm -f conftest.$ac_objext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33138 (eval $ac_compile) 2>conftest.er1
33140 grep -v '^ *+' conftest.er1 >conftest.err
33142 cat conftest.err >&5
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
33145 { ac_try='test -z "$ac_c_werror_flag"
33146 || test ! -s conftest.err'
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest.$ac_objext'
33153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 (eval $ac_try) 2>&5
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; }; then
33158 ac_cv_have_decl_wcwidth=yes
33160 echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33163 ac_cv_have_decl_wcwidth=no
33165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
33168 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
33169 if test $ac_cv_have_decl_wcwidth = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176 #define HAVE_DECL_WCWIDTH $ac_val
33180 echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
33181 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6
33182 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33185 cat >conftest.$ac_ext <<_ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h. */
33193 # include <wchar.h>
33200 char *p = (char *) mbswidth;
33206 rm -f conftest.$ac_objext
33207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33208 (eval $ac_compile) 2>conftest.er1
33210 grep -v '^ *+' conftest.er1 >conftest.err
33212 cat conftest.err >&5
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); } &&
33215 { ac_try='test -z "$ac_c_werror_flag"
33216 || test ! -s conftest.err'
33217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218 (eval $ac_try) 2>&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; } &&
33222 { ac_try='test -s conftest.$ac_objext'
33223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224 (eval $ac_try) 2>&5
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; }; then
33228 ac_cv_have_decl_mbswidth=yes
33230 echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33233 ac_cv_have_decl_mbswidth=no
33235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
33238 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6
33239 if test $ac_cv_have_decl_mbswidth = yes; then
33245 cat >>confdefs.h <<_ACEOF
33246 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
33250 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33251 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33252 if test "${ac_cv_type_mbstate_t+set}" = set; then
33253 echo $ECHO_N "(cached) $ECHO_C" >&6
33255 cat >conftest.$ac_ext <<_ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h. */
33261 $ac_includes_default
33262 # include <wchar.h>
33266 mbstate_t x; return sizeof x;
33271 rm -f conftest.$ac_objext
33272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33273 (eval $ac_compile) 2>conftest.er1
33275 grep -v '^ *+' conftest.er1 >conftest.err
33277 cat conftest.err >&5
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
33280 { ac_try='test -z "$ac_c_werror_flag"
33281 || test ! -s conftest.err'
33282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33283 (eval $ac_try) 2>&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); }; } &&
33287 { ac_try='test -s conftest.$ac_objext'
33288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289 (eval $ac_try) 2>&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); }; }; then
33293 ac_cv_type_mbstate_t=yes
33295 echo "$as_me: failed program was:" >&5
33296 sed 's/^/| /' conftest.$ac_ext >&5
33298 ac_cv_type_mbstate_t=no
33300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33304 if test $ac_cv_type_mbstate_t = yes; then
33306 cat >>confdefs.h <<\_ACEOF
33307 #define HAVE_MBSTATE_T 1
33312 cat >>confdefs.h <<\_ACEOF
33313 #define mbstate_t int
33324 echo "$as_me:$LINENO: checking for working memcmp" >&5
33325 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
33326 if test "${ac_cv_func_memcmp_working+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33329 if test "$cross_compiling" = yes; then
33330 ac_cv_func_memcmp_working=no
33332 cat >conftest.$ac_ext <<_ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h. */
33338 $ac_includes_default
33343 /* Some versions of memcmp are not 8-bit clean. */
33344 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
33345 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
33348 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
33349 or more and with at least one buffer not starting on a 4-byte boundary.
33350 William Lewis provided this test program. */
33355 for (i = 0; i < 4; i++)
33359 strcpy (a, "--------01111111");
33360 strcpy (b, "--------10000000");
33361 if (memcmp (a, b, 16) >= 0)
33371 rm -f conftest$ac_exeext
33372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33373 (eval $ac_link) 2>&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33378 (eval $ac_try) 2>&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; }; then
33382 ac_cv_func_memcmp_working=yes
33384 echo "$as_me: program exited with status $ac_status" >&5
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33388 ( exit $ac_status )
33389 ac_cv_func_memcmp_working=no
33391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33394 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
33395 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
33396 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
33397 "memcmp.$ac_objext" | \
33398 *" memcmp.$ac_objext" | \
33399 "memcmp.$ac_objext "* | \
33400 *" memcmp.$ac_objext "* ) ;;
33401 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
33407 echo "$as_me:$LINENO: checking for working strcoll" >&5
33408 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
33409 if test "${ac_cv_func_strcoll_works+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33412 if test "$cross_compiling" = yes; then
33413 ac_cv_func_strcoll_works=no
33415 cat >conftest.$ac_ext <<_ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 $ac_includes_default
33425 exit (strcoll ("abc", "def") >= 0 ||
33426 strcoll ("ABC", "DEF") >= 0 ||
33427 strcoll ("123", "456") >= 0)
33432 rm -f conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434 (eval $ac_link) 2>&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; }; then
33443 ac_cv_func_strcoll_works=yes
33445 echo "$as_me: program exited with status $ac_status" >&5
33446 echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33449 ( exit $ac_status )
33450 ac_cv_func_strcoll_works=no
33452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33455 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
33456 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
33457 if test $ac_cv_func_strcoll_works = yes; then
33459 cat >>confdefs.h <<\_ACEOF
33460 #define HAVE_STRCOLL 1
33473 for ac_func in listmntent getmntinfo
33475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33476 echo "$as_me:$LINENO: checking for $ac_func" >&5
33477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33478 if eval "test \"\${$as_ac_var+set}\" = set"; then
33479 echo $ECHO_N "(cached) $ECHO_C" >&6
33481 cat >conftest.$ac_ext <<_ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33489 #define $ac_func innocuous_$ac_func
33491 /* System header to define __stub macros and hopefully few prototypes,
33492 which can conflict with char $ac_func (); below.
33493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33494 <limits.h> exists even on freestanding compilers. */
33497 # include <limits.h>
33499 # include <assert.h>
33504 /* Override any gcc2 internal prototype to avoid an error. */
33509 /* We use char because int might match the return type of a gcc2
33510 builtin and then its argument prototype would still apply. */
33512 /* The GNU C library defines this for functions which it implements
33513 to always fail with ENOSYS. Some functions are actually named
33514 something starting with __ and the normal name is an alias. */
33515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33518 char (*f) () = $ac_func;
33527 return f != $ac_func;
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534 (eval $ac_link) 2>conftest.er1
33536 grep -v '^ *+' conftest.er1 >conftest.err
33538 cat conftest.err >&5
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } &&
33541 { ac_try='test -z "$ac_c_werror_flag"
33542 || test ! -s conftest.err'
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; } &&
33548 { ac_try='test -s conftest$ac_exeext'
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 eval "$as_ac_var=yes"
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33559 eval "$as_ac_var=no"
33561 rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
33564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33566 if test `eval echo '${'$as_ac_var'}'` = yes; then
33567 cat >>confdefs.h <<_ACEOF
33568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33582 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
33583 # NGROUPS (as the array dimension for a struct member) without a definition.
33585 for ac_header in sys/ucred.h
33587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33588 echo "$as_me:$LINENO: checking for $ac_header" >&5
33589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33593 cat >conftest.$ac_ext <<_ACEOF
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h. */
33601 #include <$ac_header>
33603 rm -f conftest.$ac_objext
33604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33605 (eval $ac_compile) 2>conftest.er1
33607 grep -v '^ *+' conftest.er1 >conftest.err
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_c_werror_flag"
33613 || test ! -s conftest.err'
33614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615 (eval $ac_try) 2>&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; } &&
33619 { ac_try='test -s conftest.$ac_objext'
33620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621 (eval $ac_try) 2>&5
33623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624 (exit $ac_status); }; }; then
33625 eval "$as_ac_Header=yes"
33627 echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33630 eval "$as_ac_Header=no"
33632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33637 cat >>confdefs.h <<_ACEOF
33638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33647 for ac_header in sys/mount.h
33649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33650 echo "$as_me:$LINENO: checking for $ac_header" >&5
33651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33653 echo $ECHO_N "(cached) $ECHO_C" >&6
33655 cat >conftest.$ac_ext <<_ACEOF
33658 cat confdefs.h >>conftest.$ac_ext
33659 cat >>conftest.$ac_ext <<_ACEOF
33660 /* end confdefs.h. */
33661 $ac_includes_default
33662 #if HAVE_SYS_PARAM_H
33663 #include <sys/param.h>
33666 #include <$ac_header>
33668 rm -f conftest.$ac_objext
33669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33670 (eval $ac_compile) 2>conftest.er1
33672 grep -v '^ *+' conftest.er1 >conftest.err
33674 cat conftest.err >&5
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); } &&
33677 { ac_try='test -z "$ac_c_werror_flag"
33678 || test ! -s conftest.err'
33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680 (eval $ac_try) 2>&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; } &&
33684 { ac_try='test -s conftest.$ac_objext'
33685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686 (eval $ac_try) 2>&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; }; then
33690 eval "$as_ac_Header=yes"
33692 echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33695 eval "$as_ac_Header=no"
33697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33702 cat >>confdefs.h <<_ACEOF
33703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33713 for ac_header in mntent.h sys/fs_types.h
33715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33717 echo "$as_me:$LINENO: checking for $ac_header" >&5
33718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33725 # Is the header compilable?
33726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33728 cat >conftest.$ac_ext <<_ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h. */
33734 $ac_includes_default
33735 #include <$ac_header>
33737 rm -f conftest.$ac_objext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33739 (eval $ac_compile) 2>conftest.er1
33741 grep -v '^ *+' conftest.er1 >conftest.err
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } &&
33746 { ac_try='test -z "$ac_c_werror_flag"
33747 || test ! -s conftest.err'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest.$ac_objext'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 ac_header_compiler=yes
33761 echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33764 ac_header_compiler=no
33766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33768 echo "${ECHO_T}$ac_header_compiler" >&6
33770 # Is the header present?
33771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33773 cat >conftest.$ac_ext <<_ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h. */
33779 #include <$ac_header>
33781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33784 grep -v '^ *+' conftest.er1 >conftest.err
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } >/dev/null; then
33789 if test -s conftest.err; then
33790 ac_cpp_err=$ac_c_preproc_warn_flag
33791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33798 if test -z "$ac_cpp_err"; then
33799 ac_header_preproc=yes
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33804 ac_header_preproc=no
33806 rm -f conftest.err conftest.$ac_ext
33807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33808 echo "${ECHO_T}$ac_header_preproc" >&6
33810 # So? What about this header?
33811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33817 ac_header_preproc=yes
33820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33834 ## ------------------------------------ ##
33835 ## Report this to bug-coreutils@gnu.org ##
33836 ## ------------------------------------ ##
33839 sed "s/^/$as_me: WARNING: /" >&2
33842 echo "$as_me:$LINENO: checking for $ac_header" >&5
33843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33845 echo $ECHO_N "(cached) $ECHO_C" >&6
33847 eval "$as_ac_Header=\$ac_header_preproc"
33849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33854 cat >>confdefs.h <<_ACEOF
33855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33862 getfsstat_includes="\
33863 $ac_includes_default
33864 #if HAVE_SYS_PARAM_H
33865 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33867 #if HAVE_SYS_UCRED_H
33868 # include <grp.h> /* needed for definition of NGROUPS */
33869 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33871 #if HAVE_SYS_MOUNT_H
33872 # include <sys/mount.h>
33874 #if HAVE_SYS_FS_TYPES_H
33875 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33878 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33879 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
33880 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33881 echo $ECHO_N "(cached) $ECHO_C" >&6
33883 cat >conftest.$ac_ext <<_ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h. */
33889 $getfsstat_includes
33894 static struct fsstat ac_aggr;
33895 if (ac_aggr.f_fstypename)
33901 rm -f conftest.$ac_objext
33902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33903 (eval $ac_compile) 2>conftest.er1
33905 grep -v '^ *+' conftest.er1 >conftest.err
33907 cat conftest.err >&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } &&
33910 { ac_try='test -z "$ac_c_werror_flag"
33911 || test ! -s conftest.err'
33912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33913 (eval $ac_try) 2>&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); }; } &&
33917 { ac_try='test -s conftest.$ac_objext'
33918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33919 (eval $ac_try) 2>&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922 (exit $ac_status); }; }; then
33923 ac_cv_member_struct_fsstat_f_fstypename=yes
33925 echo "$as_me: failed program was:" >&5
33926 sed 's/^/| /' conftest.$ac_ext >&5
33928 cat >conftest.$ac_ext <<_ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h. */
33934 $getfsstat_includes
33939 static struct fsstat ac_aggr;
33940 if (sizeof ac_aggr.f_fstypename)
33946 rm -f conftest.$ac_objext
33947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33948 (eval $ac_compile) 2>conftest.er1
33950 grep -v '^ *+' conftest.er1 >conftest.err
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -z "$ac_c_werror_flag"
33956 || test ! -s conftest.err'
33957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958 (eval $ac_try) 2>&5
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); }; } &&
33962 { ac_try='test -s conftest.$ac_objext'
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; }; then
33968 ac_cv_member_struct_fsstat_f_fstypename=yes
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33973 ac_cv_member_struct_fsstat_f_fstypename=no
33975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33980 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
33981 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33983 cat >>confdefs.h <<_ACEOF
33984 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33991 # Determine how to get the list of mounted file systems.
33992 ac_list_mounted_fs=
33994 # If the getmntent function is available but not in the standard library,
33995 # make sure LIBS contains the appropriate -l option.
33996 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33997 # -lseq on Dynix/PTX, -lgen on Unixware.
33998 echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33999 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6
34000 if test "${ac_cv_search_getmntent+set}" = set; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34003 ac_func_search_save_LIBS=$LIBS
34004 ac_cv_search_getmntent=no
34005 cat >conftest.$ac_ext <<_ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h. */
34012 /* Override any gcc2 internal prototype to avoid an error. */
34016 /* We use char because int might match the return type of a gcc2
34017 builtin and then its argument prototype would still apply. */
34027 rm -f conftest.$ac_objext conftest$ac_exeext
34028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34029 (eval $ac_link) 2>conftest.er1
34031 grep -v '^ *+' conftest.er1 >conftest.err
34033 cat conftest.err >&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); } &&
34036 { ac_try='test -z "$ac_c_werror_flag"
34037 || test ! -s conftest.err'
34038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039 (eval $ac_try) 2>&5
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); }; } &&
34043 { ac_try='test -s conftest$ac_exeext'
34044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045 (eval $ac_try) 2>&5
34047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); }; }; then
34049 ac_cv_search_getmntent="none required"
34051 echo "$as_me: failed program was:" >&5
34052 sed 's/^/| /' conftest.$ac_ext >&5
34055 rm -f conftest.err conftest.$ac_objext \
34056 conftest$ac_exeext conftest.$ac_ext
34057 if test "$ac_cv_search_getmntent" = no; then
34058 for ac_lib in sun seq gen; do
34059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34060 cat >conftest.$ac_ext <<_ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h. */
34067 /* Override any gcc2 internal prototype to avoid an error. */
34071 /* We use char because int might match the return type of a gcc2
34072 builtin and then its argument prototype would still apply. */
34082 rm -f conftest.$ac_objext conftest$ac_exeext
34083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34084 (eval $ac_link) 2>conftest.er1
34086 grep -v '^ *+' conftest.er1 >conftest.err
34088 cat conftest.err >&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); } &&
34091 { ac_try='test -z "$ac_c_werror_flag"
34092 || test ! -s conftest.err'
34093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094 (eval $ac_try) 2>&5
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; } &&
34098 { ac_try='test -s conftest$ac_exeext'
34099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100 (eval $ac_try) 2>&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; }; then
34104 ac_cv_search_getmntent="-l$ac_lib"
34107 echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34111 rm -f conftest.err conftest.$ac_objext \
34112 conftest$ac_exeext conftest.$ac_ext
34115 LIBS=$ac_func_search_save_LIBS
34117 echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
34118 echo "${ECHO_T}$ac_cv_search_getmntent" >&6
34119 if test "$ac_cv_search_getmntent" != no; then
34120 test "$ac_cv_search_getmntent" = "none required" || LIBS="$ac_cv_search_getmntent $LIBS"
34122 for ac_func in getmntent
34124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34125 echo "$as_me:$LINENO: checking for $ac_func" >&5
34126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34127 if eval "test \"\${$as_ac_var+set}\" = set"; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34130 cat >conftest.$ac_ext <<_ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h. */
34136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34138 #define $ac_func innocuous_$ac_func
34140 /* System header to define __stub macros and hopefully few prototypes,
34141 which can conflict with char $ac_func (); below.
34142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34143 <limits.h> exists even on freestanding compilers. */
34146 # include <limits.h>
34148 # include <assert.h>
34153 /* Override any gcc2 internal prototype to avoid an error. */
34158 /* We use char because int might match the return type of a gcc2
34159 builtin and then its argument prototype would still apply. */
34161 /* The GNU C library defines this for functions which it implements
34162 to always fail with ENOSYS. Some functions are actually named
34163 something starting with __ and the normal name is an alias. */
34164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34167 char (*f) () = $ac_func;
34176 return f != $ac_func;
34181 rm -f conftest.$ac_objext conftest$ac_exeext
34182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34183 (eval $ac_link) 2>conftest.er1
34185 grep -v '^ *+' conftest.er1 >conftest.err
34187 cat conftest.err >&5
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); } &&
34190 { ac_try='test -z "$ac_c_werror_flag"
34191 || test ! -s conftest.err'
34192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193 (eval $ac_try) 2>&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; } &&
34197 { ac_try='test -s conftest$ac_exeext'
34198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34199 (eval $ac_try) 2>&5
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); }; }; then
34203 eval "$as_ac_var=yes"
34205 echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34208 eval "$as_ac_var=no"
34210 rm -f conftest.err conftest.$ac_objext \
34211 conftest$ac_exeext conftest.$ac_ext
34213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34215 if test `eval echo '${'$as_ac_var'}'` = yes; then
34216 cat >>confdefs.h <<_ACEOF
34217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34227 # This test must precede the ones for getmntent because Unicos-9 is
34228 # reported to have the getmntent function, but its support is incompatible
34229 # with other getmntent implementations.
34231 # NOTE: Normally, I wouldn't use a check for system type as I've done for
34232 # `CRAY' below since that goes against the whole autoconf philosophy. But
34233 # I think there is too great a chance that some non-Cray system has a
34234 # function named listmntent to risk the false positive.
34236 if test -z "$ac_list_mounted_fs"; then
34238 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
34239 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
34240 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
34241 echo $ECHO_N "(cached) $ECHO_C" >&6
34243 fu_cv_sys_mounted_cray_listmntent=no
34244 cat >conftest.$ac_ext <<_ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h. */
34255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34256 $EGREP "yes" >/dev/null 2>&1; then
34257 test $ac_cv_func_listmntent = yes \
34258 && fu_cv_sys_mounted_cray_listmntent=yes
34267 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
34268 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
34269 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
34270 ac_list_mounted_fs=found
34272 cat >>confdefs.h <<\_ACEOF
34273 #define MOUNTED_LISTMNTENT 1
34279 if test -z "$ac_list_mounted_fs"; then
34281 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
34282 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
34283 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
34284 echo $ECHO_N "(cached) $ECHO_C" >&6
34286 cat >conftest.$ac_ext <<_ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h. */
34292 #include <fshelp.h>
34294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34297 grep -v '^ *+' conftest.er1 >conftest.err
34299 cat conftest.err >&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); } >/dev/null; then
34302 if test -s conftest.err; then
34303 ac_cpp_err=$ac_c_preproc_warn_flag
34304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34311 if test -z "$ac_cpp_err"; then
34312 fu_cv_sys_mounted_vmount=yes
34314 echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34317 fu_cv_sys_mounted_vmount=no
34319 rm -f conftest.err conftest.$ac_ext
34322 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
34323 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
34324 if test $fu_cv_sys_mounted_vmount = yes; then
34325 ac_list_mounted_fs=found
34327 cat >>confdefs.h <<\_ACEOF
34328 #define MOUNTED_VMOUNT 1
34334 if test $ac_cv_func_getmntent = yes; then
34336 # This system has the getmntent function.
34337 # Determine whether it's the one-argument variant or the two-argument one.
34339 if test -z "$ac_list_mounted_fs"; then
34340 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34341 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34342 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
34343 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34344 echo $ECHO_N "(cached) $ECHO_C" >&6
34346 cat >conftest.$ac_ext <<_ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h. */
34353 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34356 #include <mntent.h>
34357 #if !defined MOUNTED
34358 # if defined _PATH_MOUNTED /* GNU libc */
34359 # define MOUNTED _PATH_MOUNTED
34361 # if defined MNT_MNTTAB /* HP-UX. */
34362 # define MOUNTED MNT_MNTTAB
34364 # if defined MNTTABNAME /* Dynix. */
34365 # define MOUNTED MNTTABNAME
34372 struct mntent *mnt = 0; char *table = MOUNTED;
34377 rm -f conftest.$ac_objext
34378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34379 (eval $ac_compile) 2>conftest.er1
34381 grep -v '^ *+' conftest.er1 >conftest.err
34383 cat conftest.err >&5
34384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385 (exit $ac_status); } &&
34386 { ac_try='test -z "$ac_c_werror_flag"
34387 || test ! -s conftest.err'
34388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34389 (eval $ac_try) 2>&5
34391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 (exit $ac_status); }; } &&
34393 { ac_try='test -s conftest.$ac_objext'
34394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34395 (eval $ac_try) 2>&5
34397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398 (exit $ac_status); }; }; then
34399 fu_cv_sys_mounted_getmntent1=yes
34401 echo "$as_me: failed program was:" >&5
34402 sed 's/^/| /' conftest.$ac_ext >&5
34404 fu_cv_sys_mounted_getmntent1=no
34406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34409 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34410 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
34411 if test $fu_cv_sys_mounted_getmntent1 = yes; then
34412 ac_list_mounted_fs=found
34414 cat >>confdefs.h <<\_ACEOF
34415 #define MOUNTED_GETMNTENT1 1
34421 if test -z "$ac_list_mounted_fs"; then
34423 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34424 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
34425 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34426 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 cat >conftest.$ac_ext <<_ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h. */
34434 #include <sys/mnttab.h>
34437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34438 $EGREP "getmntent" >/dev/null 2>&1; then
34439 fu_cv_sys_mounted_getmntent2=yes
34441 fu_cv_sys_mounted_getmntent2=no
34447 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34448 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
34449 if test $fu_cv_sys_mounted_getmntent2 = yes; then
34450 ac_list_mounted_fs=found
34452 cat >>confdefs.h <<\_ACEOF
34453 #define MOUNTED_GETMNTENT2 1
34461 if test -z "$ac_list_mounted_fs"; then
34462 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34463 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34465 echo "$as_me:$LINENO: checking for getfsstat function" >&5
34466 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
34467 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34468 echo $ECHO_N "(cached) $ECHO_C" >&6
34470 cat >conftest.$ac_ext <<_ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h. */
34477 #include <sys/types.h>
34478 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34479 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34481 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34483 $getfsstat_includes
34488 struct statfs *stats;
34489 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34490 char *t = FS_TYPE (*stats);
34495 rm -f conftest.$ac_objext conftest$ac_exeext
34496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34497 (eval $ac_link) 2>conftest.er1
34499 grep -v '^ *+' conftest.er1 >conftest.err
34501 cat conftest.err >&5
34502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503 (exit $ac_status); } &&
34504 { ac_try='test -z "$ac_c_werror_flag"
34505 || test ! -s conftest.err'
34506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34507 (eval $ac_try) 2>&5
34509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510 (exit $ac_status); }; } &&
34511 { ac_try='test -s conftest$ac_exeext'
34512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513 (eval $ac_try) 2>&5
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); }; }; then
34517 fu_cv_sys_mounted_getfsstat=yes
34519 echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34522 fu_cv_sys_mounted_getfsstat=no
34524 rm -f conftest.err conftest.$ac_objext \
34525 conftest$ac_exeext conftest.$ac_ext
34528 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34529 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
34530 if test $fu_cv_sys_mounted_getfsstat = yes; then
34531 ac_list_mounted_fs=found
34533 cat >>confdefs.h <<\_ACEOF
34534 #define MOUNTED_GETFSSTAT 1
34540 if test -z "$ac_list_mounted_fs"; then
34542 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34543 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
34544 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 cat >conftest.$ac_ext <<_ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34554 #include <sys/statfs.h>
34555 #include <sys/fstyp.h>
34556 #include <mnttab.h>
34558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34561 grep -v '^ *+' conftest.er1 >conftest.err
34563 cat conftest.err >&5
34564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565 (exit $ac_status); } >/dev/null; then
34566 if test -s conftest.err; then
34567 ac_cpp_err=$ac_c_preproc_warn_flag
34568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34575 if test -z "$ac_cpp_err"; then
34576 fu_cv_sys_mounted_fread_fstyp=yes
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 fu_cv_sys_mounted_fread_fstyp=no
34583 rm -f conftest.err conftest.$ac_ext
34586 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34587 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
34588 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34589 ac_list_mounted_fs=found
34591 cat >>confdefs.h <<\_ACEOF
34592 #define MOUNTED_FREAD_FSTYP 1
34598 if test -z "$ac_list_mounted_fs"; then
34599 # 4.4BSD and DEC OSF/1.
34600 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34601 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
34602 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34603 echo $ECHO_N "(cached) $ECHO_C" >&6
34606 test "$ac_cv_func_getmntinfo" = yes \
34607 && fu_cv_sys_mounted_getmntinfo=yes \
34608 || fu_cv_sys_mounted_getmntinfo=no
34612 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34613 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
34614 if test $fu_cv_sys_mounted_getmntinfo = yes; then
34615 ac_list_mounted_fs=found
34617 cat >>confdefs.h <<\_ACEOF
34618 #define MOUNTED_GETMNTINFO 1
34624 if test -z "$ac_list_mounted_fs"; then
34626 echo "$as_me:$LINENO: checking for getmnt function" >&5
34627 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
34628 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34629 echo $ECHO_N "(cached) $ECHO_C" >&6
34631 cat >conftest.$ac_ext <<_ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h. */
34638 #include <sys/fs_types.h>
34639 #include <sys/mount.h>
34641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34644 grep -v '^ *+' conftest.er1 >conftest.err
34646 cat conftest.err >&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } >/dev/null; then
34649 if test -s conftest.err; then
34650 ac_cpp_err=$ac_c_preproc_warn_flag
34651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34658 if test -z "$ac_cpp_err"; then
34659 fu_cv_sys_mounted_getmnt=yes
34661 echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34664 fu_cv_sys_mounted_getmnt=no
34666 rm -f conftest.err conftest.$ac_ext
34669 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34670 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
34671 if test $fu_cv_sys_mounted_getmnt = yes; then
34672 ac_list_mounted_fs=found
34674 cat >>confdefs.h <<\_ACEOF
34675 #define MOUNTED_GETMNT 1
34681 if test -z "$ac_list_mounted_fs"; then
34685 for ac_func in next_dev fs_stat_dev
34687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34688 echo "$as_me:$LINENO: checking for $ac_func" >&5
34689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34690 if eval "test \"\${$as_ac_var+set}\" = set"; then
34691 echo $ECHO_N "(cached) $ECHO_C" >&6
34693 cat >conftest.$ac_ext <<_ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h. */
34699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34701 #define $ac_func innocuous_$ac_func
34703 /* System header to define __stub macros and hopefully few prototypes,
34704 which can conflict with char $ac_func (); below.
34705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34706 <limits.h> exists even on freestanding compilers. */
34709 # include <limits.h>
34711 # include <assert.h>
34716 /* Override any gcc2 internal prototype to avoid an error. */
34721 /* We use char because int might match the return type of a gcc2
34722 builtin and then its argument prototype would still apply. */
34724 /* The GNU C library defines this for functions which it implements
34725 to always fail with ENOSYS. Some functions are actually named
34726 something starting with __ and the normal name is an alias. */
34727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34730 char (*f) () = $ac_func;
34739 return f != $ac_func;
34744 rm -f conftest.$ac_objext conftest$ac_exeext
34745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34746 (eval $ac_link) 2>conftest.er1
34748 grep -v '^ *+' conftest.er1 >conftest.err
34750 cat conftest.err >&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
34753 { ac_try='test -z "$ac_c_werror_flag"
34754 || test ! -s conftest.err'
34755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756 (eval $ac_try) 2>&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); }; } &&
34760 { ac_try='test -s conftest$ac_exeext'
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; }; then
34766 eval "$as_ac_var=yes"
34768 echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34771 eval "$as_ac_var=no"
34773 rm -f conftest.err conftest.$ac_objext \
34774 conftest$ac_exeext conftest.$ac_ext
34776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34778 if test `eval echo '${'$as_ac_var'}'` = yes; then
34779 cat >>confdefs.h <<_ACEOF
34780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34787 for ac_header in fs_info.h
34789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34791 echo "$as_me:$LINENO: checking for $ac_header" >&5
34792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34794 echo $ECHO_N "(cached) $ECHO_C" >&6
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34799 # Is the header compilable?
34800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34802 cat >conftest.$ac_ext <<_ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34808 $ac_includes_default
34809 #include <$ac_header>
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813 (eval $ac_compile) 2>conftest.er1
34815 grep -v '^ *+' conftest.er1 >conftest.err
34817 cat conftest.err >&5
34818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 (exit $ac_status); } &&
34820 { ac_try='test -z "$ac_c_werror_flag"
34821 || test ! -s conftest.err'
34822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823 (eval $ac_try) 2>&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); }; } &&
34827 { ac_try='test -s conftest.$ac_objext'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 ac_header_compiler=yes
34835 echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34838 ac_header_compiler=no
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34842 echo "${ECHO_T}$ac_header_compiler" >&6
34844 # Is the header present?
34845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34847 cat >conftest.$ac_ext <<_ACEOF
34850 cat confdefs.h >>conftest.$ac_ext
34851 cat >>conftest.$ac_ext <<_ACEOF
34852 /* end confdefs.h. */
34853 #include <$ac_header>
34855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34858 grep -v '^ *+' conftest.er1 >conftest.err
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } >/dev/null; then
34863 if test -s conftest.err; then
34864 ac_cpp_err=$ac_c_preproc_warn_flag
34865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34872 if test -z "$ac_cpp_err"; then
34873 ac_header_preproc=yes
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34878 ac_header_preproc=no
34880 rm -f conftest.err conftest.$ac_ext
34881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34882 echo "${ECHO_T}$ac_header_preproc" >&6
34884 # So? What about this header?
34885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34891 ac_header_preproc=yes
34894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34908 ## ------------------------------------ ##
34909 ## Report this to bug-coreutils@gnu.org ##
34910 ## ------------------------------------ ##
34913 sed "s/^/$as_me: WARNING: /" >&2
34916 echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919 echo $ECHO_N "(cached) $ECHO_C" >&6
34921 eval "$as_ac_Header=\$ac_header_preproc"
34923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34928 cat >>confdefs.h <<_ACEOF
34929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34936 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34937 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
34938 if test $ac_cv_header_fs_info_h = yes \
34939 && test $ac_cv_func_next_dev = yes \
34940 && test $ac_cv_func_fs_stat_dev = yes; then
34945 echo "$as_me:$LINENO: result: $fu_result" >&5
34946 echo "${ECHO_T}$fu_result" >&6
34947 if test $fu_result = yes; then
34948 ac_list_mounted_fs=found
34950 cat >>confdefs.h <<\_ACEOF
34951 #define MOUNTED_FS_STAT_DEV 1
34957 if test -z "$ac_list_mounted_fs"; then
34959 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34960 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
34961 if test "${fu_cv_sys_mounted_fread+set}" = set; then
34962 echo $ECHO_N "(cached) $ECHO_C" >&6
34964 cat >conftest.$ac_ext <<_ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 #include <mnttab.h>
34972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34975 grep -v '^ *+' conftest.er1 >conftest.err
34977 cat conftest.err >&5
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); } >/dev/null; then
34980 if test -s conftest.err; then
34981 ac_cpp_err=$ac_c_preproc_warn_flag
34982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34989 if test -z "$ac_cpp_err"; then
34990 fu_cv_sys_mounted_fread=yes
34992 echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34995 fu_cv_sys_mounted_fread=no
34997 rm -f conftest.err conftest.$ac_ext
35000 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
35001 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
35002 if test $fu_cv_sys_mounted_fread = yes; then
35003 ac_list_mounted_fs=found
35005 cat >>confdefs.h <<\_ACEOF
35006 #define MOUNTED_FREAD 1
35012 if test -z "$ac_list_mounted_fs"; then
35013 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
35014 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
35015 { (exit 1); exit 1; }; }
35016 # FIXME -- no need to abort building the whole package
35017 # Can't build mountlist.c or anything that needs its functions
35020 if test $ac_list_mounted_fs = found; then
35021 gl_cv_list_mounted_fs=yes
35023 gl_cv_list_mounted_fs=no
35028 if test $gl_cv_list_mounted_fs = yes; then
35030 "mountlist.$ac_objext" | \
35031 *" mountlist.$ac_objext" | \
35032 "mountlist.$ac_objext "* | \
35033 *" mountlist.$ac_objext "* ) ;;
35034 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext" ;;
35049 for ac_header in sys/mntent.h
35051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35053 echo "$as_me:$LINENO: checking for $ac_header" >&5
35054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35056 echo $ECHO_N "(cached) $ECHO_C" >&6
35058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35061 # Is the header compilable?
35062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35064 cat >conftest.$ac_ext <<_ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h. */
35070 $ac_includes_default
35071 #include <$ac_header>
35073 rm -f conftest.$ac_objext
35074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35075 (eval $ac_compile) 2>conftest.er1
35077 grep -v '^ *+' conftest.er1 >conftest.err
35079 cat conftest.err >&5
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); } &&
35082 { ac_try='test -z "$ac_c_werror_flag"
35083 || test ! -s conftest.err'
35084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085 (eval $ac_try) 2>&5
35087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088 (exit $ac_status); }; } &&
35089 { ac_try='test -s conftest.$ac_objext'
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; }; then
35095 ac_header_compiler=yes
35097 echo "$as_me: failed program was:" >&5
35098 sed 's/^/| /' conftest.$ac_ext >&5
35100 ac_header_compiler=no
35102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35104 echo "${ECHO_T}$ac_header_compiler" >&6
35106 # Is the header present?
35107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35109 cat >conftest.$ac_ext <<_ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h. */
35115 #include <$ac_header>
35117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35120 grep -v '^ *+' conftest.er1 >conftest.err
35122 cat conftest.err >&5
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); } >/dev/null; then
35125 if test -s conftest.err; then
35126 ac_cpp_err=$ac_c_preproc_warn_flag
35127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35134 if test -z "$ac_cpp_err"; then
35135 ac_header_preproc=yes
35137 echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.$ac_ext >&5
35140 ac_header_preproc=no
35142 rm -f conftest.err conftest.$ac_ext
35143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35144 echo "${ECHO_T}$ac_header_preproc" >&6
35146 # So? What about this header?
35147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35153 ac_header_preproc=yes
35156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35170 ## ------------------------------------ ##
35171 ## Report this to bug-coreutils@gnu.org ##
35172 ## ------------------------------------ ##
35175 sed "s/^/$as_me: WARNING: /" >&2
35178 echo "$as_me:$LINENO: checking for $ac_header" >&5
35179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35181 echo $ECHO_N "(cached) $ECHO_C" >&6
35183 eval "$as_ac_Header=\$ac_header_preproc"
35185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35190 cat >>confdefs.h <<_ACEOF
35191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35199 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
35200 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
35201 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
35202 echo $ECHO_N "(cached) $ECHO_C" >&6
35205 cat >conftest.$ac_ext <<_ACEOF
35208 cat confdefs.h >>conftest.$ac_ext
35209 cat >>conftest.$ac_ext <<_ACEOF
35210 /* end confdefs.h. */
35212 #include <sys/param.h>
35213 #include <sys/types.h>
35214 #include <sys/mount.h>
35219 struct statfs s; int i = sizeof s.f_fstypename;
35224 rm -f conftest.$ac_objext
35225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35226 (eval $ac_compile) 2>conftest.er1
35228 grep -v '^ *+' conftest.er1 >conftest.err
35230 cat conftest.err >&5
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); } &&
35233 { ac_try='test -z "$ac_c_werror_flag"
35234 || test ! -s conftest.err'
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); }; } &&
35240 { ac_try='test -s conftest.$ac_objext'
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; }; then
35246 fu_cv_sys_f_fstypename_in_statfs=yes
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35251 fu_cv_sys_f_fstypename_in_statfs=no
35254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35258 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
35259 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
35261 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
35263 cat >>confdefs.h <<\_ACEOF
35264 #define HAVE_F_FSTYPENAME_IN_STATFS 1
35274 echo "$as_me:$LINENO: checking for obstacks" >&5
35275 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
35276 if test "${ac_cv_func_obstack+set}" = set; then
35277 echo $ECHO_N "(cached) $ECHO_C" >&6
35279 cat >conftest.$ac_ext <<_ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h. */
35285 #include "obstack.h"
35289 struct obstack *mem; obstack_free(mem,(char *) 0)
35294 rm -f conftest.$ac_objext conftest$ac_exeext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35296 (eval $ac_link) 2>conftest.er1
35298 grep -v '^ *+' conftest.er1 >conftest.err
35300 cat conftest.err >&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); } &&
35303 { ac_try='test -z "$ac_c_werror_flag"
35304 || test ! -s conftest.err'
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; } &&
35310 { ac_try='test -s conftest$ac_exeext'
35311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312 (eval $ac_try) 2>&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); }; }; then
35316 ac_cv_func_obstack=yes
35318 echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35321 ac_cv_func_obstack=no
35323 rm -f conftest.err conftest.$ac_objext \
35324 conftest$ac_exeext conftest.$ac_ext
35326 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35327 echo "${ECHO_T}$ac_cv_func_obstack" >&6
35328 if test $ac_cv_func_obstack = yes; then
35330 cat >>confdefs.h <<\_ACEOF
35331 #define HAVE_OBSTACK 1
35336 "obstack.$ac_objext" | \
35337 *" obstack.$ac_objext" | \
35338 "obstack.$ac_objext "* | \
35339 *" obstack.$ac_objext "* ) ;;
35340 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
35345 if test $ac_cv_func_obstack = no; then
35368 for ac_func in mempcpy
35370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35371 echo "$as_me:$LINENO: checking for $ac_func" >&5
35372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35373 if eval "test \"\${$as_ac_var+set}\" = set"; then
35374 echo $ECHO_N "(cached) $ECHO_C" >&6
35376 cat >conftest.$ac_ext <<_ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35384 #define $ac_func innocuous_$ac_func
35386 /* System header to define __stub macros and hopefully few prototypes,
35387 which can conflict with char $ac_func (); below.
35388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35389 <limits.h> exists even on freestanding compilers. */
35392 # include <limits.h>
35394 # include <assert.h>
35399 /* Override any gcc2 internal prototype to avoid an error. */
35404 /* We use char because int might match the return type of a gcc2
35405 builtin and then its argument prototype would still apply. */
35407 /* The GNU C library defines this for functions which it implements
35408 to always fail with ENOSYS. Some functions are actually named
35409 something starting with __ and the normal name is an alias. */
35410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35413 char (*f) () = $ac_func;
35422 return f != $ac_func;
35427 rm -f conftest.$ac_objext conftest$ac_exeext
35428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35429 (eval $ac_link) 2>conftest.er1
35431 grep -v '^ *+' conftest.er1 >conftest.err
35433 cat conftest.err >&5
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); } &&
35436 { ac_try='test -z "$ac_c_werror_flag"
35437 || test ! -s conftest.err'
35438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439 (eval $ac_try) 2>&5
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); }; } &&
35443 { ac_try='test -s conftest$ac_exeext'
35444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445 (eval $ac_try) 2>&5
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); }; }; then
35449 eval "$as_ac_var=yes"
35451 echo "$as_me: failed program was:" >&5
35452 sed 's/^/| /' conftest.$ac_ext >&5
35454 eval "$as_ac_var=no"
35456 rm -f conftest.err conftest.$ac_objext \
35457 conftest$ac_exeext conftest.$ac_ext
35459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35461 if test `eval echo '${'$as_ac_var'}'` = yes; then
35462 cat >>confdefs.h <<_ACEOF
35463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35479 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
35480 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
35481 if test "${gl_cv_var__system_configuration+set}" = set; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35484 cat >conftest.$ac_ext <<_ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35490 #include <sys/systemcfg.h>
35495 double x = _system_configuration.physmem;
35500 rm -f conftest.$ac_objext conftest$ac_exeext
35501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35502 (eval $ac_link) 2>conftest.er1
35504 grep -v '^ *+' conftest.er1 >conftest.err
35506 cat conftest.err >&5
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); } &&
35509 { ac_try='test -z "$ac_c_werror_flag"
35510 || test ! -s conftest.err'
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; } &&
35516 { ac_try='test -s conftest$ac_exeext'
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; }; then
35522 gl_cv_var__system_configuration=yes
35524 echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35527 gl_cv_var__system_configuration=no
35529 rm -f conftest.err conftest.$ac_objext \
35530 conftest$ac_exeext conftest.$ac_ext
35532 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
35533 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
35535 if test $gl_cv_var__system_configuration = yes; then
35537 cat >>confdefs.h <<\_ACEOF
35538 #define HAVE__SYSTEM_CONFIGURATION 1
35545 # Prerequisites of lib/physmem.c.
35561 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
35562 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
35565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35566 echo "$as_me:$LINENO: checking for $ac_header" >&5
35567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35569 echo $ECHO_N "(cached) $ECHO_C" >&6
35571 cat >conftest.$ac_ext <<_ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h. */
35577 $ac_includes_default
35579 #include <$ac_header>
35581 rm -f conftest.$ac_objext
35582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35583 (eval $ac_compile) 2>conftest.er1
35585 grep -v '^ *+' conftest.er1 >conftest.err
35587 cat conftest.err >&5
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } &&
35590 { ac_try='test -z "$ac_c_werror_flag"
35591 || test ! -s conftest.err'
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; } &&
35597 { ac_try='test -s conftest.$ac_objext'
35598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599 (eval $ac_try) 2>&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); }; }; then
35603 eval "$as_ac_Header=yes"
35605 echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35608 eval "$as_ac_Header=no"
35610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35615 cat >>confdefs.h <<_ACEOF
35616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35630 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
35632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35633 echo "$as_me:$LINENO: checking for $ac_func" >&5
35634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35635 if eval "test \"\${$as_ac_var+set}\" = set"; then
35636 echo $ECHO_N "(cached) $ECHO_C" >&6
35638 cat >conftest.$ac_ext <<_ACEOF
35641 cat confdefs.h >>conftest.$ac_ext
35642 cat >>conftest.$ac_ext <<_ACEOF
35643 /* end confdefs.h. */
35644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35646 #define $ac_func innocuous_$ac_func
35648 /* System header to define __stub macros and hopefully few prototypes,
35649 which can conflict with char $ac_func (); below.
35650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35651 <limits.h> exists even on freestanding compilers. */
35654 # include <limits.h>
35656 # include <assert.h>
35661 /* Override any gcc2 internal prototype to avoid an error. */
35666 /* We use char because int might match the return type of a gcc2
35667 builtin and then its argument prototype would still apply. */
35669 /* The GNU C library defines this for functions which it implements
35670 to always fail with ENOSYS. Some functions are actually named
35671 something starting with __ and the normal name is an alias. */
35672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35675 char (*f) () = $ac_func;
35684 return f != $ac_func;
35689 rm -f conftest.$ac_objext conftest$ac_exeext
35690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35691 (eval $ac_link) 2>conftest.er1
35693 grep -v '^ *+' conftest.er1 >conftest.err
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } &&
35698 { ac_try='test -z "$ac_c_werror_flag"
35699 || test ! -s conftest.err'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; } &&
35705 { ac_try='test -s conftest$ac_exeext'
35706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35707 (eval $ac_try) 2>&5
35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710 (exit $ac_status); }; }; then
35711 eval "$as_ac_var=yes"
35713 echo "$as_me: failed program was:" >&5
35714 sed 's/^/| /' conftest.$ac_ext >&5
35716 eval "$as_ac_var=no"
35718 rm -f conftest.err conftest.$ac_objext \
35719 conftest$ac_exeext conftest.$ac_ext
35721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35723 if test `eval echo '${'$as_ac_var'}'` = yes; then
35724 cat >>confdefs.h <<_ACEOF
35725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35734 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
35735 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
35736 if test "${ac_cv_struct_tm+set}" = set; then
35737 echo $ECHO_N "(cached) $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 #include <sys/types.h>
35751 struct tm *tp; tp->tm_sec;
35756 rm -f conftest.$ac_objext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35758 (eval $ac_compile) 2>conftest.er1
35760 grep -v '^ *+' conftest.er1 >conftest.err
35762 cat conftest.err >&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); } &&
35765 { ac_try='test -z "$ac_c_werror_flag"
35766 || test ! -s conftest.err'
35767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768 (eval $ac_try) 2>&5
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; } &&
35772 { ac_try='test -s conftest.$ac_objext'
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; }; then
35778 ac_cv_struct_tm=time.h
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35783 ac_cv_struct_tm=sys/time.h
35785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35787 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
35788 echo "${ECHO_T}$ac_cv_struct_tm" >&6
35789 if test $ac_cv_struct_tm = sys/time.h; then
35791 cat >>confdefs.h <<\_ACEOF
35792 #define TM_IN_SYS_TIME 1
35829 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35830 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35831 if test "${ac_cv_type_mbstate_t+set}" = set; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35834 cat >conftest.$ac_ext <<_ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h. */
35840 $ac_includes_default
35841 # include <wchar.h>
35845 mbstate_t x; return sizeof x;
35850 rm -f conftest.$ac_objext
35851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35852 (eval $ac_compile) 2>conftest.er1
35854 grep -v '^ *+' conftest.er1 >conftest.err
35856 cat conftest.err >&5
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); } &&
35859 { ac_try='test -z "$ac_c_werror_flag"
35860 || test ! -s conftest.err'
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; } &&
35866 { ac_try='test -s conftest.$ac_objext'
35867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35868 (eval $ac_try) 2>&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); }; }; then
35872 ac_cv_type_mbstate_t=yes
35874 echo "$as_me: failed program was:" >&5
35875 sed 's/^/| /' conftest.$ac_ext >&5
35877 ac_cv_type_mbstate_t=no
35879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35881 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35882 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35883 if test $ac_cv_type_mbstate_t = yes; then
35885 cat >>confdefs.h <<\_ACEOF
35886 #define HAVE_MBSTATE_T 1
35891 cat >>confdefs.h <<\_ACEOF
35892 #define mbstate_t int
35897 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
35898 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
35899 if test "${gl_cv_func_mbrtowc+set}" = set; then
35900 echo $ECHO_N "(cached) $ECHO_C" >&6
35902 cat >conftest.$ac_ext <<_ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h. */
35912 mbstate_t state; return ! (sizeof state && mbrtowc);
35917 rm -f conftest.$ac_objext conftest$ac_exeext
35918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35919 (eval $ac_link) 2>conftest.er1
35921 grep -v '^ *+' conftest.er1 >conftest.err
35923 cat conftest.err >&5
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } &&
35926 { ac_try='test -z "$ac_c_werror_flag"
35927 || test ! -s conftest.err'
35928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929 (eval $ac_try) 2>&5
35931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); }; } &&
35933 { ac_try='test -s conftest$ac_exeext'
35934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935 (eval $ac_try) 2>&5
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); }; }; then
35939 gl_cv_func_mbrtowc=yes
35941 echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35944 gl_cv_func_mbrtowc=no
35946 rm -f conftest.err conftest.$ac_objext \
35947 conftest$ac_exeext conftest.$ac_ext
35949 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
35950 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
35951 if test $gl_cv_func_mbrtowc = yes; then
35953 cat >>confdefs.h <<\_ACEOF
35954 #define HAVE_MBRTOWC 1
35973 echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
35974 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6
35975 if test "${gl_cv_func_free+set}" = set; then
35976 echo $ECHO_N "(cached) $ECHO_C" >&6
35978 cat >conftest.$ac_ext <<_ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h. */
35985 #include <unistd.h>
35990 #if _POSIX_VERSION < 199009L && \
35991 (defined unix || defined _unix || defined _unix_ \
35992 || defined __unix || defined __unix__)
35993 #error "'free (NULL)' is not known to work"
35999 rm -f conftest.$ac_objext
36000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36001 (eval $ac_compile) 2>conftest.er1
36003 grep -v '^ *+' conftest.er1 >conftest.err
36005 cat conftest.err >&5
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); } &&
36008 { ac_try='test -z "$ac_c_werror_flag"
36009 || test ! -s conftest.err'
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; } &&
36015 { ac_try='test -s conftest.$ac_objext'
36016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017 (eval $ac_try) 2>&5
36019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020 (exit $ac_status); }; }; then
36021 gl_cv_func_free=yes
36023 echo "$as_me: failed program was:" >&5
36024 sed 's/^/| /' conftest.$ac_ext >&5
36028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36030 echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
36031 echo "${ECHO_T}$gl_cv_func_free" >&6
36033 if test $gl_cv_func_free = no; then
36035 "free.$ac_objext" | \
36036 *" free.$ac_objext" | \
36037 "free.$ac_objext "* | \
36038 *" free.$ac_objext "* ) ;;
36039 *) LIBOBJS="$LIBOBJS free.$ac_objext" ;;
36043 cat >>confdefs.h <<\_ACEOF
36044 #define free rpl_free
36052 for ac_header in utmp.h utmpx.h
36054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36056 echo "$as_me:$LINENO: checking for $ac_header" >&5
36057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36059 echo $ECHO_N "(cached) $ECHO_C" >&6
36061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36064 # Is the header compilable?
36065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36067 cat >conftest.$ac_ext <<_ACEOF
36070 cat confdefs.h >>conftest.$ac_ext
36071 cat >>conftest.$ac_ext <<_ACEOF
36072 /* end confdefs.h. */
36073 $ac_includes_default
36074 #include <$ac_header>
36076 rm -f conftest.$ac_objext
36077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36078 (eval $ac_compile) 2>conftest.er1
36080 grep -v '^ *+' conftest.er1 >conftest.err
36082 cat conftest.err >&5
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); } &&
36085 { ac_try='test -z "$ac_c_werror_flag"
36086 || test ! -s conftest.err'
36087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36088 (eval $ac_try) 2>&5
36090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091 (exit $ac_status); }; } &&
36092 { ac_try='test -s conftest.$ac_objext'
36093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094 (eval $ac_try) 2>&5
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); }; }; then
36098 ac_header_compiler=yes
36100 echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36103 ac_header_compiler=no
36105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36107 echo "${ECHO_T}$ac_header_compiler" >&6
36109 # Is the header present?
36110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36112 cat >conftest.$ac_ext <<_ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h. */
36118 #include <$ac_header>
36120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36123 grep -v '^ *+' conftest.er1 >conftest.err
36125 cat conftest.err >&5
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); } >/dev/null; then
36128 if test -s conftest.err; then
36129 ac_cpp_err=$ac_c_preproc_warn_flag
36130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36137 if test -z "$ac_cpp_err"; then
36138 ac_header_preproc=yes
36140 echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36143 ac_header_preproc=no
36145 rm -f conftest.err conftest.$ac_ext
36146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36147 echo "${ECHO_T}$ac_header_preproc" >&6
36149 # So? What about this header?
36150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36156 ac_header_preproc=yes
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36173 ## ------------------------------------ ##
36174 ## Report this to bug-coreutils@gnu.org ##
36175 ## ------------------------------------ ##
36178 sed "s/^/$as_me: WARNING: /" >&2
36181 echo "$as_me:$LINENO: checking for $ac_header" >&5
36182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36184 echo $ECHO_N "(cached) $ECHO_C" >&6
36186 eval "$as_ac_Header=\$ac_header_preproc"
36188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36193 cat >>confdefs.h <<_ACEOF
36194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36203 for ac_func in utmpname utmpxname
36205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36206 echo "$as_me:$LINENO: checking for $ac_func" >&5
36207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36208 if eval "test \"\${$as_ac_var+set}\" = set"; then
36209 echo $ECHO_N "(cached) $ECHO_C" >&6
36211 cat >conftest.$ac_ext <<_ACEOF
36214 cat confdefs.h >>conftest.$ac_ext
36215 cat >>conftest.$ac_ext <<_ACEOF
36216 /* end confdefs.h. */
36217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36219 #define $ac_func innocuous_$ac_func
36221 /* System header to define __stub macros and hopefully few prototypes,
36222 which can conflict with char $ac_func (); below.
36223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36224 <limits.h> exists even on freestanding compilers. */
36227 # include <limits.h>
36229 # include <assert.h>
36234 /* Override any gcc2 internal prototype to avoid an error. */
36239 /* We use char because int might match the return type of a gcc2
36240 builtin and then its argument prototype would still apply. */
36242 /* The GNU C library defines this for functions which it implements
36243 to always fail with ENOSYS. Some functions are actually named
36244 something starting with __ and the normal name is an alias. */
36245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36248 char (*f) () = $ac_func;
36257 return f != $ac_func;
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36264 (eval $ac_link) 2>conftest.er1
36266 grep -v '^ *+' conftest.er1 >conftest.err
36268 cat conftest.err >&5
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } &&
36271 { ac_try='test -z "$ac_c_werror_flag"
36272 || test ! -s conftest.err'
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; } &&
36278 { ac_try='test -s conftest$ac_exeext'
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; }; then
36284 eval "$as_ac_var=yes"
36286 echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36289 eval "$as_ac_var=no"
36291 rm -f conftest.err conftest.$ac_objext \
36292 conftest$ac_exeext conftest.$ac_ext
36294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36296 if test `eval echo '${'$as_ac_var'}'` = yes; then
36297 cat >>confdefs.h <<_ACEOF
36298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36304 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
36305 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
36306 if test "${ac_cv_have_decl_getutent+set}" = set; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36309 cat >conftest.$ac_ext <<_ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h. */
36325 char *p = (char *) getutent;
36332 rm -f conftest.$ac_objext
36333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36334 (eval $ac_compile) 2>conftest.er1
36336 grep -v '^ *+' conftest.er1 >conftest.err
36338 cat conftest.err >&5
36339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340 (exit $ac_status); } &&
36341 { ac_try='test -z "$ac_c_werror_flag"
36342 || test ! -s conftest.err'
36343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36344 (eval $ac_try) 2>&5
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); }; } &&
36348 { ac_try='test -s conftest.$ac_objext'
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; }; then
36354 ac_cv_have_decl_getutent=yes
36356 echo "$as_me: failed program was:" >&5
36357 sed 's/^/| /' conftest.$ac_ext >&5
36359 ac_cv_have_decl_getutent=no
36361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
36364 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
36365 if test $ac_cv_have_decl_getutent = yes; then
36367 cat >>confdefs.h <<_ACEOF
36368 #define HAVE_DECL_GETUTENT 1
36373 cat >>confdefs.h <<_ACEOF
36374 #define HAVE_DECL_GETUTENT 0
36381 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
36383 $ac_includes_default
36384 #ifdef HAVE_UTMPX_H
36385 # include <utmpx.h>
36391 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
36392 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
36393 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
36394 echo $ECHO_N "(cached) $ECHO_C" >&6
36396 cat >conftest.$ac_ext <<_ACEOF
36399 cat confdefs.h >>conftest.$ac_ext
36400 cat >>conftest.$ac_ext <<_ACEOF
36401 /* end confdefs.h. */
36407 static struct utmpx ac_aggr;
36408 if (ac_aggr.ut_user)
36414 rm -f conftest.$ac_objext
36415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36416 (eval $ac_compile) 2>conftest.er1
36418 grep -v '^ *+' conftest.er1 >conftest.err
36420 cat conftest.err >&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); } &&
36423 { ac_try='test -z "$ac_c_werror_flag"
36424 || test ! -s conftest.err'
36425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426 (eval $ac_try) 2>&5
36428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 (exit $ac_status); }; } &&
36430 { ac_try='test -s conftest.$ac_objext'
36431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432 (eval $ac_try) 2>&5
36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 (exit $ac_status); }; }; then
36436 ac_cv_member_struct_utmpx_ut_user=yes
36438 echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36441 cat >conftest.$ac_ext <<_ACEOF
36444 cat confdefs.h >>conftest.$ac_ext
36445 cat >>conftest.$ac_ext <<_ACEOF
36446 /* end confdefs.h. */
36452 static struct utmpx ac_aggr;
36453 if (sizeof ac_aggr.ut_user)
36459 rm -f conftest.$ac_objext
36460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36461 (eval $ac_compile) 2>conftest.er1
36463 grep -v '^ *+' conftest.er1 >conftest.err
36465 cat conftest.err >&5
36466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); } &&
36468 { ac_try='test -z "$ac_c_werror_flag"
36469 || test ! -s conftest.err'
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; } &&
36475 { ac_try='test -s conftest.$ac_objext'
36476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36477 (eval $ac_try) 2>&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); }; }; then
36481 ac_cv_member_struct_utmpx_ut_user=yes
36483 echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36486 ac_cv_member_struct_utmpx_ut_user=no
36488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
36493 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
36494 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
36496 cat >>confdefs.h <<_ACEOF
36497 #define HAVE_STRUCT_UTMPX_UT_USER 1
36503 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
36504 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
36505 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
36506 echo $ECHO_N "(cached) $ECHO_C" >&6
36508 cat >conftest.$ac_ext <<_ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36519 static struct utmp ac_aggr;
36520 if (ac_aggr.ut_user)
36526 rm -f conftest.$ac_objext
36527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36528 (eval $ac_compile) 2>conftest.er1
36530 grep -v '^ *+' conftest.er1 >conftest.err
36532 cat conftest.err >&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } &&
36535 { ac_try='test -z "$ac_c_werror_flag"
36536 || test ! -s conftest.err'
36537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36538 (eval $ac_try) 2>&5
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); }; } &&
36542 { ac_try='test -s conftest.$ac_objext'
36543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544 (eval $ac_try) 2>&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); }; }; then
36548 ac_cv_member_struct_utmp_ut_user=yes
36550 echo "$as_me: failed program was:" >&5
36551 sed 's/^/| /' conftest.$ac_ext >&5
36553 cat >conftest.$ac_ext <<_ACEOF
36556 cat confdefs.h >>conftest.$ac_ext
36557 cat >>conftest.$ac_ext <<_ACEOF
36558 /* end confdefs.h. */
36564 static struct utmp ac_aggr;
36565 if (sizeof ac_aggr.ut_user)
36571 rm -f conftest.$ac_objext
36572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36573 (eval $ac_compile) 2>conftest.er1
36575 grep -v '^ *+' conftest.er1 >conftest.err
36577 cat conftest.err >&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); } &&
36580 { ac_try='test -z "$ac_c_werror_flag"
36581 || test ! -s conftest.err'
36582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36583 (eval $ac_try) 2>&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); }; } &&
36587 { ac_try='test -s conftest.$ac_objext'
36588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36589 (eval $ac_try) 2>&5
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); }; }; then
36593 ac_cv_member_struct_utmp_ut_user=yes
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36598 ac_cv_member_struct_utmp_ut_user=no
36600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36604 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
36605 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
36606 if test $ac_cv_member_struct_utmp_ut_user = yes; then
36608 cat >>confdefs.h <<_ACEOF
36609 #define HAVE_STRUCT_UTMP_UT_USER 1
36615 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
36616 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
36617 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
36618 echo $ECHO_N "(cached) $ECHO_C" >&6
36620 cat >conftest.$ac_ext <<_ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h. */
36631 static struct utmpx ac_aggr;
36632 if (ac_aggr.ut_name)
36638 rm -f conftest.$ac_objext
36639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36640 (eval $ac_compile) 2>conftest.er1
36642 grep -v '^ *+' conftest.er1 >conftest.err
36644 cat conftest.err >&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } &&
36647 { ac_try='test -z "$ac_c_werror_flag"
36648 || test ! -s conftest.err'
36649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36650 (eval $ac_try) 2>&5
36652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653 (exit $ac_status); }; } &&
36654 { ac_try='test -s conftest.$ac_objext'
36655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36656 (eval $ac_try) 2>&5
36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659 (exit $ac_status); }; }; then
36660 ac_cv_member_struct_utmpx_ut_name=yes
36662 echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36665 cat >conftest.$ac_ext <<_ACEOF
36668 cat confdefs.h >>conftest.$ac_ext
36669 cat >>conftest.$ac_ext <<_ACEOF
36670 /* end confdefs.h. */
36676 static struct utmpx ac_aggr;
36677 if (sizeof ac_aggr.ut_name)
36683 rm -f conftest.$ac_objext
36684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36685 (eval $ac_compile) 2>conftest.er1
36687 grep -v '^ *+' conftest.er1 >conftest.err
36689 cat conftest.err >&5
36690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); } &&
36692 { ac_try='test -z "$ac_c_werror_flag"
36693 || test ! -s conftest.err'
36694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695 (eval $ac_try) 2>&5
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; } &&
36699 { ac_try='test -s conftest.$ac_objext'
36700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701 (eval $ac_try) 2>&5
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); }; }; then
36705 ac_cv_member_struct_utmpx_ut_name=yes
36707 echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36710 ac_cv_member_struct_utmpx_ut_name=no
36712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
36717 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
36718 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
36720 cat >>confdefs.h <<_ACEOF
36721 #define HAVE_STRUCT_UTMPX_UT_NAME 1
36727 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
36728 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
36729 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
36730 echo $ECHO_N "(cached) $ECHO_C" >&6
36732 cat >conftest.$ac_ext <<_ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h. */
36743 static struct utmp ac_aggr;
36744 if (ac_aggr.ut_name)
36750 rm -f conftest.$ac_objext
36751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36752 (eval $ac_compile) 2>conftest.er1
36754 grep -v '^ *+' conftest.er1 >conftest.err
36756 cat conftest.err >&5
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); } &&
36759 { ac_try='test -z "$ac_c_werror_flag"
36760 || test ! -s conftest.err'
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; } &&
36766 { ac_try='test -s conftest.$ac_objext'
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772 ac_cv_member_struct_utmp_ut_name=yes
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36777 cat >conftest.$ac_ext <<_ACEOF
36780 cat confdefs.h >>conftest.$ac_ext
36781 cat >>conftest.$ac_ext <<_ACEOF
36782 /* end confdefs.h. */
36788 static struct utmp ac_aggr;
36789 if (sizeof ac_aggr.ut_name)
36795 rm -f conftest.$ac_objext
36796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36797 (eval $ac_compile) 2>conftest.er1
36799 grep -v '^ *+' conftest.er1 >conftest.err
36801 cat conftest.err >&5
36802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803 (exit $ac_status); } &&
36804 { ac_try='test -z "$ac_c_werror_flag"
36805 || test ! -s conftest.err'
36806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807 (eval $ac_try) 2>&5
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); }; } &&
36811 { ac_try='test -s conftest.$ac_objext'
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; }; then
36817 ac_cv_member_struct_utmp_ut_name=yes
36819 echo "$as_me: failed program was:" >&5
36820 sed 's/^/| /' conftest.$ac_ext >&5
36822 ac_cv_member_struct_utmp_ut_name=no
36824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36828 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
36829 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
36830 if test $ac_cv_member_struct_utmp_ut_name = yes; then
36832 cat >>confdefs.h <<_ACEOF
36833 #define HAVE_STRUCT_UTMP_UT_NAME 1
36839 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
36840 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
36841 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 cat >conftest.$ac_ext <<_ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h. */
36855 static struct utmpx ac_aggr;
36856 if (ac_aggr.ut_type)
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864 (eval $ac_compile) 2>conftest.er1
36866 grep -v '^ *+' conftest.er1 >conftest.err
36868 cat conftest.err >&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
36871 { ac_try='test -z "$ac_c_werror_flag"
36872 || test ! -s conftest.err'
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; } &&
36878 { ac_try='test -s conftest.$ac_objext'
36879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880 (eval $ac_try) 2>&5
36882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883 (exit $ac_status); }; }; then
36884 ac_cv_member_struct_utmpx_ut_type=yes
36886 echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36889 cat >conftest.$ac_ext <<_ACEOF
36892 cat confdefs.h >>conftest.$ac_ext
36893 cat >>conftest.$ac_ext <<_ACEOF
36894 /* end confdefs.h. */
36900 static struct utmpx ac_aggr;
36901 if (sizeof ac_aggr.ut_type)
36907 rm -f conftest.$ac_objext
36908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36909 (eval $ac_compile) 2>conftest.er1
36911 grep -v '^ *+' conftest.er1 >conftest.err
36913 cat conftest.err >&5
36914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915 (exit $ac_status); } &&
36916 { ac_try='test -z "$ac_c_werror_flag"
36917 || test ! -s conftest.err'
36918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36919 (eval $ac_try) 2>&5
36921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); }; } &&
36923 { ac_try='test -s conftest.$ac_objext'
36924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925 (eval $ac_try) 2>&5
36927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928 (exit $ac_status); }; }; then
36929 ac_cv_member_struct_utmpx_ut_type=yes
36931 echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36934 ac_cv_member_struct_utmpx_ut_type=no
36936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36940 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
36941 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
36942 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
36944 cat >>confdefs.h <<_ACEOF
36945 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
36951 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
36952 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
36953 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
36954 echo $ECHO_N "(cached) $ECHO_C" >&6
36956 cat >conftest.$ac_ext <<_ACEOF
36959 cat confdefs.h >>conftest.$ac_ext
36960 cat >>conftest.$ac_ext <<_ACEOF
36961 /* end confdefs.h. */
36967 static struct utmp ac_aggr;
36968 if (ac_aggr.ut_type)
36974 rm -f conftest.$ac_objext
36975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36976 (eval $ac_compile) 2>conftest.er1
36978 grep -v '^ *+' conftest.er1 >conftest.err
36980 cat conftest.err >&5
36981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); } &&
36983 { ac_try='test -z "$ac_c_werror_flag"
36984 || test ! -s conftest.err'
36985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36986 (eval $ac_try) 2>&5
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); }; } &&
36990 { ac_try='test -s conftest.$ac_objext'
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; }; then
36996 ac_cv_member_struct_utmp_ut_type=yes
36998 echo "$as_me: failed program was:" >&5
36999 sed 's/^/| /' conftest.$ac_ext >&5
37001 cat >conftest.$ac_ext <<_ACEOF
37004 cat confdefs.h >>conftest.$ac_ext
37005 cat >>conftest.$ac_ext <<_ACEOF
37006 /* end confdefs.h. */
37012 static struct utmp ac_aggr;
37013 if (sizeof ac_aggr.ut_type)
37019 rm -f conftest.$ac_objext
37020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37021 (eval $ac_compile) 2>conftest.er1
37023 grep -v '^ *+' conftest.er1 >conftest.err
37025 cat conftest.err >&5
37026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37027 (exit $ac_status); } &&
37028 { ac_try='test -z "$ac_c_werror_flag"
37029 || test ! -s conftest.err'
37030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37031 (eval $ac_try) 2>&5
37033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034 (exit $ac_status); }; } &&
37035 { ac_try='test -s conftest.$ac_objext'
37036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037 (eval $ac_try) 2>&5
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); }; }; then
37041 ac_cv_member_struct_utmp_ut_type=yes
37043 echo "$as_me: failed program was:" >&5
37044 sed 's/^/| /' conftest.$ac_ext >&5
37046 ac_cv_member_struct_utmp_ut_type=no
37048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37052 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
37053 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
37054 if test $ac_cv_member_struct_utmp_ut_type = yes; then
37056 cat >>confdefs.h <<_ACEOF
37057 #define HAVE_STRUCT_UTMP_UT_TYPE 1
37063 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
37064 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
37065 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
37066 echo $ECHO_N "(cached) $ECHO_C" >&6
37068 cat >conftest.$ac_ext <<_ACEOF
37071 cat confdefs.h >>conftest.$ac_ext
37072 cat >>conftest.$ac_ext <<_ACEOF
37073 /* end confdefs.h. */
37079 static struct utmpx ac_aggr;
37080 if (ac_aggr.ut_pid)
37086 rm -f conftest.$ac_objext
37087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37088 (eval $ac_compile) 2>conftest.er1
37090 grep -v '^ *+' conftest.er1 >conftest.err
37092 cat conftest.err >&5
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); } &&
37095 { ac_try='test -z "$ac_c_werror_flag"
37096 || test ! -s conftest.err'
37097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37098 (eval $ac_try) 2>&5
37100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101 (exit $ac_status); }; } &&
37102 { ac_try='test -s conftest.$ac_objext'
37103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37104 (eval $ac_try) 2>&5
37106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107 (exit $ac_status); }; }; then
37108 ac_cv_member_struct_utmpx_ut_pid=yes
37110 echo "$as_me: failed program was:" >&5
37111 sed 's/^/| /' conftest.$ac_ext >&5
37113 cat >conftest.$ac_ext <<_ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h. */
37124 static struct utmpx ac_aggr;
37125 if (sizeof ac_aggr.ut_pid)
37131 rm -f conftest.$ac_objext
37132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37133 (eval $ac_compile) 2>conftest.er1
37135 grep -v '^ *+' conftest.er1 >conftest.err
37137 cat conftest.err >&5
37138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37139 (exit $ac_status); } &&
37140 { ac_try='test -z "$ac_c_werror_flag"
37141 || test ! -s conftest.err'
37142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37143 (eval $ac_try) 2>&5
37145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146 (exit $ac_status); }; } &&
37147 { ac_try='test -s conftest.$ac_objext'
37148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37149 (eval $ac_try) 2>&5
37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); }; }; then
37153 ac_cv_member_struct_utmpx_ut_pid=yes
37155 echo "$as_me: failed program was:" >&5
37156 sed 's/^/| /' conftest.$ac_ext >&5
37158 ac_cv_member_struct_utmpx_ut_pid=no
37160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
37165 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
37166 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
37168 cat >>confdefs.h <<_ACEOF
37169 #define HAVE_STRUCT_UTMPX_UT_PID 1
37175 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
37176 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
37177 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
37178 echo $ECHO_N "(cached) $ECHO_C" >&6
37180 cat >conftest.$ac_ext <<_ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h. */
37191 static struct utmp ac_aggr;
37192 if (ac_aggr.ut_pid)
37198 rm -f conftest.$ac_objext
37199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37200 (eval $ac_compile) 2>conftest.er1
37202 grep -v '^ *+' conftest.er1 >conftest.err
37204 cat conftest.err >&5
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
37207 { ac_try='test -z "$ac_c_werror_flag"
37208 || test ! -s conftest.err'
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; } &&
37214 { ac_try='test -s conftest.$ac_objext'
37215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216 (eval $ac_try) 2>&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); }; }; then
37220 ac_cv_member_struct_utmp_ut_pid=yes
37222 echo "$as_me: failed program was:" >&5
37223 sed 's/^/| /' conftest.$ac_ext >&5
37225 cat >conftest.$ac_ext <<_ACEOF
37228 cat confdefs.h >>conftest.$ac_ext
37229 cat >>conftest.$ac_ext <<_ACEOF
37230 /* end confdefs.h. */
37236 static struct utmp ac_aggr;
37237 if (sizeof ac_aggr.ut_pid)
37243 rm -f conftest.$ac_objext
37244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37245 (eval $ac_compile) 2>conftest.er1
37247 grep -v '^ *+' conftest.er1 >conftest.err
37249 cat conftest.err >&5
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); } &&
37252 { ac_try='test -z "$ac_c_werror_flag"
37253 || test ! -s conftest.err'
37254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37255 (eval $ac_try) 2>&5
37257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258 (exit $ac_status); }; } &&
37259 { ac_try='test -s conftest.$ac_objext'
37260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37261 (eval $ac_try) 2>&5
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); }; }; then
37265 ac_cv_member_struct_utmp_ut_pid=yes
37267 echo "$as_me: failed program was:" >&5
37268 sed 's/^/| /' conftest.$ac_ext >&5
37270 ac_cv_member_struct_utmp_ut_pid=no
37272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37276 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
37277 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
37278 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
37280 cat >>confdefs.h <<_ACEOF
37281 #define HAVE_STRUCT_UTMP_UT_PID 1
37287 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
37288 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
37289 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
37290 echo $ECHO_N "(cached) $ECHO_C" >&6
37292 cat >conftest.$ac_ext <<_ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h. */
37303 static struct utmpx ac_aggr;
37310 rm -f conftest.$ac_objext
37311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37312 (eval $ac_compile) 2>conftest.er1
37314 grep -v '^ *+' conftest.er1 >conftest.err
37316 cat conftest.err >&5
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); } &&
37319 { ac_try='test -z "$ac_c_werror_flag"
37320 || test ! -s conftest.err'
37321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322 (eval $ac_try) 2>&5
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); }; } &&
37326 { ac_try='test -s conftest.$ac_objext'
37327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328 (eval $ac_try) 2>&5
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); }; }; then
37332 ac_cv_member_struct_utmpx_ut_id=yes
37334 echo "$as_me: failed program was:" >&5
37335 sed 's/^/| /' conftest.$ac_ext >&5
37337 cat >conftest.$ac_ext <<_ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h. */
37348 static struct utmpx ac_aggr;
37349 if (sizeof ac_aggr.ut_id)
37355 rm -f conftest.$ac_objext
37356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37357 (eval $ac_compile) 2>conftest.er1
37359 grep -v '^ *+' conftest.er1 >conftest.err
37361 cat conftest.err >&5
37362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363 (exit $ac_status); } &&
37364 { ac_try='test -z "$ac_c_werror_flag"
37365 || test ! -s conftest.err'
37366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37367 (eval $ac_try) 2>&5
37369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370 (exit $ac_status); }; } &&
37371 { ac_try='test -s conftest.$ac_objext'
37372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37373 (eval $ac_try) 2>&5
37375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376 (exit $ac_status); }; }; then
37377 ac_cv_member_struct_utmpx_ut_id=yes
37379 echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37382 ac_cv_member_struct_utmpx_ut_id=no
37384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37388 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
37389 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
37390 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
37392 cat >>confdefs.h <<_ACEOF
37393 #define HAVE_STRUCT_UTMPX_UT_ID 1
37399 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
37400 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
37401 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37404 cat >conftest.$ac_ext <<_ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h. */
37415 static struct utmp ac_aggr;
37422 rm -f conftest.$ac_objext
37423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37424 (eval $ac_compile) 2>conftest.er1
37426 grep -v '^ *+' conftest.er1 >conftest.err
37428 cat conftest.err >&5
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); } &&
37431 { ac_try='test -z "$ac_c_werror_flag"
37432 || test ! -s conftest.err'
37433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434 (eval $ac_try) 2>&5
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); }; } &&
37438 { ac_try='test -s conftest.$ac_objext'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; }; then
37444 ac_cv_member_struct_utmp_ut_id=yes
37446 echo "$as_me: failed program was:" >&5
37447 sed 's/^/| /' conftest.$ac_ext >&5
37449 cat >conftest.$ac_ext <<_ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37460 static struct utmp ac_aggr;
37461 if (sizeof ac_aggr.ut_id)
37467 rm -f conftest.$ac_objext
37468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37469 (eval $ac_compile) 2>conftest.er1
37471 grep -v '^ *+' conftest.er1 >conftest.err
37473 cat conftest.err >&5
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); } &&
37476 { ac_try='test -z "$ac_c_werror_flag"
37477 || test ! -s conftest.err'
37478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37479 (eval $ac_try) 2>&5
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); }; } &&
37483 { ac_try='test -s conftest.$ac_objext'
37484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 (eval $ac_try) 2>&5
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); }; }; then
37489 ac_cv_member_struct_utmp_ut_id=yes
37491 echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37494 ac_cv_member_struct_utmp_ut_id=no
37496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
37501 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
37502 if test $ac_cv_member_struct_utmp_ut_id = yes; then
37504 cat >>confdefs.h <<_ACEOF
37505 #define HAVE_STRUCT_UTMP_UT_ID 1
37511 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
37512 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
37513 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
37514 echo $ECHO_N "(cached) $ECHO_C" >&6
37516 cat >conftest.$ac_ext <<_ACEOF
37519 cat confdefs.h >>conftest.$ac_ext
37520 cat >>conftest.$ac_ext <<_ACEOF
37521 /* end confdefs.h. */
37527 static struct utmpx ac_aggr;
37528 if (ac_aggr.ut_exit)
37534 rm -f conftest.$ac_objext
37535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37536 (eval $ac_compile) 2>conftest.er1
37538 grep -v '^ *+' conftest.er1 >conftest.err
37540 cat conftest.err >&5
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); } &&
37543 { ac_try='test -z "$ac_c_werror_flag"
37544 || test ! -s conftest.err'
37545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37546 (eval $ac_try) 2>&5
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); }; } &&
37550 { ac_try='test -s conftest.$ac_objext'
37551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37552 (eval $ac_try) 2>&5
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); }; }; then
37556 ac_cv_member_struct_utmpx_ut_exit=yes
37558 echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37561 cat >conftest.$ac_ext <<_ACEOF
37564 cat confdefs.h >>conftest.$ac_ext
37565 cat >>conftest.$ac_ext <<_ACEOF
37566 /* end confdefs.h. */
37572 static struct utmpx ac_aggr;
37573 if (sizeof ac_aggr.ut_exit)
37579 rm -f conftest.$ac_objext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37581 (eval $ac_compile) 2>conftest.er1
37583 grep -v '^ *+' conftest.er1 >conftest.err
37585 cat conftest.err >&5
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); } &&
37588 { ac_try='test -z "$ac_c_werror_flag"
37589 || test ! -s conftest.err'
37590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37591 (eval $ac_try) 2>&5
37593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594 (exit $ac_status); }; } &&
37595 { ac_try='test -s conftest.$ac_objext'
37596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597 (eval $ac_try) 2>&5
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); }; }; then
37601 ac_cv_member_struct_utmpx_ut_exit=yes
37603 echo "$as_me: failed program was:" >&5
37604 sed 's/^/| /' conftest.$ac_ext >&5
37606 ac_cv_member_struct_utmpx_ut_exit=no
37608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
37613 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
37614 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
37616 cat >>confdefs.h <<_ACEOF
37617 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
37623 echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
37624 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
37625 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
37626 echo $ECHO_N "(cached) $ECHO_C" >&6
37628 cat >conftest.$ac_ext <<_ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h. */
37639 static struct utmp ac_aggr;
37640 if (ac_aggr.ut_exit)
37646 rm -f conftest.$ac_objext
37647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37648 (eval $ac_compile) 2>conftest.er1
37650 grep -v '^ *+' conftest.er1 >conftest.err
37652 cat conftest.err >&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); } &&
37655 { ac_try='test -z "$ac_c_werror_flag"
37656 || test ! -s conftest.err'
37657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37658 (eval $ac_try) 2>&5
37660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661 (exit $ac_status); }; } &&
37662 { ac_try='test -s conftest.$ac_objext'
37663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37664 (eval $ac_try) 2>&5
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); }; }; then
37668 ac_cv_member_struct_utmp_ut_exit=yes
37670 echo "$as_me: failed program was:" >&5
37671 sed 's/^/| /' conftest.$ac_ext >&5
37673 cat >conftest.$ac_ext <<_ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h. */
37684 static struct utmp ac_aggr;
37685 if (sizeof ac_aggr.ut_exit)
37691 rm -f conftest.$ac_objext
37692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37693 (eval $ac_compile) 2>conftest.er1
37695 grep -v '^ *+' conftest.er1 >conftest.err
37697 cat conftest.err >&5
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); } &&
37700 { ac_try='test -z "$ac_c_werror_flag"
37701 || test ! -s conftest.err'
37702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37703 (eval $ac_try) 2>&5
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); }; } &&
37707 { ac_try='test -s conftest.$ac_objext'
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; }; then
37713 ac_cv_member_struct_utmp_ut_exit=yes
37715 echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37718 ac_cv_member_struct_utmp_ut_exit=no
37720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37724 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
37725 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
37726 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
37728 cat >>confdefs.h <<_ACEOF
37729 #define HAVE_STRUCT_UTMP_UT_EXIT 1
37736 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
37737 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
37738 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
37739 echo $ECHO_N "(cached) $ECHO_C" >&6
37741 cat >conftest.$ac_ext <<_ACEOF
37744 cat confdefs.h >>conftest.$ac_ext
37745 cat >>conftest.$ac_ext <<_ACEOF
37746 /* end confdefs.h. */
37752 static struct utmpx ac_aggr;
37753 if (ac_aggr.ut_exit.ut_exit)
37759 rm -f conftest.$ac_objext
37760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37761 (eval $ac_compile) 2>conftest.er1
37763 grep -v '^ *+' conftest.er1 >conftest.err
37765 cat conftest.err >&5
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); } &&
37768 { ac_try='test -z "$ac_c_werror_flag"
37769 || test ! -s conftest.err'
37770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771 (eval $ac_try) 2>&5
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); }; } &&
37775 { ac_try='test -s conftest.$ac_objext'
37776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777 (eval $ac_try) 2>&5
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); }; }; then
37781 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37783 echo "$as_me: failed program was:" >&5
37784 sed 's/^/| /' conftest.$ac_ext >&5
37786 cat >conftest.$ac_ext <<_ACEOF
37789 cat confdefs.h >>conftest.$ac_ext
37790 cat >>conftest.$ac_ext <<_ACEOF
37791 /* end confdefs.h. */
37797 static struct utmpx ac_aggr;
37798 if (sizeof ac_aggr.ut_exit.ut_exit)
37804 rm -f conftest.$ac_objext
37805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37806 (eval $ac_compile) 2>conftest.er1
37808 grep -v '^ *+' conftest.er1 >conftest.err
37810 cat conftest.err >&5
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); } &&
37813 { ac_try='test -z "$ac_c_werror_flag"
37814 || test ! -s conftest.err'
37815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816 (eval $ac_try) 2>&5
37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); }; } &&
37820 { ac_try='test -s conftest.$ac_objext'
37821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822 (eval $ac_try) 2>&5
37824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825 (exit $ac_status); }; }; then
37826 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37828 echo "$as_me: failed program was:" >&5
37829 sed 's/^/| /' conftest.$ac_ext >&5
37831 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
37833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37837 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
37838 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
37839 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
37841 cat >>confdefs.h <<_ACEOF
37842 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
37848 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
37849 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
37850 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37853 cat >conftest.$ac_ext <<_ACEOF
37856 cat confdefs.h >>conftest.$ac_ext
37857 cat >>conftest.$ac_ext <<_ACEOF
37858 /* end confdefs.h. */
37864 static struct utmp ac_aggr;
37865 if (ac_aggr.ut_exit.ut_exit)
37871 rm -f conftest.$ac_objext
37872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37873 (eval $ac_compile) 2>conftest.er1
37875 grep -v '^ *+' conftest.er1 >conftest.err
37877 cat conftest.err >&5
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } &&
37880 { ac_try='test -z "$ac_c_werror_flag"
37881 || test ! -s conftest.err'
37882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 (eval $ac_try) 2>&5
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; } &&
37887 { ac_try='test -s conftest.$ac_objext'
37888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889 (eval $ac_try) 2>&5
37891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892 (exit $ac_status); }; }; then
37893 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37895 echo "$as_me: failed program was:" >&5
37896 sed 's/^/| /' conftest.$ac_ext >&5
37898 cat >conftest.$ac_ext <<_ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h. */
37909 static struct utmp ac_aggr;
37910 if (sizeof ac_aggr.ut_exit.ut_exit)
37916 rm -f conftest.$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918 (eval $ac_compile) 2>conftest.er1
37920 grep -v '^ *+' conftest.er1 >conftest.err
37922 cat conftest.err >&5
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); } &&
37925 { ac_try='test -z "$ac_c_werror_flag"
37926 || test ! -s conftest.err'
37927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928 (eval $ac_try) 2>&5
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); }; } &&
37932 { ac_try='test -s conftest.$ac_objext'
37933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934 (eval $ac_try) 2>&5
37936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937 (exit $ac_status); }; }; then
37938 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37940 echo "$as_me: failed program was:" >&5
37941 sed 's/^/| /' conftest.$ac_ext >&5
37943 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
37945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37949 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
37950 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
37951 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
37953 cat >>confdefs.h <<_ACEOF
37954 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
37960 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
37961 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
37962 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
37963 echo $ECHO_N "(cached) $ECHO_C" >&6
37965 cat >conftest.$ac_ext <<_ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h. */
37976 static struct utmpx ac_aggr;
37977 if (ac_aggr.ut_exit.e_exit)
37983 rm -f conftest.$ac_objext
37984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37985 (eval $ac_compile) 2>conftest.er1
37987 grep -v '^ *+' conftest.er1 >conftest.err
37989 cat conftest.err >&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); } &&
37992 { ac_try='test -z "$ac_c_werror_flag"
37993 || test ! -s conftest.err'
37994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995 (eval $ac_try) 2>&5
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); }; } &&
37999 { ac_try='test -s conftest.$ac_objext'
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; }; then
38005 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38007 echo "$as_me: failed program was:" >&5
38008 sed 's/^/| /' conftest.$ac_ext >&5
38010 cat >conftest.$ac_ext <<_ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h. */
38021 static struct utmpx ac_aggr;
38022 if (sizeof ac_aggr.ut_exit.e_exit)
38028 rm -f conftest.$ac_objext
38029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38030 (eval $ac_compile) 2>conftest.er1
38032 grep -v '^ *+' conftest.er1 >conftest.err
38034 cat conftest.err >&5
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); } &&
38037 { ac_try='test -z "$ac_c_werror_flag"
38038 || test ! -s conftest.err'
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; } &&
38044 { ac_try='test -s conftest.$ac_objext'
38045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046 (eval $ac_try) 2>&5
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); }; }; then
38050 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38052 echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38055 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38061 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
38062 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
38063 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
38065 cat >>confdefs.h <<_ACEOF
38066 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
38072 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
38073 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
38074 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38077 cat >conftest.$ac_ext <<_ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h. */
38088 static struct utmp ac_aggr;
38089 if (ac_aggr.ut_exit.e_exit)
38095 rm -f conftest.$ac_objext
38096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38097 (eval $ac_compile) 2>conftest.er1
38099 grep -v '^ *+' conftest.er1 >conftest.err
38101 cat conftest.err >&5
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); } &&
38104 { ac_try='test -z "$ac_c_werror_flag"
38105 || test ! -s conftest.err'
38106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107 (eval $ac_try) 2>&5
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; } &&
38111 { ac_try='test -s conftest.$ac_objext'
38112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113 (eval $ac_try) 2>&5
38115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116 (exit $ac_status); }; }; then
38117 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38119 echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38122 cat >conftest.$ac_ext <<_ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h. */
38133 static struct utmp ac_aggr;
38134 if (sizeof ac_aggr.ut_exit.e_exit)
38140 rm -f conftest.$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142 (eval $ac_compile) 2>conftest.er1
38144 grep -v '^ *+' conftest.er1 >conftest.err
38146 cat conftest.err >&5
38147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); } &&
38149 { ac_try='test -z "$ac_c_werror_flag"
38150 || test ! -s conftest.err'
38151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152 (eval $ac_try) 2>&5
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); }; } &&
38156 { ac_try='test -s conftest.$ac_objext'
38157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158 (eval $ac_try) 2>&5
38160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 (exit $ac_status); }; }; then
38162 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38164 echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38167 ac_cv_member_struct_utmp_ut_exit_e_exit=no
38169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
38174 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
38175 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
38177 cat >>confdefs.h <<_ACEOF
38178 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
38185 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
38186 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
38187 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
38188 echo $ECHO_N "(cached) $ECHO_C" >&6
38190 cat >conftest.$ac_ext <<_ACEOF
38193 cat confdefs.h >>conftest.$ac_ext
38194 cat >>conftest.$ac_ext <<_ACEOF
38195 /* end confdefs.h. */
38201 static struct utmpx ac_aggr;
38202 if (ac_aggr.ut_exit.ut_termination)
38208 rm -f conftest.$ac_objext
38209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38210 (eval $ac_compile) 2>conftest.er1
38212 grep -v '^ *+' conftest.er1 >conftest.err
38214 cat conftest.err >&5
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); } &&
38217 { ac_try='test -z "$ac_c_werror_flag"
38218 || test ! -s conftest.err'
38219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220 (eval $ac_try) 2>&5
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); }; } &&
38224 { ac_try='test -s conftest.$ac_objext'
38225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38226 (eval $ac_try) 2>&5
38228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229 (exit $ac_status); }; }; then
38230 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38232 echo "$as_me: failed program was:" >&5
38233 sed 's/^/| /' conftest.$ac_ext >&5
38235 cat >conftest.$ac_ext <<_ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h. */
38246 static struct utmpx ac_aggr;
38247 if (sizeof ac_aggr.ut_exit.ut_termination)
38253 rm -f conftest.$ac_objext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38255 (eval $ac_compile) 2>conftest.er1
38257 grep -v '^ *+' conftest.er1 >conftest.err
38259 cat conftest.err >&5
38260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261 (exit $ac_status); } &&
38262 { ac_try='test -z "$ac_c_werror_flag"
38263 || test ! -s conftest.err'
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; } &&
38269 { ac_try='test -s conftest.$ac_objext'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38277 echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38280 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
38282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
38287 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
38288 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
38290 cat >>confdefs.h <<_ACEOF
38291 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
38297 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
38298 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
38299 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38302 cat >conftest.$ac_ext <<_ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38313 static struct utmp ac_aggr;
38314 if (ac_aggr.ut_exit.ut_termination)
38320 rm -f conftest.$ac_objext
38321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38322 (eval $ac_compile) 2>conftest.er1
38324 grep -v '^ *+' conftest.er1 >conftest.err
38326 cat conftest.err >&5
38327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328 (exit $ac_status); } &&
38329 { ac_try='test -z "$ac_c_werror_flag"
38330 || test ! -s conftest.err'
38331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332 (eval $ac_try) 2>&5
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; } &&
38336 { ac_try='test -s conftest.$ac_objext'
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; }; then
38342 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38344 echo "$as_me: failed program was:" >&5
38345 sed 's/^/| /' conftest.$ac_ext >&5
38347 cat >conftest.$ac_ext <<_ACEOF
38350 cat confdefs.h >>conftest.$ac_ext
38351 cat >>conftest.$ac_ext <<_ACEOF
38352 /* end confdefs.h. */
38358 static struct utmp ac_aggr;
38359 if (sizeof ac_aggr.ut_exit.ut_termination)
38365 rm -f conftest.$ac_objext
38366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38367 (eval $ac_compile) 2>conftest.er1
38369 grep -v '^ *+' conftest.er1 >conftest.err
38371 cat conftest.err >&5
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } &&
38374 { ac_try='test -z "$ac_c_werror_flag"
38375 || test ! -s conftest.err'
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; } &&
38381 { ac_try='test -s conftest.$ac_objext'
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; }; then
38387 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38389 echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38392 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
38394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38398 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
38399 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
38400 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
38402 cat >>confdefs.h <<_ACEOF
38403 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
38409 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
38410 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
38411 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
38412 echo $ECHO_N "(cached) $ECHO_C" >&6
38414 cat >conftest.$ac_ext <<_ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h. */
38425 static struct utmpx ac_aggr;
38426 if (ac_aggr.ut_exit.e_termination)
38432 rm -f conftest.$ac_objext
38433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38434 (eval $ac_compile) 2>conftest.er1
38436 grep -v '^ *+' conftest.er1 >conftest.err
38438 cat conftest.err >&5
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); } &&
38441 { ac_try='test -z "$ac_c_werror_flag"
38442 || test ! -s conftest.err'
38443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444 (eval $ac_try) 2>&5
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); }; } &&
38448 { ac_try='test -s conftest.$ac_objext'
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; }; then
38454 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38456 echo "$as_me: failed program was:" >&5
38457 sed 's/^/| /' conftest.$ac_ext >&5
38459 cat >conftest.$ac_ext <<_ACEOF
38462 cat confdefs.h >>conftest.$ac_ext
38463 cat >>conftest.$ac_ext <<_ACEOF
38464 /* end confdefs.h. */
38470 static struct utmpx ac_aggr;
38471 if (sizeof ac_aggr.ut_exit.e_termination)
38477 rm -f conftest.$ac_objext
38478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38479 (eval $ac_compile) 2>conftest.er1
38481 grep -v '^ *+' conftest.er1 >conftest.err
38483 cat conftest.err >&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); } &&
38486 { ac_try='test -z "$ac_c_werror_flag"
38487 || test ! -s conftest.err'
38488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489 (eval $ac_try) 2>&5
38491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492 (exit $ac_status); }; } &&
38493 { ac_try='test -s conftest.$ac_objext'
38494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495 (eval $ac_try) 2>&5
38497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); }; }; then
38499 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38501 echo "$as_me: failed program was:" >&5
38502 sed 's/^/| /' conftest.$ac_ext >&5
38504 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
38506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
38511 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
38512 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
38514 cat >>confdefs.h <<_ACEOF
38515 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
38521 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
38522 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
38523 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38526 cat >conftest.$ac_ext <<_ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h. */
38537 static struct utmp ac_aggr;
38538 if (ac_aggr.ut_exit.e_termination)
38544 rm -f conftest.$ac_objext
38545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38546 (eval $ac_compile) 2>conftest.er1
38548 grep -v '^ *+' conftest.er1 >conftest.err
38550 cat conftest.err >&5
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); } &&
38553 { ac_try='test -z "$ac_c_werror_flag"
38554 || test ! -s conftest.err'
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; } &&
38560 { ac_try='test -s conftest.$ac_objext'
38561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562 (eval $ac_try) 2>&5
38564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565 (exit $ac_status); }; }; then
38566 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38568 echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.$ac_ext >&5
38571 cat >conftest.$ac_ext <<_ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h. */
38582 static struct utmp ac_aggr;
38583 if (sizeof ac_aggr.ut_exit.e_termination)
38589 rm -f conftest.$ac_objext
38590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38591 (eval $ac_compile) 2>conftest.er1
38593 grep -v '^ *+' conftest.er1 >conftest.err
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } &&
38598 { ac_try='test -z "$ac_c_werror_flag"
38599 || test ! -s conftest.err'
38600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38601 (eval $ac_try) 2>&5
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); }; } &&
38605 { ac_try='test -s conftest.$ac_objext'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607 (eval $ac_try) 2>&5
38609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; }; then
38611 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38613 echo "$as_me: failed program was:" >&5
38614 sed 's/^/| /' conftest.$ac_ext >&5
38616 ac_cv_member_struct_utmp_ut_exit_e_termination=no
38618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38622 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
38623 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
38624 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
38626 cat >>confdefs.h <<_ACEOF
38627 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
38635 "readutmp.$ac_objext" | \
38636 *" readutmp.$ac_objext" | \
38637 "readutmp.$ac_objext "* | \
38638 *" readutmp.$ac_objext "* ) ;;
38639 *) LIBOBJS="$LIBOBJS readutmp.$ac_objext" ;;
38647 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
38648 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
38649 if test "${gl_cv_c_restrict+set}" = set; then
38650 echo $ECHO_N "(cached) $ECHO_C" >&6
38652 gl_cv_c_restrict=no
38653 # Try the official restrict keyword, then gcc's __restrict, and
38654 # the less common variants.
38655 for ac_kw in restrict __restrict __restrict__ _Restrict; do
38656 cat >conftest.$ac_ext <<_ACEOF
38659 cat confdefs.h >>conftest.$ac_ext
38660 cat >>conftest.$ac_ext <<_ACEOF
38661 /* end confdefs.h. */
38664 rm -f conftest.$ac_objext
38665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38666 (eval $ac_compile) 2>conftest.er1
38668 grep -v '^ *+' conftest.er1 >conftest.err
38670 cat conftest.err >&5
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); } &&
38673 { ac_try='test -z "$ac_c_werror_flag"
38674 || test ! -s conftest.err'
38675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676 (eval $ac_try) 2>&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); }; } &&
38680 { ac_try='test -s conftest.$ac_objext'
38681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682 (eval $ac_try) 2>&5
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); }; }; then
38686 gl_cv_c_restrict=$ac_kw; break
38688 echo "$as_me: failed program was:" >&5
38689 sed 's/^/| /' conftest.$ac_ext >&5
38692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38696 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
38697 echo "${ECHO_T}$gl_cv_c_restrict" >&6
38698 case $gl_cv_c_restrict in
38701 cat >>confdefs.h <<\_ACEOF
38705 *) cat >>confdefs.h <<_ACEOF
38706 #define restrict $gl_cv_c_restrict
38714 # Assume we'll default to using the included regex.c.
38715 ac_use_included_regex=yes
38717 # However, if the system regex support is good enough that it passes the
38718 # the following run test, then default to *not* using the included regex.c.
38719 # If cross compiling, assume the test would fail and use the included
38720 # regex.c. The first failing regular expression is from `Spencer ere
38721 # test #75' in grep-2.3.
38722 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
38723 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
38724 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
38725 echo $ECHO_N "(cached) $ECHO_C" >&6
38727 if test "$cross_compiling" = yes; then
38728 jm_cv_func_working_re_compile_pattern=no
38730 cat >conftest.$ac_ext <<_ACEOF
38733 cat confdefs.h >>conftest.$ac_ext
38734 cat >>conftest.$ac_ext <<_ACEOF
38735 /* end confdefs.h. */
38737 #include <string.h>
38742 static struct re_pattern_buffer regex;
38744 struct re_registers regs;
38745 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
38746 memset (®ex, 0, sizeof (regex));
38747 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
38748 /* This should fail with _Invalid character class name_ error. */
38752 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
38753 memset (®ex, 0, sizeof (regex));
38754 s = re_compile_pattern ("{1", 2, ®ex);
38759 /* The following example is derived from a problem report
38760 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
38761 memset (®ex, 0, sizeof (regex));
38762 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
38766 /* This should match, but doesn't for e.g. glibc-2.2.1. */
38767 if (re_match (®ex, "an", 2, 0, ®s) != 2)
38770 memset (®ex, 0, sizeof (regex));
38771 s = re_compile_pattern ("x", 1, ®ex);
38775 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
38776 work with a negative RANGE argument. */
38777 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
38784 rm -f conftest$ac_exeext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38786 (eval $ac_link) 2>&5
38788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38791 (eval $ac_try) 2>&5
38793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794 (exit $ac_status); }; }; then
38795 jm_cv_func_working_re_compile_pattern=yes
38797 echo "$as_me: program exited with status $ac_status" >&5
38798 echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38801 ( exit $ac_status )
38802 jm_cv_func_working_re_compile_pattern=no
38804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38807 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
38808 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
38809 if test $jm_cv_func_working_re_compile_pattern = yes; then
38810 ac_use_included_regex=no
38813 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
38814 echo "$as_me: error: missing argument" >&2;}
38815 { (exit 1); exit 1; }; }
38819 # Check whether --with-included-regex or --without-included-regex was given.
38820 if test "${with_included_regex+set}" = set; then
38821 withval="$with_included_regex"
38822 jm_with_regex=$withval
38824 jm_with_regex=$ac_use_included_regex
38826 if test "$jm_with_regex" = yes; then
38828 "regex.$ac_objext" | \
38829 *" regex.$ac_objext" | \
38830 "regex.$ac_objext "* | \
38831 *" regex.$ac_objext "* ) ;;
38832 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
38863 for ac_func in btowc
38865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38866 echo "$as_me:$LINENO: checking for $ac_func" >&5
38867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38868 if eval "test \"\${$as_ac_var+set}\" = set"; then
38869 echo $ECHO_N "(cached) $ECHO_C" >&6
38871 cat >conftest.$ac_ext <<_ACEOF
38874 cat confdefs.h >>conftest.$ac_ext
38875 cat >>conftest.$ac_ext <<_ACEOF
38876 /* end confdefs.h. */
38877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38879 #define $ac_func innocuous_$ac_func
38881 /* System header to define __stub macros and hopefully few prototypes,
38882 which can conflict with char $ac_func (); below.
38883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38884 <limits.h> exists even on freestanding compilers. */
38887 # include <limits.h>
38889 # include <assert.h>
38894 /* Override any gcc2 internal prototype to avoid an error. */
38899 /* We use char because int might match the return type of a gcc2
38900 builtin and then its argument prototype would still apply. */
38902 /* The GNU C library defines this for functions which it implements
38903 to always fail with ENOSYS. Some functions are actually named
38904 something starting with __ and the normal name is an alias. */
38905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38908 char (*f) () = $ac_func;
38917 return f != $ac_func;
38922 rm -f conftest.$ac_objext conftest$ac_exeext
38923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38924 (eval $ac_link) 2>conftest.er1
38926 grep -v '^ *+' conftest.er1 >conftest.err
38928 cat conftest.err >&5
38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930 (exit $ac_status); } &&
38931 { ac_try='test -z "$ac_c_werror_flag"
38932 || test ! -s conftest.err'
38933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38934 (eval $ac_try) 2>&5
38936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937 (exit $ac_status); }; } &&
38938 { ac_try='test -s conftest$ac_exeext'
38939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940 (eval $ac_try) 2>&5
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); }; }; then
38944 eval "$as_ac_var=yes"
38946 echo "$as_me: failed program was:" >&5
38947 sed 's/^/| /' conftest.$ac_ext >&5
38949 eval "$as_ac_var=no"
38951 rm -f conftest.err conftest.$ac_objext \
38952 conftest$ac_exeext conftest.$ac_ext
38954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38956 if test `eval echo '${'$as_ac_var'}'` = yes; then
38957 cat >>confdefs.h <<_ACEOF
38958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39005 for ac_func in pathconf
39007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39008 echo "$as_me:$LINENO: checking for $ac_func" >&5
39009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39010 if eval "test \"\${$as_ac_var+set}\" = set"; then
39011 echo $ECHO_N "(cached) $ECHO_C" >&6
39013 cat >conftest.$ac_ext <<_ACEOF
39016 cat confdefs.h >>conftest.$ac_ext
39017 cat >>conftest.$ac_ext <<_ACEOF
39018 /* end confdefs.h. */
39019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39021 #define $ac_func innocuous_$ac_func
39023 /* System header to define __stub macros and hopefully few prototypes,
39024 which can conflict with char $ac_func (); below.
39025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39026 <limits.h> exists even on freestanding compilers. */
39029 # include <limits.h>
39031 # include <assert.h>
39036 /* Override any gcc2 internal prototype to avoid an error. */
39041 /* We use char because int might match the return type of a gcc2
39042 builtin and then its argument prototype would still apply. */
39044 /* The GNU C library defines this for functions which it implements
39045 to always fail with ENOSYS. Some functions are actually named
39046 something starting with __ and the normal name is an alias. */
39047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39050 char (*f) () = $ac_func;
39059 return f != $ac_func;
39064 rm -f conftest.$ac_objext conftest$ac_exeext
39065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39066 (eval $ac_link) 2>conftest.er1
39068 grep -v '^ *+' conftest.er1 >conftest.err
39070 cat conftest.err >&5
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); } &&
39073 { ac_try='test -z "$ac_c_werror_flag"
39074 || test ! -s conftest.err'
39075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076 (eval $ac_try) 2>&5
39078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); }; } &&
39080 { ac_try='test -s conftest$ac_exeext'
39081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39082 (eval $ac_try) 2>&5
39084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085 (exit $ac_status); }; }; then
39086 eval "$as_ac_var=yes"
39088 echo "$as_me: failed program was:" >&5
39089 sed 's/^/| /' conftest.$ac_ext >&5
39091 eval "$as_ac_var=no"
39093 rm -f conftest.err conftest.$ac_objext \
39094 conftest$ac_exeext conftest.$ac_ext
39096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39098 if test `eval echo '${'$as_ac_var'}'` = yes; then
39099 cat >>confdefs.h <<_ACEOF
39100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39107 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
39109 if test "${ac_cv_func_closedir_void+set}" = set; then
39110 echo $ECHO_N "(cached) $ECHO_C" >&6
39112 if test "$cross_compiling" = yes; then
39113 ac_cv_func_closedir_void=yes
39115 cat >conftest.$ac_ext <<_ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h. */
39121 $ac_includes_default
39122 #include <$ac_header_dirent>
39123 #ifndef __cplusplus
39130 exit (closedir (opendir (".")) != 0);
39135 rm -f conftest$ac_exeext
39136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39137 (eval $ac_link) 2>&5
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39142 (eval $ac_try) 2>&5
39144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145 (exit $ac_status); }; }; then
39146 ac_cv_func_closedir_void=no
39148 echo "$as_me: program exited with status $ac_status" >&5
39149 echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39152 ( exit $ac_status )
39153 ac_cv_func_closedir_void=yes
39155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39158 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39159 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
39160 if test $ac_cv_func_closedir_void = yes; then
39162 cat >>confdefs.h <<\_ACEOF
39163 #define CLOSEDIR_VOID 1
39175 "save-cwd.$ac_objext" | \
39176 *" save-cwd.$ac_objext" | \
39177 "save-cwd.$ac_objext "* | \
39178 *" save-cwd.$ac_objext "* ) ;;
39179 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
39193 for ac_func in fchdir
39195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39196 echo "$as_me:$LINENO: checking for $ac_func" >&5
39197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39198 if eval "test \"\${$as_ac_var+set}\" = set"; then
39199 echo $ECHO_N "(cached) $ECHO_C" >&6
39201 cat >conftest.$ac_ext <<_ACEOF
39204 cat confdefs.h >>conftest.$ac_ext
39205 cat >>conftest.$ac_ext <<_ACEOF
39206 /* end confdefs.h. */
39207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39209 #define $ac_func innocuous_$ac_func
39211 /* System header to define __stub macros and hopefully few prototypes,
39212 which can conflict with char $ac_func (); below.
39213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39214 <limits.h> exists even on freestanding compilers. */
39217 # include <limits.h>
39219 # include <assert.h>
39224 /* Override any gcc2 internal prototype to avoid an error. */
39229 /* We use char because int might match the return type of a gcc2
39230 builtin and then its argument prototype would still apply. */
39232 /* The GNU C library defines this for functions which it implements
39233 to always fail with ENOSYS. Some functions are actually named
39234 something starting with __ and the normal name is an alias. */
39235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39238 char (*f) () = $ac_func;
39247 return f != $ac_func;
39252 rm -f conftest.$ac_objext conftest$ac_exeext
39253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39254 (eval $ac_link) 2>conftest.er1
39256 grep -v '^ *+' conftest.er1 >conftest.err
39258 cat conftest.err >&5
39259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260 (exit $ac_status); } &&
39261 { ac_try='test -z "$ac_c_werror_flag"
39262 || test ! -s conftest.err'
39263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264 (eval $ac_try) 2>&5
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); }; } &&
39268 { ac_try='test -s conftest$ac_exeext'
39269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39270 (eval $ac_try) 2>&5
39272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273 (exit $ac_status); }; }; then
39274 eval "$as_ac_var=yes"
39276 echo "$as_me: failed program was:" >&5
39277 sed 's/^/| /' conftest.$ac_ext >&5
39279 eval "$as_ac_var=no"
39281 rm -f conftest.err conftest.$ac_objext \
39282 conftest$ac_exeext conftest.$ac_ext
39284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39286 if test `eval echo '${'$as_ac_var'}'` = yes; then
39287 cat >>confdefs.h <<_ACEOF
39288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39297 for ac_func in settimeofday
39299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39300 echo "$as_me:$LINENO: checking for $ac_func" >&5
39301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39302 if eval "test \"\${$as_ac_var+set}\" = set"; then
39303 echo $ECHO_N "(cached) $ECHO_C" >&6
39305 cat >conftest.$ac_ext <<_ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h. */
39311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39313 #define $ac_func innocuous_$ac_func
39315 /* System header to define __stub macros and hopefully few prototypes,
39316 which can conflict with char $ac_func (); below.
39317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39318 <limits.h> exists even on freestanding compilers. */
39321 # include <limits.h>
39323 # include <assert.h>
39328 /* Override any gcc2 internal prototype to avoid an error. */
39333 /* We use char because int might match the return type of a gcc2
39334 builtin and then its argument prototype would still apply. */
39336 /* The GNU C library defines this for functions which it implements
39337 to always fail with ENOSYS. Some functions are actually named
39338 something starting with __ and the normal name is an alias. */
39339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39342 char (*f) () = $ac_func;
39351 return f != $ac_func;
39356 rm -f conftest.$ac_objext conftest$ac_exeext
39357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39358 (eval $ac_link) 2>conftest.er1
39360 grep -v '^ *+' conftest.er1 >conftest.err
39362 cat conftest.err >&5
39363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364 (exit $ac_status); } &&
39365 { ac_try='test -z "$ac_c_werror_flag"
39366 || test ! -s conftest.err'
39367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39368 (eval $ac_try) 2>&5
39370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371 (exit $ac_status); }; } &&
39372 { ac_try='test -s conftest$ac_exeext'
39373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39374 (eval $ac_try) 2>&5
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); }; }; then
39378 eval "$as_ac_var=yes"
39380 echo "$as_me: failed program was:" >&5
39381 sed 's/^/| /' conftest.$ac_ext >&5
39383 eval "$as_ac_var=no"
39385 rm -f conftest.err conftest.$ac_objext \
39386 conftest$ac_exeext conftest.$ac_ext
39388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39390 if test `eval echo '${'$as_ac_var'}'` = yes; then
39391 cat >>confdefs.h <<_ACEOF
39392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39401 for ac_func in stime
39403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39404 echo "$as_me:$LINENO: checking for $ac_func" >&5
39405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39406 if eval "test \"\${$as_ac_var+set}\" = set"; then
39407 echo $ECHO_N "(cached) $ECHO_C" >&6
39409 cat >conftest.$ac_ext <<_ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h. */
39415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39417 #define $ac_func innocuous_$ac_func
39419 /* System header to define __stub macros and hopefully few prototypes,
39420 which can conflict with char $ac_func (); below.
39421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39422 <limits.h> exists even on freestanding compilers. */
39425 # include <limits.h>
39427 # include <assert.h>
39432 /* Override any gcc2 internal prototype to avoid an error. */
39437 /* We use char because int might match the return type of a gcc2
39438 builtin and then its argument prototype would still apply. */
39440 /* The GNU C library defines this for functions which it implements
39441 to always fail with ENOSYS. Some functions are actually named
39442 something starting with __ and the normal name is an alias. */
39443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39446 char (*f) () = $ac_func;
39455 return f != $ac_func;
39460 rm -f conftest.$ac_objext conftest$ac_exeext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39462 (eval $ac_link) 2>conftest.er1
39464 grep -v '^ *+' conftest.er1 >conftest.err
39466 cat conftest.err >&5
39467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468 (exit $ac_status); } &&
39469 { ac_try='test -z "$ac_c_werror_flag"
39470 || test ! -s conftest.err'
39471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472 (eval $ac_try) 2>&5
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); }; } &&
39476 { ac_try='test -s conftest$ac_exeext'
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 eval "$as_ac_var=yes"
39484 echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39487 eval "$as_ac_var=no"
39489 rm -f conftest.err conftest.$ac_objext \
39490 conftest$ac_exeext conftest.$ac_ext
39492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39494 if test `eval echo '${'$as_ac_var'}'` = yes; then
39495 cat >>confdefs.h <<_ACEOF
39496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39533 for ac_func in strcasecmp
39535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39536 echo "$as_me:$LINENO: checking for $ac_func" >&5
39537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39538 if eval "test \"\${$as_ac_var+set}\" = set"; then
39539 echo $ECHO_N "(cached) $ECHO_C" >&6
39541 cat >conftest.$ac_ext <<_ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h. */
39547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39549 #define $ac_func innocuous_$ac_func
39551 /* System header to define __stub macros and hopefully few prototypes,
39552 which can conflict with char $ac_func (); below.
39553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39554 <limits.h> exists even on freestanding compilers. */
39557 # include <limits.h>
39559 # include <assert.h>
39564 /* Override any gcc2 internal prototype to avoid an error. */
39569 /* We use char because int might match the return type of a gcc2
39570 builtin and then its argument prototype would still apply. */
39572 /* The GNU C library defines this for functions which it implements
39573 to always fail with ENOSYS. Some functions are actually named
39574 something starting with __ and the normal name is an alias. */
39575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39578 char (*f) () = $ac_func;
39587 return f != $ac_func;
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39594 (eval $ac_link) 2>conftest.er1
39596 grep -v '^ *+' conftest.er1 >conftest.err
39598 cat conftest.err >&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } &&
39601 { ac_try='test -z "$ac_c_werror_flag"
39602 || test ! -s conftest.err'
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; } &&
39608 { ac_try='test -s conftest$ac_exeext'
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; }; then
39614 eval "$as_ac_var=yes"
39616 echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39619 eval "$as_ac_var=no"
39621 rm -f conftest.err conftest.$ac_objext \
39622 conftest$ac_exeext conftest.$ac_ext
39624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39626 if test `eval echo '${'$as_ac_var'}'` = yes; then
39627 cat >>confdefs.h <<_ACEOF
39628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39633 "$ac_func.$ac_objext" | \
39634 *" $ac_func.$ac_objext" | \
39635 "$ac_func.$ac_objext "* | \
39636 *" $ac_func.$ac_objext "* ) ;;
39637 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39644 if test $ac_cv_func_strcasecmp = no; then
39652 for ac_func in strncasecmp
39654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39655 echo "$as_me:$LINENO: checking for $ac_func" >&5
39656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39657 if eval "test \"\${$as_ac_var+set}\" = set"; then
39658 echo $ECHO_N "(cached) $ECHO_C" >&6
39660 cat >conftest.$ac_ext <<_ACEOF
39663 cat confdefs.h >>conftest.$ac_ext
39664 cat >>conftest.$ac_ext <<_ACEOF
39665 /* end confdefs.h. */
39666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39668 #define $ac_func innocuous_$ac_func
39670 /* System header to define __stub macros and hopefully few prototypes,
39671 which can conflict with char $ac_func (); below.
39672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39673 <limits.h> exists even on freestanding compilers. */
39676 # include <limits.h>
39678 # include <assert.h>
39683 /* Override any gcc2 internal prototype to avoid an error. */
39688 /* We use char because int might match the return type of a gcc2
39689 builtin and then its argument prototype would still apply. */
39691 /* The GNU C library defines this for functions which it implements
39692 to always fail with ENOSYS. Some functions are actually named
39693 something starting with __ and the normal name is an alias. */
39694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39697 char (*f) () = $ac_func;
39706 return f != $ac_func;
39711 rm -f conftest.$ac_objext conftest$ac_exeext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39713 (eval $ac_link) 2>conftest.er1
39715 grep -v '^ *+' conftest.er1 >conftest.err
39717 cat conftest.err >&5
39718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); } &&
39720 { ac_try='test -z "$ac_c_werror_flag"
39721 || test ! -s conftest.err'
39722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723 (eval $ac_try) 2>&5
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); }; } &&
39727 { ac_try='test -s conftest$ac_exeext'
39728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729 (eval $ac_try) 2>&5
39731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732 (exit $ac_status); }; }; then
39733 eval "$as_ac_var=yes"
39735 echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39738 eval "$as_ac_var=no"
39740 rm -f conftest.err conftest.$ac_objext \
39741 conftest$ac_exeext conftest.$ac_ext
39743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39745 if test `eval echo '${'$as_ac_var'}'` = yes; then
39746 cat >>confdefs.h <<_ACEOF
39747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39752 "$ac_func.$ac_objext" | \
39753 *" $ac_func.$ac_objext" | \
39754 "$ac_func.$ac_objext "* | \
39755 *" $ac_func.$ac_objext "* ) ;;
39756 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39763 if test $ac_cv_func_strncasecmp = no; then
39800 echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
39801 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
39802 if test "${gl_cv_func_working_utimes+set}" = set; then
39803 echo $ECHO_N "(cached) $ECHO_C" >&6
39806 if test "$cross_compiling" = yes; then
39807 gl_cv_func_working_utimes=no
39809 cat >conftest.$ac_ext <<_ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h. */
39816 #include <sys/types.h>
39817 #include <sys/stat.h>
39818 #include <sys/time.h>
39819 #include <unistd.h>
39820 #include <stdlib.h>
39827 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
39829 char const *file = "conftest.utimes";
39832 exit ( ! ((f = fopen (file, "w"))
39834 && utimes (file, timeval) == 0
39835 && lstat (file, &sbuf) == 0
39836 && sbuf.st_atime == timeval[0].tv_sec
39837 && sbuf.st_mtime == timeval[1].tv_sec) );
39841 rm -f conftest$ac_exeext
39842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39843 (eval $ac_link) 2>&5
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 gl_cv_func_working_utimes=yes
39854 echo "$as_me: program exited with status $ac_status" >&5
39855 echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39858 ( exit $ac_status )
39859 gl_cv_func_working_utimes=no
39861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39864 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
39865 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
39867 if test $gl_cv_func_working_utimes = yes; then
39869 cat >>confdefs.h <<\_ACEOF
39870 #define HAVE_WORKING_UTIMES 1
39882 for ac_func in futimes
39884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39885 echo "$as_me:$LINENO: checking for $ac_func" >&5
39886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39887 if eval "test \"\${$as_ac_var+set}\" = set"; then
39888 echo $ECHO_N "(cached) $ECHO_C" >&6
39890 cat >conftest.$ac_ext <<_ACEOF
39893 cat confdefs.h >>conftest.$ac_ext
39894 cat >>conftest.$ac_ext <<_ACEOF
39895 /* end confdefs.h. */
39896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39898 #define $ac_func innocuous_$ac_func
39900 /* System header to define __stub macros and hopefully few prototypes,
39901 which can conflict with char $ac_func (); below.
39902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39903 <limits.h> exists even on freestanding compilers. */
39906 # include <limits.h>
39908 # include <assert.h>
39913 /* Override any gcc2 internal prototype to avoid an error. */
39918 /* We use char because int might match the return type of a gcc2
39919 builtin and then its argument prototype would still apply. */
39921 /* The GNU C library defines this for functions which it implements
39922 to always fail with ENOSYS. Some functions are actually named
39923 something starting with __ and the normal name is an alias. */
39924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39927 char (*f) () = $ac_func;
39936 return f != $ac_func;
39941 rm -f conftest.$ac_objext conftest$ac_exeext
39942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39943 (eval $ac_link) 2>conftest.er1
39945 grep -v '^ *+' conftest.er1 >conftest.err
39947 cat conftest.err >&5
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); } &&
39950 { ac_try='test -z "$ac_c_werror_flag"
39951 || test ! -s conftest.err'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; } &&
39957 { ac_try='test -s conftest$ac_exeext'
39958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959 (eval $ac_try) 2>&5
39961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962 (exit $ac_status); }; }; then
39963 eval "$as_ac_var=yes"
39965 echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39968 eval "$as_ac_var=no"
39970 rm -f conftest.err conftest.$ac_objext \
39971 conftest$ac_exeext conftest.$ac_ext
39973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39975 if test `eval echo '${'$as_ac_var'}'` = yes; then
39976 cat >>confdefs.h <<_ACEOF
39977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40014 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
40015 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
40016 if test "${gl_cv_func_getcwd_null+set}" = set; then
40017 echo $ECHO_N "(cached) $ECHO_C" >&6
40019 if test "$cross_compiling" = yes; then
40020 gl_cv_func_getcwd_null=no
40022 cat >conftest.$ac_ext <<_ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h. */
40029 # include <stdlib.h>
40030 # ifdef HAVE_UNISTD_H
40031 # include <unistd.h>
40039 if (chdir ("/") != 0)
40043 char *f = getcwd (NULL, 0);
40044 exit (! (f && f[0] == '/' && !f[1]));
40048 rm -f conftest$ac_exeext
40049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40050 (eval $ac_link) 2>&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055 (eval $ac_try) 2>&5
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); }; }; then
40059 gl_cv_func_getcwd_null=yes
40061 echo "$as_me: program exited with status $ac_status" >&5
40062 echo "$as_me: failed program was:" >&5
40063 sed 's/^/| /' conftest.$ac_ext >&5
40065 ( exit $ac_status )
40066 gl_cv_func_getcwd_null=no
40068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40071 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
40072 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6
40075 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
40076 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
40077 if test "${ac_cv_have_decl_getcwd+set}" = set; then
40078 echo $ECHO_N "(cached) $ECHO_C" >&6
40080 cat >conftest.$ac_ext <<_ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h. */
40086 $ac_includes_default
40091 char *p = (char *) getcwd;
40098 rm -f conftest.$ac_objext
40099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40100 (eval $ac_compile) 2>conftest.er1
40102 grep -v '^ *+' conftest.er1 >conftest.err
40104 cat conftest.err >&5
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); } &&
40107 { ac_try='test -z "$ac_c_werror_flag"
40108 || test ! -s conftest.err'
40109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110 (eval $ac_try) 2>&5
40112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113 (exit $ac_status); }; } &&
40114 { ac_try='test -s conftest.$ac_objext'
40115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40116 (eval $ac_try) 2>&5
40118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40119 (exit $ac_status); }; }; then
40120 ac_cv_have_decl_getcwd=yes
40122 echo "$as_me: failed program was:" >&5
40123 sed 's/^/| /' conftest.$ac_ext >&5
40125 ac_cv_have_decl_getcwd=no
40127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
40130 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
40131 if test $ac_cv_have_decl_getcwd = yes; then
40133 cat >>confdefs.h <<_ACEOF
40134 #define HAVE_DECL_GETCWD 1
40139 cat >>confdefs.h <<_ACEOF
40140 #define HAVE_DECL_GETCWD 0
40151 case $gl_cv_func_getcwd_null in
40168 echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
40169 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6
40170 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
40171 echo $ECHO_N "(cached) $ECHO_C" >&6
40173 # Arrange for deletion of the temporary directory this test creates.
40174 ac_clean_files="$ac_clean_files confdir3"
40175 if test "$cross_compiling" = yes; then
40176 gl_cv_func_getcwd_path_max=no
40178 cat >conftest.$ac_ext <<_ACEOF
40181 cat confdefs.h >>conftest.$ac_ext
40182 cat >>conftest.$ac_ext <<_ACEOF
40183 /* end confdefs.h. */
40186 #include <stdlib.h>
40187 #include <unistd.h>
40188 #include <string.h>
40189 #include <limits.h>
40190 #include <sys/stat.h>
40191 #include <sys/types.h>
40193 # include <fcntl.h>
40197 # define AT_FDCWD 0
40199 #ifdef ENAMETOOLONG
40200 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
40202 # define is_ENAMETOOLONG(x) 0
40205 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
40209 # define S_IRWXU 0700
40212 /* The length of this name must be 8. */
40213 #define DIR_NAME "confdir3"
40214 #define DIR_NAME_LEN 8
40215 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
40217 /* The length of "../". */
40218 #define DOTDOTSLASH_LEN 3
40220 /* Leftover bytes in the buffer, to work around library or OS bugs. */
40221 #define BUF_SLOP 20
40227 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
40228 at least not on a local file system. And if we were to start worrying
40229 about remote file systems, we'd have to enable the wrapper function
40230 all of the time, just to be safe. That's not worth the cost. */
40232 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
40233 - DIR_NAME_SIZE - BUF_SLOP) \
40235 /* FIXME: Assuming there's a system for which this is true,
40236 this should be done in a compile test. */
40239 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
40240 + DIR_NAME_SIZE + BUF_SLOP];
40241 char *cwd = getcwd (buf, PATH_MAX);
40242 size_t initial_cwd_len;
40245 size_t n_chdirs = 0;
40250 cwd_len = initial_cwd_len = strlen (cwd);
40254 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
40257 cwd_len += DIR_NAME_SIZE;
40258 /* If mkdir or chdir fails, be pessimistic and consider that
40259 as a failure, too. */
40260 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
40266 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
40268 c = getcwd (buf, PATH_MAX);
40269 if (!c && errno == ENOENT)
40274 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
40281 if (dotdot_max <= cwd_len - initial_cwd_len)
40283 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
40285 c = getcwd (buf, cwd_len + 1);
40288 if (! (errno == ERANGE || errno == ENOENT
40289 || is_ENAMETOOLONG (errno)))
40294 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
40302 if (c && strlen (c) != cwd_len)
40310 /* Leaving behind such a deep directory is not polite.
40311 So clean up here, right away, even though the driving
40312 shell script would also clean up. */
40316 /* Unlink first, in case the chdir failed. */
40318 for (i = 0; i <= n_chdirs; i++)
40320 if (chdir ("..") < 0)
40331 rm -f conftest$ac_exeext
40332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40333 (eval $ac_link) 2>&5
40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40338 (eval $ac_try) 2>&5
40340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341 (exit $ac_status); }; }; then
40342 gl_cv_func_getcwd_path_max=yes
40344 echo "$as_me: program exited with status $ac_status" >&5
40345 echo "$as_me: failed program was:" >&5
40346 sed 's/^/| /' conftest.$ac_ext >&5
40348 ( exit $ac_status )
40350 1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
40351 *) gl_cv_func_getcwd_path_max=no;;
40354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40358 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
40359 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6
40360 case $gl_cv_func_getcwd_path_max in
40363 cat >>confdefs.h <<\_ACEOF
40364 #define HAVE_PARTLY_WORKING_GETCWD 1
40371 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
40375 "getcwd.$ac_objext" | \
40376 *" getcwd.$ac_objext" | \
40377 "getcwd.$ac_objext "* | \
40378 *" getcwd.$ac_objext "* ) ;;
40379 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
40383 cat >>confdefs.h <<\_ACEOF
40384 #define __GETCWD_PREFIX rpl_
40432 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
40433 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
40434 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
40435 echo $ECHO_N "(cached) $ECHO_C" >&6
40437 cat >conftest.$ac_ext <<_ACEOF
40440 cat confdefs.h >>conftest.$ac_ext
40441 cat >>conftest.$ac_ext <<_ACEOF
40442 /* end confdefs.h. */
40443 $ac_includes_default
40448 char *p = (char *) strtoimax;
40455 rm -f conftest.$ac_objext
40456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40457 (eval $ac_compile) 2>conftest.er1
40459 grep -v '^ *+' conftest.er1 >conftest.err
40461 cat conftest.err >&5
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); } &&
40464 { ac_try='test -z "$ac_c_werror_flag"
40465 || test ! -s conftest.err'
40466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40467 (eval $ac_try) 2>&5
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); }; } &&
40471 { ac_try='test -s conftest.$ac_objext'
40472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40473 (eval $ac_try) 2>&5
40475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476 (exit $ac_status); }; }; then
40477 ac_cv_have_decl_strtoimax=yes
40479 echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40482 ac_cv_have_decl_strtoimax=no
40484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
40487 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
40488 if test $ac_cv_have_decl_strtoimax = yes; then
40490 cat >>confdefs.h <<_ACEOF
40491 #define HAVE_DECL_STRTOIMAX 1
40496 cat >>confdefs.h <<_ACEOF
40497 #define HAVE_DECL_STRTOIMAX 0
40502 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
40503 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
40504 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
40505 echo $ECHO_N "(cached) $ECHO_C" >&6
40507 cat >conftest.$ac_ext <<_ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h. */
40513 $ac_includes_default
40518 char *p = (char *) strtoumax;
40525 rm -f conftest.$ac_objext
40526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40527 (eval $ac_compile) 2>conftest.er1
40529 grep -v '^ *+' conftest.er1 >conftest.err
40531 cat conftest.err >&5
40532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533 (exit $ac_status); } &&
40534 { ac_try='test -z "$ac_c_werror_flag"
40535 || test ! -s conftest.err'
40536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40537 (eval $ac_try) 2>&5
40539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540 (exit $ac_status); }; } &&
40541 { ac_try='test -s conftest.$ac_objext'
40542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40543 (eval $ac_try) 2>&5
40545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546 (exit $ac_status); }; }; then
40547 ac_cv_have_decl_strtoumax=yes
40549 echo "$as_me: failed program was:" >&5
40550 sed 's/^/| /' conftest.$ac_ext >&5
40552 ac_cv_have_decl_strtoumax=no
40554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40556 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
40557 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
40558 if test $ac_cv_have_decl_strtoumax = yes; then
40560 cat >>confdefs.h <<_ACEOF
40561 #define HAVE_DECL_STRTOUMAX 1
40566 cat >>confdefs.h <<_ACEOF
40567 #define HAVE_DECL_STRTOUMAX 0
40586 for ac_header in stdlib.h
40588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40590 echo "$as_me:$LINENO: checking for $ac_header" >&5
40591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40593 echo $ECHO_N "(cached) $ECHO_C" >&6
40595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40598 # Is the header compilable?
40599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40601 cat >conftest.$ac_ext <<_ACEOF
40604 cat confdefs.h >>conftest.$ac_ext
40605 cat >>conftest.$ac_ext <<_ACEOF
40606 /* end confdefs.h. */
40607 $ac_includes_default
40608 #include <$ac_header>
40610 rm -f conftest.$ac_objext
40611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40612 (eval $ac_compile) 2>conftest.er1
40614 grep -v '^ *+' conftest.er1 >conftest.err
40616 cat conftest.err >&5
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); } &&
40619 { ac_try='test -z "$ac_c_werror_flag"
40620 || test ! -s conftest.err'
40621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40622 (eval $ac_try) 2>&5
40624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625 (exit $ac_status); }; } &&
40626 { ac_try='test -s conftest.$ac_objext'
40627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40628 (eval $ac_try) 2>&5
40630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40631 (exit $ac_status); }; }; then
40632 ac_header_compiler=yes
40634 echo "$as_me: failed program was:" >&5
40635 sed 's/^/| /' conftest.$ac_ext >&5
40637 ac_header_compiler=no
40639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40641 echo "${ECHO_T}$ac_header_compiler" >&6
40643 # Is the header present?
40644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40646 cat >conftest.$ac_ext <<_ACEOF
40649 cat confdefs.h >>conftest.$ac_ext
40650 cat >>conftest.$ac_ext <<_ACEOF
40651 /* end confdefs.h. */
40652 #include <$ac_header>
40654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40657 grep -v '^ *+' conftest.er1 >conftest.err
40659 cat conftest.err >&5
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); } >/dev/null; then
40662 if test -s conftest.err; then
40663 ac_cpp_err=$ac_c_preproc_warn_flag
40664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40671 if test -z "$ac_cpp_err"; then
40672 ac_header_preproc=yes
40674 echo "$as_me: failed program was:" >&5
40675 sed 's/^/| /' conftest.$ac_ext >&5
40677 ac_header_preproc=no
40679 rm -f conftest.err conftest.$ac_ext
40680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40681 echo "${ECHO_T}$ac_header_preproc" >&6
40683 # So? What about this header?
40684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40690 ac_header_preproc=yes
40693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40707 ## ------------------------------------ ##
40708 ## Report this to bug-coreutils@gnu.org ##
40709 ## ------------------------------------ ##
40712 sed "s/^/$as_me: WARNING: /" >&2
40715 echo "$as_me:$LINENO: checking for $ac_header" >&5
40716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40718 echo $ECHO_N "(cached) $ECHO_C" >&6
40720 eval "$as_ac_Header=\$ac_header_preproc"
40722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40727 cat >>confdefs.h <<_ACEOF
40728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40735 echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
40736 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6
40737 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
40738 echo $ECHO_N "(cached) $ECHO_C" >&6
40740 if test "$cross_compiling" = yes; then
40741 ac_cv_func_calloc_0_nonnull=no
40743 cat >conftest.$ac_ext <<_ACEOF
40746 cat confdefs.h >>conftest.$ac_ext
40747 cat >>conftest.$ac_ext <<_ACEOF
40748 /* end confdefs.h. */
40749 $ac_includes_default
40753 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
40758 rm -f conftest$ac_exeext
40759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40760 (eval $ac_link) 2>&5
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765 (eval $ac_try) 2>&5
40767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768 (exit $ac_status); }; }; then
40769 ac_cv_func_calloc_0_nonnull=yes
40771 echo "$as_me: program exited with status $ac_status" >&5
40772 echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40775 ( exit $ac_status )
40776 ac_cv_func_calloc_0_nonnull=no
40778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40781 echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
40782 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6
40783 if test $ac_cv_func_calloc_0_nonnull = yes; then
40785 cat >>confdefs.h <<\_ACEOF
40786 #define HAVE_CALLOC 1
40790 cat >>confdefs.h <<\_ACEOF
40791 #define HAVE_CALLOC 0
40795 "calloc.$ac_objext" | \
40796 *" calloc.$ac_objext" | \
40797 "calloc.$ac_objext "* | \
40798 *" calloc.$ac_objext "* ) ;;
40799 *) LIBOBJS="$LIBOBJS calloc.$ac_objext" ;;
40803 cat >>confdefs.h <<\_ACEOF
40804 #define calloc rpl_calloc
40812 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
40813 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
40814 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
40815 echo $ECHO_N "(cached) $ECHO_C" >&6
40817 cat >conftest.$ac_ext <<_ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h. */
40823 $ac_includes_default
40827 #ifndef clearerr_unlocked
40828 char *p = (char *) clearerr_unlocked;
40835 rm -f conftest.$ac_objext
40836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40837 (eval $ac_compile) 2>conftest.er1
40839 grep -v '^ *+' conftest.er1 >conftest.err
40841 cat conftest.err >&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } &&
40844 { ac_try='test -z "$ac_c_werror_flag"
40845 || test ! -s conftest.err'
40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847 (eval $ac_try) 2>&5
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); }; } &&
40851 { ac_try='test -s conftest.$ac_objext'
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; }; then
40857 ac_cv_have_decl_clearerr_unlocked=yes
40859 echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40862 ac_cv_have_decl_clearerr_unlocked=no
40864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40866 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
40867 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
40868 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
40870 cat >>confdefs.h <<_ACEOF
40871 #define HAVE_DECL_CLEARERR_UNLOCKED 1
40876 cat >>confdefs.h <<_ACEOF
40877 #define HAVE_DECL_CLEARERR_UNLOCKED 0
40886 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
40887 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
40888 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
40889 echo $ECHO_N "(cached) $ECHO_C" >&6
40891 cat >conftest.$ac_ext <<_ACEOF
40894 cat confdefs.h >>conftest.$ac_ext
40895 cat >>conftest.$ac_ext <<_ACEOF
40896 /* end confdefs.h. */
40897 $ac_includes_default
40901 #ifndef feof_unlocked
40902 char *p = (char *) feof_unlocked;
40909 rm -f conftest.$ac_objext
40910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40911 (eval $ac_compile) 2>conftest.er1
40913 grep -v '^ *+' conftest.er1 >conftest.err
40915 cat conftest.err >&5
40916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917 (exit $ac_status); } &&
40918 { ac_try='test -z "$ac_c_werror_flag"
40919 || test ! -s conftest.err'
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921 (eval $ac_try) 2>&5
40923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; } &&
40925 { ac_try='test -s conftest.$ac_objext'
40926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927 (eval $ac_try) 2>&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); }; }; then
40931 ac_cv_have_decl_feof_unlocked=yes
40933 echo "$as_me: failed program was:" >&5
40934 sed 's/^/| /' conftest.$ac_ext >&5
40936 ac_cv_have_decl_feof_unlocked=no
40938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40940 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
40941 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
40942 if test $ac_cv_have_decl_feof_unlocked = yes; then
40944 cat >>confdefs.h <<_ACEOF
40945 #define HAVE_DECL_FEOF_UNLOCKED 1
40950 cat >>confdefs.h <<_ACEOF
40951 #define HAVE_DECL_FEOF_UNLOCKED 0
40960 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
40961 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
40962 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
40963 echo $ECHO_N "(cached) $ECHO_C" >&6
40965 cat >conftest.$ac_ext <<_ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h. */
40971 $ac_includes_default
40975 #ifndef ferror_unlocked
40976 char *p = (char *) ferror_unlocked;
40983 rm -f conftest.$ac_objext
40984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40985 (eval $ac_compile) 2>conftest.er1
40987 grep -v '^ *+' conftest.er1 >conftest.err
40989 cat conftest.err >&5
40990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991 (exit $ac_status); } &&
40992 { ac_try='test -z "$ac_c_werror_flag"
40993 || test ! -s conftest.err'
40994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995 (eval $ac_try) 2>&5
40997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998 (exit $ac_status); }; } &&
40999 { ac_try='test -s conftest.$ac_objext'
41000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001 (eval $ac_try) 2>&5
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); }; }; then
41005 ac_cv_have_decl_ferror_unlocked=yes
41007 echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41010 ac_cv_have_decl_ferror_unlocked=no
41012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
41015 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
41016 if test $ac_cv_have_decl_ferror_unlocked = yes; then
41018 cat >>confdefs.h <<_ACEOF
41019 #define HAVE_DECL_FERROR_UNLOCKED 1
41024 cat >>confdefs.h <<_ACEOF
41025 #define HAVE_DECL_FERROR_UNLOCKED 0
41034 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
41035 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
41036 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
41037 echo $ECHO_N "(cached) $ECHO_C" >&6
41039 cat >conftest.$ac_ext <<_ACEOF
41042 cat confdefs.h >>conftest.$ac_ext
41043 cat >>conftest.$ac_ext <<_ACEOF
41044 /* end confdefs.h. */
41045 $ac_includes_default
41049 #ifndef fgets_unlocked
41050 char *p = (char *) fgets_unlocked;
41057 rm -f conftest.$ac_objext
41058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41059 (eval $ac_compile) 2>conftest.er1
41061 grep -v '^ *+' conftest.er1 >conftest.err
41063 cat conftest.err >&5
41064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065 (exit $ac_status); } &&
41066 { ac_try='test -z "$ac_c_werror_flag"
41067 || test ! -s conftest.err'
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; } &&
41073 { ac_try='test -s conftest.$ac_objext'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; }; then
41079 ac_cv_have_decl_fgets_unlocked=yes
41081 echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41084 ac_cv_have_decl_fgets_unlocked=no
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
41089 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
41090 if test $ac_cv_have_decl_fgets_unlocked = yes; then
41092 cat >>confdefs.h <<_ACEOF
41093 #define HAVE_DECL_FGETS_UNLOCKED 1
41098 cat >>confdefs.h <<_ACEOF
41099 #define HAVE_DECL_FGETS_UNLOCKED 0
41108 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
41109 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
41110 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
41111 echo $ECHO_N "(cached) $ECHO_C" >&6
41113 cat >conftest.$ac_ext <<_ACEOF
41116 cat confdefs.h >>conftest.$ac_ext
41117 cat >>conftest.$ac_ext <<_ACEOF
41118 /* end confdefs.h. */
41119 $ac_includes_default
41123 #ifndef fputc_unlocked
41124 char *p = (char *) fputc_unlocked;
41131 rm -f conftest.$ac_objext
41132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41133 (eval $ac_compile) 2>conftest.er1
41135 grep -v '^ *+' conftest.er1 >conftest.err
41137 cat conftest.err >&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); } &&
41140 { ac_try='test -z "$ac_c_werror_flag"
41141 || test ! -s conftest.err'
41142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41143 (eval $ac_try) 2>&5
41145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146 (exit $ac_status); }; } &&
41147 { ac_try='test -s conftest.$ac_objext'
41148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41149 (eval $ac_try) 2>&5
41151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152 (exit $ac_status); }; }; then
41153 ac_cv_have_decl_fputc_unlocked=yes
41155 echo "$as_me: failed program was:" >&5
41156 sed 's/^/| /' conftest.$ac_ext >&5
41158 ac_cv_have_decl_fputc_unlocked=no
41160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41162 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
41163 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
41164 if test $ac_cv_have_decl_fputc_unlocked = yes; then
41166 cat >>confdefs.h <<_ACEOF
41167 #define HAVE_DECL_FPUTC_UNLOCKED 1
41172 cat >>confdefs.h <<_ACEOF
41173 #define HAVE_DECL_FPUTC_UNLOCKED 0
41182 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
41183 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
41184 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
41185 echo $ECHO_N "(cached) $ECHO_C" >&6
41187 cat >conftest.$ac_ext <<_ACEOF
41190 cat confdefs.h >>conftest.$ac_ext
41191 cat >>conftest.$ac_ext <<_ACEOF
41192 /* end confdefs.h. */
41193 $ac_includes_default
41197 #ifndef fread_unlocked
41198 char *p = (char *) fread_unlocked;
41205 rm -f conftest.$ac_objext
41206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41207 (eval $ac_compile) 2>conftest.er1
41209 grep -v '^ *+' conftest.er1 >conftest.err
41211 cat conftest.err >&5
41212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213 (exit $ac_status); } &&
41214 { ac_try='test -z "$ac_c_werror_flag"
41215 || test ! -s conftest.err'
41216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41217 (eval $ac_try) 2>&5
41219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41220 (exit $ac_status); }; } &&
41221 { ac_try='test -s conftest.$ac_objext'
41222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223 (eval $ac_try) 2>&5
41225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226 (exit $ac_status); }; }; then
41227 ac_cv_have_decl_fread_unlocked=yes
41229 echo "$as_me: failed program was:" >&5
41230 sed 's/^/| /' conftest.$ac_ext >&5
41232 ac_cv_have_decl_fread_unlocked=no
41234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
41237 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
41238 if test $ac_cv_have_decl_fread_unlocked = yes; then
41240 cat >>confdefs.h <<_ACEOF
41241 #define HAVE_DECL_FREAD_UNLOCKED 1
41246 cat >>confdefs.h <<_ACEOF
41247 #define HAVE_DECL_FREAD_UNLOCKED 0
41256 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
41257 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
41258 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
41259 echo $ECHO_N "(cached) $ECHO_C" >&6
41261 cat >conftest.$ac_ext <<_ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h. */
41267 $ac_includes_default
41271 #ifndef fwrite_unlocked
41272 char *p = (char *) fwrite_unlocked;
41279 rm -f conftest.$ac_objext
41280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41281 (eval $ac_compile) 2>conftest.er1
41283 grep -v '^ *+' conftest.er1 >conftest.err
41285 cat conftest.err >&5
41286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287 (exit $ac_status); } &&
41288 { ac_try='test -z "$ac_c_werror_flag"
41289 || test ! -s conftest.err'
41290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291 (eval $ac_try) 2>&5
41293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294 (exit $ac_status); }; } &&
41295 { ac_try='test -s conftest.$ac_objext'
41296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41297 (eval $ac_try) 2>&5
41299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41300 (exit $ac_status); }; }; then
41301 ac_cv_have_decl_fwrite_unlocked=yes
41303 echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41306 ac_cv_have_decl_fwrite_unlocked=no
41308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41310 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
41311 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
41312 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
41314 cat >>confdefs.h <<_ACEOF
41315 #define HAVE_DECL_FWRITE_UNLOCKED 1
41320 cat >>confdefs.h <<_ACEOF
41321 #define HAVE_DECL_FWRITE_UNLOCKED 0
41330 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
41331 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
41332 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
41333 echo $ECHO_N "(cached) $ECHO_C" >&6
41335 cat >conftest.$ac_ext <<_ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h. */
41341 $ac_includes_default
41345 #ifndef getc_unlocked
41346 char *p = (char *) getc_unlocked;
41353 rm -f conftest.$ac_objext
41354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41355 (eval $ac_compile) 2>conftest.er1
41357 grep -v '^ *+' conftest.er1 >conftest.err
41359 cat conftest.err >&5
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); } &&
41362 { ac_try='test -z "$ac_c_werror_flag"
41363 || test ! -s conftest.err'
41364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365 (eval $ac_try) 2>&5
41367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368 (exit $ac_status); }; } &&
41369 { ac_try='test -s conftest.$ac_objext'
41370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41371 (eval $ac_try) 2>&5
41373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41374 (exit $ac_status); }; }; then
41375 ac_cv_have_decl_getc_unlocked=yes
41377 echo "$as_me: failed program was:" >&5
41378 sed 's/^/| /' conftest.$ac_ext >&5
41380 ac_cv_have_decl_getc_unlocked=no
41382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
41385 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
41386 if test $ac_cv_have_decl_getc_unlocked = yes; then
41388 cat >>confdefs.h <<_ACEOF
41389 #define HAVE_DECL_GETC_UNLOCKED 1
41394 cat >>confdefs.h <<_ACEOF
41395 #define HAVE_DECL_GETC_UNLOCKED 0
41404 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
41405 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
41406 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
41407 echo $ECHO_N "(cached) $ECHO_C" >&6
41409 cat >conftest.$ac_ext <<_ACEOF
41412 cat confdefs.h >>conftest.$ac_ext
41413 cat >>conftest.$ac_ext <<_ACEOF
41414 /* end confdefs.h. */
41415 $ac_includes_default
41419 #ifndef getchar_unlocked
41420 char *p = (char *) getchar_unlocked;
41427 rm -f conftest.$ac_objext
41428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41429 (eval $ac_compile) 2>conftest.er1
41431 grep -v '^ *+' conftest.er1 >conftest.err
41433 cat conftest.err >&5
41434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435 (exit $ac_status); } &&
41436 { ac_try='test -z "$ac_c_werror_flag"
41437 || test ! -s conftest.err'
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; } &&
41443 { ac_try='test -s conftest.$ac_objext'
41444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41445 (eval $ac_try) 2>&5
41447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448 (exit $ac_status); }; }; then
41449 ac_cv_have_decl_getchar_unlocked=yes
41451 echo "$as_me: failed program was:" >&5
41452 sed 's/^/| /' conftest.$ac_ext >&5
41454 ac_cv_have_decl_getchar_unlocked=no
41456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
41459 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
41460 if test $ac_cv_have_decl_getchar_unlocked = yes; then
41462 cat >>confdefs.h <<_ACEOF
41463 #define HAVE_DECL_GETCHAR_UNLOCKED 1
41468 cat >>confdefs.h <<_ACEOF
41469 #define HAVE_DECL_GETCHAR_UNLOCKED 0
41478 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
41479 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
41480 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
41481 echo $ECHO_N "(cached) $ECHO_C" >&6
41483 cat >conftest.$ac_ext <<_ACEOF
41486 cat confdefs.h >>conftest.$ac_ext
41487 cat >>conftest.$ac_ext <<_ACEOF
41488 /* end confdefs.h. */
41489 $ac_includes_default
41493 #ifndef putchar_unlocked
41494 char *p = (char *) putchar_unlocked;
41501 rm -f conftest.$ac_objext
41502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41503 (eval $ac_compile) 2>conftest.er1
41505 grep -v '^ *+' conftest.er1 >conftest.err
41507 cat conftest.err >&5
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); } &&
41510 { ac_try='test -z "$ac_c_werror_flag"
41511 || test ! -s conftest.err'
41512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513 (eval $ac_try) 2>&5
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); }; } &&
41517 { ac_try='test -s conftest.$ac_objext'
41518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41519 (eval $ac_try) 2>&5
41521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522 (exit $ac_status); }; }; then
41523 ac_cv_have_decl_putchar_unlocked=yes
41525 echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41528 ac_cv_have_decl_putchar_unlocked=no
41530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
41533 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
41534 if test $ac_cv_have_decl_putchar_unlocked = yes; then
41536 cat >>confdefs.h <<_ACEOF
41537 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
41542 cat >>confdefs.h <<_ACEOF
41543 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
41553 cat >>confdefs.h <<\_ACEOF
41554 #define USE_UNLOCKED_IO 1
41605 for ac_func in strftime
41607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41608 echo "$as_me:$LINENO: checking for $ac_func" >&5
41609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41610 if eval "test \"\${$as_ac_var+set}\" = set"; then
41611 echo $ECHO_N "(cached) $ECHO_C" >&6
41613 cat >conftest.$ac_ext <<_ACEOF
41616 cat confdefs.h >>conftest.$ac_ext
41617 cat >>conftest.$ac_ext <<_ACEOF
41618 /* end confdefs.h. */
41619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41621 #define $ac_func innocuous_$ac_func
41623 /* System header to define __stub macros and hopefully few prototypes,
41624 which can conflict with char $ac_func (); below.
41625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41626 <limits.h> exists even on freestanding compilers. */
41629 # include <limits.h>
41631 # include <assert.h>
41636 /* Override any gcc2 internal prototype to avoid an error. */
41641 /* We use char because int might match the return type of a gcc2
41642 builtin and then its argument prototype would still apply. */
41644 /* The GNU C library defines this for functions which it implements
41645 to always fail with ENOSYS. Some functions are actually named
41646 something starting with __ and the normal name is an alias. */
41647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41650 char (*f) () = $ac_func;
41659 return f != $ac_func;
41664 rm -f conftest.$ac_objext conftest$ac_exeext
41665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41666 (eval $ac_link) 2>conftest.er1
41668 grep -v '^ *+' conftest.er1 >conftest.err
41670 cat conftest.err >&5
41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672 (exit $ac_status); } &&
41673 { ac_try='test -z "$ac_c_werror_flag"
41674 || test ! -s conftest.err'
41675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676 (eval $ac_try) 2>&5
41678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679 (exit $ac_status); }; } &&
41680 { ac_try='test -s conftest$ac_exeext'
41681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682 (eval $ac_try) 2>&5
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); }; }; then
41686 eval "$as_ac_var=yes"
41688 echo "$as_me: failed program was:" >&5
41689 sed 's/^/| /' conftest.$ac_ext >&5
41691 eval "$as_ac_var=no"
41693 rm -f conftest.err conftest.$ac_objext \
41694 conftest$ac_exeext conftest.$ac_ext
41696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41698 if test `eval echo '${'$as_ac_var'}'` = yes; then
41699 cat >>confdefs.h <<_ACEOF
41700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41704 # strftime is in -lintl on SCO UNIX.
41705 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41706 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
41707 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41708 echo $ECHO_N "(cached) $ECHO_C" >&6
41710 ac_check_lib_save_LIBS=$LIBS
41711 LIBS="-lintl $LIBS"
41712 cat >conftest.$ac_ext <<_ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h. */
41719 /* Override any gcc2 internal prototype to avoid an error. */
41723 /* We use char because int might match the return type of a gcc2
41724 builtin and then its argument prototype would still apply. */
41734 rm -f conftest.$ac_objext conftest$ac_exeext
41735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41736 (eval $ac_link) 2>conftest.er1
41738 grep -v '^ *+' conftest.er1 >conftest.err
41740 cat conftest.err >&5
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); } &&
41743 { ac_try='test -z "$ac_c_werror_flag"
41744 || test ! -s conftest.err'
41745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746 (eval $ac_try) 2>&5
41748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749 (exit $ac_status); }; } &&
41750 { ac_try='test -s conftest$ac_exeext'
41751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752 (eval $ac_try) 2>&5
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); }; }; then
41756 ac_cv_lib_intl_strftime=yes
41758 echo "$as_me: failed program was:" >&5
41759 sed 's/^/| /' conftest.$ac_ext >&5
41761 ac_cv_lib_intl_strftime=no
41763 rm -f conftest.err conftest.$ac_objext \
41764 conftest$ac_exeext conftest.$ac_ext
41765 LIBS=$ac_check_lib_save_LIBS
41767 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41768 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
41769 if test $ac_cv_lib_intl_strftime = yes; then
41770 cat >>confdefs.h <<\_ACEOF
41771 #define HAVE_STRFTIME 1
41774 LIBS="-lintl $LIBS"
41782 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
41783 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
41784 if test "${gl_cv_func_tzset_clobber+set}" = set; then
41785 echo $ECHO_N "(cached) $ECHO_C" >&6
41788 if test "$cross_compiling" = yes; then
41789 gl_cv_func_tzset_clobber=yes
41791 cat >conftest.$ac_ext <<_ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h. */
41798 #if TIME_WITH_SYS_TIME
41799 # include <sys/time.h>
41802 # if HAVE_SYS_TIME_H
41803 # include <sys/time.h>
41808 #include <stdlib.h>
41813 time_t t1 = 853958121;
41815 putenv ("TZ=GMT0");
41816 p = localtime (&t1);
41818 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
41820 exit (p->tm_year != s.tm_year
41821 || p->tm_mon != s.tm_mon
41822 || p->tm_mday != s.tm_mday
41823 || p->tm_hour != s.tm_hour
41824 || p->tm_min != s.tm_min
41825 || p->tm_sec != s.tm_sec);
41829 rm -f conftest$ac_exeext
41830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41831 (eval $ac_link) 2>&5
41833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41836 (eval $ac_try) 2>&5
41838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839 (exit $ac_status); }; }; then
41840 gl_cv_func_tzset_clobber=no
41842 echo "$as_me: program exited with status $ac_status" >&5
41843 echo "$as_me: failed program was:" >&5
41844 sed 's/^/| /' conftest.$ac_ext >&5
41846 ( exit $ac_status )
41847 gl_cv_func_tzset_clobber=yes
41849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41852 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
41853 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
41856 cat >>confdefs.h <<\_ACEOF
41857 #define HAVE_RUN_TZSET_TEST 1
41861 if test $gl_cv_func_tzset_clobber = yes; then
41864 "gettimeofday.$ac_objext" | \
41865 *" gettimeofday.$ac_objext" | \
41866 "gettimeofday.$ac_objext "* | \
41867 *" gettimeofday.$ac_objext "* ) ;;
41868 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
41872 cat >>confdefs.h <<\_ACEOF
41873 #define gmtime rpl_gmtime
41877 cat >>confdefs.h <<\_ACEOF
41878 #define localtime rpl_localtime
41884 cat >>confdefs.h <<\_ACEOF
41885 #define tzset rpl_tzset
41889 cat >>confdefs.h <<\_ACEOF
41890 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
41897 for ac_func in mblen
41899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41900 echo "$as_me:$LINENO: checking for $ac_func" >&5
41901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41902 if eval "test \"\${$as_ac_var+set}\" = set"; then
41903 echo $ECHO_N "(cached) $ECHO_C" >&6
41905 cat >conftest.$ac_ext <<_ACEOF
41908 cat confdefs.h >>conftest.$ac_ext
41909 cat >>conftest.$ac_ext <<_ACEOF
41910 /* end confdefs.h. */
41911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41913 #define $ac_func innocuous_$ac_func
41915 /* System header to define __stub macros and hopefully few prototypes,
41916 which can conflict with char $ac_func (); below.
41917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41918 <limits.h> exists even on freestanding compilers. */
41921 # include <limits.h>
41923 # include <assert.h>
41928 /* Override any gcc2 internal prototype to avoid an error. */
41933 /* We use char because int might match the return type of a gcc2
41934 builtin and then its argument prototype would still apply. */
41936 /* The GNU C library defines this for functions which it implements
41937 to always fail with ENOSYS. Some functions are actually named
41938 something starting with __ and the normal name is an alias. */
41939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41942 char (*f) () = $ac_func;
41951 return f != $ac_func;
41956 rm -f conftest.$ac_objext conftest$ac_exeext
41957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41958 (eval $ac_link) 2>conftest.er1
41960 grep -v '^ *+' conftest.er1 >conftest.err
41962 cat conftest.err >&5
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); } &&
41965 { ac_try='test -z "$ac_c_werror_flag"
41966 || test ! -s conftest.err'
41967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41968 (eval $ac_try) 2>&5
41970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41971 (exit $ac_status); }; } &&
41972 { ac_try='test -s conftest$ac_exeext'
41973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41974 (eval $ac_try) 2>&5
41976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977 (exit $ac_status); }; }; then
41978 eval "$as_ac_var=yes"
41980 echo "$as_me: failed program was:" >&5
41981 sed 's/^/| /' conftest.$ac_ext >&5
41983 eval "$as_ac_var=no"
41985 rm -f conftest.err conftest.$ac_objext \
41986 conftest$ac_exeext conftest.$ac_ext
41988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41990 if test `eval echo '${'$as_ac_var'}'` = yes; then
41991 cat >>confdefs.h <<_ACEOF
41992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42001 for ac_func in mbrlen
42003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42004 echo "$as_me:$LINENO: checking for $ac_func" >&5
42005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42006 if eval "test \"\${$as_ac_var+set}\" = set"; then
42007 echo $ECHO_N "(cached) $ECHO_C" >&6
42009 cat >conftest.$ac_ext <<_ACEOF
42012 cat confdefs.h >>conftest.$ac_ext
42013 cat >>conftest.$ac_ext <<_ACEOF
42014 /* end confdefs.h. */
42015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42017 #define $ac_func innocuous_$ac_func
42019 /* System header to define __stub macros and hopefully few prototypes,
42020 which can conflict with char $ac_func (); below.
42021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42022 <limits.h> exists even on freestanding compilers. */
42025 # include <limits.h>
42027 # include <assert.h>
42032 /* Override any gcc2 internal prototype to avoid an error. */
42037 /* We use char because int might match the return type of a gcc2
42038 builtin and then its argument prototype would still apply. */
42040 /* The GNU C library defines this for functions which it implements
42041 to always fail with ENOSYS. Some functions are actually named
42042 something starting with __ and the normal name is an alias. */
42043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42046 char (*f) () = $ac_func;
42055 return f != $ac_func;
42060 rm -f conftest.$ac_objext conftest$ac_exeext
42061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42062 (eval $ac_link) 2>conftest.er1
42064 grep -v '^ *+' conftest.er1 >conftest.err
42066 cat conftest.err >&5
42067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068 (exit $ac_status); } &&
42069 { ac_try='test -z "$ac_c_werror_flag"
42070 || test ! -s conftest.err'
42071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072 (eval $ac_try) 2>&5
42074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075 (exit $ac_status); }; } &&
42076 { ac_try='test -s conftest$ac_exeext'
42077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42078 (eval $ac_try) 2>&5
42080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081 (exit $ac_status); }; }; then
42082 eval "$as_ac_var=yes"
42084 echo "$as_me: failed program was:" >&5
42085 sed 's/^/| /' conftest.$ac_ext >&5
42087 eval "$as_ac_var=no"
42089 rm -f conftest.err conftest.$ac_objext \
42090 conftest$ac_exeext conftest.$ac_ext
42092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42094 if test `eval echo '${'$as_ac_var'}'` = yes; then
42095 cat >>confdefs.h <<_ACEOF
42096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42105 for ac_func in tzset
42107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42108 echo "$as_me:$LINENO: checking for $ac_func" >&5
42109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42110 if eval "test \"\${$as_ac_var+set}\" = set"; then
42111 echo $ECHO_N "(cached) $ECHO_C" >&6
42113 cat >conftest.$ac_ext <<_ACEOF
42116 cat confdefs.h >>conftest.$ac_ext
42117 cat >>conftest.$ac_ext <<_ACEOF
42118 /* end confdefs.h. */
42119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42121 #define $ac_func innocuous_$ac_func
42123 /* System header to define __stub macros and hopefully few prototypes,
42124 which can conflict with char $ac_func (); below.
42125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42126 <limits.h> exists even on freestanding compilers. */
42129 # include <limits.h>
42131 # include <assert.h>
42136 /* Override any gcc2 internal prototype to avoid an error. */
42141 /* We use char because int might match the return type of a gcc2
42142 builtin and then its argument prototype would still apply. */
42144 /* The GNU C library defines this for functions which it implements
42145 to always fail with ENOSYS. Some functions are actually named
42146 something starting with __ and the normal name is an alias. */
42147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42150 char (*f) () = $ac_func;
42159 return f != $ac_func;
42164 rm -f conftest.$ac_objext conftest$ac_exeext
42165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42166 (eval $ac_link) 2>conftest.er1
42168 grep -v '^ *+' conftest.er1 >conftest.err
42170 cat conftest.err >&5
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); } &&
42173 { ac_try='test -z "$ac_c_werror_flag"
42174 || test ! -s conftest.err'
42175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42176 (eval $ac_try) 2>&5
42178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179 (exit $ac_status); }; } &&
42180 { ac_try='test -s conftest$ac_exeext'
42181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42182 (eval $ac_try) 2>&5
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); }; }; then
42186 eval "$as_ac_var=yes"
42188 echo "$as_me: failed program was:" >&5
42189 sed 's/^/| /' conftest.$ac_ext >&5
42191 eval "$as_ac_var=no"
42193 rm -f conftest.err conftest.$ac_objext \
42194 conftest$ac_exeext conftest.$ac_ext
42196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42198 if test `eval echo '${'$as_ac_var'}'` = yes; then
42199 cat >>confdefs.h <<_ACEOF
42200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42208 # strftime.c uses the underyling system strftime if it exists.
42211 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
42247 cat >>confdefs.h <<\_ACEOF
42248 #define my_strftime nstrftime
42253 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
42254 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
42255 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
42256 echo $ECHO_N "(cached) $ECHO_C" >&6
42258 rm -f conftest.sym conftest.file
42259 echo >conftest.file
42260 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
42261 if test "$cross_compiling" = yes; then
42262 ac_cv_func_lstat_dereferences_slashed_symlink=no
42264 cat >conftest.$ac_ext <<_ACEOF
42267 cat confdefs.h >>conftest.$ac_ext
42268 cat >>conftest.$ac_ext <<_ACEOF
42269 /* end confdefs.h. */
42270 $ac_includes_default
42275 /* Linux will dereference the symlink and fail.
42276 That is better in the sense that it means we will not
42277 have to compile and use the lstat wrapper. */
42278 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
42283 rm -f conftest$ac_exeext
42284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42285 (eval $ac_link) 2>&5
42287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42290 (eval $ac_try) 2>&5
42292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293 (exit $ac_status); }; }; then
42294 ac_cv_func_lstat_dereferences_slashed_symlink=yes
42296 echo "$as_me: program exited with status $ac_status" >&5
42297 echo "$as_me: failed program was:" >&5
42298 sed 's/^/| /' conftest.$ac_ext >&5
42300 ( exit $ac_status )
42301 ac_cv_func_lstat_dereferences_slashed_symlink=no
42303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42306 # If the `ln -s' command failed, then we probably don't even
42307 # have an lstat function.
42308 ac_cv_func_lstat_dereferences_slashed_symlink=no
42310 rm -f conftest.sym conftest.file
42313 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
42314 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
42316 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
42318 cat >>confdefs.h <<_ACEOF
42319 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
42323 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
42325 "lstat.$ac_objext" | \
42326 *" lstat.$ac_objext" | \
42327 "lstat.$ac_objext "* | \
42328 *" lstat.$ac_objext "* ) ;;
42329 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
42335 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
42336 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
42337 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
42338 echo $ECHO_N "(cached) $ECHO_C" >&6
42340 if test "$cross_compiling" = yes; then
42341 ac_cv_func_lstat_empty_string_bug=yes
42343 cat >conftest.$ac_ext <<_ACEOF
42346 cat confdefs.h >>conftest.$ac_ext
42347 cat >>conftest.$ac_ext <<_ACEOF
42348 /* end confdefs.h. */
42349 $ac_includes_default
42354 exit (lstat ("", &sbuf) ? 1 : 0);
42359 rm -f conftest$ac_exeext
42360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42361 (eval $ac_link) 2>&5
42363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42366 (eval $ac_try) 2>&5
42368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369 (exit $ac_status); }; }; then
42370 ac_cv_func_lstat_empty_string_bug=yes
42372 echo "$as_me: program exited with status $ac_status" >&5
42373 echo "$as_me: failed program was:" >&5
42374 sed 's/^/| /' conftest.$ac_ext >&5
42376 ( exit $ac_status )
42377 ac_cv_func_lstat_empty_string_bug=no
42379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42382 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
42383 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
42384 if test $ac_cv_func_lstat_empty_string_bug = yes; then
42386 "lstat.$ac_objext" | \
42387 *" lstat.$ac_objext" | \
42388 "lstat.$ac_objext "* | \
42389 *" lstat.$ac_objext "* ) ;;
42390 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
42394 cat >>confdefs.h <<_ACEOF
42395 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
42400 if test $ac_cv_func_lstat_empty_string_bug = yes; then
42408 for ac_header in stdlib.h
42410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42412 echo "$as_me:$LINENO: checking for $ac_header" >&5
42413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42415 echo $ECHO_N "(cached) $ECHO_C" >&6
42417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42420 # Is the header compilable?
42421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42423 cat >conftest.$ac_ext <<_ACEOF
42426 cat confdefs.h >>conftest.$ac_ext
42427 cat >>conftest.$ac_ext <<_ACEOF
42428 /* end confdefs.h. */
42429 $ac_includes_default
42430 #include <$ac_header>
42432 rm -f conftest.$ac_objext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42434 (eval $ac_compile) 2>conftest.er1
42436 grep -v '^ *+' conftest.er1 >conftest.err
42438 cat conftest.err >&5
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } &&
42441 { ac_try='test -z "$ac_c_werror_flag"
42442 || test ! -s conftest.err'
42443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444 (eval $ac_try) 2>&5
42446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447 (exit $ac_status); }; } &&
42448 { ac_try='test -s conftest.$ac_objext'
42449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450 (eval $ac_try) 2>&5
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); }; }; then
42454 ac_header_compiler=yes
42456 echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42459 ac_header_compiler=no
42461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42463 echo "${ECHO_T}$ac_header_compiler" >&6
42465 # Is the header present?
42466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42468 cat >conftest.$ac_ext <<_ACEOF
42471 cat confdefs.h >>conftest.$ac_ext
42472 cat >>conftest.$ac_ext <<_ACEOF
42473 /* end confdefs.h. */
42474 #include <$ac_header>
42476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42479 grep -v '^ *+' conftest.er1 >conftest.err
42481 cat conftest.err >&5
42482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483 (exit $ac_status); } >/dev/null; then
42484 if test -s conftest.err; then
42485 ac_cpp_err=$ac_c_preproc_warn_flag
42486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42493 if test -z "$ac_cpp_err"; then
42494 ac_header_preproc=yes
42496 echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42499 ac_header_preproc=no
42501 rm -f conftest.err conftest.$ac_ext
42502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42503 echo "${ECHO_T}$ac_header_preproc" >&6
42505 # So? What about this header?
42506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42512 ac_header_preproc=yes
42515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42529 ## ------------------------------------ ##
42530 ## Report this to bug-coreutils@gnu.org ##
42531 ## ------------------------------------ ##
42534 sed "s/^/$as_me: WARNING: /" >&2
42537 echo "$as_me:$LINENO: checking for $ac_header" >&5
42538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42540 echo $ECHO_N "(cached) $ECHO_C" >&6
42542 eval "$as_ac_Header=\$ac_header_preproc"
42544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42549 cat >>confdefs.h <<_ACEOF
42550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42557 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
42558 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
42559 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
42560 echo $ECHO_N "(cached) $ECHO_C" >&6
42562 if test "$cross_compiling" = yes; then
42563 ac_cv_func_malloc_0_nonnull=no
42565 cat >conftest.$ac_ext <<_ACEOF
42568 cat confdefs.h >>conftest.$ac_ext
42569 cat >>conftest.$ac_ext <<_ACEOF
42570 /* end confdefs.h. */
42571 #if STDC_HEADERS || HAVE_STDLIB_H
42572 # include <stdlib.h>
42580 exit (malloc (0) ? 0 : 1);
42585 rm -f conftest$ac_exeext
42586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42587 (eval $ac_link) 2>&5
42589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42592 (eval $ac_try) 2>&5
42594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595 (exit $ac_status); }; }; then
42596 ac_cv_func_malloc_0_nonnull=yes
42598 echo "$as_me: program exited with status $ac_status" >&5
42599 echo "$as_me: failed program was:" >&5
42600 sed 's/^/| /' conftest.$ac_ext >&5
42602 ( exit $ac_status )
42603 ac_cv_func_malloc_0_nonnull=no
42605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42608 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
42609 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
42610 if test $ac_cv_func_malloc_0_nonnull = yes; then
42612 cat >>confdefs.h <<\_ACEOF
42613 #define HAVE_MALLOC 1
42617 cat >>confdefs.h <<\_ACEOF
42618 #define HAVE_MALLOC 0
42622 "malloc.$ac_objext" | \
42623 *" malloc.$ac_objext" | \
42624 "malloc.$ac_objext "* | \
42625 *" malloc.$ac_objext "* ) ;;
42626 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
42630 cat >>confdefs.h <<\_ACEOF
42631 #define malloc rpl_malloc
42640 if test $ac_cv_func_memcmp_working = no; then
42642 cat >>confdefs.h <<\_ACEOF
42643 #define memcmp rpl_memcmp
42650 nanosleep_save_libs=$LIBS
42652 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
42653 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
42654 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
42655 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
42656 if test "${ac_cv_search_nanosleep+set}" = set; then
42657 echo $ECHO_N "(cached) $ECHO_C" >&6
42659 ac_func_search_save_LIBS=$LIBS
42660 ac_cv_search_nanosleep=no
42661 cat >conftest.$ac_ext <<_ACEOF
42664 cat confdefs.h >>conftest.$ac_ext
42665 cat >>conftest.$ac_ext <<_ACEOF
42666 /* end confdefs.h. */
42668 /* Override any gcc2 internal prototype to avoid an error. */
42672 /* We use char because int might match the return type of a gcc2
42673 builtin and then its argument prototype would still apply. */
42683 rm -f conftest.$ac_objext conftest$ac_exeext
42684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42685 (eval $ac_link) 2>conftest.er1
42687 grep -v '^ *+' conftest.er1 >conftest.err
42689 cat conftest.err >&5
42690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691 (exit $ac_status); } &&
42692 { ac_try='test -z "$ac_c_werror_flag"
42693 || test ! -s conftest.err'
42694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42695 (eval $ac_try) 2>&5
42697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698 (exit $ac_status); }; } &&
42699 { ac_try='test -s conftest$ac_exeext'
42700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42701 (eval $ac_try) 2>&5
42703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704 (exit $ac_status); }; }; then
42705 ac_cv_search_nanosleep="none required"
42707 echo "$as_me: failed program was:" >&5
42708 sed 's/^/| /' conftest.$ac_ext >&5
42711 rm -f conftest.err conftest.$ac_objext \
42712 conftest$ac_exeext conftest.$ac_ext
42713 if test "$ac_cv_search_nanosleep" = no; then
42714 for ac_lib in rt posix4; do
42715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
42716 cat >conftest.$ac_ext <<_ACEOF
42719 cat confdefs.h >>conftest.$ac_ext
42720 cat >>conftest.$ac_ext <<_ACEOF
42721 /* end confdefs.h. */
42723 /* Override any gcc2 internal prototype to avoid an error. */
42727 /* We use char because int might match the return type of a gcc2
42728 builtin and then its argument prototype would still apply. */
42738 rm -f conftest.$ac_objext conftest$ac_exeext
42739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42740 (eval $ac_link) 2>conftest.er1
42742 grep -v '^ *+' conftest.er1 >conftest.err
42744 cat conftest.err >&5
42745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746 (exit $ac_status); } &&
42747 { ac_try='test -z "$ac_c_werror_flag"
42748 || test ! -s conftest.err'
42749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42750 (eval $ac_try) 2>&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); }; } &&
42754 { ac_try='test -s conftest$ac_exeext'
42755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756 (eval $ac_try) 2>&5
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); }; }; then
42760 ac_cv_search_nanosleep="-l$ac_lib"
42763 echo "$as_me: failed program was:" >&5
42764 sed 's/^/| /' conftest.$ac_ext >&5
42767 rm -f conftest.err conftest.$ac_objext \
42768 conftest$ac_exeext conftest.$ac_ext
42771 LIBS=$ac_func_search_save_LIBS
42773 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
42774 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
42775 if test "$ac_cv_search_nanosleep" != no; then
42776 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
42777 test "$ac_cv_search_nanosleep" = "none required" ||
42778 LIB_NANOSLEEP=$ac_cv_search_nanosleep
42783 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
42784 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
42785 if test "${jm_cv_func_nanosleep_works+set}" = set; then
42786 echo $ECHO_N "(cached) $ECHO_C" >&6
42797 if test "$cross_compiling" = yes; then
42798 jm_cv_func_nanosleep_works=no
42800 cat >conftest.$ac_ext <<_ACEOF
42803 cat confdefs.h >>conftest.$ac_ext
42804 cat >>conftest.$ac_ext <<_ACEOF
42805 /* end confdefs.h. */
42807 # if TIME_WITH_SYS_TIME
42808 # include <sys/time.h>
42811 # if HAVE_SYS_TIME_H
42812 # include <sys/time.h>
42821 struct timespec ts_sleep, ts_remaining;
42822 ts_sleep.tv_sec = 0;
42823 ts_sleep.tv_nsec = 1;
42824 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
42828 rm -f conftest$ac_exeext
42829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42830 (eval $ac_link) 2>&5
42832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42835 (eval $ac_try) 2>&5
42837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838 (exit $ac_status); }; }; then
42839 jm_cv_func_nanosleep_works=yes
42841 echo "$as_me: program exited with status $ac_status" >&5
42842 echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42845 ( exit $ac_status )
42846 jm_cv_func_nanosleep_works=no
42848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42852 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
42853 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
42854 if test $jm_cv_func_nanosleep_works = no; then
42856 "nanosleep.$ac_objext" | \
42857 *" nanosleep.$ac_objext" | \
42858 "nanosleep.$ac_objext "* | \
42859 *" nanosleep.$ac_objext "* ) ;;
42860 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
42864 cat >>confdefs.h <<\_ACEOF
42865 #define nanosleep rpl_nanosleep
42879 LIBS=$nanosleep_save_libs
42881 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
42882 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
42883 if test "${jm_cv_func_svid_putenv+set}" = set; then
42884 echo $ECHO_N "(cached) $ECHO_C" >&6
42886 if test "$cross_compiling" = yes; then
42887 jm_cv_func_svid_putenv=no
42889 cat >conftest.$ac_ext <<_ACEOF
42892 cat confdefs.h >>conftest.$ac_ext
42893 cat >>conftest.$ac_ext <<_ACEOF
42894 /* end confdefs.h. */
42899 /* Put it in env. */
42900 if (putenv ("CONFTEST_putenv=val"))
42903 /* Try to remove it. */
42904 if (putenv ("CONFTEST_putenv"))
42907 /* Make sure it was deleted. */
42908 if (getenv ("CONFTEST_putenv") != 0)
42915 rm -f conftest$ac_exeext
42916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42917 (eval $ac_link) 2>&5
42919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42922 (eval $ac_try) 2>&5
42924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925 (exit $ac_status); }; }; then
42926 jm_cv_func_svid_putenv=yes
42928 echo "$as_me: program exited with status $ac_status" >&5
42929 echo "$as_me: failed program was:" >&5
42930 sed 's/^/| /' conftest.$ac_ext >&5
42932 ( exit $ac_status )
42933 jm_cv_func_svid_putenv=no
42935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42939 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
42940 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
42941 if test $jm_cv_func_svid_putenv = no; then
42943 "putenv.$ac_objext" | \
42944 *" putenv.$ac_objext" | \
42945 "putenv.$ac_objext "* | \
42946 *" putenv.$ac_objext "* ) ;;
42947 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
42951 cat >>confdefs.h <<\_ACEOF
42952 #define putenv rpl_putenv
42967 for ac_header in stdlib.h
42969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42971 echo "$as_me:$LINENO: checking for $ac_header" >&5
42972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42974 echo $ECHO_N "(cached) $ECHO_C" >&6
42976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42979 # Is the header compilable?
42980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42982 cat >conftest.$ac_ext <<_ACEOF
42985 cat confdefs.h >>conftest.$ac_ext
42986 cat >>conftest.$ac_ext <<_ACEOF
42987 /* end confdefs.h. */
42988 $ac_includes_default
42989 #include <$ac_header>
42991 rm -f conftest.$ac_objext
42992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42993 (eval $ac_compile) 2>conftest.er1
42995 grep -v '^ *+' conftest.er1 >conftest.err
42997 cat conftest.err >&5
42998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42999 (exit $ac_status); } &&
43000 { ac_try='test -z "$ac_c_werror_flag"
43001 || test ! -s conftest.err'
43002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43003 (eval $ac_try) 2>&5
43005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006 (exit $ac_status); }; } &&
43007 { ac_try='test -s conftest.$ac_objext'
43008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43009 (eval $ac_try) 2>&5
43011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012 (exit $ac_status); }; }; then
43013 ac_header_compiler=yes
43015 echo "$as_me: failed program was:" >&5
43016 sed 's/^/| /' conftest.$ac_ext >&5
43018 ac_header_compiler=no
43020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43022 echo "${ECHO_T}$ac_header_compiler" >&6
43024 # Is the header present?
43025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43027 cat >conftest.$ac_ext <<_ACEOF
43030 cat confdefs.h >>conftest.$ac_ext
43031 cat >>conftest.$ac_ext <<_ACEOF
43032 /* end confdefs.h. */
43033 #include <$ac_header>
43035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43038 grep -v '^ *+' conftest.er1 >conftest.err
43040 cat conftest.err >&5
43041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43042 (exit $ac_status); } >/dev/null; then
43043 if test -s conftest.err; then
43044 ac_cpp_err=$ac_c_preproc_warn_flag
43045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43052 if test -z "$ac_cpp_err"; then
43053 ac_header_preproc=yes
43055 echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43058 ac_header_preproc=no
43060 rm -f conftest.err conftest.$ac_ext
43061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43062 echo "${ECHO_T}$ac_header_preproc" >&6
43064 # So? What about this header?
43065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43071 ac_header_preproc=yes
43074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43088 ## ------------------------------------ ##
43089 ## Report this to bug-coreutils@gnu.org ##
43090 ## ------------------------------------ ##
43093 sed "s/^/$as_me: WARNING: /" >&2
43096 echo "$as_me:$LINENO: checking for $ac_header" >&5
43097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43099 echo $ECHO_N "(cached) $ECHO_C" >&6
43101 eval "$as_ac_Header=\$ac_header_preproc"
43103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43108 cat >>confdefs.h <<_ACEOF
43109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43116 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
43117 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
43118 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
43119 echo $ECHO_N "(cached) $ECHO_C" >&6
43121 if test "$cross_compiling" = yes; then
43122 ac_cv_func_realloc_0_nonnull=no
43124 cat >conftest.$ac_ext <<_ACEOF
43127 cat confdefs.h >>conftest.$ac_ext
43128 cat >>conftest.$ac_ext <<_ACEOF
43129 /* end confdefs.h. */
43130 #if STDC_HEADERS || HAVE_STDLIB_H
43131 # include <stdlib.h>
43139 exit (realloc (0, 0) ? 0 : 1);
43144 rm -f conftest$ac_exeext
43145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43146 (eval $ac_link) 2>&5
43148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43151 (eval $ac_try) 2>&5
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); }; }; then
43155 ac_cv_func_realloc_0_nonnull=yes
43157 echo "$as_me: program exited with status $ac_status" >&5
43158 echo "$as_me: failed program was:" >&5
43159 sed 's/^/| /' conftest.$ac_ext >&5
43161 ( exit $ac_status )
43162 ac_cv_func_realloc_0_nonnull=no
43164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43167 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
43168 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
43169 if test $ac_cv_func_realloc_0_nonnull = yes; then
43171 cat >>confdefs.h <<\_ACEOF
43172 #define HAVE_REALLOC 1
43176 cat >>confdefs.h <<\_ACEOF
43177 #define HAVE_REALLOC 0
43181 "realloc.$ac_objext" | \
43182 *" realloc.$ac_objext" | \
43183 "realloc.$ac_objext "* | \
43184 *" realloc.$ac_objext "* ) ;;
43185 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
43189 cat >>confdefs.h <<\_ACEOF
43190 #define realloc rpl_realloc
43198 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
43199 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
43200 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
43201 echo $ECHO_N "(cached) $ECHO_C" >&6
43203 if test "$cross_compiling" = yes; then
43204 ac_cv_func_stat_empty_string_bug=yes
43206 cat >conftest.$ac_ext <<_ACEOF
43209 cat confdefs.h >>conftest.$ac_ext
43210 cat >>conftest.$ac_ext <<_ACEOF
43211 /* end confdefs.h. */
43212 $ac_includes_default
43217 exit (stat ("", &sbuf) ? 1 : 0);
43222 rm -f conftest$ac_exeext
43223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43224 (eval $ac_link) 2>&5
43226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43229 (eval $ac_try) 2>&5
43231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232 (exit $ac_status); }; }; then
43233 ac_cv_func_stat_empty_string_bug=yes
43235 echo "$as_me: program exited with status $ac_status" >&5
43236 echo "$as_me: failed program was:" >&5
43237 sed 's/^/| /' conftest.$ac_ext >&5
43239 ( exit $ac_status )
43240 ac_cv_func_stat_empty_string_bug=no
43242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43245 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
43246 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
43247 if test $ac_cv_func_stat_empty_string_bug = yes; then
43249 "stat.$ac_objext" | \
43250 *" stat.$ac_objext" | \
43251 "stat.$ac_objext "* | \
43252 *" stat.$ac_objext "* ) ;;
43253 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
43257 cat >>confdefs.h <<_ACEOF
43258 #define HAVE_STAT_EMPTY_STRING_BUG 1
43263 if test $ac_cv_func_stat_empty_string_bug = yes; then
43269 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
43270 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
43271 if test "${ac_cv_func_utime_null+set}" = set; then
43272 echo $ECHO_N "(cached) $ECHO_C" >&6
43274 rm -f conftest.data; >conftest.data
43275 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
43276 if test "$cross_compiling" = yes; then
43277 ac_cv_func_utime_null=no
43279 cat >conftest.$ac_ext <<_ACEOF
43282 cat confdefs.h >>conftest.$ac_ext
43283 cat >>conftest.$ac_ext <<_ACEOF
43284 /* end confdefs.h. */
43285 $ac_includes_default
43290 exit (!(stat ("conftest.data", &s) == 0
43291 && utime ("conftest.data", (long *)0) == 0
43292 && stat ("conftest.data", &t) == 0
43293 && t.st_mtime >= s.st_mtime
43294 && t.st_mtime - s.st_mtime < 120));
43299 rm -f conftest$ac_exeext
43300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43301 (eval $ac_link) 2>&5
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43306 (eval $ac_try) 2>&5
43308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309 (exit $ac_status); }; }; then
43310 ac_cv_func_utime_null=yes
43312 echo "$as_me: program exited with status $ac_status" >&5
43313 echo "$as_me: failed program was:" >&5
43314 sed 's/^/| /' conftest.$ac_ext >&5
43316 ( exit $ac_status )
43317 ac_cv_func_utime_null=no
43319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43323 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
43324 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
43325 if test $ac_cv_func_utime_null = yes; then
43327 cat >>confdefs.h <<\_ACEOF
43328 #define HAVE_UTIME_NULL 1
43332 rm -f conftest.data
43336 if test $ac_cv_func_utime_null = no; then
43338 "utime.$ac_objext" | \
43339 *" utime.$ac_objext" | \
43340 "utime.$ac_objext "* | \
43341 *" utime.$ac_objext "* ) ;;
43342 *) LIBOBJS="$LIBOBJS utime.$ac_objext" ;;
43346 cat >>confdefs.h <<\_ACEOF
43347 #define utime rpl_utime
43359 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
43360 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
43361 if test "${ac_cv_func_utimes_null+set}" = set; then
43362 echo $ECHO_N "(cached) $ECHO_C" >&6
43364 rm -f conftest.data; > conftest.data
43365 if test "$cross_compiling" = yes; then
43366 ac_cv_func_utimes_null=no
43368 cat >conftest.$ac_ext <<_ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h. */
43375 /* In case stat has been defined to rpl_stat, undef it here. */
43377 #include <sys/types.h>
43378 #include <sys/stat.h>
43381 exit(!(stat ("conftest.data", &s) == 0
43382 && utimes("conftest.data", (long *)0) == 0
43383 && stat("conftest.data", &t) == 0
43384 && t.st_mtime >= s.st_mtime
43385 && t.st_mtime - s.st_mtime < 120));
43388 rm -f conftest$ac_exeext
43389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43390 (eval $ac_link) 2>&5
43392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43395 (eval $ac_try) 2>&5
43397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43398 (exit $ac_status); }; }; then
43399 ac_cv_func_utimes_null=yes
43401 echo "$as_me: program exited with status $ac_status" >&5
43402 echo "$as_me: failed program was:" >&5
43403 sed 's/^/| /' conftest.$ac_ext >&5
43405 ( exit $ac_status )
43406 ac_cv_func_utimes_null=no
43408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43410 rm -f core core.* *.core
43412 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
43413 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
43415 if test $ac_cv_func_utimes_null = yes; then
43417 cat >>confdefs.h <<\_ACEOF
43418 #define HAVE_UTIMES_NULL 1
43436 echo "$as_me:$LINENO: checking whether rename is broken" >&5
43437 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
43438 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
43439 echo $ECHO_N "(cached) $ECHO_C" >&6
43442 rm -rf conftest.d1 conftest.d2
43443 mkdir conftest.d1 ||
43444 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
43445 echo "$as_me: error: cannot create temporary directory" >&2;}
43446 { (exit 1); exit 1; }; }
43447 if test "$cross_compiling" = yes; then
43448 vb_cv_func_rename_trailing_slash_bug=yes
43450 cat >conftest.$ac_ext <<_ACEOF
43453 cat confdefs.h >>conftest.$ac_ext
43454 cat >>conftest.$ac_ext <<_ACEOF
43455 /* end confdefs.h. */
43457 # include <stdio.h>
43461 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
43465 rm -f conftest$ac_exeext
43466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43467 (eval $ac_link) 2>&5
43469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43472 (eval $ac_try) 2>&5
43474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43475 (exit $ac_status); }; }; then
43476 vb_cv_func_rename_trailing_slash_bug=no
43478 echo "$as_me: program exited with status $ac_status" >&5
43479 echo "$as_me: failed program was:" >&5
43480 sed 's/^/| /' conftest.$ac_ext >&5
43482 ( exit $ac_status )
43483 vb_cv_func_rename_trailing_slash_bug=yes
43485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43488 rm -rf conftest.d1 conftest.d2
43491 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
43492 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
43493 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
43495 "rename.$ac_objext" | \
43496 *" rename.$ac_objext" | \
43497 "rename.$ac_objext "* | \
43498 *" rename.$ac_objext "* ) ;;
43499 *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
43503 cat >>confdefs.h <<\_ACEOF
43504 #define rename rpl_rename
43508 cat >>confdefs.h <<\_ACEOF
43509 #define RENAME_TRAILING_SLASH_BUG 1
43516 # We don't yet use c-stack.c.
43517 # AC_REQUIRE([gl_C_STACK])
43650 ac_header_dirent=no
43651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
43652 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
43653 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
43654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
43655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43656 echo $ECHO_N "(cached) $ECHO_C" >&6
43658 cat >conftest.$ac_ext <<_ACEOF
43661 cat confdefs.h >>conftest.$ac_ext
43662 cat >>conftest.$ac_ext <<_ACEOF
43663 /* end confdefs.h. */
43664 #include <sys/types.h>
43676 rm -f conftest.$ac_objext
43677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43678 (eval $ac_compile) 2>conftest.er1
43680 grep -v '^ *+' conftest.er1 >conftest.err
43682 cat conftest.err >&5
43683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684 (exit $ac_status); } &&
43685 { ac_try='test -z "$ac_c_werror_flag"
43686 || test ! -s conftest.err'
43687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43688 (eval $ac_try) 2>&5
43690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43691 (exit $ac_status); }; } &&
43692 { ac_try='test -s conftest.$ac_objext'
43693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694 (eval $ac_try) 2>&5
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); }; }; then
43698 eval "$as_ac_Header=yes"
43700 echo "$as_me: failed program was:" >&5
43701 sed 's/^/| /' conftest.$ac_ext >&5
43703 eval "$as_ac_Header=no"
43705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43710 cat >>confdefs.h <<_ACEOF
43711 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
43714 ac_header_dirent=$ac_hdr; break
43718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
43719 if test $ac_header_dirent = dirent.h; then
43720 echo "$as_me:$LINENO: checking for library containing opendir" >&5
43721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
43722 if test "${ac_cv_search_opendir+set}" = set; then
43723 echo $ECHO_N "(cached) $ECHO_C" >&6
43725 ac_func_search_save_LIBS=$LIBS
43726 ac_cv_search_opendir=no
43727 cat >conftest.$ac_ext <<_ACEOF
43730 cat confdefs.h >>conftest.$ac_ext
43731 cat >>conftest.$ac_ext <<_ACEOF
43732 /* end confdefs.h. */
43734 /* Override any gcc2 internal prototype to avoid an error. */
43738 /* We use char because int might match the return type of a gcc2
43739 builtin and then its argument prototype would still apply. */
43749 rm -f conftest.$ac_objext conftest$ac_exeext
43750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43751 (eval $ac_link) 2>conftest.er1
43753 grep -v '^ *+' conftest.er1 >conftest.err
43755 cat conftest.err >&5
43756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43757 (exit $ac_status); } &&
43758 { ac_try='test -z "$ac_c_werror_flag"
43759 || test ! -s conftest.err'
43760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43761 (eval $ac_try) 2>&5
43763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43764 (exit $ac_status); }; } &&
43765 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43771 ac_cv_search_opendir="none required"
43773 echo "$as_me: failed program was:" >&5
43774 sed 's/^/| /' conftest.$ac_ext >&5
43777 rm -f conftest.err conftest.$ac_objext \
43778 conftest$ac_exeext conftest.$ac_ext
43779 if test "$ac_cv_search_opendir" = no; then
43780 for ac_lib in dir; do
43781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
43782 cat >conftest.$ac_ext <<_ACEOF
43785 cat confdefs.h >>conftest.$ac_ext
43786 cat >>conftest.$ac_ext <<_ACEOF
43787 /* end confdefs.h. */
43789 /* Override any gcc2 internal prototype to avoid an error. */
43793 /* We use char because int might match the return type of a gcc2
43794 builtin and then its argument prototype would still apply. */
43804 rm -f conftest.$ac_objext conftest$ac_exeext
43805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43806 (eval $ac_link) 2>conftest.er1
43808 grep -v '^ *+' conftest.er1 >conftest.err
43810 cat conftest.err >&5
43811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812 (exit $ac_status); } &&
43813 { ac_try='test -z "$ac_c_werror_flag"
43814 || test ! -s conftest.err'
43815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43816 (eval $ac_try) 2>&5
43818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43819 (exit $ac_status); }; } &&
43820 { ac_try='test -s conftest$ac_exeext'
43821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43822 (eval $ac_try) 2>&5
43824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43825 (exit $ac_status); }; }; then
43826 ac_cv_search_opendir="-l$ac_lib"
43829 echo "$as_me: failed program was:" >&5
43830 sed 's/^/| /' conftest.$ac_ext >&5
43833 rm -f conftest.err conftest.$ac_objext \
43834 conftest$ac_exeext conftest.$ac_ext
43837 LIBS=$ac_func_search_save_LIBS
43839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
43840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
43841 if test "$ac_cv_search_opendir" != no; then
43842 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
43847 echo "$as_me:$LINENO: checking for library containing opendir" >&5
43848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
43849 if test "${ac_cv_search_opendir+set}" = set; then
43850 echo $ECHO_N "(cached) $ECHO_C" >&6
43852 ac_func_search_save_LIBS=$LIBS
43853 ac_cv_search_opendir=no
43854 cat >conftest.$ac_ext <<_ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h. */
43861 /* Override any gcc2 internal prototype to avoid an error. */
43865 /* We use char because int might match the return type of a gcc2
43866 builtin and then its argument prototype would still apply. */
43876 rm -f conftest.$ac_objext conftest$ac_exeext
43877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43878 (eval $ac_link) 2>conftest.er1
43880 grep -v '^ *+' conftest.er1 >conftest.err
43882 cat conftest.err >&5
43883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884 (exit $ac_status); } &&
43885 { ac_try='test -z "$ac_c_werror_flag"
43886 || test ! -s conftest.err'
43887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888 (eval $ac_try) 2>&5
43890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891 (exit $ac_status); }; } &&
43892 { ac_try='test -s conftest$ac_exeext'
43893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43894 (eval $ac_try) 2>&5
43896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43897 (exit $ac_status); }; }; then
43898 ac_cv_search_opendir="none required"
43900 echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43904 rm -f conftest.err conftest.$ac_objext \
43905 conftest$ac_exeext conftest.$ac_ext
43906 if test "$ac_cv_search_opendir" = no; then
43907 for ac_lib in x; do
43908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
43909 cat >conftest.$ac_ext <<_ACEOF
43912 cat confdefs.h >>conftest.$ac_ext
43913 cat >>conftest.$ac_ext <<_ACEOF
43914 /* end confdefs.h. */
43916 /* Override any gcc2 internal prototype to avoid an error. */
43920 /* We use char because int might match the return type of a gcc2
43921 builtin and then its argument prototype would still apply. */
43931 rm -f conftest.$ac_objext conftest$ac_exeext
43932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43933 (eval $ac_link) 2>conftest.er1
43935 grep -v '^ *+' conftest.er1 >conftest.err
43937 cat conftest.err >&5
43938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939 (exit $ac_status); } &&
43940 { ac_try='test -z "$ac_c_werror_flag"
43941 || test ! -s conftest.err'
43942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43943 (eval $ac_try) 2>&5
43945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); }; } &&
43947 { ac_try='test -s conftest$ac_exeext'
43948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43949 (eval $ac_try) 2>&5
43951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43952 (exit $ac_status); }; }; then
43953 ac_cv_search_opendir="-l$ac_lib"
43956 echo "$as_me: failed program was:" >&5
43957 sed 's/^/| /' conftest.$ac_ext >&5
43960 rm -f conftest.err conftest.$ac_objext \
43961 conftest$ac_exeext conftest.$ac_ext
43964 LIBS=$ac_func_search_save_LIBS
43966 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
43967 echo "${ECHO_T}$ac_cv_search_opendir" >&6
43968 if test "$ac_cv_search_opendir" != no; then
43969 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
43977 # include <dirent.h>
43978 #else /* not HAVE_DIRENT_H */
43979 # define dirent direct
43980 # if HAVE_SYS_NDIR_H
43981 # include <sys/ndir.h>
43982 # endif /* HAVE_SYS_NDIR_H */
43983 # if HAVE_SYS_DIR_H
43984 # include <sys/dir.h>
43985 # endif /* HAVE_SYS_DIR_H */
43988 # endif /* HAVE_NDIR_H */
43989 #endif /* HAVE_DIRENT_H */
43992 for ac_func in dirfd
43994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43995 echo "$as_me:$LINENO: checking for $ac_func" >&5
43996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43997 if eval "test \"\${$as_ac_var+set}\" = set"; then
43998 echo $ECHO_N "(cached) $ECHO_C" >&6
44000 cat >conftest.$ac_ext <<_ACEOF
44003 cat confdefs.h >>conftest.$ac_ext
44004 cat >>conftest.$ac_ext <<_ACEOF
44005 /* end confdefs.h. */
44006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44008 #define $ac_func innocuous_$ac_func
44010 /* System header to define __stub macros and hopefully few prototypes,
44011 which can conflict with char $ac_func (); below.
44012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44013 <limits.h> exists even on freestanding compilers. */
44016 # include <limits.h>
44018 # include <assert.h>
44023 /* Override any gcc2 internal prototype to avoid an error. */
44028 /* We use char because int might match the return type of a gcc2
44029 builtin and then its argument prototype would still apply. */
44031 /* The GNU C library defines this for functions which it implements
44032 to always fail with ENOSYS. Some functions are actually named
44033 something starting with __ and the normal name is an alias. */
44034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44037 char (*f) () = $ac_func;
44046 return f != $ac_func;
44051 rm -f conftest.$ac_objext conftest$ac_exeext
44052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44053 (eval $ac_link) 2>conftest.er1
44055 grep -v '^ *+' conftest.er1 >conftest.err
44057 cat conftest.err >&5
44058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44059 (exit $ac_status); } &&
44060 { ac_try='test -z "$ac_c_werror_flag"
44061 || test ! -s conftest.err'
44062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44063 (eval $ac_try) 2>&5
44065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066 (exit $ac_status); }; } &&
44067 { ac_try='test -s conftest$ac_exeext'
44068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44069 (eval $ac_try) 2>&5
44071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44072 (exit $ac_status); }; }; then
44073 eval "$as_ac_var=yes"
44075 echo "$as_me: failed program was:" >&5
44076 sed 's/^/| /' conftest.$ac_ext >&5
44078 eval "$as_ac_var=no"
44080 rm -f conftest.err conftest.$ac_objext \
44081 conftest$ac_exeext conftest.$ac_ext
44083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44085 if test `eval echo '${'$as_ac_var'}'` = yes; then
44086 cat >>confdefs.h <<_ACEOF
44087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44093 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
44094 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
44095 if test "${ac_cv_have_decl_dirfd+set}" = set; then
44096 echo $ECHO_N "(cached) $ECHO_C" >&6
44098 cat >conftest.$ac_ext <<_ACEOF
44101 cat confdefs.h >>conftest.$ac_ext
44102 cat >>conftest.$ac_ext <<_ACEOF
44103 /* end confdefs.h. */
44110 char *p = (char *) dirfd;
44117 rm -f conftest.$ac_objext
44118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44119 (eval $ac_compile) 2>conftest.er1
44121 grep -v '^ *+' conftest.er1 >conftest.err
44123 cat conftest.err >&5
44124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125 (exit $ac_status); } &&
44126 { ac_try='test -z "$ac_c_werror_flag"
44127 || test ! -s conftest.err'
44128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44129 (eval $ac_try) 2>&5
44131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44132 (exit $ac_status); }; } &&
44133 { ac_try='test -s conftest.$ac_objext'
44134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44135 (eval $ac_try) 2>&5
44137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138 (exit $ac_status); }; }; then
44139 ac_cv_have_decl_dirfd=yes
44141 echo "$as_me: failed program was:" >&5
44142 sed 's/^/| /' conftest.$ac_ext >&5
44144 ac_cv_have_decl_dirfd=no
44146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
44149 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
44150 if test $ac_cv_have_decl_dirfd = yes; then
44152 cat >>confdefs.h <<_ACEOF
44153 #define HAVE_DECL_DIRFD 1
44158 cat >>confdefs.h <<_ACEOF
44159 #define HAVE_DECL_DIRFD 0
44167 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
44168 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
44169 if test "${gl_cv_func_dirfd_macro+set}" = set; then
44170 echo $ECHO_N "(cached) $ECHO_C" >&6
44172 cat >conftest.$ac_ext <<_ACEOF
44175 cat confdefs.h >>conftest.$ac_ext
44176 cat >>conftest.$ac_ext <<_ACEOF
44177 /* end confdefs.h. */
44180 dirent_header_defines_dirfd
44183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44184 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
44185 gl_cv_func_dirfd_macro=yes
44187 gl_cv_func_dirfd_macro=no
44192 echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
44193 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6
44195 # Use the replacement only if we have no function, macro,
44196 # or declaration with that name.
44197 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
44200 for ac_func in dirfd
44202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44203 echo "$as_me:$LINENO: checking for $ac_func" >&5
44204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44205 if eval "test \"\${$as_ac_var+set}\" = set"; then
44206 echo $ECHO_N "(cached) $ECHO_C" >&6
44208 cat >conftest.$ac_ext <<_ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h. */
44214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44216 #define $ac_func innocuous_$ac_func
44218 /* System header to define __stub macros and hopefully few prototypes,
44219 which can conflict with char $ac_func (); below.
44220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44221 <limits.h> exists even on freestanding compilers. */
44224 # include <limits.h>
44226 # include <assert.h>
44231 /* Override any gcc2 internal prototype to avoid an error. */
44236 /* We use char because int might match the return type of a gcc2
44237 builtin and then its argument prototype would still apply. */
44239 /* The GNU C library defines this for functions which it implements
44240 to always fail with ENOSYS. Some functions are actually named
44241 something starting with __ and the normal name is an alias. */
44242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44245 char (*f) () = $ac_func;
44254 return f != $ac_func;
44259 rm -f conftest.$ac_objext conftest$ac_exeext
44260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44261 (eval $ac_link) 2>conftest.er1
44263 grep -v '^ *+' conftest.er1 >conftest.err
44265 cat conftest.err >&5
44266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267 (exit $ac_status); } &&
44268 { ac_try='test -z "$ac_c_werror_flag"
44269 || test ! -s conftest.err'
44270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271 (eval $ac_try) 2>&5
44273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274 (exit $ac_status); }; } &&
44275 { ac_try='test -s conftest$ac_exeext'
44276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277 (eval $ac_try) 2>&5
44279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280 (exit $ac_status); }; }; then
44281 eval "$as_ac_var=yes"
44283 echo "$as_me: failed program was:" >&5
44284 sed 's/^/| /' conftest.$ac_ext >&5
44286 eval "$as_ac_var=no"
44288 rm -f conftest.err conftest.$ac_objext \
44289 conftest$ac_exeext conftest.$ac_ext
44291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44293 if test `eval echo '${'$as_ac_var'}'` = yes; then
44294 cat >>confdefs.h <<_ACEOF
44295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44300 "$ac_func.$ac_objext" | \
44301 *" $ac_func.$ac_objext" | \
44302 "$ac_func.$ac_objext "* | \
44303 *" $ac_func.$ac_objext "* ) ;;
44304 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44311 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
44312 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
44313 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
44314 echo $ECHO_N "(cached) $ECHO_C" >&6
44317 dirfd_save_CFLAGS=$CFLAGS
44318 for ac_expr in d_fd dd_fd; do
44320 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
44321 cat >conftest.$ac_ext <<_ACEOF
44324 cat confdefs.h >>conftest.$ac_ext
44325 cat >>conftest.$ac_ext <<_ACEOF
44326 /* end confdefs.h. */
44332 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
44337 rm -f conftest.$ac_objext
44338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44339 (eval $ac_compile) 2>conftest.er1
44341 grep -v '^ *+' conftest.er1 >conftest.err
44343 cat conftest.err >&5
44344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345 (exit $ac_status); } &&
44346 { ac_try='test -z "$ac_c_werror_flag"
44347 || test ! -s conftest.err'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; } &&
44353 { ac_try='test -s conftest.$ac_objext'
44354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355 (eval $ac_try) 2>&5
44357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358 (exit $ac_status); }; }; then
44362 echo "$as_me: failed program was:" >&5
44363 sed 's/^/| /' conftest.$ac_ext >&5
44366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44367 CFLAGS=$dirfd_save_CFLAGS
44368 test "$dir_fd_found" = yes && break
44370 test "$dir_fd_found" = yes || ac_expr=no_such_member
44372 gl_cv_sys_dir_fd_member_name=$ac_expr
44376 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
44377 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
44378 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
44380 cat >>confdefs.h <<_ACEOF
44381 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
44391 for ac_header in sys/acl.h
44393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44395 echo "$as_me:$LINENO: checking for $ac_header" >&5
44396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44398 echo $ECHO_N "(cached) $ECHO_C" >&6
44400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44403 # Is the header compilable?
44404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44406 cat >conftest.$ac_ext <<_ACEOF
44409 cat confdefs.h >>conftest.$ac_ext
44410 cat >>conftest.$ac_ext <<_ACEOF
44411 /* end confdefs.h. */
44412 $ac_includes_default
44413 #include <$ac_header>
44415 rm -f conftest.$ac_objext
44416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44417 (eval $ac_compile) 2>conftest.er1
44419 grep -v '^ *+' conftest.er1 >conftest.err
44421 cat conftest.err >&5
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); } &&
44424 { ac_try='test -z "$ac_c_werror_flag"
44425 || test ! -s conftest.err'
44426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44427 (eval $ac_try) 2>&5
44429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430 (exit $ac_status); }; } &&
44431 { ac_try='test -s conftest.$ac_objext'
44432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44433 (eval $ac_try) 2>&5
44435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44436 (exit $ac_status); }; }; then
44437 ac_header_compiler=yes
44439 echo "$as_me: failed program was:" >&5
44440 sed 's/^/| /' conftest.$ac_ext >&5
44442 ac_header_compiler=no
44444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44446 echo "${ECHO_T}$ac_header_compiler" >&6
44448 # Is the header present?
44449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44451 cat >conftest.$ac_ext <<_ACEOF
44454 cat confdefs.h >>conftest.$ac_ext
44455 cat >>conftest.$ac_ext <<_ACEOF
44456 /* end confdefs.h. */
44457 #include <$ac_header>
44459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44462 grep -v '^ *+' conftest.er1 >conftest.err
44464 cat conftest.err >&5
44465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44466 (exit $ac_status); } >/dev/null; then
44467 if test -s conftest.err; then
44468 ac_cpp_err=$ac_c_preproc_warn_flag
44469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44476 if test -z "$ac_cpp_err"; then
44477 ac_header_preproc=yes
44479 echo "$as_me: failed program was:" >&5
44480 sed 's/^/| /' conftest.$ac_ext >&5
44482 ac_header_preproc=no
44484 rm -f conftest.err conftest.$ac_ext
44485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44486 echo "${ECHO_T}$ac_header_preproc" >&6
44488 # So? What about this header?
44489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44495 ac_header_preproc=yes
44498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44512 ## ------------------------------------ ##
44513 ## Report this to bug-coreutils@gnu.org ##
44514 ## ------------------------------------ ##
44517 sed "s/^/$as_me: WARNING: /" >&2
44520 echo "$as_me:$LINENO: checking for $ac_header" >&5
44521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44523 echo $ECHO_N "(cached) $ECHO_C" >&6
44525 eval "$as_ac_Header=\$ac_header_preproc"
44527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44532 cat >>confdefs.h <<_ACEOF
44533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44544 echo "$as_me:$LINENO: checking for $ac_func" >&5
44545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44546 if eval "test \"\${$as_ac_var+set}\" = set"; then
44547 echo $ECHO_N "(cached) $ECHO_C" >&6
44549 cat >conftest.$ac_ext <<_ACEOF
44552 cat confdefs.h >>conftest.$ac_ext
44553 cat >>conftest.$ac_ext <<_ACEOF
44554 /* end confdefs.h. */
44555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44557 #define $ac_func innocuous_$ac_func
44559 /* System header to define __stub macros and hopefully few prototypes,
44560 which can conflict with char $ac_func (); below.
44561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44562 <limits.h> exists even on freestanding compilers. */
44565 # include <limits.h>
44567 # include <assert.h>
44572 /* Override any gcc2 internal prototype to avoid an error. */
44577 /* We use char because int might match the return type of a gcc2
44578 builtin and then its argument prototype would still apply. */
44580 /* The GNU C library defines this for functions which it implements
44581 to always fail with ENOSYS. Some functions are actually named
44582 something starting with __ and the normal name is an alias. */
44583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44586 char (*f) () = $ac_func;
44595 return f != $ac_func;
44600 rm -f conftest.$ac_objext conftest$ac_exeext
44601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44602 (eval $ac_link) 2>conftest.er1
44604 grep -v '^ *+' conftest.er1 >conftest.err
44606 cat conftest.err >&5
44607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44608 (exit $ac_status); } &&
44609 { ac_try='test -z "$ac_c_werror_flag"
44610 || test ! -s conftest.err'
44611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44612 (eval $ac_try) 2>&5
44614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615 (exit $ac_status); }; } &&
44616 { ac_try='test -s conftest$ac_exeext'
44617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44618 (eval $ac_try) 2>&5
44620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44621 (exit $ac_status); }; }; then
44622 eval "$as_ac_var=yes"
44624 echo "$as_me: failed program was:" >&5
44625 sed 's/^/| /' conftest.$ac_ext >&5
44627 eval "$as_ac_var=no"
44629 rm -f conftest.err conftest.$ac_objext \
44630 conftest$ac_exeext conftest.$ac_ext
44632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44634 if test `eval echo '${'$as_ac_var'}'` = yes; then
44635 cat >>confdefs.h <<_ACEOF
44636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44647 for ac_func in lchown
44649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44650 echo "$as_me:$LINENO: checking for $ac_func" >&5
44651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44652 if eval "test \"\${$as_ac_var+set}\" = set"; then
44653 echo $ECHO_N "(cached) $ECHO_C" >&6
44655 cat >conftest.$ac_ext <<_ACEOF
44658 cat confdefs.h >>conftest.$ac_ext
44659 cat >>conftest.$ac_ext <<_ACEOF
44660 /* end confdefs.h. */
44661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44663 #define $ac_func innocuous_$ac_func
44665 /* System header to define __stub macros and hopefully few prototypes,
44666 which can conflict with char $ac_func (); below.
44667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44668 <limits.h> exists even on freestanding compilers. */
44671 # include <limits.h>
44673 # include <assert.h>
44678 /* Override any gcc2 internal prototype to avoid an error. */
44683 /* We use char because int might match the return type of a gcc2
44684 builtin and then its argument prototype would still apply. */
44686 /* The GNU C library defines this for functions which it implements
44687 to always fail with ENOSYS. Some functions are actually named
44688 something starting with __ and the normal name is an alias. */
44689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44692 char (*f) () = $ac_func;
44701 return f != $ac_func;
44706 rm -f conftest.$ac_objext conftest$ac_exeext
44707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44708 (eval $ac_link) 2>conftest.er1
44710 grep -v '^ *+' conftest.er1 >conftest.err
44712 cat conftest.err >&5
44713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714 (exit $ac_status); } &&
44715 { ac_try='test -z "$ac_c_werror_flag"
44716 || test ! -s conftest.err'
44717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44718 (eval $ac_try) 2>&5
44720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44721 (exit $ac_status); }; } &&
44722 { ac_try='test -s conftest$ac_exeext'
44723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 (eval $ac_try) 2>&5
44726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 (exit $ac_status); }; }; then
44728 eval "$as_ac_var=yes"
44730 echo "$as_me: failed program was:" >&5
44731 sed 's/^/| /' conftest.$ac_ext >&5
44733 eval "$as_ac_var=no"
44735 rm -f conftest.err conftest.$ac_objext \
44736 conftest$ac_exeext conftest.$ac_ext
44738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44740 if test `eval echo '${'$as_ac_var'}'` = yes; then
44741 cat >>confdefs.h <<_ACEOF
44742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44747 "$ac_func.$ac_objext" | \
44748 *" $ac_func.$ac_objext" | \
44749 "$ac_func.$ac_objext "* | \
44750 *" $ac_func.$ac_objext "* ) ;;
44751 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44758 if test $ac_cv_func_lchown = no; then
44765 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
44766 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
44767 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
44768 echo $ECHO_N "(cached) $ECHO_C" >&6
44771 # Arrange for deletion of the temporary directory this test creates.
44772 ac_clean_files="$ac_clean_files confdir2"
44773 mkdir confdir2; : > confdir2/file
44774 if test "$cross_compiling" = yes; then
44775 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
44778 cat >conftest.$ac_ext <<_ACEOF
44781 cat confdefs.h >>conftest.$ac_ext
44782 cat >>conftest.$ac_ext <<_ACEOF
44783 /* end confdefs.h. */
44794 rmdir ("confdir2");
44796 s = fopen ("confdir2/errno", "w");
44797 fprintf (s, "%d\n", val);
44802 rm -f conftest$ac_exeext
44803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44804 (eval $ac_link) 2>&5
44806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809 (eval $ac_try) 2>&5
44811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); }; }; then
44813 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
44815 echo "$as_me: program exited with status $ac_status" >&5
44816 echo "$as_me: failed program was:" >&5
44817 sed 's/^/| /' conftest.$ac_ext >&5
44819 ( exit $ac_status )
44820 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
44822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44827 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
44828 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
44831 cat >>confdefs.h <<_ACEOF
44832 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
44837 for ac_header in unistd.h
44839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44841 echo "$as_me:$LINENO: checking for $ac_header" >&5
44842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44844 echo $ECHO_N "(cached) $ECHO_C" >&6
44846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44849 # Is the header compilable?
44850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44852 cat >conftest.$ac_ext <<_ACEOF
44855 cat confdefs.h >>conftest.$ac_ext
44856 cat >>conftest.$ac_ext <<_ACEOF
44857 /* end confdefs.h. */
44858 $ac_includes_default
44859 #include <$ac_header>
44861 rm -f conftest.$ac_objext
44862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44863 (eval $ac_compile) 2>conftest.er1
44865 grep -v '^ *+' conftest.er1 >conftest.err
44867 cat conftest.err >&5
44868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44869 (exit $ac_status); } &&
44870 { ac_try='test -z "$ac_c_werror_flag"
44871 || test ! -s conftest.err'
44872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44873 (eval $ac_try) 2>&5
44875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44876 (exit $ac_status); }; } &&
44877 { ac_try='test -s conftest.$ac_objext'
44878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44879 (eval $ac_try) 2>&5
44881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44882 (exit $ac_status); }; }; then
44883 ac_header_compiler=yes
44885 echo "$as_me: failed program was:" >&5
44886 sed 's/^/| /' conftest.$ac_ext >&5
44888 ac_header_compiler=no
44890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44892 echo "${ECHO_T}$ac_header_compiler" >&6
44894 # Is the header present?
44895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44897 cat >conftest.$ac_ext <<_ACEOF
44900 cat confdefs.h >>conftest.$ac_ext
44901 cat >>conftest.$ac_ext <<_ACEOF
44902 /* end confdefs.h. */
44903 #include <$ac_header>
44905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44908 grep -v '^ *+' conftest.er1 >conftest.err
44910 cat conftest.err >&5
44911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912 (exit $ac_status); } >/dev/null; then
44913 if test -s conftest.err; then
44914 ac_cpp_err=$ac_c_preproc_warn_flag
44915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44922 if test -z "$ac_cpp_err"; then
44923 ac_header_preproc=yes
44925 echo "$as_me: failed program was:" >&5
44926 sed 's/^/| /' conftest.$ac_ext >&5
44928 ac_header_preproc=no
44930 rm -f conftest.err conftest.$ac_ext
44931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44932 echo "${ECHO_T}$ac_header_preproc" >&6
44934 # So? What about this header?
44935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44941 ac_header_preproc=yes
44944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44958 ## ------------------------------------ ##
44959 ## Report this to bug-coreutils@gnu.org ##
44960 ## ------------------------------------ ##
44963 sed "s/^/$as_me: WARNING: /" >&2
44966 echo "$as_me:$LINENO: checking for $ac_header" >&5
44967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44969 echo $ECHO_N "(cached) $ECHO_C" >&6
44971 eval "$as_ac_Header=\$ac_header_preproc"
44973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44978 cat >>confdefs.h <<_ACEOF
44979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44986 echo "$as_me:$LINENO: checking for working chown" >&5
44987 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
44988 if test "${ac_cv_func_chown_works+set}" = set; then
44989 echo $ECHO_N "(cached) $ECHO_C" >&6
44991 if test "$cross_compiling" = yes; then
44992 ac_cv_func_chown_works=no
44994 cat >conftest.$ac_ext <<_ACEOF
44997 cat confdefs.h >>conftest.$ac_ext
44998 cat >>conftest.$ac_ext <<_ACEOF
44999 /* end confdefs.h. */
45000 $ac_includes_default
45006 char *f = "conftest.chown";
45007 struct stat before, after;
45009 if (creat (f, 0600) < 0)
45011 if (stat (f, &before) < 0)
45013 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
45015 if (stat (f, &after) < 0)
45017 exit ((before.st_uid == after.st_uid
45018 && before.st_gid == after.st_gid) ? 0 : 1);
45024 rm -f conftest$ac_exeext
45025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45026 (eval $ac_link) 2>&5
45028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45031 (eval $ac_try) 2>&5
45033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45034 (exit $ac_status); }; }; then
45035 ac_cv_func_chown_works=yes
45037 echo "$as_me: program exited with status $ac_status" >&5
45038 echo "$as_me: failed program was:" >&5
45039 sed 's/^/| /' conftest.$ac_ext >&5
45041 ( exit $ac_status )
45042 ac_cv_func_chown_works=no
45044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45046 rm -f conftest.chown
45049 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
45050 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
45051 if test $ac_cv_func_chown_works = yes; then
45053 cat >>confdefs.h <<\_ACEOF
45054 #define HAVE_CHOWN 1
45060 echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
45061 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6
45062 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
45063 echo $ECHO_N "(cached) $ECHO_C" >&6
45066 if test "$cross_compiling" = yes; then
45067 gl_cv_func_chown_follows_symlink=yes
45070 cat >conftest.$ac_ext <<_ACEOF
45073 cat confdefs.h >>conftest.$ac_ext
45074 cat >>conftest.$ac_ext <<_ACEOF
45075 /* end confdefs.h. */
45077 #ifdef HAVE_UNISTD_H
45078 # include <unistd.h>
45080 #include <stdlib.h>
45086 char const *dangling_symlink = "conftest.dangle";
45088 unlink (dangling_symlink);
45089 if (symlink ("conftest.no-such", dangling_symlink))
45092 /* Exit successfully on a conforming system,
45093 i.e., where chown must fail with ENOENT. */
45094 exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
45095 && errno == ENOENT));
45099 rm -f conftest$ac_exeext
45100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45101 (eval $ac_link) 2>&5
45103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45106 (eval $ac_try) 2>&5
45108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45109 (exit $ac_status); }; }; then
45110 gl_cv_func_chown_follows_symlink=yes
45112 echo "$as_me: program exited with status $ac_status" >&5
45113 echo "$as_me: failed program was:" >&5
45114 sed 's/^/| /' conftest.$ac_ext >&5
45116 ( exit $ac_status )
45117 gl_cv_func_chown_follows_symlink=no
45119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45124 echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
45125 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6
45127 if test $gl_cv_func_chown_follows_symlink = no; then
45129 cat >>confdefs.h <<\_ACEOF
45130 #define CHOWN_MODIFIES_SYMLINK 1
45140 if test $ac_cv_func_chown_works = yes; then
45142 cat >>confdefs.h <<\_ACEOF
45143 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
45148 # If chown has either of the above problems, then we need the wrapper.
45149 if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
45150 : # no wrapper needed
45153 "chown.$ac_objext" | \
45154 *" chown.$ac_objext" | \
45155 "chown.$ac_objext "* | \
45156 *" chown.$ac_objext "* ) ;;
45157 *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
45161 cat >>confdefs.h <<\_ACEOF
45162 #define chown rpl_chown
45176 echo "$as_me:$LINENO: checking for fchown" >&5
45177 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
45178 if test "${ac_cv_func_fchown+set}" = set; then
45179 echo $ECHO_N "(cached) $ECHO_C" >&6
45181 cat >conftest.$ac_ext <<_ACEOF
45184 cat confdefs.h >>conftest.$ac_ext
45185 cat >>conftest.$ac_ext <<_ACEOF
45186 /* end confdefs.h. */
45187 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
45188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45189 #define fchown innocuous_fchown
45191 /* System header to define __stub macros and hopefully few prototypes,
45192 which can conflict with char fchown (); below.
45193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45194 <limits.h> exists even on freestanding compilers. */
45197 # include <limits.h>
45199 # include <assert.h>
45204 /* Override any gcc2 internal prototype to avoid an error. */
45209 /* We use char because int might match the return type of a gcc2
45210 builtin and then its argument prototype would still apply. */
45212 /* The GNU C library defines this for functions which it implements
45213 to always fail with ENOSYS. Some functions are actually named
45214 something starting with __ and the normal name is an alias. */
45215 #if defined (__stub_fchown) || defined (__stub___fchown)
45218 char (*f) () = fchown;
45227 return f != fchown;
45232 rm -f conftest.$ac_objext conftest$ac_exeext
45233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45234 (eval $ac_link) 2>conftest.er1
45236 grep -v '^ *+' conftest.er1 >conftest.err
45238 cat conftest.err >&5
45239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45240 (exit $ac_status); } &&
45241 { ac_try='test -z "$ac_c_werror_flag"
45242 || test ! -s conftest.err'
45243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45244 (eval $ac_try) 2>&5
45246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45247 (exit $ac_status); }; } &&
45248 { ac_try='test -s conftest$ac_exeext'
45249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45250 (eval $ac_try) 2>&5
45252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45253 (exit $ac_status); }; }; then
45254 ac_cv_func_fchown=yes
45256 echo "$as_me: failed program was:" >&5
45257 sed 's/^/| /' conftest.$ac_ext >&5
45259 ac_cv_func_fchown=no
45261 rm -f conftest.err conftest.$ac_objext \
45262 conftest$ac_exeext conftest.$ac_ext
45264 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
45265 echo "${ECHO_T}$ac_cv_func_fchown" >&6
45266 if test $ac_cv_func_fchown = yes; then
45270 "fchown-stub.$ac_objext" | \
45271 *" fchown-stub.$ac_objext" | \
45272 "fchown-stub.$ac_objext "* | \
45273 *" fchown-stub.$ac_objext "* ) ;;
45274 *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext" ;;
45285 echo "$as_me:$LINENO: checking for group_member" >&5
45286 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
45287 if test "${ac_cv_func_group_member+set}" = set; then
45288 echo $ECHO_N "(cached) $ECHO_C" >&6
45290 cat >conftest.$ac_ext <<_ACEOF
45293 cat confdefs.h >>conftest.$ac_ext
45294 cat >>conftest.$ac_ext <<_ACEOF
45295 /* end confdefs.h. */
45296 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
45297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45298 #define group_member innocuous_group_member
45300 /* System header to define __stub macros and hopefully few prototypes,
45301 which can conflict with char group_member (); below.
45302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45303 <limits.h> exists even on freestanding compilers. */
45306 # include <limits.h>
45308 # include <assert.h>
45311 #undef group_member
45313 /* Override any gcc2 internal prototype to avoid an error. */
45318 /* We use char because int might match the return type of a gcc2
45319 builtin and then its argument prototype would still apply. */
45320 char group_member ();
45321 /* The GNU C library defines this for functions which it implements
45322 to always fail with ENOSYS. Some functions are actually named
45323 something starting with __ and the normal name is an alias. */
45324 #if defined (__stub_group_member) || defined (__stub___group_member)
45327 char (*f) () = group_member;
45336 return f != group_member;
45341 rm -f conftest.$ac_objext conftest$ac_exeext
45342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45343 (eval $ac_link) 2>conftest.er1
45345 grep -v '^ *+' conftest.er1 >conftest.err
45347 cat conftest.err >&5
45348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349 (exit $ac_status); } &&
45350 { ac_try='test -z "$ac_c_werror_flag"
45351 || test ! -s conftest.err'
45352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45353 (eval $ac_try) 2>&5
45355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356 (exit $ac_status); }; } &&
45357 { ac_try='test -s conftest$ac_exeext'
45358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45359 (eval $ac_try) 2>&5
45361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45362 (exit $ac_status); }; }; then
45363 ac_cv_func_group_member=yes
45365 echo "$as_me: failed program was:" >&5
45366 sed 's/^/| /' conftest.$ac_ext >&5
45368 ac_cv_func_group_member=no
45370 rm -f conftest.err conftest.$ac_objext \
45371 conftest$ac_exeext conftest.$ac_ext
45373 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
45374 echo "${ECHO_T}$ac_cv_func_group_member" >&6
45375 if test $ac_cv_func_group_member = yes; then
45380 "group-member.$ac_objext" | \
45381 *" group-member.$ac_objext" | \
45382 "group-member.$ac_objext "* | \
45383 *" group-member.$ac_objext "* ) ;;
45384 *) LIBOBJS="$LIBOBJS group-member.$ac_objext" ;;
45401 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
45402 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
45403 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
45404 echo $ECHO_N "(cached) $ECHO_C" >&6
45407 test -z "$ac_cv_header_unistd_h" \
45409 for ac_header in unistd.h
45411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45413 echo "$as_me:$LINENO: checking for $ac_header" >&5
45414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45416 echo $ECHO_N "(cached) $ECHO_C" >&6
45418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45421 # Is the header compilable?
45422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45424 cat >conftest.$ac_ext <<_ACEOF
45427 cat confdefs.h >>conftest.$ac_ext
45428 cat >>conftest.$ac_ext <<_ACEOF
45429 /* end confdefs.h. */
45430 $ac_includes_default
45431 #include <$ac_header>
45433 rm -f conftest.$ac_objext
45434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45435 (eval $ac_compile) 2>conftest.er1
45437 grep -v '^ *+' conftest.er1 >conftest.err
45439 cat conftest.err >&5
45440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45441 (exit $ac_status); } &&
45442 { ac_try='test -z "$ac_c_werror_flag"
45443 || test ! -s conftest.err'
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); }; } &&
45449 { ac_try='test -s conftest.$ac_objext'
45450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451 (eval $ac_try) 2>&5
45453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454 (exit $ac_status); }; }; then
45455 ac_header_compiler=yes
45457 echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45460 ac_header_compiler=no
45462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45464 echo "${ECHO_T}$ac_header_compiler" >&6
45466 # Is the header present?
45467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45469 cat >conftest.$ac_ext <<_ACEOF
45472 cat confdefs.h >>conftest.$ac_ext
45473 cat >>conftest.$ac_ext <<_ACEOF
45474 /* end confdefs.h. */
45475 #include <$ac_header>
45477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45480 grep -v '^ *+' conftest.er1 >conftest.err
45482 cat conftest.err >&5
45483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45484 (exit $ac_status); } >/dev/null; then
45485 if test -s conftest.err; then
45486 ac_cpp_err=$ac_c_preproc_warn_flag
45487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45494 if test -z "$ac_cpp_err"; then
45495 ac_header_preproc=yes
45497 echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45500 ac_header_preproc=no
45502 rm -f conftest.err conftest.$ac_ext
45503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45504 echo "${ECHO_T}$ac_header_preproc" >&6
45506 # So? What about this header?
45507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45513 ac_header_preproc=yes
45516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45530 ## ------------------------------------ ##
45531 ## Report this to bug-coreutils@gnu.org ##
45532 ## ------------------------------------ ##
45535 sed "s/^/$as_me: WARNING: /" >&2
45538 echo "$as_me:$LINENO: checking for $ac_header" >&5
45539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45541 echo $ECHO_N "(cached) $ECHO_C" >&6
45543 eval "$as_ac_Header=\$ac_header_preproc"
45545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45550 cat >>confdefs.h <<_ACEOF
45551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45559 # Create a regular file.
45560 echo > conftest.file
45561 if test "$cross_compiling" = yes; then
45562 jm_ac_cv_func_link_follows_symlink=yes
45564 cat >conftest.$ac_ext <<_ACEOF
45567 cat confdefs.h >>conftest.$ac_ext
45568 cat >>conftest.$ac_ext <<_ACEOF
45569 /* end confdefs.h. */
45571 # include <sys/types.h>
45572 # include <sys/stat.h>
45573 # ifdef HAVE_UNISTD_H
45574 # include <unistd.h>
45577 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
45578 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
45579 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
45584 const char *file = "conftest.file";
45585 const char *sym = "conftest.sym";
45586 const char *hard = "conftest.hard";
45587 struct stat sb_file, sb_hard;
45589 /* Create a symlink to the regular file. */
45590 if (symlink (file, sym))
45593 /* Create a hard link to that symlink. */
45594 if (link (sym, hard))
45597 if (lstat (hard, &sb_hard))
45599 if (lstat (file, &sb_file))
45602 /* If the dev/inode of hard and file are the same, then
45603 the link call followed the symlink. */
45604 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
45608 rm -f conftest$ac_exeext
45609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45610 (eval $ac_link) 2>&5
45612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615 (eval $ac_try) 2>&5
45617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618 (exit $ac_status); }; }; then
45619 jm_ac_cv_func_link_follows_symlink=yes
45621 echo "$as_me: program exited with status $ac_status" >&5
45622 echo "$as_me: failed program was:" >&5
45623 sed 's/^/| /' conftest.$ac_ext >&5
45625 ( exit $ac_status )
45626 jm_ac_cv_func_link_follows_symlink=no
45628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45632 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
45633 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
45634 if test $jm_ac_cv_func_link_follows_symlink = yes; then
45636 cat >>confdefs.h <<\_ACEOF
45637 #define LINK_FOLLOWS_SYMLINKS 1
45644 for ac_header in stdio_ext.h
45646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45648 echo "$as_me:$LINENO: checking for $ac_header" >&5
45649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45651 echo $ECHO_N "(cached) $ECHO_C" >&6
45653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45656 # Is the header compilable?
45657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45659 cat >conftest.$ac_ext <<_ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h. */
45665 $ac_includes_default
45666 #include <$ac_header>
45668 rm -f conftest.$ac_objext
45669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45670 (eval $ac_compile) 2>conftest.er1
45672 grep -v '^ *+' conftest.er1 >conftest.err
45674 cat conftest.err >&5
45675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45676 (exit $ac_status); } &&
45677 { ac_try='test -z "$ac_c_werror_flag"
45678 || test ! -s conftest.err'
45679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45680 (eval $ac_try) 2>&5
45682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683 (exit $ac_status); }; } &&
45684 { ac_try='test -s conftest.$ac_objext'
45685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686 (eval $ac_try) 2>&5
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; }; then
45690 ac_header_compiler=yes
45692 echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45695 ac_header_compiler=no
45697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45699 echo "${ECHO_T}$ac_header_compiler" >&6
45701 # Is the header present?
45702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45704 cat >conftest.$ac_ext <<_ACEOF
45707 cat confdefs.h >>conftest.$ac_ext
45708 cat >>conftest.$ac_ext <<_ACEOF
45709 /* end confdefs.h. */
45710 #include <$ac_header>
45712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45715 grep -v '^ *+' conftest.er1 >conftest.err
45717 cat conftest.err >&5
45718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719 (exit $ac_status); } >/dev/null; then
45720 if test -s conftest.err; then
45721 ac_cpp_err=$ac_c_preproc_warn_flag
45722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45729 if test -z "$ac_cpp_err"; then
45730 ac_header_preproc=yes
45732 echo "$as_me: failed program was:" >&5
45733 sed 's/^/| /' conftest.$ac_ext >&5
45735 ac_header_preproc=no
45737 rm -f conftest.err conftest.$ac_ext
45738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45739 echo "${ECHO_T}$ac_header_preproc" >&6
45741 # So? What about this header?
45742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45748 ac_header_preproc=yes
45751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45765 ## ------------------------------------ ##
45766 ## Report this to bug-coreutils@gnu.org ##
45767 ## ------------------------------------ ##
45770 sed "s/^/$as_me: WARNING: /" >&2
45773 echo "$as_me:$LINENO: checking for $ac_header" >&5
45774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45776 echo $ECHO_N "(cached) $ECHO_C" >&6
45778 eval "$as_ac_Header=\$ac_header_preproc"
45780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45785 cat >>confdefs.h <<_ACEOF
45786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45794 for ac_func in __fpending
45796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45797 echo "$as_me:$LINENO: checking for $ac_func" >&5
45798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45799 if eval "test \"\${$as_ac_var+set}\" = set"; then
45800 echo $ECHO_N "(cached) $ECHO_C" >&6
45802 cat >conftest.$ac_ext <<_ACEOF
45805 cat confdefs.h >>conftest.$ac_ext
45806 cat >>conftest.$ac_ext <<_ACEOF
45807 /* end confdefs.h. */
45808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45810 #define $ac_func innocuous_$ac_func
45812 /* System header to define __stub macros and hopefully few prototypes,
45813 which can conflict with char $ac_func (); below.
45814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45815 <limits.h> exists even on freestanding compilers. */
45818 # include <limits.h>
45820 # include <assert.h>
45825 /* Override any gcc2 internal prototype to avoid an error. */
45830 /* We use char because int might match the return type of a gcc2
45831 builtin and then its argument prototype would still apply. */
45833 /* The GNU C library defines this for functions which it implements
45834 to always fail with ENOSYS. Some functions are actually named
45835 something starting with __ and the normal name is an alias. */
45836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45839 char (*f) () = $ac_func;
45848 return f != $ac_func;
45853 rm -f conftest.$ac_objext conftest$ac_exeext
45854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45855 (eval $ac_link) 2>conftest.er1
45857 grep -v '^ *+' conftest.er1 >conftest.err
45859 cat conftest.err >&5
45860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45861 (exit $ac_status); } &&
45862 { ac_try='test -z "$ac_c_werror_flag"
45863 || test ! -s conftest.err'
45864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45865 (eval $ac_try) 2>&5
45867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45868 (exit $ac_status); }; } &&
45869 { ac_try='test -s conftest$ac_exeext'
45870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45871 (eval $ac_try) 2>&5
45873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45874 (exit $ac_status); }; }; then
45875 eval "$as_ac_var=yes"
45877 echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45880 eval "$as_ac_var=no"
45882 rm -f conftest.err conftest.$ac_objext \
45883 conftest$ac_exeext conftest.$ac_ext
45885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45887 if test `eval echo '${'$as_ac_var'}'` = yes; then
45888 cat >>confdefs.h <<_ACEOF
45889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45894 "$ac_func.$ac_objext" | \
45895 *" $ac_func.$ac_objext" | \
45896 "$ac_func.$ac_objext "* | \
45897 *" $ac_func.$ac_objext "* ) ;;
45898 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45906 # if HAVE_STDIO_EXT_H
45907 # include <stdio_ext.h>
45910 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
45911 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
45912 if test "${ac_cv_have_decl___fpending+set}" = set; then
45913 echo $ECHO_N "(cached) $ECHO_C" >&6
45915 cat >conftest.$ac_ext <<_ACEOF
45918 cat confdefs.h >>conftest.$ac_ext
45919 cat >>conftest.$ac_ext <<_ACEOF
45920 /* end confdefs.h. */
45927 char *p = (char *) __fpending;
45934 rm -f conftest.$ac_objext
45935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45936 (eval $ac_compile) 2>conftest.er1
45938 grep -v '^ *+' conftest.er1 >conftest.err
45940 cat conftest.err >&5
45941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 (exit $ac_status); } &&
45943 { ac_try='test -z "$ac_c_werror_flag"
45944 || test ! -s conftest.err'
45945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946 (eval $ac_try) 2>&5
45948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949 (exit $ac_status); }; } &&
45950 { ac_try='test -s conftest.$ac_objext'
45951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45952 (eval $ac_try) 2>&5
45954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45955 (exit $ac_status); }; }; then
45956 ac_cv_have_decl___fpending=yes
45958 echo "$as_me: failed program was:" >&5
45959 sed 's/^/| /' conftest.$ac_ext >&5
45961 ac_cv_have_decl___fpending=no
45963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45965 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
45966 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
45967 if test $ac_cv_have_decl___fpending = yes; then
45969 cat >>confdefs.h <<_ACEOF
45970 #define HAVE_DECL___FPENDING 1
45975 cat >>confdefs.h <<_ACEOF
45976 #define HAVE_DECL___FPENDING 0
45983 if test $ac_cv_func___fpending = no; then
45984 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
45985 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
45986 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
45987 echo $ECHO_N "(cached) $ECHO_C" >&6
45993 'fp->_IO_write_ptr - fp->_IO_write_base' \
45995 '# traditional Unix' \
45996 'fp->_ptr - fp->_base' \
45999 'fp->_p - fp->_bf._base' \
46001 '# SCO, Unixware' \
46002 'fp->__ptr - fp->__base' \
46005 'fp->__bufp - fp->__buffer' \
46007 '# old glibc iostream?' \
46008 'fp->_pptr - fp->_pbase' \
46011 '(*fp)->_ptr - (*fp)->_base' \
46013 '# e.g., DGUX R4.11; the info is not available' \
46017 # Skip each embedded comment.
46018 case "$ac_expr" in '#'*) continue;; esac
46020 cat >conftest.$ac_ext <<_ACEOF
46023 cat confdefs.h >>conftest.$ac_ext
46024 cat >>conftest.$ac_ext <<_ACEOF
46025 /* end confdefs.h. */
46031 FILE *fp = stdin; (void) ($ac_expr);
46036 rm -f conftest.$ac_objext
46037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46038 (eval $ac_compile) 2>conftest.er1
46040 grep -v '^ *+' conftest.er1 >conftest.err
46042 cat conftest.err >&5
46043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044 (exit $ac_status); } &&
46045 { ac_try='test -z "$ac_c_werror_flag"
46046 || test ! -s conftest.err'
46047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46048 (eval $ac_try) 2>&5
46050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46051 (exit $ac_status); }; } &&
46052 { ac_try='test -s conftest.$ac_objext'
46053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46054 (eval $ac_try) 2>&5
46056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057 (exit $ac_status); }; }; then
46061 echo "$as_me: failed program was:" >&5
46062 sed 's/^/| /' conftest.$ac_ext >&5
46065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46066 test "$fp_done" = yes && break
46069 ac_cv_sys_pending_output_n_bytes=$ac_expr
46073 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
46074 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
46076 cat >>confdefs.h <<_ACEOF
46077 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
46083 echo "$as_me:$LINENO: checking for inttypes.h" >&5
46084 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
46085 if test "${gt_cv_header_inttypes_h+set}" = set; then
46086 echo $ECHO_N "(cached) $ECHO_C" >&6
46089 cat >conftest.$ac_ext <<_ACEOF
46092 cat confdefs.h >>conftest.$ac_ext
46093 cat >>conftest.$ac_ext <<_ACEOF
46094 /* end confdefs.h. */
46095 #include <sys/types.h>
46096 #include <inttypes.h>
46105 rm -f conftest.$ac_objext
46106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46107 (eval $ac_compile) 2>conftest.er1
46109 grep -v '^ *+' conftest.er1 >conftest.err
46111 cat conftest.err >&5
46112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46113 (exit $ac_status); } &&
46114 { ac_try='test -z "$ac_c_werror_flag"
46115 || test ! -s conftest.err'
46116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46117 (eval $ac_try) 2>&5
46119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120 (exit $ac_status); }; } &&
46121 { ac_try='test -s conftest.$ac_objext'
46122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46123 (eval $ac_try) 2>&5
46125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46126 (exit $ac_status); }; }; then
46127 gt_cv_header_inttypes_h=yes
46129 echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46132 gt_cv_header_inttypes_h=no
46134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46137 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
46138 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
46139 if test $gt_cv_header_inttypes_h = yes; then
46141 cat >>confdefs.h <<_ACEOF
46142 #define HAVE_INTTYPES_H 1
46149 if test $gt_cv_header_inttypes_h = yes; then
46150 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
46151 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
46152 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
46153 echo $ECHO_N "(cached) $ECHO_C" >&6
46156 cat >conftest.$ac_ext <<_ACEOF
46159 cat confdefs.h >>conftest.$ac_ext
46160 cat >>conftest.$ac_ext <<_ACEOF
46161 /* end confdefs.h. */
46162 #include <inttypes.h>
46175 rm -f conftest.$ac_objext
46176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46177 (eval $ac_compile) 2>conftest.er1
46179 grep -v '^ *+' conftest.er1 >conftest.err
46181 cat conftest.err >&5
46182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46183 (exit $ac_status); } &&
46184 { ac_try='test -z "$ac_c_werror_flag"
46185 || test ! -s conftest.err'
46186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187 (eval $ac_try) 2>&5
46189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190 (exit $ac_status); }; } &&
46191 { ac_try='test -s conftest.$ac_objext'
46192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46193 (eval $ac_try) 2>&5
46195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196 (exit $ac_status); }; }; then
46197 gt_cv_inttypes_pri_broken=no
46199 echo "$as_me: failed program was:" >&5
46200 sed 's/^/| /' conftest.$ac_ext >&5
46202 gt_cv_inttypes_pri_broken=yes
46204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46207 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
46208 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
46210 if test "$gt_cv_inttypes_pri_broken" = yes; then
46212 cat >>confdefs.h <<_ACEOF
46213 #define PRI_MACROS_BROKEN 1
46219 echo "$as_me:$LINENO: checking for ULLONG_MAX" >&5
46220 echo $ECHO_N "checking for ULLONG_MAX... $ECHO_C" >&6
46221 if test "${gl_cv_ullong_max+set}" = set; then
46222 echo $ECHO_N "(cached) $ECHO_C" >&6
46224 gl_cv_ullong_max=no
46225 cat >conftest.$ac_ext <<_ACEOF
46228 cat confdefs.h >>conftest.$ac_ext
46229 cat >>conftest.$ac_ext <<_ACEOF
46230 /* end confdefs.h. */
46232 #include <limits.h>
46234 "ULLONG_MAX is defined"
46238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46239 $EGREP "ULLONG_MAX is defined" >/dev/null 2>&1; then
46240 gl_cv_ullong_max=yes
46244 case $gl_cv_ullong_max in
46247 18446744073709551615ULL \
46248 4722366482869645213695ULL \
46249 340282366920938463463374607431768211455ULL
46251 cat >conftest.$ac_ext <<_ACEOF
46254 cat confdefs.h >>conftest.$ac_ext
46255 cat >>conftest.$ac_ext <<_ACEOF
46256 /* end confdefs.h. */
46261 char test[$gl_expr == (unsigned long long int) -1 ? 1 : -1];
46262 static unsigned long long int i = $gl_expr;
46268 rm -f conftest.$ac_objext
46269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46270 (eval $ac_compile) 2>conftest.er1
46272 grep -v '^ *+' conftest.er1 >conftest.err
46274 cat conftest.err >&5
46275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46276 (exit $ac_status); } &&
46277 { ac_try='test -z "$ac_c_werror_flag"
46278 || test ! -s conftest.err'
46279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46280 (eval $ac_try) 2>&5
46282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46283 (exit $ac_status); }; } &&
46284 { ac_try='test -s conftest.$ac_objext'
46285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46286 (eval $ac_try) 2>&5
46288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46289 (exit $ac_status); }; }; then
46290 gl_cv_ullong_max=$gl_expr
46292 echo "$as_me: failed program was:" >&5
46293 sed 's/^/| /' conftest.$ac_ext >&5
46296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46297 test $gl_cv_ullong_max != no && break
46301 echo "$as_me:$LINENO: result: $gl_cv_ullong_max" >&5
46302 echo "${ECHO_T}$gl_cv_ullong_max" >&6
46303 case $gl_cv_ullong_max in
46307 cat >>confdefs.h <<_ACEOF
46308 #define ULLONG_MAX $gl_cv_ullong_max
46315 if test $ac_cv_func_getgroups_works = no; then
46317 "getgroups.$ac_objext" | \
46318 *" getgroups.$ac_objext" | \
46319 "getgroups.$ac_objext "* | \
46320 *" getgroups.$ac_objext "* ) ;;
46321 *) LIBOBJS="$LIBOBJS getgroups.$ac_objext" ;;
46325 cat >>confdefs.h <<\_ACEOF
46326 #define getgroups rpl_getgroups
46333 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
46335 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
46336 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
46337 if test "${ac_cv_sys_largefile_source+set}" = set; then
46338 echo $ECHO_N "(cached) $ECHO_C" >&6
46341 ac_cv_sys_largefile_source=no
46342 cat >conftest.$ac_ext <<_ACEOF
46345 cat confdefs.h >>conftest.$ac_ext
46346 cat >>conftest.$ac_ext <<_ACEOF
46347 /* end confdefs.h. */
46357 rm -f conftest.$ac_objext
46358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46359 (eval $ac_compile) 2>conftest.er1
46361 grep -v '^ *+' conftest.er1 >conftest.err
46363 cat conftest.err >&5
46364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365 (exit $ac_status); } &&
46366 { ac_try='test -z "$ac_c_werror_flag"
46367 || test ! -s conftest.err'
46368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46369 (eval $ac_try) 2>&5
46371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372 (exit $ac_status); }; } &&
46373 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
46381 echo "$as_me: failed program was:" >&5
46382 sed 's/^/| /' conftest.$ac_ext >&5
46385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46386 cat >conftest.$ac_ext <<_ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h. */
46392 #define _LARGEFILE_SOURCE 1
46402 rm -f conftest.$ac_objext
46403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46404 (eval $ac_compile) 2>conftest.er1
46406 grep -v '^ *+' conftest.er1 >conftest.err
46408 cat conftest.err >&5
46409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46410 (exit $ac_status); } &&
46411 { ac_try='test -z "$ac_c_werror_flag"
46412 || test ! -s conftest.err'
46413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46414 (eval $ac_try) 2>&5
46416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46417 (exit $ac_status); }; } &&
46418 { ac_try='test -s conftest.$ac_objext'
46419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46420 (eval $ac_try) 2>&5
46422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46423 (exit $ac_status); }; }; then
46424 ac_cv_sys_largefile_source=1; break
46426 echo "$as_me: failed program was:" >&5
46427 sed 's/^/| /' conftest.$ac_ext >&5
46430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46434 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
46435 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
46436 if test "$ac_cv_sys_largefile_source" != no; then
46438 cat >>confdefs.h <<_ACEOF
46439 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
46445 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
46446 # in glibc 2.1.3, but that breaks too many other things.
46447 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
46448 echo "$as_me:$LINENO: checking for fseeko" >&5
46449 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
46450 if test "${ac_cv_func_fseeko+set}" = set; then
46451 echo $ECHO_N "(cached) $ECHO_C" >&6
46453 cat >conftest.$ac_ext <<_ACEOF
46456 cat confdefs.h >>conftest.$ac_ext
46457 cat >>conftest.$ac_ext <<_ACEOF
46458 /* end confdefs.h. */
46463 return fseeko && fseeko (stdin, 0, 0);
46468 rm -f conftest.$ac_objext conftest$ac_exeext
46469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46470 (eval $ac_link) 2>conftest.er1
46472 grep -v '^ *+' conftest.er1 >conftest.err
46474 cat conftest.err >&5
46475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46476 (exit $ac_status); } &&
46477 { ac_try='test -z "$ac_c_werror_flag"
46478 || test ! -s conftest.err'
46479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46480 (eval $ac_try) 2>&5
46482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483 (exit $ac_status); }; } &&
46484 { ac_try='test -s conftest$ac_exeext'
46485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46486 (eval $ac_try) 2>&5
46488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46489 (exit $ac_status); }; }; then
46490 ac_cv_func_fseeko=yes
46492 echo "$as_me: failed program was:" >&5
46493 sed 's/^/| /' conftest.$ac_ext >&5
46495 ac_cv_func_fseeko=no
46497 rm -f conftest.err conftest.$ac_objext \
46498 conftest$ac_exeext conftest.$ac_ext
46500 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
46501 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
46502 if test $ac_cv_func_fseeko = yes; then
46504 cat >>confdefs.h <<\_ACEOF
46505 #define HAVE_FSEEKO 1
46511 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
46512 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
46513 if test "${jm_cv_have_proc_uptime+set}" = set; then
46514 echo $ECHO_N "(cached) $ECHO_C" >&6
46516 jm_cv_have_proc_uptime=no
46517 test -f /proc/uptime \
46518 && test "$cross_compiling" = no \
46519 && cat < /proc/uptime >/dev/null 2>/dev/null \
46520 && jm_cv_have_proc_uptime=yes
46522 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
46523 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
46524 if test $jm_cv_have_proc_uptime = yes; then
46526 cat >>confdefs.h <<\_ACEOF
46527 #define HAVE_PROC_UPTIME 1
46534 for ac_func in ftruncate
46536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46537 echo "$as_me:$LINENO: checking for $ac_func" >&5
46538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46539 if eval "test \"\${$as_ac_var+set}\" = set"; then
46540 echo $ECHO_N "(cached) $ECHO_C" >&6
46542 cat >conftest.$ac_ext <<_ACEOF
46545 cat confdefs.h >>conftest.$ac_ext
46546 cat >>conftest.$ac_ext <<_ACEOF
46547 /* end confdefs.h. */
46548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46550 #define $ac_func innocuous_$ac_func
46552 /* System header to define __stub macros and hopefully few prototypes,
46553 which can conflict with char $ac_func (); below.
46554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46555 <limits.h> exists even on freestanding compilers. */
46558 # include <limits.h>
46560 # include <assert.h>
46565 /* Override any gcc2 internal prototype to avoid an error. */
46570 /* We use char because int might match the return type of a gcc2
46571 builtin and then its argument prototype would still apply. */
46573 /* The GNU C library defines this for functions which it implements
46574 to always fail with ENOSYS. Some functions are actually named
46575 something starting with __ and the normal name is an alias. */
46576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46579 char (*f) () = $ac_func;
46588 return f != $ac_func;
46593 rm -f conftest.$ac_objext conftest$ac_exeext
46594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46595 (eval $ac_link) 2>conftest.er1
46597 grep -v '^ *+' conftest.er1 >conftest.err
46599 cat conftest.err >&5
46600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46601 (exit $ac_status); } &&
46602 { ac_try='test -z "$ac_c_werror_flag"
46603 || test ! -s conftest.err'
46604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46605 (eval $ac_try) 2>&5
46607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46608 (exit $ac_status); }; } &&
46609 { ac_try='test -s conftest$ac_exeext'
46610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46611 (eval $ac_try) 2>&5
46613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46614 (exit $ac_status); }; }; then
46615 eval "$as_ac_var=yes"
46617 echo "$as_me: failed program was:" >&5
46618 sed 's/^/| /' conftest.$ac_ext >&5
46620 eval "$as_ac_var=no"
46622 rm -f conftest.err conftest.$ac_objext \
46623 conftest$ac_exeext conftest.$ac_ext
46625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46627 if test `eval echo '${'$as_ac_var'}'` = yes; then
46628 cat >>confdefs.h <<_ACEOF
46629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46634 "$ac_func.$ac_objext" | \
46635 *" $ac_func.$ac_objext" | \
46636 "$ac_func.$ac_objext "* | \
46637 *" $ac_func.$ac_objext "* ) ;;
46638 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46645 if test $ac_cv_func_ftruncate = no; then
46655 for ac_func in chsize
46657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46658 echo "$as_me:$LINENO: checking for $ac_func" >&5
46659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46660 if eval "test \"\${$as_ac_var+set}\" = set"; then
46661 echo $ECHO_N "(cached) $ECHO_C" >&6
46663 cat >conftest.$ac_ext <<_ACEOF
46666 cat confdefs.h >>conftest.$ac_ext
46667 cat >>conftest.$ac_ext <<_ACEOF
46668 /* end confdefs.h. */
46669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46671 #define $ac_func innocuous_$ac_func
46673 /* System header to define __stub macros and hopefully few prototypes,
46674 which can conflict with char $ac_func (); below.
46675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46676 <limits.h> exists even on freestanding compilers. */
46679 # include <limits.h>
46681 # include <assert.h>
46686 /* Override any gcc2 internal prototype to avoid an error. */
46691 /* We use char because int might match the return type of a gcc2
46692 builtin and then its argument prototype would still apply. */
46694 /* The GNU C library defines this for functions which it implements
46695 to always fail with ENOSYS. Some functions are actually named
46696 something starting with __ and the normal name is an alias. */
46697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46700 char (*f) () = $ac_func;
46709 return f != $ac_func;
46714 rm -f conftest.$ac_objext conftest$ac_exeext
46715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46716 (eval $ac_link) 2>conftest.er1
46718 grep -v '^ *+' conftest.er1 >conftest.err
46720 cat conftest.err >&5
46721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46722 (exit $ac_status); } &&
46723 { ac_try='test -z "$ac_c_werror_flag"
46724 || test ! -s conftest.err'
46725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46726 (eval $ac_try) 2>&5
46728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729 (exit $ac_status); }; } &&
46730 { ac_try='test -s conftest$ac_exeext'
46731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46732 (eval $ac_try) 2>&5
46734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46735 (exit $ac_status); }; }; then
46736 eval "$as_ac_var=yes"
46738 echo "$as_me: failed program was:" >&5
46739 sed 's/^/| /' conftest.$ac_ext >&5
46741 eval "$as_ac_var=no"
46743 rm -f conftest.err conftest.$ac_objext \
46744 conftest$ac_exeext conftest.$ac_ext
46746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46748 if test `eval echo '${'$as_ac_var'}'` = yes; then
46749 cat >>confdefs.h <<_ACEOF
46750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46761 for ac_func in directio
46763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46764 echo "$as_me:$LINENO: checking for $ac_func" >&5
46765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46766 if eval "test \"\${$as_ac_var+set}\" = set"; then
46767 echo $ECHO_N "(cached) $ECHO_C" >&6
46769 cat >conftest.$ac_ext <<_ACEOF
46772 cat confdefs.h >>conftest.$ac_ext
46773 cat >>conftest.$ac_ext <<_ACEOF
46774 /* end confdefs.h. */
46775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46777 #define $ac_func innocuous_$ac_func
46779 /* System header to define __stub macros and hopefully few prototypes,
46780 which can conflict with char $ac_func (); below.
46781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46782 <limits.h> exists even on freestanding compilers. */
46785 # include <limits.h>
46787 # include <assert.h>
46792 /* Override any gcc2 internal prototype to avoid an error. */
46797 /* We use char because int might match the return type of a gcc2
46798 builtin and then its argument prototype would still apply. */
46800 /* The GNU C library defines this for functions which it implements
46801 to always fail with ENOSYS. Some functions are actually named
46802 something starting with __ and the normal name is an alias. */
46803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46806 char (*f) () = $ac_func;
46815 return f != $ac_func;
46820 rm -f conftest.$ac_objext conftest$ac_exeext
46821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46822 (eval $ac_link) 2>conftest.er1
46824 grep -v '^ *+' conftest.er1 >conftest.err
46826 cat conftest.err >&5
46827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828 (exit $ac_status); } &&
46829 { ac_try='test -z "$ac_c_werror_flag"
46830 || test ! -s conftest.err'
46831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46832 (eval $ac_try) 2>&5
46834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46835 (exit $ac_status); }; } &&
46836 { ac_try='test -s conftest$ac_exeext'
46837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46838 (eval $ac_try) 2>&5
46840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46841 (exit $ac_status); }; }; then
46842 eval "$as_ac_var=yes"
46844 echo "$as_me: failed program was:" >&5
46845 sed 's/^/| /' conftest.$ac_ext >&5
46847 eval "$as_ac_var=no"
46849 rm -f conftest.err conftest.$ac_objext \
46850 conftest$ac_exeext conftest.$ac_ext
46852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46854 if test `eval echo '${'$as_ac_var'}'` = yes; then
46855 cat >>confdefs.h <<_ACEOF
46856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46865 for ac_func in endgrent
46867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46868 echo "$as_me:$LINENO: checking for $ac_func" >&5
46869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46870 if eval "test \"\${$as_ac_var+set}\" = set"; then
46871 echo $ECHO_N "(cached) $ECHO_C" >&6
46873 cat >conftest.$ac_ext <<_ACEOF
46876 cat confdefs.h >>conftest.$ac_ext
46877 cat >>conftest.$ac_ext <<_ACEOF
46878 /* end confdefs.h. */
46879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46881 #define $ac_func innocuous_$ac_func
46883 /* System header to define __stub macros and hopefully few prototypes,
46884 which can conflict with char $ac_func (); below.
46885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46886 <limits.h> exists even on freestanding compilers. */
46889 # include <limits.h>
46891 # include <assert.h>
46896 /* Override any gcc2 internal prototype to avoid an error. */
46901 /* We use char because int might match the return type of a gcc2
46902 builtin and then its argument prototype would still apply. */
46904 /* The GNU C library defines this for functions which it implements
46905 to always fail with ENOSYS. Some functions are actually named
46906 something starting with __ and the normal name is an alias. */
46907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46910 char (*f) () = $ac_func;
46919 return f != $ac_func;
46924 rm -f conftest.$ac_objext conftest$ac_exeext
46925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46926 (eval $ac_link) 2>conftest.er1
46928 grep -v '^ *+' conftest.er1 >conftest.err
46930 cat conftest.err >&5
46931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46932 (exit $ac_status); } &&
46933 { ac_try='test -z "$ac_c_werror_flag"
46934 || test ! -s conftest.err'
46935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46936 (eval $ac_try) 2>&5
46938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939 (exit $ac_status); }; } &&
46940 { ac_try='test -s conftest$ac_exeext'
46941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46942 (eval $ac_try) 2>&5
46944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46945 (exit $ac_status); }; }; then
46946 eval "$as_ac_var=yes"
46948 echo "$as_me: failed program was:" >&5
46949 sed 's/^/| /' conftest.$ac_ext >&5
46951 eval "$as_ac_var=no"
46953 rm -f conftest.err conftest.$ac_objext \
46954 conftest$ac_exeext conftest.$ac_ext
46956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46958 if test `eval echo '${'$as_ac_var'}'` = yes; then
46959 cat >>confdefs.h <<_ACEOF
46960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46969 for ac_func in endpwent
46971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46972 echo "$as_me:$LINENO: checking for $ac_func" >&5
46973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46974 if eval "test \"\${$as_ac_var+set}\" = set"; then
46975 echo $ECHO_N "(cached) $ECHO_C" >&6
46977 cat >conftest.$ac_ext <<_ACEOF
46980 cat confdefs.h >>conftest.$ac_ext
46981 cat >>conftest.$ac_ext <<_ACEOF
46982 /* end confdefs.h. */
46983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46985 #define $ac_func innocuous_$ac_func
46987 /* System header to define __stub macros and hopefully few prototypes,
46988 which can conflict with char $ac_func (); below.
46989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46990 <limits.h> exists even on freestanding compilers. */
46993 # include <limits.h>
46995 # include <assert.h>
47000 /* Override any gcc2 internal prototype to avoid an error. */
47005 /* We use char because int might match the return type of a gcc2
47006 builtin and then its argument prototype would still apply. */
47008 /* The GNU C library defines this for functions which it implements
47009 to always fail with ENOSYS. Some functions are actually named
47010 something starting with __ and the normal name is an alias. */
47011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47014 char (*f) () = $ac_func;
47023 return f != $ac_func;
47028 rm -f conftest.$ac_objext conftest$ac_exeext
47029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47030 (eval $ac_link) 2>conftest.er1
47032 grep -v '^ *+' conftest.er1 >conftest.err
47034 cat conftest.err >&5
47035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47036 (exit $ac_status); } &&
47037 { ac_try='test -z "$ac_c_werror_flag"
47038 || test ! -s conftest.err'
47039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47040 (eval $ac_try) 2>&5
47042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043 (exit $ac_status); }; } &&
47044 { ac_try='test -s conftest$ac_exeext'
47045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47046 (eval $ac_try) 2>&5
47048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47049 (exit $ac_status); }; }; then
47050 eval "$as_ac_var=yes"
47052 echo "$as_me: failed program was:" >&5
47053 sed 's/^/| /' conftest.$ac_ext >&5
47055 eval "$as_ac_var=no"
47057 rm -f conftest.err conftest.$ac_objext \
47058 conftest$ac_exeext conftest.$ac_ext
47060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47062 if test `eval echo '${'$as_ac_var'}'` = yes; then
47063 cat >>confdefs.h <<_ACEOF
47064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47073 for ac_func in ftruncate
47075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47076 echo "$as_me:$LINENO: checking for $ac_func" >&5
47077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47078 if eval "test \"\${$as_ac_var+set}\" = set"; then
47079 echo $ECHO_N "(cached) $ECHO_C" >&6
47081 cat >conftest.$ac_ext <<_ACEOF
47084 cat confdefs.h >>conftest.$ac_ext
47085 cat >>conftest.$ac_ext <<_ACEOF
47086 /* end confdefs.h. */
47087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47089 #define $ac_func innocuous_$ac_func
47091 /* System header to define __stub macros and hopefully few prototypes,
47092 which can conflict with char $ac_func (); below.
47093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47094 <limits.h> exists even on freestanding compilers. */
47097 # include <limits.h>
47099 # include <assert.h>
47104 /* Override any gcc2 internal prototype to avoid an error. */
47109 /* We use char because int might match the return type of a gcc2
47110 builtin and then its argument prototype would still apply. */
47112 /* The GNU C library defines this for functions which it implements
47113 to always fail with ENOSYS. Some functions are actually named
47114 something starting with __ and the normal name is an alias. */
47115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47118 char (*f) () = $ac_func;
47127 return f != $ac_func;
47132 rm -f conftest.$ac_objext conftest$ac_exeext
47133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47134 (eval $ac_link) 2>conftest.er1
47136 grep -v '^ *+' conftest.er1 >conftest.err
47138 cat conftest.err >&5
47139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140 (exit $ac_status); } &&
47141 { ac_try='test -z "$ac_c_werror_flag"
47142 || test ! -s conftest.err'
47143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47144 (eval $ac_try) 2>&5
47146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47147 (exit $ac_status); }; } &&
47148 { ac_try='test -s conftest$ac_exeext'
47149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47150 (eval $ac_try) 2>&5
47152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47153 (exit $ac_status); }; }; then
47154 eval "$as_ac_var=yes"
47156 echo "$as_me: failed program was:" >&5
47157 sed 's/^/| /' conftest.$ac_ext >&5
47159 eval "$as_ac_var=no"
47161 rm -f conftest.err conftest.$ac_objext \
47162 conftest$ac_exeext conftest.$ac_ext
47164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47166 if test `eval echo '${'$as_ac_var'}'` = yes; then
47167 cat >>confdefs.h <<_ACEOF
47168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47177 for ac_func in gethrtime
47179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47180 echo "$as_me:$LINENO: checking for $ac_func" >&5
47181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47182 if eval "test \"\${$as_ac_var+set}\" = set"; then
47183 echo $ECHO_N "(cached) $ECHO_C" >&6
47185 cat >conftest.$ac_ext <<_ACEOF
47188 cat confdefs.h >>conftest.$ac_ext
47189 cat >>conftest.$ac_ext <<_ACEOF
47190 /* end confdefs.h. */
47191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47193 #define $ac_func innocuous_$ac_func
47195 /* System header to define __stub macros and hopefully few prototypes,
47196 which can conflict with char $ac_func (); below.
47197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47198 <limits.h> exists even on freestanding compilers. */
47201 # include <limits.h>
47203 # include <assert.h>
47208 /* Override any gcc2 internal prototype to avoid an error. */
47213 /* We use char because int might match the return type of a gcc2
47214 builtin and then its argument prototype would still apply. */
47216 /* The GNU C library defines this for functions which it implements
47217 to always fail with ENOSYS. Some functions are actually named
47218 something starting with __ and the normal name is an alias. */
47219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47222 char (*f) () = $ac_func;
47231 return f != $ac_func;
47236 rm -f conftest.$ac_objext conftest$ac_exeext
47237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47238 (eval $ac_link) 2>conftest.er1
47240 grep -v '^ *+' conftest.er1 >conftest.err
47242 cat conftest.err >&5
47243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47244 (exit $ac_status); } &&
47245 { ac_try='test -z "$ac_c_werror_flag"
47246 || test ! -s conftest.err'
47247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47248 (eval $ac_try) 2>&5
47250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47251 (exit $ac_status); }; } &&
47252 { ac_try='test -s conftest$ac_exeext'
47253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47254 (eval $ac_try) 2>&5
47256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47257 (exit $ac_status); }; }; then
47258 eval "$as_ac_var=yes"
47260 echo "$as_me: failed program was:" >&5
47261 sed 's/^/| /' conftest.$ac_ext >&5
47263 eval "$as_ac_var=no"
47265 rm -f conftest.err conftest.$ac_objext \
47266 conftest$ac_exeext conftest.$ac_ext
47268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47270 if test `eval echo '${'$as_ac_var'}'` = yes; then
47271 cat >>confdefs.h <<_ACEOF
47272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47281 for ac_func in hasmntopt
47283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47284 echo "$as_me:$LINENO: checking for $ac_func" >&5
47285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47286 if eval "test \"\${$as_ac_var+set}\" = set"; then
47287 echo $ECHO_N "(cached) $ECHO_C" >&6
47289 cat >conftest.$ac_ext <<_ACEOF
47292 cat confdefs.h >>conftest.$ac_ext
47293 cat >>conftest.$ac_ext <<_ACEOF
47294 /* end confdefs.h. */
47295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47297 #define $ac_func innocuous_$ac_func
47299 /* System header to define __stub macros and hopefully few prototypes,
47300 which can conflict with char $ac_func (); below.
47301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47302 <limits.h> exists even on freestanding compilers. */
47305 # include <limits.h>
47307 # include <assert.h>
47312 /* Override any gcc2 internal prototype to avoid an error. */
47317 /* We use char because int might match the return type of a gcc2
47318 builtin and then its argument prototype would still apply. */
47320 /* The GNU C library defines this for functions which it implements
47321 to always fail with ENOSYS. Some functions are actually named
47322 something starting with __ and the normal name is an alias. */
47323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47326 char (*f) () = $ac_func;
47335 return f != $ac_func;
47340 rm -f conftest.$ac_objext conftest$ac_exeext
47341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47342 (eval $ac_link) 2>conftest.er1
47344 grep -v '^ *+' conftest.er1 >conftest.err
47346 cat conftest.err >&5
47347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47348 (exit $ac_status); } &&
47349 { ac_try='test -z "$ac_c_werror_flag"
47350 || test ! -s conftest.err'
47351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47352 (eval $ac_try) 2>&5
47354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47355 (exit $ac_status); }; } &&
47356 { ac_try='test -s conftest$ac_exeext'
47357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47358 (eval $ac_try) 2>&5
47360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47361 (exit $ac_status); }; }; then
47362 eval "$as_ac_var=yes"
47364 echo "$as_me: failed program was:" >&5
47365 sed 's/^/| /' conftest.$ac_ext >&5
47367 eval "$as_ac_var=no"
47369 rm -f conftest.err conftest.$ac_objext \
47370 conftest$ac_exeext conftest.$ac_ext
47372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47374 if test `eval echo '${'$as_ac_var'}'` = yes; then
47375 cat >>confdefs.h <<_ACEOF
47376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47385 for ac_func in iswspace
47387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47388 echo "$as_me:$LINENO: checking for $ac_func" >&5
47389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47390 if eval "test \"\${$as_ac_var+set}\" = set"; then
47391 echo $ECHO_N "(cached) $ECHO_C" >&6
47393 cat >conftest.$ac_ext <<_ACEOF
47396 cat confdefs.h >>conftest.$ac_ext
47397 cat >>conftest.$ac_ext <<_ACEOF
47398 /* end confdefs.h. */
47399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47401 #define $ac_func innocuous_$ac_func
47403 /* System header to define __stub macros and hopefully few prototypes,
47404 which can conflict with char $ac_func (); below.
47405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47406 <limits.h> exists even on freestanding compilers. */
47409 # include <limits.h>
47411 # include <assert.h>
47416 /* Override any gcc2 internal prototype to avoid an error. */
47421 /* We use char because int might match the return type of a gcc2
47422 builtin and then its argument prototype would still apply. */
47424 /* The GNU C library defines this for functions which it implements
47425 to always fail with ENOSYS. Some functions are actually named
47426 something starting with __ and the normal name is an alias. */
47427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47430 char (*f) () = $ac_func;
47439 return f != $ac_func;
47444 rm -f conftest.$ac_objext conftest$ac_exeext
47445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47446 (eval $ac_link) 2>conftest.er1
47448 grep -v '^ *+' conftest.er1 >conftest.err
47450 cat conftest.err >&5
47451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47452 (exit $ac_status); } &&
47453 { ac_try='test -z "$ac_c_werror_flag"
47454 || test ! -s conftest.err'
47455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47456 (eval $ac_try) 2>&5
47458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459 (exit $ac_status); }; } &&
47460 { ac_try='test -s conftest$ac_exeext'
47461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47462 (eval $ac_try) 2>&5
47464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47465 (exit $ac_status); }; }; then
47466 eval "$as_ac_var=yes"
47468 echo "$as_me: failed program was:" >&5
47469 sed 's/^/| /' conftest.$ac_ext >&5
47471 eval "$as_ac_var=no"
47473 rm -f conftest.err conftest.$ac_objext \
47474 conftest$ac_exeext conftest.$ac_ext
47476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47478 if test `eval echo '${'$as_ac_var'}'` = yes; then
47479 cat >>confdefs.h <<_ACEOF
47480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47489 for ac_func in lchown
47491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47492 echo "$as_me:$LINENO: checking for $ac_func" >&5
47493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47494 if eval "test \"\${$as_ac_var+set}\" = set"; then
47495 echo $ECHO_N "(cached) $ECHO_C" >&6
47497 cat >conftest.$ac_ext <<_ACEOF
47500 cat confdefs.h >>conftest.$ac_ext
47501 cat >>conftest.$ac_ext <<_ACEOF
47502 /* end confdefs.h. */
47503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47505 #define $ac_func innocuous_$ac_func
47507 /* System header to define __stub macros and hopefully few prototypes,
47508 which can conflict with char $ac_func (); below.
47509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47510 <limits.h> exists even on freestanding compilers. */
47513 # include <limits.h>
47515 # include <assert.h>
47520 /* Override any gcc2 internal prototype to avoid an error. */
47525 /* We use char because int might match the return type of a gcc2
47526 builtin and then its argument prototype would still apply. */
47528 /* The GNU C library defines this for functions which it implements
47529 to always fail with ENOSYS. Some functions are actually named
47530 something starting with __ and the normal name is an alias. */
47531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47534 char (*f) () = $ac_func;
47543 return f != $ac_func;
47548 rm -f conftest.$ac_objext conftest$ac_exeext
47549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47550 (eval $ac_link) 2>conftest.er1
47552 grep -v '^ *+' conftest.er1 >conftest.err
47554 cat conftest.err >&5
47555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556 (exit $ac_status); } &&
47557 { ac_try='test -z "$ac_c_werror_flag"
47558 || test ! -s conftest.err'
47559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47560 (eval $ac_try) 2>&5
47562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47563 (exit $ac_status); }; } &&
47564 { ac_try='test -s conftest$ac_exeext'
47565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47566 (eval $ac_try) 2>&5
47568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569 (exit $ac_status); }; }; then
47570 eval "$as_ac_var=yes"
47572 echo "$as_me: failed program was:" >&5
47573 sed 's/^/| /' conftest.$ac_ext >&5
47575 eval "$as_ac_var=no"
47577 rm -f conftest.err conftest.$ac_objext \
47578 conftest$ac_exeext conftest.$ac_ext
47580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47582 if test `eval echo '${'$as_ac_var'}'` = yes; then
47583 cat >>confdefs.h <<_ACEOF
47584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47593 for ac_func in listmntent
47595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47596 echo "$as_me:$LINENO: checking for $ac_func" >&5
47597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47598 if eval "test \"\${$as_ac_var+set}\" = set"; then
47599 echo $ECHO_N "(cached) $ECHO_C" >&6
47601 cat >conftest.$ac_ext <<_ACEOF
47604 cat confdefs.h >>conftest.$ac_ext
47605 cat >>conftest.$ac_ext <<_ACEOF
47606 /* end confdefs.h. */
47607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47609 #define $ac_func innocuous_$ac_func
47611 /* System header to define __stub macros and hopefully few prototypes,
47612 which can conflict with char $ac_func (); below.
47613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47614 <limits.h> exists even on freestanding compilers. */
47617 # include <limits.h>
47619 # include <assert.h>
47624 /* Override any gcc2 internal prototype to avoid an error. */
47629 /* We use char because int might match the return type of a gcc2
47630 builtin and then its argument prototype would still apply. */
47632 /* The GNU C library defines this for functions which it implements
47633 to always fail with ENOSYS. Some functions are actually named
47634 something starting with __ and the normal name is an alias. */
47635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47638 char (*f) () = $ac_func;
47647 return f != $ac_func;
47652 rm -f conftest.$ac_objext conftest$ac_exeext
47653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47654 (eval $ac_link) 2>conftest.er1
47656 grep -v '^ *+' conftest.er1 >conftest.err
47658 cat conftest.err >&5
47659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660 (exit $ac_status); } &&
47661 { ac_try='test -z "$ac_c_werror_flag"
47662 || test ! -s conftest.err'
47663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47664 (eval $ac_try) 2>&5
47666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47667 (exit $ac_status); }; } &&
47668 { ac_try='test -s conftest$ac_exeext'
47669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47670 (eval $ac_try) 2>&5
47672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47673 (exit $ac_status); }; }; then
47674 eval "$as_ac_var=yes"
47676 echo "$as_me: failed program was:" >&5
47677 sed 's/^/| /' conftest.$ac_ext >&5
47679 eval "$as_ac_var=no"
47681 rm -f conftest.err conftest.$ac_objext \
47682 conftest$ac_exeext conftest.$ac_ext
47684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47686 if test `eval echo '${'$as_ac_var'}'` = yes; then
47687 cat >>confdefs.h <<_ACEOF
47688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47697 for ac_func in memcpy
47699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47700 echo "$as_me:$LINENO: checking for $ac_func" >&5
47701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47702 if eval "test \"\${$as_ac_var+set}\" = set"; then
47703 echo $ECHO_N "(cached) $ECHO_C" >&6
47705 cat >conftest.$ac_ext <<_ACEOF
47708 cat confdefs.h >>conftest.$ac_ext
47709 cat >>conftest.$ac_ext <<_ACEOF
47710 /* end confdefs.h. */
47711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47713 #define $ac_func innocuous_$ac_func
47715 /* System header to define __stub macros and hopefully few prototypes,
47716 which can conflict with char $ac_func (); below.
47717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47718 <limits.h> exists even on freestanding compilers. */
47721 # include <limits.h>
47723 # include <assert.h>
47728 /* Override any gcc2 internal prototype to avoid an error. */
47733 /* We use char because int might match the return type of a gcc2
47734 builtin and then its argument prototype would still apply. */
47736 /* The GNU C library defines this for functions which it implements
47737 to always fail with ENOSYS. Some functions are actually named
47738 something starting with __ and the normal name is an alias. */
47739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47742 char (*f) () = $ac_func;
47751 return f != $ac_func;
47756 rm -f conftest.$ac_objext conftest$ac_exeext
47757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47758 (eval $ac_link) 2>conftest.er1
47760 grep -v '^ *+' conftest.er1 >conftest.err
47762 cat conftest.err >&5
47763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47764 (exit $ac_status); } &&
47765 { ac_try='test -z "$ac_c_werror_flag"
47766 || test ! -s conftest.err'
47767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47768 (eval $ac_try) 2>&5
47770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47771 (exit $ac_status); }; } &&
47772 { ac_try='test -s conftest$ac_exeext'
47773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47774 (eval $ac_try) 2>&5
47776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47777 (exit $ac_status); }; }; then
47778 eval "$as_ac_var=yes"
47780 echo "$as_me: failed program was:" >&5
47781 sed 's/^/| /' conftest.$ac_ext >&5
47783 eval "$as_ac_var=no"
47785 rm -f conftest.err conftest.$ac_objext \
47786 conftest$ac_exeext conftest.$ac_ext
47788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47790 if test `eval echo '${'$as_ac_var'}'` = yes; then
47791 cat >>confdefs.h <<_ACEOF
47792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47801 for ac_func in mkfifo
47803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47804 echo "$as_me:$LINENO: checking for $ac_func" >&5
47805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47806 if eval "test \"\${$as_ac_var+set}\" = set"; then
47807 echo $ECHO_N "(cached) $ECHO_C" >&6
47809 cat >conftest.$ac_ext <<_ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h. */
47815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47817 #define $ac_func innocuous_$ac_func
47819 /* System header to define __stub macros and hopefully few prototypes,
47820 which can conflict with char $ac_func (); below.
47821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47822 <limits.h> exists even on freestanding compilers. */
47825 # include <limits.h>
47827 # include <assert.h>
47832 /* Override any gcc2 internal prototype to avoid an error. */
47837 /* We use char because int might match the return type of a gcc2
47838 builtin and then its argument prototype would still apply. */
47840 /* The GNU C library defines this for functions which it implements
47841 to always fail with ENOSYS. Some functions are actually named
47842 something starting with __ and the normal name is an alias. */
47843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47846 char (*f) () = $ac_func;
47855 return f != $ac_func;
47860 rm -f conftest.$ac_objext conftest$ac_exeext
47861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47862 (eval $ac_link) 2>conftest.er1
47864 grep -v '^ *+' conftest.er1 >conftest.err
47866 cat conftest.err >&5
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); } &&
47869 { ac_try='test -z "$ac_c_werror_flag"
47870 || test ! -s conftest.err'
47871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47872 (eval $ac_try) 2>&5
47874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875 (exit $ac_status); }; } &&
47876 { ac_try='test -s conftest$ac_exeext'
47877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47878 (eval $ac_try) 2>&5
47880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881 (exit $ac_status); }; }; then
47882 eval "$as_ac_var=yes"
47884 echo "$as_me: failed program was:" >&5
47885 sed 's/^/| /' conftest.$ac_ext >&5
47887 eval "$as_ac_var=no"
47889 rm -f conftest.err conftest.$ac_objext \
47890 conftest$ac_exeext conftest.$ac_ext
47892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47894 if test `eval echo '${'$as_ac_var'}'` = yes; then
47895 cat >>confdefs.h <<_ACEOF
47896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47905 for ac_func in realpath
47907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47908 echo "$as_me:$LINENO: checking for $ac_func" >&5
47909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47910 if eval "test \"\${$as_ac_var+set}\" = set"; then
47911 echo $ECHO_N "(cached) $ECHO_C" >&6
47913 cat >conftest.$ac_ext <<_ACEOF
47916 cat confdefs.h >>conftest.$ac_ext
47917 cat >>conftest.$ac_ext <<_ACEOF
47918 /* end confdefs.h. */
47919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47921 #define $ac_func innocuous_$ac_func
47923 /* System header to define __stub macros and hopefully few prototypes,
47924 which can conflict with char $ac_func (); below.
47925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47926 <limits.h> exists even on freestanding compilers. */
47929 # include <limits.h>
47931 # include <assert.h>
47936 /* Override any gcc2 internal prototype to avoid an error. */
47941 /* We use char because int might match the return type of a gcc2
47942 builtin and then its argument prototype would still apply. */
47944 /* The GNU C library defines this for functions which it implements
47945 to always fail with ENOSYS. Some functions are actually named
47946 something starting with __ and the normal name is an alias. */
47947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47950 char (*f) () = $ac_func;
47959 return f != $ac_func;
47964 rm -f conftest.$ac_objext conftest$ac_exeext
47965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47966 (eval $ac_link) 2>conftest.er1
47968 grep -v '^ *+' conftest.er1 >conftest.err
47970 cat conftest.err >&5
47971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47972 (exit $ac_status); } &&
47973 { ac_try='test -z "$ac_c_werror_flag"
47974 || test ! -s conftest.err'
47975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47976 (eval $ac_try) 2>&5
47978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47979 (exit $ac_status); }; } &&
47980 { ac_try='test -s conftest$ac_exeext'
47981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47982 (eval $ac_try) 2>&5
47984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47985 (exit $ac_status); }; }; then
47986 eval "$as_ac_var=yes"
47988 echo "$as_me: failed program was:" >&5
47989 sed 's/^/| /' conftest.$ac_ext >&5
47991 eval "$as_ac_var=no"
47993 rm -f conftest.err conftest.$ac_objext \
47994 conftest$ac_exeext conftest.$ac_ext
47996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47998 if test `eval echo '${'$as_ac_var'}'` = yes; then
47999 cat >>confdefs.h <<_ACEOF
48000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48009 for ac_func in sethostname
48011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48012 echo "$as_me:$LINENO: checking for $ac_func" >&5
48013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48014 if eval "test \"\${$as_ac_var+set}\" = set"; then
48015 echo $ECHO_N "(cached) $ECHO_C" >&6
48017 cat >conftest.$ac_ext <<_ACEOF
48020 cat confdefs.h >>conftest.$ac_ext
48021 cat >>conftest.$ac_ext <<_ACEOF
48022 /* end confdefs.h. */
48023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48025 #define $ac_func innocuous_$ac_func
48027 /* System header to define __stub macros and hopefully few prototypes,
48028 which can conflict with char $ac_func (); below.
48029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48030 <limits.h> exists even on freestanding compilers. */
48033 # include <limits.h>
48035 # include <assert.h>
48040 /* Override any gcc2 internal prototype to avoid an error. */
48045 /* We use char because int might match the return type of a gcc2
48046 builtin and then its argument prototype would still apply. */
48048 /* The GNU C library defines this for functions which it implements
48049 to always fail with ENOSYS. Some functions are actually named
48050 something starting with __ and the normal name is an alias. */
48051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48054 char (*f) () = $ac_func;
48063 return f != $ac_func;
48068 rm -f conftest.$ac_objext conftest$ac_exeext
48069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48070 (eval $ac_link) 2>conftest.er1
48072 grep -v '^ *+' conftest.er1 >conftest.err
48074 cat conftest.err >&5
48075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48076 (exit $ac_status); } &&
48077 { ac_try='test -z "$ac_c_werror_flag"
48078 || test ! -s conftest.err'
48079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48080 (eval $ac_try) 2>&5
48082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48083 (exit $ac_status); }; } &&
48084 { ac_try='test -s conftest$ac_exeext'
48085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086 (eval $ac_try) 2>&5
48088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089 (exit $ac_status); }; }; then
48090 eval "$as_ac_var=yes"
48092 echo "$as_me: failed program was:" >&5
48093 sed 's/^/| /' conftest.$ac_ext >&5
48095 eval "$as_ac_var=no"
48097 rm -f conftest.err conftest.$ac_objext \
48098 conftest$ac_exeext conftest.$ac_ext
48100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48102 if test `eval echo '${'$as_ac_var'}'` = yes; then
48103 cat >>confdefs.h <<_ACEOF
48104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48113 for ac_func in strchr
48115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48116 echo "$as_me:$LINENO: checking for $ac_func" >&5
48117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48118 if eval "test \"\${$as_ac_var+set}\" = set"; then
48119 echo $ECHO_N "(cached) $ECHO_C" >&6
48121 cat >conftest.$ac_ext <<_ACEOF
48124 cat confdefs.h >>conftest.$ac_ext
48125 cat >>conftest.$ac_ext <<_ACEOF
48126 /* end confdefs.h. */
48127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48129 #define $ac_func innocuous_$ac_func
48131 /* System header to define __stub macros and hopefully few prototypes,
48132 which can conflict with char $ac_func (); below.
48133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48134 <limits.h> exists even on freestanding compilers. */
48137 # include <limits.h>
48139 # include <assert.h>
48144 /* Override any gcc2 internal prototype to avoid an error. */
48149 /* We use char because int might match the return type of a gcc2
48150 builtin and then its argument prototype would still apply. */
48152 /* The GNU C library defines this for functions which it implements
48153 to always fail with ENOSYS. Some functions are actually named
48154 something starting with __ and the normal name is an alias. */
48155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48158 char (*f) () = $ac_func;
48167 return f != $ac_func;
48172 rm -f conftest.$ac_objext conftest$ac_exeext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48174 (eval $ac_link) 2>conftest.er1
48176 grep -v '^ *+' conftest.er1 >conftest.err
48178 cat conftest.err >&5
48179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180 (exit $ac_status); } &&
48181 { ac_try='test -z "$ac_c_werror_flag"
48182 || test ! -s conftest.err'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; } &&
48188 { ac_try='test -s conftest$ac_exeext'
48189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190 (eval $ac_try) 2>&5
48192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193 (exit $ac_status); }; }; then
48194 eval "$as_ac_var=yes"
48196 echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48199 eval "$as_ac_var=no"
48201 rm -f conftest.err conftest.$ac_objext \
48202 conftest$ac_exeext conftest.$ac_ext
48204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48206 if test `eval echo '${'$as_ac_var'}'` = yes; then
48207 cat >>confdefs.h <<_ACEOF
48208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48217 for ac_func in strerror
48219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48220 echo "$as_me:$LINENO: checking for $ac_func" >&5
48221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48222 if eval "test \"\${$as_ac_var+set}\" = set"; then
48223 echo $ECHO_N "(cached) $ECHO_C" >&6
48225 cat >conftest.$ac_ext <<_ACEOF
48228 cat confdefs.h >>conftest.$ac_ext
48229 cat >>conftest.$ac_ext <<_ACEOF
48230 /* end confdefs.h. */
48231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48233 #define $ac_func innocuous_$ac_func
48235 /* System header to define __stub macros and hopefully few prototypes,
48236 which can conflict with char $ac_func (); below.
48237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48238 <limits.h> exists even on freestanding compilers. */
48241 # include <limits.h>
48243 # include <assert.h>
48248 /* Override any gcc2 internal prototype to avoid an error. */
48253 /* We use char because int might match the return type of a gcc2
48254 builtin and then its argument prototype would still apply. */
48256 /* The GNU C library defines this for functions which it implements
48257 to always fail with ENOSYS. Some functions are actually named
48258 something starting with __ and the normal name is an alias. */
48259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48262 char (*f) () = $ac_func;
48271 return f != $ac_func;
48276 rm -f conftest.$ac_objext conftest$ac_exeext
48277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48278 (eval $ac_link) 2>conftest.er1
48280 grep -v '^ *+' conftest.er1 >conftest.err
48282 cat conftest.err >&5
48283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284 (exit $ac_status); } &&
48285 { ac_try='test -z "$ac_c_werror_flag"
48286 || test ! -s conftest.err'
48287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48288 (eval $ac_try) 2>&5
48290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291 (exit $ac_status); }; } &&
48292 { ac_try='test -s conftest$ac_exeext'
48293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48294 (eval $ac_try) 2>&5
48296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48297 (exit $ac_status); }; }; then
48298 eval "$as_ac_var=yes"
48300 echo "$as_me: failed program was:" >&5
48301 sed 's/^/| /' conftest.$ac_ext >&5
48303 eval "$as_ac_var=no"
48305 rm -f conftest.err conftest.$ac_objext \
48306 conftest$ac_exeext conftest.$ac_ext
48308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48310 if test `eval echo '${'$as_ac_var'}'` = yes; then
48311 cat >>confdefs.h <<_ACEOF
48312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48321 for ac_func in strrchr
48323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48324 echo "$as_me:$LINENO: checking for $ac_func" >&5
48325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48326 if eval "test \"\${$as_ac_var+set}\" = set"; then
48327 echo $ECHO_N "(cached) $ECHO_C" >&6
48329 cat >conftest.$ac_ext <<_ACEOF
48332 cat confdefs.h >>conftest.$ac_ext
48333 cat >>conftest.$ac_ext <<_ACEOF
48334 /* end confdefs.h. */
48335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48337 #define $ac_func innocuous_$ac_func
48339 /* System header to define __stub macros and hopefully few prototypes,
48340 which can conflict with char $ac_func (); below.
48341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48342 <limits.h> exists even on freestanding compilers. */
48345 # include <limits.h>
48347 # include <assert.h>
48352 /* Override any gcc2 internal prototype to avoid an error. */
48357 /* We use char because int might match the return type of a gcc2
48358 builtin and then its argument prototype would still apply. */
48360 /* The GNU C library defines this for functions which it implements
48361 to always fail with ENOSYS. Some functions are actually named
48362 something starting with __ and the normal name is an alias. */
48363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48366 char (*f) () = $ac_func;
48375 return f != $ac_func;
48380 rm -f conftest.$ac_objext conftest$ac_exeext
48381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48382 (eval $ac_link) 2>conftest.er1
48384 grep -v '^ *+' conftest.er1 >conftest.err
48386 cat conftest.err >&5
48387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48388 (exit $ac_status); } &&
48389 { ac_try='test -z "$ac_c_werror_flag"
48390 || test ! -s conftest.err'
48391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392 (eval $ac_try) 2>&5
48394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395 (exit $ac_status); }; } &&
48396 { ac_try='test -s conftest$ac_exeext'
48397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48398 (eval $ac_try) 2>&5
48400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48401 (exit $ac_status); }; }; then
48402 eval "$as_ac_var=yes"
48404 echo "$as_me: failed program was:" >&5
48405 sed 's/^/| /' conftest.$ac_ext >&5
48407 eval "$as_ac_var=no"
48409 rm -f conftest.err conftest.$ac_objext \
48410 conftest$ac_exeext conftest.$ac_ext
48412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48414 if test `eval echo '${'$as_ac_var'}'` = yes; then
48415 cat >>confdefs.h <<_ACEOF
48416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48425 for ac_func in sysctl
48427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48428 echo "$as_me:$LINENO: checking for $ac_func" >&5
48429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48430 if eval "test \"\${$as_ac_var+set}\" = set"; then
48431 echo $ECHO_N "(cached) $ECHO_C" >&6
48433 cat >conftest.$ac_ext <<_ACEOF
48436 cat confdefs.h >>conftest.$ac_ext
48437 cat >>conftest.$ac_ext <<_ACEOF
48438 /* end confdefs.h. */
48439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48441 #define $ac_func innocuous_$ac_func
48443 /* System header to define __stub macros and hopefully few prototypes,
48444 which can conflict with char $ac_func (); below.
48445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48446 <limits.h> exists even on freestanding compilers. */
48449 # include <limits.h>
48451 # include <assert.h>
48456 /* Override any gcc2 internal prototype to avoid an error. */
48461 /* We use char because int might match the return type of a gcc2
48462 builtin and then its argument prototype would still apply. */
48464 /* The GNU C library defines this for functions which it implements
48465 to always fail with ENOSYS. Some functions are actually named
48466 something starting with __ and the normal name is an alias. */
48467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48470 char (*f) () = $ac_func;
48479 return f != $ac_func;
48484 rm -f conftest.$ac_objext conftest$ac_exeext
48485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48486 (eval $ac_link) 2>conftest.er1
48488 grep -v '^ *+' conftest.er1 >conftest.err
48490 cat conftest.err >&5
48491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48492 (exit $ac_status); } &&
48493 { ac_try='test -z "$ac_c_werror_flag"
48494 || test ! -s conftest.err'
48495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48496 (eval $ac_try) 2>&5
48498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48499 (exit $ac_status); }; } &&
48500 { ac_try='test -s conftest$ac_exeext'
48501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48502 (eval $ac_try) 2>&5
48504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505 (exit $ac_status); }; }; then
48506 eval "$as_ac_var=yes"
48508 echo "$as_me: failed program was:" >&5
48509 sed 's/^/| /' conftest.$ac_ext >&5
48511 eval "$as_ac_var=no"
48513 rm -f conftest.err conftest.$ac_objext \
48514 conftest$ac_exeext conftest.$ac_ext
48516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48518 if test `eval echo '${'$as_ac_var'}'` = yes; then
48519 cat >>confdefs.h <<_ACEOF
48520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48529 for ac_func in sysinfo
48531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48532 echo "$as_me:$LINENO: checking for $ac_func" >&5
48533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48534 if eval "test \"\${$as_ac_var+set}\" = set"; then
48535 echo $ECHO_N "(cached) $ECHO_C" >&6
48537 cat >conftest.$ac_ext <<_ACEOF
48540 cat confdefs.h >>conftest.$ac_ext
48541 cat >>conftest.$ac_ext <<_ACEOF
48542 /* end confdefs.h. */
48543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48545 #define $ac_func innocuous_$ac_func
48547 /* System header to define __stub macros and hopefully few prototypes,
48548 which can conflict with char $ac_func (); below.
48549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48550 <limits.h> exists even on freestanding compilers. */
48553 # include <limits.h>
48555 # include <assert.h>
48560 /* Override any gcc2 internal prototype to avoid an error. */
48565 /* We use char because int might match the return type of a gcc2
48566 builtin and then its argument prototype would still apply. */
48568 /* The GNU C library defines this for functions which it implements
48569 to always fail with ENOSYS. Some functions are actually named
48570 something starting with __ and the normal name is an alias. */
48571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48574 char (*f) () = $ac_func;
48583 return f != $ac_func;
48588 rm -f conftest.$ac_objext conftest$ac_exeext
48589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48590 (eval $ac_link) 2>conftest.er1
48592 grep -v '^ *+' conftest.er1 >conftest.err
48594 cat conftest.err >&5
48595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48596 (exit $ac_status); } &&
48597 { ac_try='test -z "$ac_c_werror_flag"
48598 || test ! -s conftest.err'
48599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48600 (eval $ac_try) 2>&5
48602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48603 (exit $ac_status); }; } &&
48604 { ac_try='test -s conftest$ac_exeext'
48605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48606 (eval $ac_try) 2>&5
48608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48609 (exit $ac_status); }; }; then
48610 eval "$as_ac_var=yes"
48612 echo "$as_me: failed program was:" >&5
48613 sed 's/^/| /' conftest.$ac_ext >&5
48615 eval "$as_ac_var=no"
48617 rm -f conftest.err conftest.$ac_objext \
48618 conftest$ac_exeext conftest.$ac_ext
48620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48622 if test `eval echo '${'$as_ac_var'}'` = yes; then
48623 cat >>confdefs.h <<_ACEOF
48624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48633 for ac_func in tcgetpgrp
48635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48636 echo "$as_me:$LINENO: checking for $ac_func" >&5
48637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48638 if eval "test \"\${$as_ac_var+set}\" = set"; then
48639 echo $ECHO_N "(cached) $ECHO_C" >&6
48641 cat >conftest.$ac_ext <<_ACEOF
48644 cat confdefs.h >>conftest.$ac_ext
48645 cat >>conftest.$ac_ext <<_ACEOF
48646 /* end confdefs.h. */
48647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48649 #define $ac_func innocuous_$ac_func
48651 /* System header to define __stub macros and hopefully few prototypes,
48652 which can conflict with char $ac_func (); below.
48653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48654 <limits.h> exists even on freestanding compilers. */
48657 # include <limits.h>
48659 # include <assert.h>
48664 /* Override any gcc2 internal prototype to avoid an error. */
48669 /* We use char because int might match the return type of a gcc2
48670 builtin and then its argument prototype would still apply. */
48672 /* The GNU C library defines this for functions which it implements
48673 to always fail with ENOSYS. Some functions are actually named
48674 something starting with __ and the normal name is an alias. */
48675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48678 char (*f) () = $ac_func;
48687 return f != $ac_func;
48692 rm -f conftest.$ac_objext conftest$ac_exeext
48693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48694 (eval $ac_link) 2>conftest.er1
48696 grep -v '^ *+' conftest.er1 >conftest.err
48698 cat conftest.err >&5
48699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700 (exit $ac_status); } &&
48701 { ac_try='test -z "$ac_c_werror_flag"
48702 || test ! -s conftest.err'
48703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48704 (eval $ac_try) 2>&5
48706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707 (exit $ac_status); }; } &&
48708 { ac_try='test -s conftest$ac_exeext'
48709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48710 (eval $ac_try) 2>&5
48712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713 (exit $ac_status); }; }; then
48714 eval "$as_ac_var=yes"
48716 echo "$as_me: failed program was:" >&5
48717 sed 's/^/| /' conftest.$ac_ext >&5
48719 eval "$as_ac_var=no"
48721 rm -f conftest.err conftest.$ac_objext \
48722 conftest$ac_exeext conftest.$ac_ext
48724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48726 if test `eval echo '${'$as_ac_var'}'` = yes; then
48727 cat >>confdefs.h <<_ACEOF
48728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48737 for ac_func in wcrtomb
48739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48740 echo "$as_me:$LINENO: checking for $ac_func" >&5
48741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48742 if eval "test \"\${$as_ac_var+set}\" = set"; then
48743 echo $ECHO_N "(cached) $ECHO_C" >&6
48745 cat >conftest.$ac_ext <<_ACEOF
48748 cat confdefs.h >>conftest.$ac_ext
48749 cat >>conftest.$ac_ext <<_ACEOF
48750 /* end confdefs.h. */
48751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48753 #define $ac_func innocuous_$ac_func
48755 /* System header to define __stub macros and hopefully few prototypes,
48756 which can conflict with char $ac_func (); below.
48757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48758 <limits.h> exists even on freestanding compilers. */
48761 # include <limits.h>
48763 # include <assert.h>
48768 /* Override any gcc2 internal prototype to avoid an error. */
48773 /* We use char because int might match the return type of a gcc2
48774 builtin and then its argument prototype would still apply. */
48776 /* The GNU C library defines this for functions which it implements
48777 to always fail with ENOSYS. Some functions are actually named
48778 something starting with __ and the normal name is an alias. */
48779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48782 char (*f) () = $ac_func;
48791 return f != $ac_func;
48796 rm -f conftest.$ac_objext conftest$ac_exeext
48797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48798 (eval $ac_link) 2>conftest.er1
48800 grep -v '^ *+' conftest.er1 >conftest.err
48802 cat conftest.err >&5
48803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804 (exit $ac_status); } &&
48805 { ac_try='test -z "$ac_c_werror_flag"
48806 || test ! -s conftest.err'
48807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48808 (eval $ac_try) 2>&5
48810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811 (exit $ac_status); }; } &&
48812 { ac_try='test -s conftest$ac_exeext'
48813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48814 (eval $ac_try) 2>&5
48816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48817 (exit $ac_status); }; }; then
48818 eval "$as_ac_var=yes"
48820 echo "$as_me: failed program was:" >&5
48821 sed 's/^/| /' conftest.$ac_ext >&5
48823 eval "$as_ac_var=no"
48825 rm -f conftest.err conftest.$ac_objext \
48826 conftest$ac_exeext conftest.$ac_ext
48828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48830 if test `eval echo '${'$as_ac_var'}'` = yes; then
48831 cat >>confdefs.h <<_ACEOF
48832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48841 for ac_header in sys/sysmacros.h
48843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48845 echo "$as_me:$LINENO: checking for $ac_header" >&5
48846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48848 echo $ECHO_N "(cached) $ECHO_C" >&6
48850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48853 # Is the header compilable?
48854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48856 cat >conftest.$ac_ext <<_ACEOF
48859 cat confdefs.h >>conftest.$ac_ext
48860 cat >>conftest.$ac_ext <<_ACEOF
48861 /* end confdefs.h. */
48862 $ac_includes_default
48863 #include <$ac_header>
48865 rm -f conftest.$ac_objext
48866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48867 (eval $ac_compile) 2>conftest.er1
48869 grep -v '^ *+' conftest.er1 >conftest.err
48871 cat conftest.err >&5
48872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48873 (exit $ac_status); } &&
48874 { ac_try='test -z "$ac_c_werror_flag"
48875 || test ! -s conftest.err'
48876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48877 (eval $ac_try) 2>&5
48879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880 (exit $ac_status); }; } &&
48881 { ac_try='test -s conftest.$ac_objext'
48882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48883 (eval $ac_try) 2>&5
48885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886 (exit $ac_status); }; }; then
48887 ac_header_compiler=yes
48889 echo "$as_me: failed program was:" >&5
48890 sed 's/^/| /' conftest.$ac_ext >&5
48892 ac_header_compiler=no
48894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48896 echo "${ECHO_T}$ac_header_compiler" >&6
48898 # Is the header present?
48899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48901 cat >conftest.$ac_ext <<_ACEOF
48904 cat confdefs.h >>conftest.$ac_ext
48905 cat >>conftest.$ac_ext <<_ACEOF
48906 /* end confdefs.h. */
48907 #include <$ac_header>
48909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48912 grep -v '^ *+' conftest.er1 >conftest.err
48914 cat conftest.err >&5
48915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48916 (exit $ac_status); } >/dev/null; then
48917 if test -s conftest.err; then
48918 ac_cpp_err=$ac_c_preproc_warn_flag
48919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48926 if test -z "$ac_cpp_err"; then
48927 ac_header_preproc=yes
48929 echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48932 ac_header_preproc=no
48934 rm -f conftest.err conftest.$ac_ext
48935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48936 echo "${ECHO_T}$ac_header_preproc" >&6
48938 # So? What about this header?
48939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48945 ac_header_preproc=yes
48948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48962 ## ------------------------------------ ##
48963 ## Report this to bug-coreutils@gnu.org ##
48964 ## ------------------------------------ ##
48967 sed "s/^/$as_me: WARNING: /" >&2
48970 echo "$as_me:$LINENO: checking for $ac_header" >&5
48971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48973 echo $ECHO_N "(cached) $ECHO_C" >&6
48975 eval "$as_ac_Header=\$ac_header_preproc"
48977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48982 cat >>confdefs.h <<_ACEOF
48983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48993 for ac_func in statvfs
48995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48996 echo "$as_me:$LINENO: checking for $ac_func" >&5
48997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48998 if eval "test \"\${$as_ac_var+set}\" = set"; then
48999 echo $ECHO_N "(cached) $ECHO_C" >&6
49001 cat >conftest.$ac_ext <<_ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h. */
49007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49009 #define $ac_func innocuous_$ac_func
49011 /* System header to define __stub macros and hopefully few prototypes,
49012 which can conflict with char $ac_func (); below.
49013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49014 <limits.h> exists even on freestanding compilers. */
49017 # include <limits.h>
49019 # include <assert.h>
49024 /* Override any gcc2 internal prototype to avoid an error. */
49029 /* We use char because int might match the return type of a gcc2
49030 builtin and then its argument prototype would still apply. */
49032 /* The GNU C library defines this for functions which it implements
49033 to always fail with ENOSYS. Some functions are actually named
49034 something starting with __ and the normal name is an alias. */
49035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49038 char (*f) () = $ac_func;
49047 return f != $ac_func;
49052 rm -f conftest.$ac_objext conftest$ac_exeext
49053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49054 (eval $ac_link) 2>conftest.er1
49056 grep -v '^ *+' conftest.er1 >conftest.err
49058 cat conftest.err >&5
49059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060 (exit $ac_status); } &&
49061 { ac_try='test -z "$ac_c_werror_flag"
49062 || test ! -s conftest.err'
49063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49064 (eval $ac_try) 2>&5
49066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49067 (exit $ac_status); }; } &&
49068 { ac_try='test -s conftest$ac_exeext'
49069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49070 (eval $ac_try) 2>&5
49072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49073 (exit $ac_status); }; }; then
49074 eval "$as_ac_var=yes"
49076 echo "$as_me: failed program was:" >&5
49077 sed 's/^/| /' conftest.$ac_ext >&5
49079 eval "$as_ac_var=no"
49081 rm -f conftest.err conftest.$ac_objext \
49082 conftest$ac_exeext conftest.$ac_ext
49084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49086 if test `eval echo '${'$as_ac_var'}'` = yes; then
49087 cat >>confdefs.h <<_ACEOF
49088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49113 for ac_header in sys/mount.h
49115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49116 echo "$as_me:$LINENO: checking for $ac_header" >&5
49117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49119 echo $ECHO_N "(cached) $ECHO_C" >&6
49121 cat >conftest.$ac_ext <<_ACEOF
49124 cat confdefs.h >>conftest.$ac_ext
49125 cat >>conftest.$ac_ext <<_ACEOF
49126 /* end confdefs.h. */
49127 $ac_includes_default
49128 #if HAVE_SYS_PARAM_H
49129 #include <sys/param.h>
49132 #include <$ac_header>
49134 rm -f conftest.$ac_objext
49135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49136 (eval $ac_compile) 2>conftest.er1
49138 grep -v '^ *+' conftest.er1 >conftest.err
49140 cat conftest.err >&5
49141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142 (exit $ac_status); } &&
49143 { ac_try='test -z "$ac_c_werror_flag"
49144 || test ! -s conftest.err'
49145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49146 (eval $ac_try) 2>&5
49148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49149 (exit $ac_status); }; } &&
49150 { ac_try='test -s conftest.$ac_objext'
49151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49152 (eval $ac_try) 2>&5
49154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49155 (exit $ac_status); }; }; then
49156 eval "$as_ac_Header=yes"
49158 echo "$as_me: failed program was:" >&5
49159 sed 's/^/| /' conftest.$ac_ext >&5
49161 eval "$as_ac_Header=no"
49163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49168 cat >>confdefs.h <<_ACEOF
49169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49184 # For `struct statfs' on Ultrix 4.4.
49188 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
49190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49191 echo "$as_me:$LINENO: checking for $ac_header" >&5
49192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49194 echo $ECHO_N "(cached) $ECHO_C" >&6
49196 cat >conftest.$ac_ext <<_ACEOF
49199 cat confdefs.h >>conftest.$ac_ext
49200 cat >>conftest.$ac_ext <<_ACEOF
49201 /* end confdefs.h. */
49202 $ac_includes_default
49204 #include <$ac_header>
49206 rm -f conftest.$ac_objext
49207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49208 (eval $ac_compile) 2>conftest.er1
49210 grep -v '^ *+' conftest.er1 >conftest.err
49212 cat conftest.err >&5
49213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49214 (exit $ac_status); } &&
49215 { ac_try='test -z "$ac_c_werror_flag"
49216 || test ! -s conftest.err'
49217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49218 (eval $ac_try) 2>&5
49220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49221 (exit $ac_status); }; } &&
49222 { ac_try='test -s conftest.$ac_objext'
49223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49224 (eval $ac_try) 2>&5
49226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227 (exit $ac_status); }; }; then
49228 eval "$as_ac_Header=yes"
49230 echo "$as_me: failed program was:" >&5
49231 sed 's/^/| /' conftest.$ac_ext >&5
49233 eval "$as_ac_Header=no"
49235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49240 cat >>confdefs.h <<_ACEOF
49241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49252 statxfs_includes="\
49253 $ac_includes_default
49254 #if HAVE_SYS_STATVFS_H
49255 # include <sys/statvfs.h>
49258 # include <sys/vfs.h>
49260 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
49261 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
49262 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
49263 # include <sys/param.h>
49264 # include <sys/mount.h>
49265 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
49266 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
49267 # include <netinet/in.h>
49268 # include <nfs/nfs_clnt.h>
49269 # include <nfs/vfs.h>
49273 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
49274 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
49275 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
49276 echo $ECHO_N "(cached) $ECHO_C" >&6
49278 cat >conftest.$ac_ext <<_ACEOF
49281 cat confdefs.h >>conftest.$ac_ext
49282 cat >>conftest.$ac_ext <<_ACEOF
49283 /* end confdefs.h. */
49289 static struct statfs ac_aggr;
49290 if (ac_aggr.f_basetype)
49296 rm -f conftest.$ac_objext
49297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49298 (eval $ac_compile) 2>conftest.er1
49300 grep -v '^ *+' conftest.er1 >conftest.err
49302 cat conftest.err >&5
49303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49304 (exit $ac_status); } &&
49305 { ac_try='test -z "$ac_c_werror_flag"
49306 || test ! -s conftest.err'
49307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49308 (eval $ac_try) 2>&5
49310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49311 (exit $ac_status); }; } &&
49312 { ac_try='test -s conftest.$ac_objext'
49313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49314 (eval $ac_try) 2>&5
49316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317 (exit $ac_status); }; }; then
49318 ac_cv_member_struct_statfs_f_basetype=yes
49320 echo "$as_me: failed program was:" >&5
49321 sed 's/^/| /' conftest.$ac_ext >&5
49323 cat >conftest.$ac_ext <<_ACEOF
49326 cat confdefs.h >>conftest.$ac_ext
49327 cat >>conftest.$ac_ext <<_ACEOF
49328 /* end confdefs.h. */
49334 static struct statfs ac_aggr;
49335 if (sizeof ac_aggr.f_basetype)
49341 rm -f conftest.$ac_objext
49342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49343 (eval $ac_compile) 2>conftest.er1
49345 grep -v '^ *+' conftest.er1 >conftest.err
49347 cat conftest.err >&5
49348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49349 (exit $ac_status); } &&
49350 { ac_try='test -z "$ac_c_werror_flag"
49351 || test ! -s conftest.err'
49352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49353 (eval $ac_try) 2>&5
49355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49356 (exit $ac_status); }; } &&
49357 { ac_try='test -s conftest.$ac_objext'
49358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49359 (eval $ac_try) 2>&5
49361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362 (exit $ac_status); }; }; then
49363 ac_cv_member_struct_statfs_f_basetype=yes
49365 echo "$as_me: failed program was:" >&5
49366 sed 's/^/| /' conftest.$ac_ext >&5
49368 ac_cv_member_struct_statfs_f_basetype=no
49370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49374 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
49375 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
49376 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
49378 cat >>confdefs.h <<_ACEOF
49379 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
49385 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
49386 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
49387 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
49388 echo $ECHO_N "(cached) $ECHO_C" >&6
49390 cat >conftest.$ac_ext <<_ACEOF
49393 cat confdefs.h >>conftest.$ac_ext
49394 cat >>conftest.$ac_ext <<_ACEOF
49395 /* end confdefs.h. */
49401 static struct statvfs ac_aggr;
49402 if (ac_aggr.f_basetype)
49408 rm -f conftest.$ac_objext
49409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49410 (eval $ac_compile) 2>conftest.er1
49412 grep -v '^ *+' conftest.er1 >conftest.err
49414 cat conftest.err >&5
49415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49416 (exit $ac_status); } &&
49417 { ac_try='test -z "$ac_c_werror_flag"
49418 || test ! -s conftest.err'
49419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49420 (eval $ac_try) 2>&5
49422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49423 (exit $ac_status); }; } &&
49424 { ac_try='test -s conftest.$ac_objext'
49425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49426 (eval $ac_try) 2>&5
49428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49429 (exit $ac_status); }; }; then
49430 ac_cv_member_struct_statvfs_f_basetype=yes
49432 echo "$as_me: failed program was:" >&5
49433 sed 's/^/| /' conftest.$ac_ext >&5
49435 cat >conftest.$ac_ext <<_ACEOF
49438 cat confdefs.h >>conftest.$ac_ext
49439 cat >>conftest.$ac_ext <<_ACEOF
49440 /* end confdefs.h. */
49446 static struct statvfs ac_aggr;
49447 if (sizeof ac_aggr.f_basetype)
49453 rm -f conftest.$ac_objext
49454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49455 (eval $ac_compile) 2>conftest.er1
49457 grep -v '^ *+' conftest.er1 >conftest.err
49459 cat conftest.err >&5
49460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49461 (exit $ac_status); } &&
49462 { ac_try='test -z "$ac_c_werror_flag"
49463 || test ! -s conftest.err'
49464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49465 (eval $ac_try) 2>&5
49467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49468 (exit $ac_status); }; } &&
49469 { ac_try='test -s conftest.$ac_objext'
49470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49471 (eval $ac_try) 2>&5
49473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49474 (exit $ac_status); }; }; then
49475 ac_cv_member_struct_statvfs_f_basetype=yes
49477 echo "$as_me: failed program was:" >&5
49478 sed 's/^/| /' conftest.$ac_ext >&5
49480 ac_cv_member_struct_statvfs_f_basetype=no
49482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
49487 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
49488 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
49490 cat >>confdefs.h <<_ACEOF
49491 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
49497 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
49498 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
49499 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
49500 echo $ECHO_N "(cached) $ECHO_C" >&6
49502 cat >conftest.$ac_ext <<_ACEOF
49505 cat confdefs.h >>conftest.$ac_ext
49506 cat >>conftest.$ac_ext <<_ACEOF
49507 /* end confdefs.h. */
49513 static struct statfs ac_aggr;
49514 if (ac_aggr.f_fstypename)
49520 rm -f conftest.$ac_objext
49521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49522 (eval $ac_compile) 2>conftest.er1
49524 grep -v '^ *+' conftest.er1 >conftest.err
49526 cat conftest.err >&5
49527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49528 (exit $ac_status); } &&
49529 { ac_try='test -z "$ac_c_werror_flag"
49530 || test ! -s conftest.err'
49531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49532 (eval $ac_try) 2>&5
49534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535 (exit $ac_status); }; } &&
49536 { ac_try='test -s conftest.$ac_objext'
49537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538 (eval $ac_try) 2>&5
49540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541 (exit $ac_status); }; }; then
49542 ac_cv_member_struct_statfs_f_fstypename=yes
49544 echo "$as_me: failed program was:" >&5
49545 sed 's/^/| /' conftest.$ac_ext >&5
49547 cat >conftest.$ac_ext <<_ACEOF
49550 cat confdefs.h >>conftest.$ac_ext
49551 cat >>conftest.$ac_ext <<_ACEOF
49552 /* end confdefs.h. */
49558 static struct statfs ac_aggr;
49559 if (sizeof ac_aggr.f_fstypename)
49565 rm -f conftest.$ac_objext
49566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49567 (eval $ac_compile) 2>conftest.er1
49569 grep -v '^ *+' conftest.er1 >conftest.err
49571 cat conftest.err >&5
49572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573 (exit $ac_status); } &&
49574 { ac_try='test -z "$ac_c_werror_flag"
49575 || test ! -s conftest.err'
49576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577 (eval $ac_try) 2>&5
49579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580 (exit $ac_status); }; } &&
49581 { ac_try='test -s conftest.$ac_objext'
49582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583 (eval $ac_try) 2>&5
49585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586 (exit $ac_status); }; }; then
49587 ac_cv_member_struct_statfs_f_fstypename=yes
49589 echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49592 ac_cv_member_struct_statfs_f_fstypename=no
49594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49598 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
49599 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
49600 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
49602 cat >>confdefs.h <<_ACEOF
49603 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
49609 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
49610 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
49611 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
49612 echo $ECHO_N "(cached) $ECHO_C" >&6
49614 cat >conftest.$ac_ext <<_ACEOF
49617 cat confdefs.h >>conftest.$ac_ext
49618 cat >>conftest.$ac_ext <<_ACEOF
49619 /* end confdefs.h. */
49625 static struct statfs ac_aggr;
49626 if (ac_aggr.f_type)
49632 rm -f conftest.$ac_objext
49633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49634 (eval $ac_compile) 2>conftest.er1
49636 grep -v '^ *+' conftest.er1 >conftest.err
49638 cat conftest.err >&5
49639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49640 (exit $ac_status); } &&
49641 { ac_try='test -z "$ac_c_werror_flag"
49642 || test ! -s conftest.err'
49643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49644 (eval $ac_try) 2>&5
49646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647 (exit $ac_status); }; } &&
49648 { ac_try='test -s conftest.$ac_objext'
49649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49650 (eval $ac_try) 2>&5
49652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49653 (exit $ac_status); }; }; then
49654 ac_cv_member_struct_statfs_f_type=yes
49656 echo "$as_me: failed program was:" >&5
49657 sed 's/^/| /' conftest.$ac_ext >&5
49659 cat >conftest.$ac_ext <<_ACEOF
49662 cat confdefs.h >>conftest.$ac_ext
49663 cat >>conftest.$ac_ext <<_ACEOF
49664 /* end confdefs.h. */
49670 static struct statfs ac_aggr;
49671 if (sizeof ac_aggr.f_type)
49677 rm -f conftest.$ac_objext
49678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49679 (eval $ac_compile) 2>conftest.er1
49681 grep -v '^ *+' conftest.er1 >conftest.err
49683 cat conftest.err >&5
49684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49685 (exit $ac_status); } &&
49686 { ac_try='test -z "$ac_c_werror_flag"
49687 || test ! -s conftest.err'
49688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49689 (eval $ac_try) 2>&5
49691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49692 (exit $ac_status); }; } &&
49693 { ac_try='test -s conftest.$ac_objext'
49694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49695 (eval $ac_try) 2>&5
49697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49698 (exit $ac_status); }; }; then
49699 ac_cv_member_struct_statfs_f_type=yes
49701 echo "$as_me: failed program was:" >&5
49702 sed 's/^/| /' conftest.$ac_ext >&5
49704 ac_cv_member_struct_statfs_f_type=no
49706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
49711 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
49712 if test $ac_cv_member_struct_statfs_f_type = yes; then
49714 cat >>confdefs.h <<_ACEOF
49715 #define HAVE_STRUCT_STATFS_F_TYPE 1
49721 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
49722 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
49723 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
49724 echo $ECHO_N "(cached) $ECHO_C" >&6
49726 cat >conftest.$ac_ext <<_ACEOF
49729 cat confdefs.h >>conftest.$ac_ext
49730 cat >>conftest.$ac_ext <<_ACEOF
49731 /* end confdefs.h. */
49737 static struct statvfs ac_aggr;
49738 if (ac_aggr.f_type)
49744 rm -f conftest.$ac_objext
49745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49746 (eval $ac_compile) 2>conftest.er1
49748 grep -v '^ *+' conftest.er1 >conftest.err
49750 cat conftest.err >&5
49751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49752 (exit $ac_status); } &&
49753 { ac_try='test -z "$ac_c_werror_flag"
49754 || test ! -s conftest.err'
49755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756 (eval $ac_try) 2>&5
49758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759 (exit $ac_status); }; } &&
49760 { ac_try='test -s conftest.$ac_objext'
49761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49762 (eval $ac_try) 2>&5
49764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49765 (exit $ac_status); }; }; then
49766 ac_cv_member_struct_statvfs_f_type=yes
49768 echo "$as_me: failed program was:" >&5
49769 sed 's/^/| /' conftest.$ac_ext >&5
49771 cat >conftest.$ac_ext <<_ACEOF
49774 cat confdefs.h >>conftest.$ac_ext
49775 cat >>conftest.$ac_ext <<_ACEOF
49776 /* end confdefs.h. */
49782 static struct statvfs ac_aggr;
49783 if (sizeof ac_aggr.f_type)
49789 rm -f conftest.$ac_objext
49790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49791 (eval $ac_compile) 2>conftest.er1
49793 grep -v '^ *+' conftest.er1 >conftest.err
49795 cat conftest.err >&5
49796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49797 (exit $ac_status); } &&
49798 { ac_try='test -z "$ac_c_werror_flag"
49799 || test ! -s conftest.err'
49800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49801 (eval $ac_try) 2>&5
49803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49804 (exit $ac_status); }; } &&
49805 { ac_try='test -s conftest.$ac_objext'
49806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49807 (eval $ac_try) 2>&5
49809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49810 (exit $ac_status); }; }; then
49811 ac_cv_member_struct_statvfs_f_type=yes
49813 echo "$as_me: failed program was:" >&5
49814 sed 's/^/| /' conftest.$ac_ext >&5
49816 ac_cv_member_struct_statvfs_f_type=no
49818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49822 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
49823 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
49824 if test $ac_cv_member_struct_statvfs_f_type = yes; then
49826 cat >>confdefs.h <<_ACEOF
49827 #define HAVE_STRUCT_STATVFS_F_TYPE 1
49833 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
49834 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
49835 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
49836 echo $ECHO_N "(cached) $ECHO_C" >&6
49838 cat >conftest.$ac_ext <<_ACEOF
49841 cat confdefs.h >>conftest.$ac_ext
49842 cat >>conftest.$ac_ext <<_ACEOF
49843 /* end confdefs.h. */
49849 static struct statfs ac_aggr;
49850 if (ac_aggr.f_fsid.__val)
49856 rm -f conftest.$ac_objext
49857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49858 (eval $ac_compile) 2>conftest.er1
49860 grep -v '^ *+' conftest.er1 >conftest.err
49862 cat conftest.err >&5
49863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49864 (exit $ac_status); } &&
49865 { ac_try='test -z "$ac_c_werror_flag"
49866 || test ! -s conftest.err'
49867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49868 (eval $ac_try) 2>&5
49870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871 (exit $ac_status); }; } &&
49872 { ac_try='test -s conftest.$ac_objext'
49873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49874 (eval $ac_try) 2>&5
49876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49877 (exit $ac_status); }; }; then
49878 ac_cv_member_struct_statfs_f_fsid___val=yes
49880 echo "$as_me: failed program was:" >&5
49881 sed 's/^/| /' conftest.$ac_ext >&5
49883 cat >conftest.$ac_ext <<_ACEOF
49886 cat confdefs.h >>conftest.$ac_ext
49887 cat >>conftest.$ac_ext <<_ACEOF
49888 /* end confdefs.h. */
49894 static struct statfs ac_aggr;
49895 if (sizeof ac_aggr.f_fsid.__val)
49901 rm -f conftest.$ac_objext
49902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49903 (eval $ac_compile) 2>conftest.er1
49905 grep -v '^ *+' conftest.er1 >conftest.err
49907 cat conftest.err >&5
49908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909 (exit $ac_status); } &&
49910 { ac_try='test -z "$ac_c_werror_flag"
49911 || test ! -s conftest.err'
49912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49913 (eval $ac_try) 2>&5
49915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49916 (exit $ac_status); }; } &&
49917 { ac_try='test -s conftest.$ac_objext'
49918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49919 (eval $ac_try) 2>&5
49921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49922 (exit $ac_status); }; }; then
49923 ac_cv_member_struct_statfs_f_fsid___val=yes
49925 echo "$as_me: failed program was:" >&5
49926 sed 's/^/| /' conftest.$ac_ext >&5
49928 ac_cv_member_struct_statfs_f_fsid___val=no
49930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49934 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
49935 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
49936 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
49938 cat >>confdefs.h <<_ACEOF
49939 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
49945 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
49946 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
49947 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
49948 echo $ECHO_N "(cached) $ECHO_C" >&6
49950 cat >conftest.$ac_ext <<_ACEOF
49953 cat confdefs.h >>conftest.$ac_ext
49954 cat >>conftest.$ac_ext <<_ACEOF
49955 /* end confdefs.h. */
49961 static struct statvfs ac_aggr;
49962 if (ac_aggr.f_fsid.__val)
49968 rm -f conftest.$ac_objext
49969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49970 (eval $ac_compile) 2>conftest.er1
49972 grep -v '^ *+' conftest.er1 >conftest.err
49974 cat conftest.err >&5
49975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976 (exit $ac_status); } &&
49977 { ac_try='test -z "$ac_c_werror_flag"
49978 || test ! -s conftest.err'
49979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49980 (eval $ac_try) 2>&5
49982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983 (exit $ac_status); }; } &&
49984 { ac_try='test -s conftest.$ac_objext'
49985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49986 (eval $ac_try) 2>&5
49988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49989 (exit $ac_status); }; }; then
49990 ac_cv_member_struct_statvfs_f_fsid___val=yes
49992 echo "$as_me: failed program was:" >&5
49993 sed 's/^/| /' conftest.$ac_ext >&5
49995 cat >conftest.$ac_ext <<_ACEOF
49998 cat confdefs.h >>conftest.$ac_ext
49999 cat >>conftest.$ac_ext <<_ACEOF
50000 /* end confdefs.h. */
50006 static struct statvfs ac_aggr;
50007 if (sizeof ac_aggr.f_fsid.__val)
50013 rm -f conftest.$ac_objext
50014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50015 (eval $ac_compile) 2>conftest.er1
50017 grep -v '^ *+' conftest.er1 >conftest.err
50019 cat conftest.err >&5
50020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50021 (exit $ac_status); } &&
50022 { ac_try='test -z "$ac_c_werror_flag"
50023 || test ! -s conftest.err'
50024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50025 (eval $ac_try) 2>&5
50027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50028 (exit $ac_status); }; } &&
50029 { ac_try='test -s conftest.$ac_objext'
50030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50031 (eval $ac_try) 2>&5
50033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50034 (exit $ac_status); }; }; then
50035 ac_cv_member_struct_statvfs_f_fsid___val=yes
50037 echo "$as_me: failed program was:" >&5
50038 sed 's/^/| /' conftest.$ac_ext >&5
50040 ac_cv_member_struct_statvfs_f_fsid___val=no
50042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
50047 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
50048 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
50050 cat >>confdefs.h <<_ACEOF
50051 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
50057 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
50058 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
50059 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
50060 echo $ECHO_N "(cached) $ECHO_C" >&6
50062 cat >conftest.$ac_ext <<_ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h. */
50073 static struct statfs ac_aggr;
50074 if (ac_aggr.f_namemax)
50080 rm -f conftest.$ac_objext
50081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50082 (eval $ac_compile) 2>conftest.er1
50084 grep -v '^ *+' conftest.er1 >conftest.err
50086 cat conftest.err >&5
50087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088 (exit $ac_status); } &&
50089 { ac_try='test -z "$ac_c_werror_flag"
50090 || test ! -s conftest.err'
50091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50092 (eval $ac_try) 2>&5
50094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095 (exit $ac_status); }; } &&
50096 { ac_try='test -s conftest.$ac_objext'
50097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50098 (eval $ac_try) 2>&5
50100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50101 (exit $ac_status); }; }; then
50102 ac_cv_member_struct_statfs_f_namemax=yes
50104 echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50107 cat >conftest.$ac_ext <<_ACEOF
50110 cat confdefs.h >>conftest.$ac_ext
50111 cat >>conftest.$ac_ext <<_ACEOF
50112 /* end confdefs.h. */
50118 static struct statfs ac_aggr;
50119 if (sizeof ac_aggr.f_namemax)
50125 rm -f conftest.$ac_objext
50126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50127 (eval $ac_compile) 2>conftest.er1
50129 grep -v '^ *+' conftest.er1 >conftest.err
50131 cat conftest.err >&5
50132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133 (exit $ac_status); } &&
50134 { ac_try='test -z "$ac_c_werror_flag"
50135 || test ! -s conftest.err'
50136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50137 (eval $ac_try) 2>&5
50139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50140 (exit $ac_status); }; } &&
50141 { ac_try='test -s conftest.$ac_objext'
50142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50143 (eval $ac_try) 2>&5
50145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50146 (exit $ac_status); }; }; then
50147 ac_cv_member_struct_statfs_f_namemax=yes
50149 echo "$as_me: failed program was:" >&5
50150 sed 's/^/| /' conftest.$ac_ext >&5
50152 ac_cv_member_struct_statfs_f_namemax=no
50154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
50159 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
50160 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
50162 cat >>confdefs.h <<_ACEOF
50163 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
50169 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
50170 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
50171 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
50172 echo $ECHO_N "(cached) $ECHO_C" >&6
50174 cat >conftest.$ac_ext <<_ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h. */
50185 static struct statvfs ac_aggr;
50186 if (ac_aggr.f_namemax)
50192 rm -f conftest.$ac_objext
50193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50194 (eval $ac_compile) 2>conftest.er1
50196 grep -v '^ *+' conftest.er1 >conftest.err
50198 cat conftest.err >&5
50199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50200 (exit $ac_status); } &&
50201 { ac_try='test -z "$ac_c_werror_flag"
50202 || test ! -s conftest.err'
50203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50204 (eval $ac_try) 2>&5
50206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50207 (exit $ac_status); }; } &&
50208 { ac_try='test -s conftest.$ac_objext'
50209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50210 (eval $ac_try) 2>&5
50212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213 (exit $ac_status); }; }; then
50214 ac_cv_member_struct_statvfs_f_namemax=yes
50216 echo "$as_me: failed program was:" >&5
50217 sed 's/^/| /' conftest.$ac_ext >&5
50219 cat >conftest.$ac_ext <<_ACEOF
50222 cat confdefs.h >>conftest.$ac_ext
50223 cat >>conftest.$ac_ext <<_ACEOF
50224 /* end confdefs.h. */
50230 static struct statvfs ac_aggr;
50231 if (sizeof ac_aggr.f_namemax)
50237 rm -f conftest.$ac_objext
50238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50239 (eval $ac_compile) 2>conftest.er1
50241 grep -v '^ *+' conftest.er1 >conftest.err
50243 cat conftest.err >&5
50244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50245 (exit $ac_status); } &&
50246 { ac_try='test -z "$ac_c_werror_flag"
50247 || test ! -s conftest.err'
50248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50249 (eval $ac_try) 2>&5
50251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252 (exit $ac_status); }; } &&
50253 { ac_try='test -s conftest.$ac_objext'
50254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50255 (eval $ac_try) 2>&5
50257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50258 (exit $ac_status); }; }; then
50259 ac_cv_member_struct_statvfs_f_namemax=yes
50261 echo "$as_me: failed program was:" >&5
50262 sed 's/^/| /' conftest.$ac_ext >&5
50264 ac_cv_member_struct_statvfs_f_namemax=no
50266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50270 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
50271 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
50272 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
50274 cat >>confdefs.h <<_ACEOF
50275 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
50281 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
50282 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
50283 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
50284 echo $ECHO_N "(cached) $ECHO_C" >&6
50286 cat >conftest.$ac_ext <<_ACEOF
50289 cat confdefs.h >>conftest.$ac_ext
50290 cat >>conftest.$ac_ext <<_ACEOF
50291 /* end confdefs.h. */
50297 static struct statfs ac_aggr;
50298 if (ac_aggr.f_namelen)
50304 rm -f conftest.$ac_objext
50305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50306 (eval $ac_compile) 2>conftest.er1
50308 grep -v '^ *+' conftest.er1 >conftest.err
50310 cat conftest.err >&5
50311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312 (exit $ac_status); } &&
50313 { ac_try='test -z "$ac_c_werror_flag"
50314 || test ! -s conftest.err'
50315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50316 (eval $ac_try) 2>&5
50318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50319 (exit $ac_status); }; } &&
50320 { ac_try='test -s conftest.$ac_objext'
50321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50322 (eval $ac_try) 2>&5
50324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325 (exit $ac_status); }; }; then
50326 ac_cv_member_struct_statfs_f_namelen=yes
50328 echo "$as_me: failed program was:" >&5
50329 sed 's/^/| /' conftest.$ac_ext >&5
50331 cat >conftest.$ac_ext <<_ACEOF
50334 cat confdefs.h >>conftest.$ac_ext
50335 cat >>conftest.$ac_ext <<_ACEOF
50336 /* end confdefs.h. */
50342 static struct statfs ac_aggr;
50343 if (sizeof ac_aggr.f_namelen)
50349 rm -f conftest.$ac_objext
50350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50351 (eval $ac_compile) 2>conftest.er1
50353 grep -v '^ *+' conftest.er1 >conftest.err
50355 cat conftest.err >&5
50356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50357 (exit $ac_status); } &&
50358 { ac_try='test -z "$ac_c_werror_flag"
50359 || test ! -s conftest.err'
50360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50361 (eval $ac_try) 2>&5
50363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50364 (exit $ac_status); }; } &&
50365 { ac_try='test -s conftest.$ac_objext'
50366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50367 (eval $ac_try) 2>&5
50369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50370 (exit $ac_status); }; }; then
50371 ac_cv_member_struct_statfs_f_namelen=yes
50373 echo "$as_me: failed program was:" >&5
50374 sed 's/^/| /' conftest.$ac_ext >&5
50376 ac_cv_member_struct_statfs_f_namelen=no
50378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
50383 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
50384 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
50386 cat >>confdefs.h <<_ACEOF
50387 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
50393 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
50394 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
50395 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
50396 echo $ECHO_N "(cached) $ECHO_C" >&6
50398 cat >conftest.$ac_ext <<_ACEOF
50401 cat confdefs.h >>conftest.$ac_ext
50402 cat >>conftest.$ac_ext <<_ACEOF
50403 /* end confdefs.h. */
50409 static struct statvfs ac_aggr;
50410 if (ac_aggr.f_namelen)
50416 rm -f conftest.$ac_objext
50417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50418 (eval $ac_compile) 2>conftest.er1
50420 grep -v '^ *+' conftest.er1 >conftest.err
50422 cat conftest.err >&5
50423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50424 (exit $ac_status); } &&
50425 { ac_try='test -z "$ac_c_werror_flag"
50426 || test ! -s conftest.err'
50427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50428 (eval $ac_try) 2>&5
50430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50431 (exit $ac_status); }; } &&
50432 { ac_try='test -s conftest.$ac_objext'
50433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50434 (eval $ac_try) 2>&5
50436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50437 (exit $ac_status); }; }; then
50438 ac_cv_member_struct_statvfs_f_namelen=yes
50440 echo "$as_me: failed program was:" >&5
50441 sed 's/^/| /' conftest.$ac_ext >&5
50443 cat >conftest.$ac_ext <<_ACEOF
50446 cat confdefs.h >>conftest.$ac_ext
50447 cat >>conftest.$ac_ext <<_ACEOF
50448 /* end confdefs.h. */
50454 static struct statvfs ac_aggr;
50455 if (sizeof ac_aggr.f_namelen)
50461 rm -f conftest.$ac_objext
50462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50463 (eval $ac_compile) 2>conftest.er1
50465 grep -v '^ *+' conftest.er1 >conftest.err
50467 cat conftest.err >&5
50468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50469 (exit $ac_status); } &&
50470 { ac_try='test -z "$ac_c_werror_flag"
50471 || test ! -s conftest.err'
50472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50473 (eval $ac_try) 2>&5
50475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50476 (exit $ac_status); }; } &&
50477 { ac_try='test -s conftest.$ac_objext'
50478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50479 (eval $ac_try) 2>&5
50481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50482 (exit $ac_status); }; }; then
50483 ac_cv_member_struct_statvfs_f_namelen=yes
50485 echo "$as_me: failed program was:" >&5
50486 sed 's/^/| /' conftest.$ac_ext >&5
50488 ac_cv_member_struct_statvfs_f_namelen=no
50490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50494 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
50495 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
50496 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
50498 cat >>confdefs.h <<_ACEOF
50499 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
50507 echo "$as_me:$LINENO: checking for working readdir" >&5
50508 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
50509 if test "${gl_cv_func_working_readdir+set}" = set; then
50510 echo $ECHO_N "(cached) $ECHO_C" >&6
50512 # Arrange for deletion of the temporary directory this test creates, in
50513 # case the test itself fails to delete everything -- as happens on Sunos.
50514 ac_clean_files="$ac_clean_files conf-dir"
50516 if test "$cross_compiling" = yes; then
50517 gl_cv_func_working_readdir=no
50519 cat >conftest.$ac_ext <<_ACEOF
50522 cat confdefs.h >>conftest.$ac_ext
50523 cat >>conftest.$ac_ext <<_ACEOF
50524 /* end confdefs.h. */
50525 # include <stdio.h>
50526 # include <sys/types.h>
50527 # include <string.h>
50529 # ifdef HAVE_DIRENT_H
50530 # include <dirent.h>
50531 # define NLENGTH(direct) (strlen((direct)->d_name))
50532 # else /* not HAVE_DIRENT_H */
50533 # define dirent direct
50534 # define NLENGTH(direct) ((direct)->d_namlen)
50535 # ifdef HAVE_SYS_NDIR_H
50536 # include <sys/ndir.h>
50537 # endif /* HAVE_SYS_NDIR_H */
50538 # ifdef HAVE_SYS_DIR_H
50539 # include <sys/dir.h>
50540 # endif /* HAVE_SYS_DIR_H */
50541 # ifdef HAVE_NDIR_H
50543 # endif /* HAVE_NDIR_H */
50544 # endif /* HAVE_DIRENT_H */
50546 # define DOT_OR_DOTDOT(Basename) \
50547 (Basename[0] == '.' && (Basename[1] == '\0' \
50548 || (Basename[1] == '.' && Basename[2] == '\0')))
50550 /* Don't try to use replacement mkdir; it wouldn't resolve at link time. */
50554 create_N_file_dir (const char *dir, size_t n_files)
50558 if (mkdir (dir, 0700))
50563 for (i = 0; i < n_files; i++)
50568 sprintf (file_name, "%03d", i);
50569 out = fopen (file_name, "w");
50572 if (fclose (out) == EOF)
50581 remove_dir (const char *dir)
50588 dirp = opendir (".");
50594 struct dirent *dp = readdir (dirp);
50598 if (DOT_OR_DOTDOT (dp->d_name))
50601 if (unlink (dp->d_name))
50616 const char *dir = "conf-dir";
50617 create_N_file_dir (dir, 500);
50622 rm -f conftest$ac_exeext
50623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50624 (eval $ac_link) 2>&5
50626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50629 (eval $ac_try) 2>&5
50631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50632 (exit $ac_status); }; }; then
50633 gl_cv_func_working_readdir=yes
50635 echo "$as_me: program exited with status $ac_status" >&5
50636 echo "$as_me: failed program was:" >&5
50637 sed 's/^/| /' conftest.$ac_ext >&5
50639 ( exit $ac_status )
50640 gl_cv_func_working_readdir=no
50642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50645 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
50646 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
50648 if test $gl_cv_func_working_readdir = yes; then
50650 cat >>confdefs.h <<\_ACEOF
50651 #define HAVE_WORKING_READDIR 1
50657 if test "X$prefix" = "XNONE"; then
50658 acl_final_prefix="$ac_default_prefix"
50660 acl_final_prefix="$prefix"
50662 if test "X$exec_prefix" = "XNONE"; then
50663 acl_final_exec_prefix='${prefix}'
50665 acl_final_exec_prefix="$exec_prefix"
50667 acl_save_prefix="$prefix"
50668 prefix="$acl_final_prefix"
50669 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
50670 prefix="$acl_save_prefix"
50673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
50674 if test "${with_gnu_ld+set}" = set; then
50675 withval="$with_gnu_ld"
50676 test "$withval" = no || with_gnu_ld=yes
50680 # Prepare PATH_SEPARATOR.
50681 # The user is always right.
50682 if test "${PATH_SEPARATOR+set}" != set; then
50683 echo "#! /bin/sh" >conf$$.sh
50684 echo "exit 0" >>conf$$.sh
50686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50694 if test "$GCC" = yes; then
50695 # Check if gcc -print-prog-name=ld gives a path.
50696 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
50697 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
50700 # gcc leaves a trailing carriage return which upsets mingw
50701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50706 # Accept absolute paths.
50707 [\\/]* | [A-Za-z]:[\\/]*)
50708 re_direlt='/[^/][^/]*/\.\./'
50709 # Canonicalize the path of ld
50710 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
50711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
50712 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
50714 test -z "$LD" && LD="$ac_prog"
50717 # If it fails, then pretend we aren't using GCC.
50721 # If it is relative, then search for the first ld in PATH.
50722 with_gnu_ld=unknown
50725 elif test "$with_gnu_ld" = yes; then
50726 echo "$as_me:$LINENO: checking for GNU ld" >&5
50727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
50729 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
50730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
50732 if test "${acl_cv_path_LD+set}" = set; then
50733 echo $ECHO_N "(cached) $ECHO_C" >&6
50735 if test -z "$LD"; then
50736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
50737 for ac_dir in $PATH; do
50738 test -z "$ac_dir" && ac_dir=.
50739 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
50740 acl_cv_path_LD="$ac_dir/$ac_prog"
50741 # Check to see if the program is GNU ld. I'd rather use --version,
50742 # but apparently some GNU ld's only accept -v.
50743 # Break only if it was the GNU/non-GNU ld that we prefer.
50744 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
50745 *GNU* | *'with BFD'*)
50746 test "$with_gnu_ld" != no && break ;;
50748 test "$with_gnu_ld" != yes && break ;;
50754 acl_cv_path_LD="$LD" # Let the user override the test with a path.
50758 LD="$acl_cv_path_LD"
50759 if test -n "$LD"; then
50760 echo "$as_me:$LINENO: result: $LD" >&5
50761 echo "${ECHO_T}$LD" >&6
50763 echo "$as_me:$LINENO: result: no" >&5
50764 echo "${ECHO_T}no" >&6
50766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
50767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
50768 { (exit 1); exit 1; }; }
50769 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
50770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
50771 if test "${acl_cv_prog_gnu_ld+set}" = set; then
50772 echo $ECHO_N "(cached) $ECHO_C" >&6
50774 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
50775 case `$LD -v 2>&1 </dev/null` in
50776 *GNU* | *'with BFD'*)
50777 acl_cv_prog_gnu_ld=yes ;;
50779 acl_cv_prog_gnu_ld=no ;;
50782 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
50783 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
50784 with_gnu_ld=$acl_cv_prog_gnu_ld
50788 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
50789 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
50790 if test "${acl_cv_rpath+set}" = set; then
50791 echo $ECHO_N "(cached) $ECHO_C" >&6
50794 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
50795 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
50797 rm -f ./conftest.sh
50801 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
50802 echo "${ECHO_T}$acl_cv_rpath" >&6
50804 libext="$acl_cv_libext"
50805 shlibext="$acl_cv_shlibext"
50806 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
50807 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
50808 hardcode_direct="$acl_cv_hardcode_direct"
50809 hardcode_minus_L="$acl_cv_hardcode_minus_L"
50810 # Check whether --enable-rpath or --disable-rpath was given.
50811 if test "${enable_rpath+set}" = set; then
50812 enableval="$enable_rpath"
50826 acl_save_prefix="$prefix"
50827 prefix="$acl_final_prefix"
50828 acl_save_exec_prefix="$exec_prefix"
50829 exec_prefix="$acl_final_exec_prefix"
50831 eval additional_includedir=\"$includedir\"
50832 eval additional_libdir=\"$libdir\"
50834 exec_prefix="$acl_save_exec_prefix"
50835 prefix="$acl_save_prefix"
50838 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
50839 if test "${with_libiconv_prefix+set}" = set; then
50840 withval="$with_libiconv_prefix"
50842 if test "X$withval" = "Xno"; then
50845 if test "X$withval" = "X"; then
50847 acl_save_prefix="$prefix"
50848 prefix="$acl_final_prefix"
50849 acl_save_exec_prefix="$exec_prefix"
50850 exec_prefix="$acl_final_exec_prefix"
50852 eval additional_includedir=\"$includedir\"
50853 eval additional_libdir=\"$libdir\"
50855 exec_prefix="$acl_save_exec_prefix"
50856 prefix="$acl_save_prefix"
50859 additional_includedir="$withval/include"
50860 additional_libdir="$withval/lib"
50870 names_already_handled=
50871 names_next_round='iconv '
50872 while test -n "$names_next_round"; do
50873 names_this_round="$names_next_round"
50875 for name in $names_this_round; do
50877 for n in $names_already_handled; do
50878 if test "$n" = "$name"; then
50879 already_handled=yes
50883 if test -z "$already_handled"; then
50884 names_already_handled="$names_already_handled $name"
50885 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50886 eval value=\"\$HAVE_LIB$uppername\"
50887 if test -n "$value"; then
50888 if test "$value" = yes; then
50889 eval value=\"\$LIB$uppername\"
50890 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
50891 eval value=\"\$LTLIB$uppername\"
50892 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
50901 if test $use_additional = yes; then
50902 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50903 found_dir="$additional_libdir"
50904 found_so="$additional_libdir/lib$name.$shlibext"
50905 if test -f "$additional_libdir/lib$name.la"; then
50906 found_la="$additional_libdir/lib$name.la"
50909 if test -f "$additional_libdir/lib$name.$libext"; then
50910 found_dir="$additional_libdir"
50911 found_a="$additional_libdir/lib$name.$libext"
50912 if test -f "$additional_libdir/lib$name.la"; then
50913 found_la="$additional_libdir/lib$name.la"
50918 if test "X$found_dir" = "X"; then
50919 for x in $LDFLAGS $LTLIBICONV; do
50921 acl_save_prefix="$prefix"
50922 prefix="$acl_final_prefix"
50923 acl_save_exec_prefix="$exec_prefix"
50924 exec_prefix="$acl_final_exec_prefix"
50926 exec_prefix="$acl_save_exec_prefix"
50927 prefix="$acl_save_prefix"
50931 dir=`echo "X$x" | sed -e 's/^X-L//'`
50932 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50934 found_so="$dir/lib$name.$shlibext"
50935 if test -f "$dir/lib$name.la"; then
50936 found_la="$dir/lib$name.la"
50939 if test -f "$dir/lib$name.$libext"; then
50941 found_a="$dir/lib$name.$libext"
50942 if test -f "$dir/lib$name.la"; then
50943 found_la="$dir/lib$name.la"
50949 if test "X$found_dir" != "X"; then
50954 if test "X$found_dir" != "X"; then
50955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
50956 if test "X$found_so" != "X"; then
50957 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
50958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50961 for x in $ltrpathdirs; do
50962 if test "X$x" = "X$found_dir"; then
50967 if test -z "$haveit"; then
50968 ltrpathdirs="$ltrpathdirs $found_dir"
50970 if test "$hardcode_direct" = yes; then
50971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50973 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50976 for x in $rpathdirs; do
50977 if test "X$x" = "X$found_dir"; then
50982 if test -z "$haveit"; then
50983 rpathdirs="$rpathdirs $found_dir"
50987 for x in $LDFLAGS $LIBICONV; do
50989 acl_save_prefix="$prefix"
50990 prefix="$acl_final_prefix"
50991 acl_save_exec_prefix="$exec_prefix"
50992 exec_prefix="$acl_final_exec_prefix"
50994 exec_prefix="$acl_save_exec_prefix"
50995 prefix="$acl_save_prefix"
50997 if test "X$x" = "X-L$found_dir"; then
51002 if test -z "$haveit"; then
51003 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
51005 if test "$hardcode_minus_L" != no; then
51006 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51008 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
51014 if test "X$found_a" != "X"; then
51015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
51017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
51020 additional_includedir=
51021 case "$found_dir" in
51023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
51024 additional_includedir="$basedir/include"
51027 if test "X$additional_includedir" != "X"; then
51028 if test "X$additional_includedir" != "X/usr/include"; then
51030 if test "X$additional_includedir" = "X/usr/local/include"; then
51031 if test -n "$GCC"; then
51033 linux*) haveit=yes;;
51037 if test -z "$haveit"; then
51038 for x in $CPPFLAGS $INCICONV; do
51040 acl_save_prefix="$prefix"
51041 prefix="$acl_final_prefix"
51042 acl_save_exec_prefix="$exec_prefix"
51043 exec_prefix="$acl_final_exec_prefix"
51045 exec_prefix="$acl_save_exec_prefix"
51046 prefix="$acl_save_prefix"
51048 if test "X$x" = "X-I$additional_includedir"; then
51053 if test -z "$haveit"; then
51054 if test -d "$additional_includedir"; then
51055 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
51061 if test -n "$found_la"; then
51062 save_libdir="$libdir"
51063 case "$found_la" in
51064 */* | *\\*) . "$found_la" ;;
51065 *) . "./$found_la" ;;
51067 libdir="$save_libdir"
51068 for dep in $dependency_libs; do
51071 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
51072 if test "X$additional_libdir" != "X/usr/lib"; then
51074 if test "X$additional_libdir" = "X/usr/local/lib"; then
51075 if test -n "$GCC"; then
51077 linux*) haveit=yes;;
51081 if test -z "$haveit"; then
51083 for x in $LDFLAGS $LIBICONV; do
51085 acl_save_prefix="$prefix"
51086 prefix="$acl_final_prefix"
51087 acl_save_exec_prefix="$exec_prefix"
51088 exec_prefix="$acl_final_exec_prefix"
51090 exec_prefix="$acl_save_exec_prefix"
51091 prefix="$acl_save_prefix"
51093 if test "X$x" = "X-L$additional_libdir"; then
51098 if test -z "$haveit"; then
51099 if test -d "$additional_libdir"; then
51100 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
51104 for x in $LDFLAGS $LTLIBICONV; do
51106 acl_save_prefix="$prefix"
51107 prefix="$acl_final_prefix"
51108 acl_save_exec_prefix="$exec_prefix"
51109 exec_prefix="$acl_final_exec_prefix"
51111 exec_prefix="$acl_save_exec_prefix"
51112 prefix="$acl_save_prefix"
51114 if test "X$x" = "X-L$additional_libdir"; then
51119 if test -z "$haveit"; then
51120 if test -d "$additional_libdir"; then
51121 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
51128 dir=`echo "X$dep" | sed -e 's/^X-R//'`
51129 if test "$enable_rpath" != no; then
51131 for x in $rpathdirs; do
51132 if test "X$x" = "X$dir"; then
51137 if test -z "$haveit"; then
51138 rpathdirs="$rpathdirs $dir"
51141 for x in $ltrpathdirs; do
51142 if test "X$x" = "X$dir"; then
51147 if test -z "$haveit"; then
51148 ltrpathdirs="$ltrpathdirs $dir"
51153 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
51156 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
51159 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
51160 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
51166 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
51167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
51173 if test "X$rpathdirs" != "X"; then
51174 if test -n "$hardcode_libdir_separator"; then
51176 for found_dir in $rpathdirs; do
51177 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
51179 acl_save_libdir="$libdir"
51181 eval flag=\"$hardcode_libdir_flag_spec\"
51182 libdir="$acl_save_libdir"
51183 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
51185 for found_dir in $rpathdirs; do
51186 acl_save_libdir="$libdir"
51187 libdir="$found_dir"
51188 eval flag=\"$hardcode_libdir_flag_spec\"
51189 libdir="$acl_save_libdir"
51190 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
51194 if test "X$ltrpathdirs" != "X"; then
51195 for found_dir in $ltrpathdirs; do
51196 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
51206 for ac_header in string.h sys/param.h stddef.h
51208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51210 echo "$as_me:$LINENO: checking for $ac_header" >&5
51211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51213 echo $ECHO_N "(cached) $ECHO_C" >&6
51215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51218 # Is the header compilable?
51219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51221 cat >conftest.$ac_ext <<_ACEOF
51224 cat confdefs.h >>conftest.$ac_ext
51225 cat >>conftest.$ac_ext <<_ACEOF
51226 /* end confdefs.h. */
51227 $ac_includes_default
51228 #include <$ac_header>
51230 rm -f conftest.$ac_objext
51231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51232 (eval $ac_compile) 2>conftest.er1
51234 grep -v '^ *+' conftest.er1 >conftest.err
51236 cat conftest.err >&5
51237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51238 (exit $ac_status); } &&
51239 { ac_try='test -z "$ac_c_werror_flag"
51240 || test ! -s conftest.err'
51241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51242 (eval $ac_try) 2>&5
51244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51245 (exit $ac_status); }; } &&
51246 { ac_try='test -s conftest.$ac_objext'
51247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51248 (eval $ac_try) 2>&5
51250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51251 (exit $ac_status); }; }; then
51252 ac_header_compiler=yes
51254 echo "$as_me: failed program was:" >&5
51255 sed 's/^/| /' conftest.$ac_ext >&5
51257 ac_header_compiler=no
51259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51261 echo "${ECHO_T}$ac_header_compiler" >&6
51263 # Is the header present?
51264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51266 cat >conftest.$ac_ext <<_ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h. */
51272 #include <$ac_header>
51274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51277 grep -v '^ *+' conftest.er1 >conftest.err
51279 cat conftest.err >&5
51280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51281 (exit $ac_status); } >/dev/null; then
51282 if test -s conftest.err; then
51283 ac_cpp_err=$ac_c_preproc_warn_flag
51284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51291 if test -z "$ac_cpp_err"; then
51292 ac_header_preproc=yes
51294 echo "$as_me: failed program was:" >&5
51295 sed 's/^/| /' conftest.$ac_ext >&5
51297 ac_header_preproc=no
51299 rm -f conftest.err conftest.$ac_ext
51300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51301 echo "${ECHO_T}$ac_header_preproc" >&6
51303 # So? What about this header?
51304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51310 ac_header_preproc=yes
51313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51327 ## ------------------------------------ ##
51328 ## Report this to bug-coreutils@gnu.org ##
51329 ## ------------------------------------ ##
51332 sed "s/^/$as_me: WARNING: /" >&2
51335 echo "$as_me:$LINENO: checking for $ac_header" >&5
51336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51338 echo $ECHO_N "(cached) $ECHO_C" >&6
51340 eval "$as_ac_Header=\$ac_header_preproc"
51342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51347 cat >>confdefs.h <<_ACEOF
51348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51357 for ac_func in resolvepath canonicalize_file_name
51359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51360 echo "$as_me:$LINENO: checking for $ac_func" >&5
51361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51362 if eval "test \"\${$as_ac_var+set}\" = set"; then
51363 echo $ECHO_N "(cached) $ECHO_C" >&6
51365 cat >conftest.$ac_ext <<_ACEOF
51368 cat confdefs.h >>conftest.$ac_ext
51369 cat >>conftest.$ac_ext <<_ACEOF
51370 /* end confdefs.h. */
51371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51373 #define $ac_func innocuous_$ac_func
51375 /* System header to define __stub macros and hopefully few prototypes,
51376 which can conflict with char $ac_func (); below.
51377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51378 <limits.h> exists even on freestanding compilers. */
51381 # include <limits.h>
51383 # include <assert.h>
51388 /* Override any gcc2 internal prototype to avoid an error. */
51393 /* We use char because int might match the return type of a gcc2
51394 builtin and then its argument prototype would still apply. */
51396 /* The GNU C library defines this for functions which it implements
51397 to always fail with ENOSYS. Some functions are actually named
51398 something starting with __ and the normal name is an alias. */
51399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51402 char (*f) () = $ac_func;
51411 return f != $ac_func;
51416 rm -f conftest.$ac_objext conftest$ac_exeext
51417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51418 (eval $ac_link) 2>conftest.er1
51420 grep -v '^ *+' conftest.er1 >conftest.err
51422 cat conftest.err >&5
51423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51424 (exit $ac_status); } &&
51425 { ac_try='test -z "$ac_c_werror_flag"
51426 || test ! -s conftest.err'
51427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51428 (eval $ac_try) 2>&5
51430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51431 (exit $ac_status); }; } &&
51432 { ac_try='test -s conftest$ac_exeext'
51433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51434 (eval $ac_try) 2>&5
51436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51437 (exit $ac_status); }; }; then
51438 eval "$as_ac_var=yes"
51440 echo "$as_me: failed program was:" >&5
51441 sed 's/^/| /' conftest.$ac_ext >&5
51443 eval "$as_ac_var=no"
51445 rm -f conftest.err conftest.$ac_objext \
51446 conftest$ac_exeext conftest.$ac_ext
51448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51450 if test `eval echo '${'$as_ac_var'}'` = yes; then
51451 cat >>confdefs.h <<_ACEOF
51452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51462 echo "$as_me:$LINENO: checking whether this system has a definition of PATH_MAX" >&5
51463 echo $ECHO_N "checking whether this system has a definition of PATH_MAX... $ECHO_C" >&6
51464 if test "${gl_have_path_max_definition+set}" = set; then
51465 echo $ECHO_N "(cached) $ECHO_C" >&6
51467 cat >conftest.$ac_ext <<_ACEOF
51470 cat confdefs.h >>conftest.$ac_ext
51471 cat >>conftest.$ac_ext <<_ACEOF
51472 /* end confdefs.h. */
51473 #include <unistd.h>
51474 #include <limits.h>
51476 have_path_max_definition
51479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51480 $EGREP "have_path_max_definition" >/dev/null 2>&1; then
51481 gl_have_path_max_definition=yes
51483 gl_have_path_max_definition=no
51488 echo "$as_me:$LINENO: result: $gl_have_path_max_definition" >&5
51489 echo "${ECHO_T}$gl_have_path_max_definition" >&6
51491 if test $gl_have_path_max_definition; then
51493 "chdir-long.$ac_objext" | \
51494 *" chdir-long.$ac_objext" | \
51495 "chdir-long.$ac_objext "* | \
51496 *" chdir-long.$ac_objext "* ) ;;
51497 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext" ;;
51504 # Define two additional variables used in the Makefile substitution.
51506 if test "$ac_cv_header_stdbool_h" = yes; then
51509 STDBOOL_H='stdbool.h'
51513 if test "$ac_cv_type__Bool" = yes; then
51526 for ac_func in mempcpy
51528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51529 echo "$as_me:$LINENO: checking for $ac_func" >&5
51530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51531 if eval "test \"\${$as_ac_var+set}\" = set"; then
51532 echo $ECHO_N "(cached) $ECHO_C" >&6
51534 cat >conftest.$ac_ext <<_ACEOF
51537 cat confdefs.h >>conftest.$ac_ext
51538 cat >>conftest.$ac_ext <<_ACEOF
51539 /* end confdefs.h. */
51540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51542 #define $ac_func innocuous_$ac_func
51544 /* System header to define __stub macros and hopefully few prototypes,
51545 which can conflict with char $ac_func (); below.
51546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51547 <limits.h> exists even on freestanding compilers. */
51550 # include <limits.h>
51552 # include <assert.h>
51557 /* Override any gcc2 internal prototype to avoid an error. */
51562 /* We use char because int might match the return type of a gcc2
51563 builtin and then its argument prototype would still apply. */
51565 /* The GNU C library defines this for functions which it implements
51566 to always fail with ENOSYS. Some functions are actually named
51567 something starting with __ and the normal name is an alias. */
51568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51571 char (*f) () = $ac_func;
51580 return f != $ac_func;
51585 rm -f conftest.$ac_objext conftest$ac_exeext
51586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51587 (eval $ac_link) 2>conftest.er1
51589 grep -v '^ *+' conftest.er1 >conftest.err
51591 cat conftest.err >&5
51592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51593 (exit $ac_status); } &&
51594 { ac_try='test -z "$ac_c_werror_flag"
51595 || test ! -s conftest.err'
51596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51597 (eval $ac_try) 2>&5
51599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51600 (exit $ac_status); }; } &&
51601 { ac_try='test -s conftest$ac_exeext'
51602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51603 (eval $ac_try) 2>&5
51605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51606 (exit $ac_status); }; }; then
51607 eval "$as_ac_var=yes"
51609 echo "$as_me: failed program was:" >&5
51610 sed 's/^/| /' conftest.$ac_ext >&5
51612 eval "$as_ac_var=no"
51614 rm -f conftest.err conftest.$ac_objext \
51615 conftest$ac_exeext conftest.$ac_ext
51617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51619 if test `eval echo '${'$as_ac_var'}'` = yes; then
51620 cat >>confdefs.h <<_ACEOF
51621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51626 "$ac_func.$ac_objext" | \
51627 *" $ac_func.$ac_objext" | \
51628 "$ac_func.$ac_objext "* | \
51629 *" $ac_func.$ac_objext "* ) ;;
51630 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51637 if test $ac_cv_func_mempcpy = no; then
51647 for ac_func in openat
51649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51650 echo "$as_me:$LINENO: checking for $ac_func" >&5
51651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51652 if eval "test \"\${$as_ac_var+set}\" = set"; then
51653 echo $ECHO_N "(cached) $ECHO_C" >&6
51655 cat >conftest.$ac_ext <<_ACEOF
51658 cat confdefs.h >>conftest.$ac_ext
51659 cat >>conftest.$ac_ext <<_ACEOF
51660 /* end confdefs.h. */
51661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51663 #define $ac_func innocuous_$ac_func
51665 /* System header to define __stub macros and hopefully few prototypes,
51666 which can conflict with char $ac_func (); below.
51667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51668 <limits.h> exists even on freestanding compilers. */
51671 # include <limits.h>
51673 # include <assert.h>
51678 /* Override any gcc2 internal prototype to avoid an error. */
51683 /* We use char because int might match the return type of a gcc2
51684 builtin and then its argument prototype would still apply. */
51686 /* The GNU C library defines this for functions which it implements
51687 to always fail with ENOSYS. Some functions are actually named
51688 something starting with __ and the normal name is an alias. */
51689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51692 char (*f) () = $ac_func;
51701 return f != $ac_func;
51706 rm -f conftest.$ac_objext conftest$ac_exeext
51707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51708 (eval $ac_link) 2>conftest.er1
51710 grep -v '^ *+' conftest.er1 >conftest.err
51712 cat conftest.err >&5
51713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51714 (exit $ac_status); } &&
51715 { ac_try='test -z "$ac_c_werror_flag"
51716 || test ! -s conftest.err'
51717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51718 (eval $ac_try) 2>&5
51720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51721 (exit $ac_status); }; } &&
51722 { ac_try='test -s conftest$ac_exeext'
51723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51724 (eval $ac_try) 2>&5
51726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51727 (exit $ac_status); }; }; then
51728 eval "$as_ac_var=yes"
51730 echo "$as_me: failed program was:" >&5
51731 sed 's/^/| /' conftest.$ac_ext >&5
51733 eval "$as_ac_var=no"
51735 rm -f conftest.err conftest.$ac_objext \
51736 conftest$ac_exeext conftest.$ac_ext
51738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51740 if test `eval echo '${'$as_ac_var'}'` = yes; then
51741 cat >>confdefs.h <<_ACEOF
51742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51747 "$ac_func.$ac_objext" | \
51748 *" $ac_func.$ac_objext" | \
51749 "$ac_func.$ac_objext "* | \
51750 *" $ac_func.$ac_objext "* ) ;;
51751 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51758 case $ac_cv_func_openat in
51762 cat >>confdefs.h <<\_ACEOF
51763 #define __OPENAT_PREFIX rpl_
51777 GNU_PACKAGE="GNU $PACKAGE"
51779 cat >>confdefs.h <<_ACEOF
51780 #define GNU_PACKAGE "$GNU_PACKAGE"
51786 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
51807 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
51808 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
51809 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
51810 echo $ECHO_N "(cached) $ECHO_C" >&6
51812 cat >conftest.$ac_ext <<_ACEOF
51815 cat confdefs.h >>conftest.$ac_ext
51816 cat >>conftest.$ac_ext <<_ACEOF
51817 /* end confdefs.h. */
51818 $ac_includes_default
51819 #include <sys/stat.h>
51825 static struct stat ac_aggr;
51826 if (ac_aggr.st_author)
51832 rm -f conftest.$ac_objext
51833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51834 (eval $ac_compile) 2>conftest.er1
51836 grep -v '^ *+' conftest.er1 >conftest.err
51838 cat conftest.err >&5
51839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840 (exit $ac_status); } &&
51841 { ac_try='test -z "$ac_c_werror_flag"
51842 || test ! -s conftest.err'
51843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51844 (eval $ac_try) 2>&5
51846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51847 (exit $ac_status); }; } &&
51848 { ac_try='test -s conftest.$ac_objext'
51849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51850 (eval $ac_try) 2>&5
51852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51853 (exit $ac_status); }; }; then
51854 ac_cv_member_struct_stat_st_author=yes
51856 echo "$as_me: failed program was:" >&5
51857 sed 's/^/| /' conftest.$ac_ext >&5
51859 cat >conftest.$ac_ext <<_ACEOF
51862 cat confdefs.h >>conftest.$ac_ext
51863 cat >>conftest.$ac_ext <<_ACEOF
51864 /* end confdefs.h. */
51865 $ac_includes_default
51866 #include <sys/stat.h>
51872 static struct stat ac_aggr;
51873 if (sizeof ac_aggr.st_author)
51879 rm -f conftest.$ac_objext
51880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51881 (eval $ac_compile) 2>conftest.er1
51883 grep -v '^ *+' conftest.er1 >conftest.err
51885 cat conftest.err >&5
51886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51887 (exit $ac_status); } &&
51888 { ac_try='test -z "$ac_c_werror_flag"
51889 || test ! -s conftest.err'
51890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51891 (eval $ac_try) 2>&5
51893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51894 (exit $ac_status); }; } &&
51895 { ac_try='test -s conftest.$ac_objext'
51896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51897 (eval $ac_try) 2>&5
51899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51900 (exit $ac_status); }; }; then
51901 ac_cv_member_struct_stat_st_author=yes
51903 echo "$as_me: failed program was:" >&5
51904 sed 's/^/| /' conftest.$ac_ext >&5
51906 ac_cv_member_struct_stat_st_author=no
51908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
51913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
51914 if test $ac_cv_member_struct_stat_st_author = yes; then
51916 cat >>confdefs.h <<_ACEOF
51917 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
51922 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
51923 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
51924 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
51925 echo $ECHO_N "(cached) $ECHO_C" >&6
51927 cat >conftest.$ac_ext <<_ACEOF
51930 cat confdefs.h >>conftest.$ac_ext
51931 cat >>conftest.$ac_ext <<_ACEOF
51932 /* end confdefs.h. */
51933 $ac_includes_default
51934 #include <sys/stat.h>
51940 static struct stat ac_aggr;
51941 if (ac_aggr.st_blksize)
51947 rm -f conftest.$ac_objext
51948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51949 (eval $ac_compile) 2>conftest.er1
51951 grep -v '^ *+' conftest.er1 >conftest.err
51953 cat conftest.err >&5
51954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51955 (exit $ac_status); } &&
51956 { ac_try='test -z "$ac_c_werror_flag"
51957 || test ! -s conftest.err'
51958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51959 (eval $ac_try) 2>&5
51961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51962 (exit $ac_status); }; } &&
51963 { ac_try='test -s conftest.$ac_objext'
51964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51965 (eval $ac_try) 2>&5
51967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51968 (exit $ac_status); }; }; then
51969 ac_cv_member_struct_stat_st_blksize=yes
51971 echo "$as_me: failed program was:" >&5
51972 sed 's/^/| /' conftest.$ac_ext >&5
51974 cat >conftest.$ac_ext <<_ACEOF
51977 cat confdefs.h >>conftest.$ac_ext
51978 cat >>conftest.$ac_ext <<_ACEOF
51979 /* end confdefs.h. */
51980 $ac_includes_default
51981 #include <sys/stat.h>
51987 static struct stat ac_aggr;
51988 if (sizeof ac_aggr.st_blksize)
51994 rm -f conftest.$ac_objext
51995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51996 (eval $ac_compile) 2>conftest.er1
51998 grep -v '^ *+' conftest.er1 >conftest.err
52000 cat conftest.err >&5
52001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52002 (exit $ac_status); } &&
52003 { ac_try='test -z "$ac_c_werror_flag"
52004 || test ! -s conftest.err'
52005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52006 (eval $ac_try) 2>&5
52008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52009 (exit $ac_status); }; } &&
52010 { ac_try='test -s conftest.$ac_objext'
52011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52012 (eval $ac_try) 2>&5
52014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52015 (exit $ac_status); }; }; then
52016 ac_cv_member_struct_stat_st_blksize=yes
52018 echo "$as_me: failed program was:" >&5
52019 sed 's/^/| /' conftest.$ac_ext >&5
52021 ac_cv_member_struct_stat_st_blksize=no
52023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52027 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52028 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
52029 if test $ac_cv_member_struct_stat_st_blksize = yes; then
52031 cat >>confdefs.h <<_ACEOF
52032 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52052 echo "$as_me:$LINENO: checking for ino_t" >&5
52053 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
52054 if test "${ac_cv_type_ino_t+set}" = set; then
52055 echo $ECHO_N "(cached) $ECHO_C" >&6
52057 cat >conftest.$ac_ext <<_ACEOF
52060 cat confdefs.h >>conftest.$ac_ext
52061 cat >>conftest.$ac_ext <<_ACEOF
52062 /* end confdefs.h. */
52063 $ac_includes_default
52069 if (sizeof (ino_t))
52075 rm -f conftest.$ac_objext
52076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52077 (eval $ac_compile) 2>conftest.er1
52079 grep -v '^ *+' conftest.er1 >conftest.err
52081 cat conftest.err >&5
52082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52083 (exit $ac_status); } &&
52084 { ac_try='test -z "$ac_c_werror_flag"
52085 || test ! -s conftest.err'
52086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52087 (eval $ac_try) 2>&5
52089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52090 (exit $ac_status); }; } &&
52091 { ac_try='test -s conftest.$ac_objext'
52092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52093 (eval $ac_try) 2>&5
52095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52096 (exit $ac_status); }; }; then
52097 ac_cv_type_ino_t=yes
52099 echo "$as_me: failed program was:" >&5
52100 sed 's/^/| /' conftest.$ac_ext >&5
52102 ac_cv_type_ino_t=no
52104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52106 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
52107 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
52108 if test $ac_cv_type_ino_t = yes; then
52112 cat >>confdefs.h <<_ACEOF
52113 #define ino_t unsigned long int
52120 echo "$as_me:$LINENO: checking for ssize_t" >&5
52121 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
52122 if test "${gt_cv_ssize_t+set}" = set; then
52123 echo $ECHO_N "(cached) $ECHO_C" >&6
52125 cat >conftest.$ac_ext <<_ACEOF
52128 cat confdefs.h >>conftest.$ac_ext
52129 cat >>conftest.$ac_ext <<_ACEOF
52130 /* end confdefs.h. */
52131 #include <sys/types.h>
52135 int x = sizeof (ssize_t *) + sizeof (ssize_t);
52140 rm -f conftest.$ac_objext
52141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52142 (eval $ac_compile) 2>conftest.er1
52144 grep -v '^ *+' conftest.er1 >conftest.err
52146 cat conftest.err >&5
52147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52148 (exit $ac_status); } &&
52149 { ac_try='test -z "$ac_c_werror_flag"
52150 || test ! -s conftest.err'
52151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152 (eval $ac_try) 2>&5
52154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155 (exit $ac_status); }; } &&
52156 { ac_try='test -s conftest.$ac_objext'
52157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52158 (eval $ac_try) 2>&5
52160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52161 (exit $ac_status); }; }; then
52164 echo "$as_me: failed program was:" >&5
52165 sed 's/^/| /' conftest.$ac_ext >&5
52169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52171 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
52172 echo "${ECHO_T}$gt_cv_ssize_t" >&6
52173 if test $gt_cv_ssize_t = no; then
52175 cat >>confdefs.h <<\_ACEOF
52176 #define ssize_t int
52182 echo "$as_me:$LINENO: checking for major_t" >&5
52183 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
52184 if test "${ac_cv_type_major_t+set}" = set; then
52185 echo $ECHO_N "(cached) $ECHO_C" >&6
52187 cat >conftest.$ac_ext <<_ACEOF
52190 cat confdefs.h >>conftest.$ac_ext
52191 cat >>conftest.$ac_ext <<_ACEOF
52192 /* end confdefs.h. */
52193 $ac_includes_default
52199 if (sizeof (major_t))
52205 rm -f conftest.$ac_objext
52206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52207 (eval $ac_compile) 2>conftest.er1
52209 grep -v '^ *+' conftest.er1 >conftest.err
52211 cat conftest.err >&5
52212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52213 (exit $ac_status); } &&
52214 { ac_try='test -z "$ac_c_werror_flag"
52215 || test ! -s conftest.err'
52216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52217 (eval $ac_try) 2>&5
52219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52220 (exit $ac_status); }; } &&
52221 { ac_try='test -s conftest.$ac_objext'
52222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52223 (eval $ac_try) 2>&5
52225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52226 (exit $ac_status); }; }; then
52227 ac_cv_type_major_t=yes
52229 echo "$as_me: failed program was:" >&5
52230 sed 's/^/| /' conftest.$ac_ext >&5
52232 ac_cv_type_major_t=no
52234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52236 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
52237 echo "${ECHO_T}$ac_cv_type_major_t" >&6
52238 if test $ac_cv_type_major_t = yes; then
52242 cat >>confdefs.h <<_ACEOF
52243 #define major_t unsigned int
52248 echo "$as_me:$LINENO: checking for minor_t" >&5
52249 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
52250 if test "${ac_cv_type_minor_t+set}" = set; then
52251 echo $ECHO_N "(cached) $ECHO_C" >&6
52253 cat >conftest.$ac_ext <<_ACEOF
52256 cat confdefs.h >>conftest.$ac_ext
52257 cat >>conftest.$ac_ext <<_ACEOF
52258 /* end confdefs.h. */
52259 $ac_includes_default
52265 if (sizeof (minor_t))
52271 rm -f conftest.$ac_objext
52272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52273 (eval $ac_compile) 2>conftest.er1
52275 grep -v '^ *+' conftest.er1 >conftest.err
52277 cat conftest.err >&5
52278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52279 (exit $ac_status); } &&
52280 { ac_try='test -z "$ac_c_werror_flag"
52281 || test ! -s conftest.err'
52282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52283 (eval $ac_try) 2>&5
52285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52286 (exit $ac_status); }; } &&
52287 { ac_try='test -s conftest.$ac_objext'
52288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52289 (eval $ac_try) 2>&5
52291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52292 (exit $ac_status); }; }; then
52293 ac_cv_type_minor_t=yes
52295 echo "$as_me: failed program was:" >&5
52296 sed 's/^/| /' conftest.$ac_ext >&5
52298 ac_cv_type_minor_t=no
52300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52302 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
52303 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
52304 if test $ac_cv_type_minor_t = yes; then
52308 cat >>confdefs.h <<_ACEOF
52309 #define minor_t unsigned int
52346 # This is for od and stat, and any other program that
52347 # uses the PRI.MAX macros from inttypes.h.
52357 ac_have_func=no # yes means we've found a way to get the load average.
52359 # Make sure getloadavg.c is where it belongs, at configure-time.
52360 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
52361 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
52362 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
52363 { (exit 1); exit 1; }; }
52367 # Check for getloadavg, but be sure not to touch the cache variable.
52368 (echo "$as_me:$LINENO: checking for getloadavg" >&5
52369 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
52370 if test "${ac_cv_func_getloadavg+set}" = set; then
52371 echo $ECHO_N "(cached) $ECHO_C" >&6
52373 cat >conftest.$ac_ext <<_ACEOF
52376 cat confdefs.h >>conftest.$ac_ext
52377 cat >>conftest.$ac_ext <<_ACEOF
52378 /* end confdefs.h. */
52379 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
52380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52381 #define getloadavg innocuous_getloadavg
52383 /* System header to define __stub macros and hopefully few prototypes,
52384 which can conflict with char getloadavg (); below.
52385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52386 <limits.h> exists even on freestanding compilers. */
52389 # include <limits.h>
52391 # include <assert.h>
52396 /* Override any gcc2 internal prototype to avoid an error. */
52401 /* We use char because int might match the return type of a gcc2
52402 builtin and then its argument prototype would still apply. */
52403 char getloadavg ();
52404 /* The GNU C library defines this for functions which it implements
52405 to always fail with ENOSYS. Some functions are actually named
52406 something starting with __ and the normal name is an alias. */
52407 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
52410 char (*f) () = getloadavg;
52419 return f != getloadavg;
52424 rm -f conftest.$ac_objext conftest$ac_exeext
52425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52426 (eval $ac_link) 2>conftest.er1
52428 grep -v '^ *+' conftest.er1 >conftest.err
52430 cat conftest.err >&5
52431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52432 (exit $ac_status); } &&
52433 { ac_try='test -z "$ac_c_werror_flag"
52434 || test ! -s conftest.err'
52435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52436 (eval $ac_try) 2>&5
52438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52439 (exit $ac_status); }; } &&
52440 { ac_try='test -s conftest$ac_exeext'
52441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52442 (eval $ac_try) 2>&5
52444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52445 (exit $ac_status); }; }; then
52446 ac_cv_func_getloadavg=yes
52448 echo "$as_me: failed program was:" >&5
52449 sed 's/^/| /' conftest.$ac_ext >&5
52451 ac_cv_func_getloadavg=no
52453 rm -f conftest.err conftest.$ac_objext \
52454 conftest$ac_exeext conftest.$ac_ext
52456 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
52457 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
52458 if test $ac_cv_func_getloadavg = yes; then
52463 ) && ac_have_func=yes
52465 # On HPUX9, an unprivileged user can get load averages through this function.
52467 for ac_func in pstat_getdynamic
52469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52470 echo "$as_me:$LINENO: checking for $ac_func" >&5
52471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52472 if eval "test \"\${$as_ac_var+set}\" = set"; then
52473 echo $ECHO_N "(cached) $ECHO_C" >&6
52475 cat >conftest.$ac_ext <<_ACEOF
52478 cat confdefs.h >>conftest.$ac_ext
52479 cat >>conftest.$ac_ext <<_ACEOF
52480 /* end confdefs.h. */
52481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52483 #define $ac_func innocuous_$ac_func
52485 /* System header to define __stub macros and hopefully few prototypes,
52486 which can conflict with char $ac_func (); below.
52487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52488 <limits.h> exists even on freestanding compilers. */
52491 # include <limits.h>
52493 # include <assert.h>
52498 /* Override any gcc2 internal prototype to avoid an error. */
52503 /* We use char because int might match the return type of a gcc2
52504 builtin and then its argument prototype would still apply. */
52506 /* The GNU C library defines this for functions which it implements
52507 to always fail with ENOSYS. Some functions are actually named
52508 something starting with __ and the normal name is an alias. */
52509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52512 char (*f) () = $ac_func;
52521 return f != $ac_func;
52526 rm -f conftest.$ac_objext conftest$ac_exeext
52527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52528 (eval $ac_link) 2>conftest.er1
52530 grep -v '^ *+' conftest.er1 >conftest.err
52532 cat conftest.err >&5
52533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52534 (exit $ac_status); } &&
52535 { ac_try='test -z "$ac_c_werror_flag"
52536 || test ! -s conftest.err'
52537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52538 (eval $ac_try) 2>&5
52540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52541 (exit $ac_status); }; } &&
52542 { ac_try='test -s conftest$ac_exeext'
52543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52544 (eval $ac_try) 2>&5
52546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52547 (exit $ac_status); }; }; then
52548 eval "$as_ac_var=yes"
52550 echo "$as_me: failed program was:" >&5
52551 sed 's/^/| /' conftest.$ac_ext >&5
52553 eval "$as_ac_var=no"
52555 rm -f conftest.err conftest.$ac_objext \
52556 conftest$ac_exeext conftest.$ac_ext
52558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52560 if test `eval echo '${'$as_ac_var'}'` = yes; then
52561 cat >>confdefs.h <<_ACEOF
52562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52569 # Solaris has libkstat which does not require root.
52571 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
52572 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
52573 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
52574 echo $ECHO_N "(cached) $ECHO_C" >&6
52576 ac_check_lib_save_LIBS=$LIBS
52577 LIBS="-lkstat $LIBS"
52578 cat >conftest.$ac_ext <<_ACEOF
52581 cat confdefs.h >>conftest.$ac_ext
52582 cat >>conftest.$ac_ext <<_ACEOF
52583 /* end confdefs.h. */
52585 /* Override any gcc2 internal prototype to avoid an error. */
52589 /* We use char because int might match the return type of a gcc2
52590 builtin and then its argument prototype would still apply. */
52591 char kstat_open ();
52600 rm -f conftest.$ac_objext conftest$ac_exeext
52601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52602 (eval $ac_link) 2>conftest.er1
52604 grep -v '^ *+' conftest.er1 >conftest.err
52606 cat conftest.err >&5
52607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52608 (exit $ac_status); } &&
52609 { ac_try='test -z "$ac_c_werror_flag"
52610 || test ! -s conftest.err'
52611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52612 (eval $ac_try) 2>&5
52614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615 (exit $ac_status); }; } &&
52616 { ac_try='test -s conftest$ac_exeext'
52617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52618 (eval $ac_try) 2>&5
52620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52621 (exit $ac_status); }; }; then
52622 ac_cv_lib_kstat_kstat_open=yes
52624 echo "$as_me: failed program was:" >&5
52625 sed 's/^/| /' conftest.$ac_ext >&5
52627 ac_cv_lib_kstat_kstat_open=no
52629 rm -f conftest.err conftest.$ac_objext \
52630 conftest$ac_exeext conftest.$ac_ext
52631 LIBS=$ac_check_lib_save_LIBS
52633 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
52634 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
52635 if test $ac_cv_lib_kstat_kstat_open = yes; then
52636 cat >>confdefs.h <<_ACEOF
52637 #define HAVE_LIBKSTAT 1
52640 LIBS="-lkstat $LIBS"
52644 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
52646 # Some systems with -lutil have (and need) -lkvm as well, some do not.
52647 # On Solaris, -lkvm requires nlist from -lelf, so check that first
52648 # to get the right answer into the cache.
52649 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
52650 if test $ac_have_func = no; then
52651 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
52652 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
52653 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
52654 echo $ECHO_N "(cached) $ECHO_C" >&6
52656 ac_check_lib_save_LIBS=$LIBS
52658 cat >conftest.$ac_ext <<_ACEOF
52661 cat confdefs.h >>conftest.$ac_ext
52662 cat >>conftest.$ac_ext <<_ACEOF
52663 /* end confdefs.h. */
52665 /* Override any gcc2 internal prototype to avoid an error. */
52669 /* We use char because int might match the return type of a gcc2
52670 builtin and then its argument prototype would still apply. */
52680 rm -f conftest.$ac_objext conftest$ac_exeext
52681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52682 (eval $ac_link) 2>conftest.er1
52684 grep -v '^ *+' conftest.er1 >conftest.err
52686 cat conftest.err >&5
52687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52688 (exit $ac_status); } &&
52689 { ac_try='test -z "$ac_c_werror_flag"
52690 || test ! -s conftest.err'
52691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52692 (eval $ac_try) 2>&5
52694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52695 (exit $ac_status); }; } &&
52696 { ac_try='test -s conftest$ac_exeext'
52697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52698 (eval $ac_try) 2>&5
52700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52701 (exit $ac_status); }; }; then
52702 ac_cv_lib_elf_elf_begin=yes
52704 echo "$as_me: failed program was:" >&5
52705 sed 's/^/| /' conftest.$ac_ext >&5
52707 ac_cv_lib_elf_elf_begin=no
52709 rm -f conftest.err conftest.$ac_objext \
52710 conftest$ac_exeext conftest.$ac_ext
52711 LIBS=$ac_check_lib_save_LIBS
52713 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
52714 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
52715 if test $ac_cv_lib_elf_elf_begin = yes; then
52720 if test $ac_have_func = no; then
52721 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
52722 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
52723 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
52724 echo $ECHO_N "(cached) $ECHO_C" >&6
52726 ac_check_lib_save_LIBS=$LIBS
52728 cat >conftest.$ac_ext <<_ACEOF
52731 cat confdefs.h >>conftest.$ac_ext
52732 cat >>conftest.$ac_ext <<_ACEOF
52733 /* end confdefs.h. */
52735 /* Override any gcc2 internal prototype to avoid an error. */
52739 /* We use char because int might match the return type of a gcc2
52740 builtin and then its argument prototype would still apply. */
52750 rm -f conftest.$ac_objext conftest$ac_exeext
52751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52752 (eval $ac_link) 2>conftest.er1
52754 grep -v '^ *+' conftest.er1 >conftest.err
52756 cat conftest.err >&5
52757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52758 (exit $ac_status); } &&
52759 { ac_try='test -z "$ac_c_werror_flag"
52760 || test ! -s conftest.err'
52761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52762 (eval $ac_try) 2>&5
52764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52765 (exit $ac_status); }; } &&
52766 { ac_try='test -s conftest$ac_exeext'
52767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52768 (eval $ac_try) 2>&5
52770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52771 (exit $ac_status); }; }; then
52772 ac_cv_lib_kvm_kvm_open=yes
52774 echo "$as_me: failed program was:" >&5
52775 sed 's/^/| /' conftest.$ac_ext >&5
52777 ac_cv_lib_kvm_kvm_open=no
52779 rm -f conftest.err conftest.$ac_objext \
52780 conftest$ac_exeext conftest.$ac_ext
52781 LIBS=$ac_check_lib_save_LIBS
52783 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
52784 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
52785 if test $ac_cv_lib_kvm_kvm_open = yes; then
52789 # Check for the 4.4BSD definition of getloadavg.
52790 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
52791 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
52792 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
52793 echo $ECHO_N "(cached) $ECHO_C" >&6
52795 ac_check_lib_save_LIBS=$LIBS
52796 LIBS="-lutil $LIBS"
52797 cat >conftest.$ac_ext <<_ACEOF
52800 cat confdefs.h >>conftest.$ac_ext
52801 cat >>conftest.$ac_ext <<_ACEOF
52802 /* end confdefs.h. */
52804 /* Override any gcc2 internal prototype to avoid an error. */
52808 /* We use char because int might match the return type of a gcc2
52809 builtin and then its argument prototype would still apply. */
52810 char getloadavg ();
52819 rm -f conftest.$ac_objext conftest$ac_exeext
52820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52821 (eval $ac_link) 2>conftest.er1
52823 grep -v '^ *+' conftest.er1 >conftest.err
52825 cat conftest.err >&5
52826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52827 (exit $ac_status); } &&
52828 { ac_try='test -z "$ac_c_werror_flag"
52829 || test ! -s conftest.err'
52830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52831 (eval $ac_try) 2>&5
52833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52834 (exit $ac_status); }; } &&
52835 { ac_try='test -s conftest$ac_exeext'
52836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52837 (eval $ac_try) 2>&5
52839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52840 (exit $ac_status); }; }; then
52841 ac_cv_lib_util_getloadavg=yes
52843 echo "$as_me: failed program was:" >&5
52844 sed 's/^/| /' conftest.$ac_ext >&5
52846 ac_cv_lib_util_getloadavg=no
52848 rm -f conftest.err conftest.$ac_objext \
52849 conftest$ac_exeext conftest.$ac_ext
52850 LIBS=$ac_check_lib_save_LIBS
52852 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
52853 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
52854 if test $ac_cv_lib_util_getloadavg = yes; then
52855 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
52860 if test $ac_have_func = no; then
52861 # There is a commonly available library for RS/6000 AIX.
52862 # Since it is not a standard part of AIX, it might be installed locally.
52863 ac_getloadavg_LIBS=$LIBS
52864 LIBS="-L/usr/local/lib $LIBS"
52865 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
52866 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
52867 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
52868 echo $ECHO_N "(cached) $ECHO_C" >&6
52870 ac_check_lib_save_LIBS=$LIBS
52871 LIBS="-lgetloadavg $LIBS"
52872 cat >conftest.$ac_ext <<_ACEOF
52875 cat confdefs.h >>conftest.$ac_ext
52876 cat >>conftest.$ac_ext <<_ACEOF
52877 /* end confdefs.h. */
52879 /* Override any gcc2 internal prototype to avoid an error. */
52883 /* We use char because int might match the return type of a gcc2
52884 builtin and then its argument prototype would still apply. */
52885 char getloadavg ();
52894 rm -f conftest.$ac_objext conftest$ac_exeext
52895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52896 (eval $ac_link) 2>conftest.er1
52898 grep -v '^ *+' conftest.er1 >conftest.err
52900 cat conftest.err >&5
52901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52902 (exit $ac_status); } &&
52903 { ac_try='test -z "$ac_c_werror_flag"
52904 || test ! -s conftest.err'
52905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52906 (eval $ac_try) 2>&5
52908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52909 (exit $ac_status); }; } &&
52910 { ac_try='test -s conftest$ac_exeext'
52911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52912 (eval $ac_try) 2>&5
52914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52915 (exit $ac_status); }; }; then
52916 ac_cv_lib_getloadavg_getloadavg=yes
52918 echo "$as_me: failed program was:" >&5
52919 sed 's/^/| /' conftest.$ac_ext >&5
52921 ac_cv_lib_getloadavg_getloadavg=no
52923 rm -f conftest.err conftest.$ac_objext \
52924 conftest$ac_exeext conftest.$ac_ext
52925 LIBS=$ac_check_lib_save_LIBS
52927 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
52928 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
52929 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
52930 LIBS="-lgetloadavg $LIBS"
52932 LIBS=$ac_getloadavg_LIBS
52937 # Make sure it is really in the library, if we think we found it,
52938 # otherwise set up the replacement function.
52940 for ac_func in getloadavg
52942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52943 echo "$as_me:$LINENO: checking for $ac_func" >&5
52944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52945 if eval "test \"\${$as_ac_var+set}\" = set"; then
52946 echo $ECHO_N "(cached) $ECHO_C" >&6
52948 cat >conftest.$ac_ext <<_ACEOF
52951 cat confdefs.h >>conftest.$ac_ext
52952 cat >>conftest.$ac_ext <<_ACEOF
52953 /* end confdefs.h. */
52954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52956 #define $ac_func innocuous_$ac_func
52958 /* System header to define __stub macros and hopefully few prototypes,
52959 which can conflict with char $ac_func (); below.
52960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52961 <limits.h> exists even on freestanding compilers. */
52964 # include <limits.h>
52966 # include <assert.h>
52971 /* Override any gcc2 internal prototype to avoid an error. */
52976 /* We use char because int might match the return type of a gcc2
52977 builtin and then its argument prototype would still apply. */
52979 /* The GNU C library defines this for functions which it implements
52980 to always fail with ENOSYS. Some functions are actually named
52981 something starting with __ and the normal name is an alias. */
52982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52985 char (*f) () = $ac_func;
52994 return f != $ac_func;
52999 rm -f conftest.$ac_objext conftest$ac_exeext
53000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53001 (eval $ac_link) 2>conftest.er1
53003 grep -v '^ *+' conftest.er1 >conftest.err
53005 cat conftest.err >&5
53006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53007 (exit $ac_status); } &&
53008 { ac_try='test -z "$ac_c_werror_flag"
53009 || test ! -s conftest.err'
53010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53011 (eval $ac_try) 2>&5
53013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53014 (exit $ac_status); }; } &&
53015 { ac_try='test -s conftest$ac_exeext'
53016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53017 (eval $ac_try) 2>&5
53019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53020 (exit $ac_status); }; }; then
53021 eval "$as_ac_var=yes"
53023 echo "$as_me: failed program was:" >&5
53024 sed 's/^/| /' conftest.$ac_ext >&5
53026 eval "$as_ac_var=no"
53028 rm -f conftest.err conftest.$ac_objext \
53029 conftest$ac_exeext conftest.$ac_ext
53031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53033 if test `eval echo '${'$as_ac_var'}'` = yes; then
53034 cat >>confdefs.h <<_ACEOF
53035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53040 "getloadavg.$ac_objext" | \
53041 *" getloadavg.$ac_objext" | \
53042 "getloadavg.$ac_objext "* | \
53043 *" getloadavg.$ac_objext "* ) ;;
53044 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
53048 cat >>confdefs.h <<\_ACEOF
53049 #define C_GETLOADAVG 1
53052 # Figure out what our getloadavg.c needs.
53054 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53055 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53056 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
53057 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53058 echo $ECHO_N "(cached) $ECHO_C" >&6
53060 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53061 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
53063 # Is the header compilable?
53064 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
53065 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
53066 cat >conftest.$ac_ext <<_ACEOF
53069 cat confdefs.h >>conftest.$ac_ext
53070 cat >>conftest.$ac_ext <<_ACEOF
53071 /* end confdefs.h. */
53072 $ac_includes_default
53073 #include <sys/dg_sys_info.h>
53075 rm -f conftest.$ac_objext
53076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53077 (eval $ac_compile) 2>conftest.er1
53079 grep -v '^ *+' conftest.er1 >conftest.err
53081 cat conftest.err >&5
53082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53083 (exit $ac_status); } &&
53084 { ac_try='test -z "$ac_c_werror_flag"
53085 || test ! -s conftest.err'
53086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53087 (eval $ac_try) 2>&5
53089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53090 (exit $ac_status); }; } &&
53091 { ac_try='test -s conftest.$ac_objext'
53092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53093 (eval $ac_try) 2>&5
53095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53096 (exit $ac_status); }; }; then
53097 ac_header_compiler=yes
53099 echo "$as_me: failed program was:" >&5
53100 sed 's/^/| /' conftest.$ac_ext >&5
53102 ac_header_compiler=no
53104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53106 echo "${ECHO_T}$ac_header_compiler" >&6
53108 # Is the header present?
53109 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
53110 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
53111 cat >conftest.$ac_ext <<_ACEOF
53114 cat confdefs.h >>conftest.$ac_ext
53115 cat >>conftest.$ac_ext <<_ACEOF
53116 /* end confdefs.h. */
53117 #include <sys/dg_sys_info.h>
53119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53122 grep -v '^ *+' conftest.er1 >conftest.err
53124 cat conftest.err >&5
53125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53126 (exit $ac_status); } >/dev/null; then
53127 if test -s conftest.err; then
53128 ac_cpp_err=$ac_c_preproc_warn_flag
53129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53136 if test -z "$ac_cpp_err"; then
53137 ac_header_preproc=yes
53139 echo "$as_me: failed program was:" >&5
53140 sed 's/^/| /' conftest.$ac_ext >&5
53142 ac_header_preproc=no
53144 rm -f conftest.err conftest.$ac_ext
53145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53146 echo "${ECHO_T}$ac_header_preproc" >&6
53148 # So? What about this header?
53149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53151 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
53152 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53153 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
53154 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
53155 ac_header_preproc=yes
53158 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
53159 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
53160 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
53161 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
53162 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
53163 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
53164 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
53165 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
53166 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
53167 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
53168 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
53169 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
53172 ## ------------------------------------ ##
53173 ## Report this to bug-coreutils@gnu.org ##
53174 ## ------------------------------------ ##
53177 sed "s/^/$as_me: WARNING: /" >&2
53180 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53181 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
53182 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53183 echo $ECHO_N "(cached) $ECHO_C" >&6
53185 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
53187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53188 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
53191 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
53194 cat >>confdefs.h <<\_ACEOF
53199 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
53200 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
53201 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
53202 echo $ECHO_N "(cached) $ECHO_C" >&6
53204 ac_check_lib_save_LIBS=$LIBS
53206 cat >conftest.$ac_ext <<_ACEOF
53209 cat confdefs.h >>conftest.$ac_ext
53210 cat >>conftest.$ac_ext <<_ACEOF
53211 /* end confdefs.h. */
53213 /* Override any gcc2 internal prototype to avoid an error. */
53217 /* We use char because int might match the return type of a gcc2
53218 builtin and then its argument prototype would still apply. */
53219 char dg_sys_info ();
53228 rm -f conftest.$ac_objext conftest$ac_exeext
53229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53230 (eval $ac_link) 2>conftest.er1
53232 grep -v '^ *+' conftest.er1 >conftest.err
53234 cat conftest.err >&5
53235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53236 (exit $ac_status); } &&
53237 { ac_try='test -z "$ac_c_werror_flag"
53238 || test ! -s conftest.err'
53239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53240 (eval $ac_try) 2>&5
53242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53243 (exit $ac_status); }; } &&
53244 { ac_try='test -s conftest$ac_exeext'
53245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53246 (eval $ac_try) 2>&5
53248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53249 (exit $ac_status); }; }; then
53250 ac_cv_lib_dgc_dg_sys_info=yes
53252 echo "$as_me: failed program was:" >&5
53253 sed 's/^/| /' conftest.$ac_ext >&5
53255 ac_cv_lib_dgc_dg_sys_info=no
53257 rm -f conftest.err conftest.$ac_objext \
53258 conftest$ac_exeext conftest.$ac_ext
53259 LIBS=$ac_check_lib_save_LIBS
53261 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
53262 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
53263 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
53264 cat >>confdefs.h <<_ACEOF
53265 #define HAVE_LIBDGC 1
53276 if test "${ac_cv_header_locale_h+set}" = set; then
53277 echo "$as_me:$LINENO: checking for locale.h" >&5
53278 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
53279 if test "${ac_cv_header_locale_h+set}" = set; then
53280 echo $ECHO_N "(cached) $ECHO_C" >&6
53282 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53283 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
53285 # Is the header compilable?
53286 echo "$as_me:$LINENO: checking locale.h usability" >&5
53287 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
53288 cat >conftest.$ac_ext <<_ACEOF
53291 cat confdefs.h >>conftest.$ac_ext
53292 cat >>conftest.$ac_ext <<_ACEOF
53293 /* end confdefs.h. */
53294 $ac_includes_default
53295 #include <locale.h>
53297 rm -f conftest.$ac_objext
53298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53299 (eval $ac_compile) 2>conftest.er1
53301 grep -v '^ *+' conftest.er1 >conftest.err
53303 cat conftest.err >&5
53304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53305 (exit $ac_status); } &&
53306 { ac_try='test -z "$ac_c_werror_flag"
53307 || test ! -s conftest.err'
53308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53309 (eval $ac_try) 2>&5
53311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53312 (exit $ac_status); }; } &&
53313 { ac_try='test -s conftest.$ac_objext'
53314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53315 (eval $ac_try) 2>&5
53317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53318 (exit $ac_status); }; }; then
53319 ac_header_compiler=yes
53321 echo "$as_me: failed program was:" >&5
53322 sed 's/^/| /' conftest.$ac_ext >&5
53324 ac_header_compiler=no
53326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53328 echo "${ECHO_T}$ac_header_compiler" >&6
53330 # Is the header present?
53331 echo "$as_me:$LINENO: checking locale.h presence" >&5
53332 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
53333 cat >conftest.$ac_ext <<_ACEOF
53336 cat confdefs.h >>conftest.$ac_ext
53337 cat >>conftest.$ac_ext <<_ACEOF
53338 /* end confdefs.h. */
53339 #include <locale.h>
53341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53344 grep -v '^ *+' conftest.er1 >conftest.err
53346 cat conftest.err >&5
53347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53348 (exit $ac_status); } >/dev/null; then
53349 if test -s conftest.err; then
53350 ac_cpp_err=$ac_c_preproc_warn_flag
53351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53358 if test -z "$ac_cpp_err"; then
53359 ac_header_preproc=yes
53361 echo "$as_me: failed program was:" >&5
53362 sed 's/^/| /' conftest.$ac_ext >&5
53364 ac_header_preproc=no
53366 rm -f conftest.err conftest.$ac_ext
53367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53368 echo "${ECHO_T}$ac_header_preproc" >&6
53370 # So? What about this header?
53371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53373 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
53374 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53375 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
53376 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
53377 ac_header_preproc=yes
53380 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
53381 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
53382 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
53383 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
53384 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
53385 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
53386 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
53387 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
53388 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
53389 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
53390 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
53391 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
53394 ## ------------------------------------ ##
53395 ## Report this to bug-coreutils@gnu.org ##
53396 ## ------------------------------------ ##
53399 sed "s/^/$as_me: WARNING: /" >&2
53402 echo "$as_me:$LINENO: checking for locale.h" >&5
53403 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
53404 if test "${ac_cv_header_locale_h+set}" = set; then
53405 echo $ECHO_N "(cached) $ECHO_C" >&6
53407 ac_cv_header_locale_h=$ac_header_preproc
53409 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53410 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
53416 for ac_func in setlocale
53418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53419 echo "$as_me:$LINENO: checking for $ac_func" >&5
53420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53421 if eval "test \"\${$as_ac_var+set}\" = set"; then
53422 echo $ECHO_N "(cached) $ECHO_C" >&6
53424 cat >conftest.$ac_ext <<_ACEOF
53427 cat confdefs.h >>conftest.$ac_ext
53428 cat >>conftest.$ac_ext <<_ACEOF
53429 /* end confdefs.h. */
53430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53432 #define $ac_func innocuous_$ac_func
53434 /* System header to define __stub macros and hopefully few prototypes,
53435 which can conflict with char $ac_func (); below.
53436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53437 <limits.h> exists even on freestanding compilers. */
53440 # include <limits.h>
53442 # include <assert.h>
53447 /* Override any gcc2 internal prototype to avoid an error. */
53452 /* We use char because int might match the return type of a gcc2
53453 builtin and then its argument prototype would still apply. */
53455 /* The GNU C library defines this for functions which it implements
53456 to always fail with ENOSYS. Some functions are actually named
53457 something starting with __ and the normal name is an alias. */
53458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53461 char (*f) () = $ac_func;
53470 return f != $ac_func;
53475 rm -f conftest.$ac_objext conftest$ac_exeext
53476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53477 (eval $ac_link) 2>conftest.er1
53479 grep -v '^ *+' conftest.er1 >conftest.err
53481 cat conftest.err >&5
53482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53483 (exit $ac_status); } &&
53484 { ac_try='test -z "$ac_c_werror_flag"
53485 || test ! -s conftest.err'
53486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53487 (eval $ac_try) 2>&5
53489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53490 (exit $ac_status); }; } &&
53491 { ac_try='test -s conftest$ac_exeext'
53492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53493 (eval $ac_try) 2>&5
53495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53496 (exit $ac_status); }; }; then
53497 eval "$as_ac_var=yes"
53499 echo "$as_me: failed program was:" >&5
53500 sed 's/^/| /' conftest.$ac_ext >&5
53502 eval "$as_ac_var=no"
53504 rm -f conftest.err conftest.$ac_objext \
53505 conftest$ac_exeext conftest.$ac_ext
53507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53509 if test `eval echo '${'$as_ac_var'}'` = yes; then
53510 cat >>confdefs.h <<_ACEOF
53511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53518 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
53519 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
53520 # Irix 4.0.5F has the header but not the library.
53521 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
53524 cat >>confdefs.h <<\_ACEOF
53530 if test $ac_have_func = no; then
53531 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53532 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53533 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
53534 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53535 echo $ECHO_N "(cached) $ECHO_C" >&6
53537 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53538 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
53540 # Is the header compilable?
53541 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
53542 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
53543 cat >conftest.$ac_ext <<_ACEOF
53546 cat confdefs.h >>conftest.$ac_ext
53547 cat >>conftest.$ac_ext <<_ACEOF
53548 /* end confdefs.h. */
53549 $ac_includes_default
53550 #include <inq_stats/cpustats.h>
53552 rm -f conftest.$ac_objext
53553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53554 (eval $ac_compile) 2>conftest.er1
53556 grep -v '^ *+' conftest.er1 >conftest.err
53558 cat conftest.err >&5
53559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53560 (exit $ac_status); } &&
53561 { ac_try='test -z "$ac_c_werror_flag"
53562 || test ! -s conftest.err'
53563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53564 (eval $ac_try) 2>&5
53566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53567 (exit $ac_status); }; } &&
53568 { ac_try='test -s conftest.$ac_objext'
53569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53570 (eval $ac_try) 2>&5
53572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53573 (exit $ac_status); }; }; then
53574 ac_header_compiler=yes
53576 echo "$as_me: failed program was:" >&5
53577 sed 's/^/| /' conftest.$ac_ext >&5
53579 ac_header_compiler=no
53581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53583 echo "${ECHO_T}$ac_header_compiler" >&6
53585 # Is the header present?
53586 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
53587 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
53588 cat >conftest.$ac_ext <<_ACEOF
53591 cat confdefs.h >>conftest.$ac_ext
53592 cat >>conftest.$ac_ext <<_ACEOF
53593 /* end confdefs.h. */
53594 #include <inq_stats/cpustats.h>
53596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53599 grep -v '^ *+' conftest.er1 >conftest.err
53601 cat conftest.err >&5
53602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53603 (exit $ac_status); } >/dev/null; then
53604 if test -s conftest.err; then
53605 ac_cpp_err=$ac_c_preproc_warn_flag
53606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53613 if test -z "$ac_cpp_err"; then
53614 ac_header_preproc=yes
53616 echo "$as_me: failed program was:" >&5
53617 sed 's/^/| /' conftest.$ac_ext >&5
53619 ac_header_preproc=no
53621 rm -f conftest.err conftest.$ac_ext
53622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53623 echo "${ECHO_T}$ac_header_preproc" >&6
53625 # So? What about this header?
53626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53628 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53629 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53630 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
53631 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
53632 ac_header_preproc=yes
53635 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
53636 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
53637 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
53638 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
53639 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
53640 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
53641 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
53642 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
53643 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
53644 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
53645 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
53646 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
53649 ## ------------------------------------ ##
53650 ## Report this to bug-coreutils@gnu.org ##
53651 ## ------------------------------------ ##
53654 sed "s/^/$as_me: WARNING: /" >&2
53657 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53658 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
53659 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53660 echo $ECHO_N "(cached) $ECHO_C" >&6
53662 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
53664 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53665 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
53668 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
53671 cat >>confdefs.h <<\_ACEOF
53676 cat >>confdefs.h <<\_ACEOF
53685 if test $ac_have_func = no; then
53686 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53687 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
53688 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
53689 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53690 echo $ECHO_N "(cached) $ECHO_C" >&6
53692 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
53693 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
53695 # Is the header compilable?
53696 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
53697 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
53698 cat >conftest.$ac_ext <<_ACEOF
53701 cat confdefs.h >>conftest.$ac_ext
53702 cat >>conftest.$ac_ext <<_ACEOF
53703 /* end confdefs.h. */
53704 $ac_includes_default
53705 #include <sys/cpustats.h>
53707 rm -f conftest.$ac_objext
53708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53709 (eval $ac_compile) 2>conftest.er1
53711 grep -v '^ *+' conftest.er1 >conftest.err
53713 cat conftest.err >&5
53714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53715 (exit $ac_status); } &&
53716 { ac_try='test -z "$ac_c_werror_flag"
53717 || test ! -s conftest.err'
53718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53719 (eval $ac_try) 2>&5
53721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53722 (exit $ac_status); }; } &&
53723 { ac_try='test -s conftest.$ac_objext'
53724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53725 (eval $ac_try) 2>&5
53727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53728 (exit $ac_status); }; }; then
53729 ac_header_compiler=yes
53731 echo "$as_me: failed program was:" >&5
53732 sed 's/^/| /' conftest.$ac_ext >&5
53734 ac_header_compiler=no
53736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53738 echo "${ECHO_T}$ac_header_compiler" >&6
53740 # Is the header present?
53741 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
53742 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
53743 cat >conftest.$ac_ext <<_ACEOF
53746 cat confdefs.h >>conftest.$ac_ext
53747 cat >>conftest.$ac_ext <<_ACEOF
53748 /* end confdefs.h. */
53749 #include <sys/cpustats.h>
53751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53754 grep -v '^ *+' conftest.er1 >conftest.err
53756 cat conftest.err >&5
53757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53758 (exit $ac_status); } >/dev/null; then
53759 if test -s conftest.err; then
53760 ac_cpp_err=$ac_c_preproc_warn_flag
53761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53768 if test -z "$ac_cpp_err"; then
53769 ac_header_preproc=yes
53771 echo "$as_me: failed program was:" >&5
53772 sed 's/^/| /' conftest.$ac_ext >&5
53774 ac_header_preproc=no
53776 rm -f conftest.err conftest.$ac_ext
53777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53778 echo "${ECHO_T}$ac_header_preproc" >&6
53780 # So? What about this header?
53781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53783 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53784 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53785 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
53786 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
53787 ac_header_preproc=yes
53790 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
53791 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
53792 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
53793 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
53794 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
53795 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
53796 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
53797 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
53798 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
53799 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
53800 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
53801 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
53804 ## ------------------------------------ ##
53805 ## Report this to bug-coreutils@gnu.org ##
53806 ## ------------------------------------ ##
53809 sed "s/^/$as_me: WARNING: /" >&2
53812 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
53813 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
53814 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53815 echo $ECHO_N "(cached) $ECHO_C" >&6
53817 ac_cv_header_sys_cpustats_h=$ac_header_preproc
53819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
53820 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
53823 if test $ac_cv_header_sys_cpustats_h = yes; then
53824 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
53833 if test $ac_have_func = no; then
53835 for ac_header in mach/mach.h
53837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53839 echo "$as_me:$LINENO: checking for $ac_header" >&5
53840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53842 echo $ECHO_N "(cached) $ECHO_C" >&6
53844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53847 # Is the header compilable?
53848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53850 cat >conftest.$ac_ext <<_ACEOF
53853 cat confdefs.h >>conftest.$ac_ext
53854 cat >>conftest.$ac_ext <<_ACEOF
53855 /* end confdefs.h. */
53856 $ac_includes_default
53857 #include <$ac_header>
53859 rm -f conftest.$ac_objext
53860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53861 (eval $ac_compile) 2>conftest.er1
53863 grep -v '^ *+' conftest.er1 >conftest.err
53865 cat conftest.err >&5
53866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53867 (exit $ac_status); } &&
53868 { ac_try='test -z "$ac_c_werror_flag"
53869 || test ! -s conftest.err'
53870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53871 (eval $ac_try) 2>&5
53873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53874 (exit $ac_status); }; } &&
53875 { ac_try='test -s conftest.$ac_objext'
53876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53877 (eval $ac_try) 2>&5
53879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53880 (exit $ac_status); }; }; then
53881 ac_header_compiler=yes
53883 echo "$as_me: failed program was:" >&5
53884 sed 's/^/| /' conftest.$ac_ext >&5
53886 ac_header_compiler=no
53888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53890 echo "${ECHO_T}$ac_header_compiler" >&6
53892 # Is the header present?
53893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53895 cat >conftest.$ac_ext <<_ACEOF
53898 cat confdefs.h >>conftest.$ac_ext
53899 cat >>conftest.$ac_ext <<_ACEOF
53900 /* end confdefs.h. */
53901 #include <$ac_header>
53903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53906 grep -v '^ *+' conftest.er1 >conftest.err
53908 cat conftest.err >&5
53909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53910 (exit $ac_status); } >/dev/null; then
53911 if test -s conftest.err; then
53912 ac_cpp_err=$ac_c_preproc_warn_flag
53913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53920 if test -z "$ac_cpp_err"; then
53921 ac_header_preproc=yes
53923 echo "$as_me: failed program was:" >&5
53924 sed 's/^/| /' conftest.$ac_ext >&5
53926 ac_header_preproc=no
53928 rm -f conftest.err conftest.$ac_ext
53929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53930 echo "${ECHO_T}$ac_header_preproc" >&6
53932 # So? What about this header?
53933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53939 ac_header_preproc=yes
53942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53956 ## ------------------------------------ ##
53957 ## Report this to bug-coreutils@gnu.org ##
53958 ## ------------------------------------ ##
53961 sed "s/^/$as_me: WARNING: /" >&2
53964 echo "$as_me:$LINENO: checking for $ac_header" >&5
53965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53967 echo $ECHO_N "(cached) $ECHO_C" >&6
53969 eval "$as_ac_Header=\$ac_header_preproc"
53971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53976 cat >>confdefs.h <<_ACEOF
53977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53987 for ac_header in nlist.h
53989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53991 echo "$as_me:$LINENO: checking for $ac_header" >&5
53992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53994 echo $ECHO_N "(cached) $ECHO_C" >&6
53996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53999 # Is the header compilable?
54000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54002 cat >conftest.$ac_ext <<_ACEOF
54005 cat confdefs.h >>conftest.$ac_ext
54006 cat >>conftest.$ac_ext <<_ACEOF
54007 /* end confdefs.h. */
54008 $ac_includes_default
54009 #include <$ac_header>
54011 rm -f conftest.$ac_objext
54012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54013 (eval $ac_compile) 2>conftest.er1
54015 grep -v '^ *+' conftest.er1 >conftest.err
54017 cat conftest.err >&5
54018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54019 (exit $ac_status); } &&
54020 { ac_try='test -z "$ac_c_werror_flag"
54021 || test ! -s conftest.err'
54022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54023 (eval $ac_try) 2>&5
54025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54026 (exit $ac_status); }; } &&
54027 { ac_try='test -s conftest.$ac_objext'
54028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54029 (eval $ac_try) 2>&5
54031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54032 (exit $ac_status); }; }; then
54033 ac_header_compiler=yes
54035 echo "$as_me: failed program was:" >&5
54036 sed 's/^/| /' conftest.$ac_ext >&5
54038 ac_header_compiler=no
54040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54042 echo "${ECHO_T}$ac_header_compiler" >&6
54044 # Is the header present?
54045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54047 cat >conftest.$ac_ext <<_ACEOF
54050 cat confdefs.h >>conftest.$ac_ext
54051 cat >>conftest.$ac_ext <<_ACEOF
54052 /* end confdefs.h. */
54053 #include <$ac_header>
54055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54058 grep -v '^ *+' conftest.er1 >conftest.err
54060 cat conftest.err >&5
54061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54062 (exit $ac_status); } >/dev/null; then
54063 if test -s conftest.err; then
54064 ac_cpp_err=$ac_c_preproc_warn_flag
54065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54072 if test -z "$ac_cpp_err"; then
54073 ac_header_preproc=yes
54075 echo "$as_me: failed program was:" >&5
54076 sed 's/^/| /' conftest.$ac_ext >&5
54078 ac_header_preproc=no
54080 rm -f conftest.err conftest.$ac_ext
54081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54082 echo "${ECHO_T}$ac_header_preproc" >&6
54084 # So? What about this header?
54085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54091 ac_header_preproc=yes
54094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54108 ## ------------------------------------ ##
54109 ## Report this to bug-coreutils@gnu.org ##
54110 ## ------------------------------------ ##
54113 sed "s/^/$as_me: WARNING: /" >&2
54116 echo "$as_me:$LINENO: checking for $ac_header" >&5
54117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54119 echo $ECHO_N "(cached) $ECHO_C" >&6
54121 eval "$as_ac_Header=\$ac_header_preproc"
54123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54128 cat >>confdefs.h <<_ACEOF
54129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54131 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
54132 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
54133 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
54134 echo $ECHO_N "(cached) $ECHO_C" >&6
54136 cat >conftest.$ac_ext <<_ACEOF
54139 cat confdefs.h >>conftest.$ac_ext
54140 cat >>conftest.$ac_ext <<_ACEOF
54141 /* end confdefs.h. */
54147 static struct nlist ac_aggr;
54148 if (ac_aggr.n_un.n_name)
54154 rm -f conftest.$ac_objext
54155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54156 (eval $ac_compile) 2>conftest.er1
54158 grep -v '^ *+' conftest.er1 >conftest.err
54160 cat conftest.err >&5
54161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54162 (exit $ac_status); } &&
54163 { ac_try='test -z "$ac_c_werror_flag"
54164 || test ! -s conftest.err'
54165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54166 (eval $ac_try) 2>&5
54168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54169 (exit $ac_status); }; } &&
54170 { ac_try='test -s conftest.$ac_objext'
54171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54172 (eval $ac_try) 2>&5
54174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54175 (exit $ac_status); }; }; then
54176 ac_cv_member_struct_nlist_n_un_n_name=yes
54178 echo "$as_me: failed program was:" >&5
54179 sed 's/^/| /' conftest.$ac_ext >&5
54181 cat >conftest.$ac_ext <<_ACEOF
54184 cat confdefs.h >>conftest.$ac_ext
54185 cat >>conftest.$ac_ext <<_ACEOF
54186 /* end confdefs.h. */
54192 static struct nlist ac_aggr;
54193 if (sizeof ac_aggr.n_un.n_name)
54199 rm -f conftest.$ac_objext
54200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54201 (eval $ac_compile) 2>conftest.er1
54203 grep -v '^ *+' conftest.er1 >conftest.err
54205 cat conftest.err >&5
54206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54207 (exit $ac_status); } &&
54208 { ac_try='test -z "$ac_c_werror_flag"
54209 || test ! -s conftest.err'
54210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54211 (eval $ac_try) 2>&5
54213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54214 (exit $ac_status); }; } &&
54215 { ac_try='test -s conftest.$ac_objext'
54216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54217 (eval $ac_try) 2>&5
54219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54220 (exit $ac_status); }; }; then
54221 ac_cv_member_struct_nlist_n_un_n_name=yes
54223 echo "$as_me: failed program was:" >&5
54224 sed 's/^/| /' conftest.$ac_ext >&5
54226 ac_cv_member_struct_nlist_n_un_n_name=no
54228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
54233 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
54234 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
54236 cat >>confdefs.h <<_ACEOF
54237 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
54241 cat >>confdefs.h <<\_ACEOF
54242 #define NLIST_NAME_UNION 1
54256 # Some definitions of getloadavg require that the program be installed setgid.
54257 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
54258 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
54259 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
54260 echo $ECHO_N "(cached) $ECHO_C" >&6
54262 cat >conftest.$ac_ext <<_ACEOF
54265 cat confdefs.h >>conftest.$ac_ext
54266 cat >>conftest.$ac_ext <<_ACEOF
54267 /* end confdefs.h. */
54268 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
54269 #ifdef LDAV_PRIVILEGED
54270 Yowza Am I SETGID yet
54273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54274 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
54275 ac_cv_func_getloadavg_setgid=yes
54277 ac_cv_func_getloadavg_setgid=no
54282 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
54283 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
54284 if test $ac_cv_func_getloadavg_setgid = yes; then
54287 cat >>confdefs.h <<\_ACEOF
54288 #define GETLOADAVG_PRIVILEGED 1
54295 if test $ac_cv_func_getloadavg_setgid = yes; then
54296 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
54297 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
54298 if test "${ac_cv_group_kmem+set}" = set; then
54299 echo $ECHO_N "(cached) $ECHO_C" >&6
54301 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
54302 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
54303 # If we got an error (system does not support symlinks), try without -L.
54304 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
54305 ac_cv_group_kmem=`echo $ac_ls_output \
54306 | sed -ne 's/[ ][ ]*/ /g;
54307 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
54311 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
54312 echo "${ECHO_T}$ac_cv_group_kmem" >&6
54313 KMEM_GROUP=$ac_cv_group_kmem
54315 if test "x$ac_save_LIBS" = x; then
54316 GETLOADAVG_LIBS=$LIBS
54318 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
54327 # raise is used by at least sort and ls.
54329 for ac_func in raise
54331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54332 echo "$as_me:$LINENO: checking for $ac_func" >&5
54333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54334 if eval "test \"\${$as_ac_var+set}\" = set"; then
54335 echo $ECHO_N "(cached) $ECHO_C" >&6
54337 cat >conftest.$ac_ext <<_ACEOF
54340 cat confdefs.h >>conftest.$ac_ext
54341 cat >>conftest.$ac_ext <<_ACEOF
54342 /* end confdefs.h. */
54343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54345 #define $ac_func innocuous_$ac_func
54347 /* System header to define __stub macros and hopefully few prototypes,
54348 which can conflict with char $ac_func (); below.
54349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54350 <limits.h> exists even on freestanding compilers. */
54353 # include <limits.h>
54355 # include <assert.h>
54360 /* Override any gcc2 internal prototype to avoid an error. */
54365 /* We use char because int might match the return type of a gcc2
54366 builtin and then its argument prototype would still apply. */
54368 /* The GNU C library defines this for functions which it implements
54369 to always fail with ENOSYS. Some functions are actually named
54370 something starting with __ and the normal name is an alias. */
54371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54374 char (*f) () = $ac_func;
54383 return f != $ac_func;
54388 rm -f conftest.$ac_objext conftest$ac_exeext
54389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54390 (eval $ac_link) 2>conftest.er1
54392 grep -v '^ *+' conftest.er1 >conftest.err
54394 cat conftest.err >&5
54395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54396 (exit $ac_status); } &&
54397 { ac_try='test -z "$ac_c_werror_flag"
54398 || test ! -s conftest.err'
54399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54400 (eval $ac_try) 2>&5
54402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54403 (exit $ac_status); }; } &&
54404 { ac_try='test -s conftest$ac_exeext'
54405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54406 (eval $ac_try) 2>&5
54408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409 (exit $ac_status); }; }; then
54410 eval "$as_ac_var=yes"
54412 echo "$as_me: failed program was:" >&5
54413 sed 's/^/| /' conftest.$ac_ext >&5
54415 eval "$as_ac_var=no"
54417 rm -f conftest.err conftest.$ac_objext \
54418 conftest$ac_exeext conftest.$ac_ext
54420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54422 if test `eval echo '${'$as_ac_var'}'` = yes; then
54423 cat >>confdefs.h <<_ACEOF
54424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54429 "$ac_func.$ac_objext" | \
54430 *" $ac_func.$ac_objext" | \
54431 "$ac_func.$ac_objext "* | \
54432 *" $ac_func.$ac_objext "* ) ;;
54433 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54441 # By default, argmatch should fail calling usage (1).
54443 cat >>confdefs.h <<\_ACEOF
54444 #define ARGMATCH_DIE usage (1)
54448 cat >>confdefs.h <<\_ACEOF
54449 #define ARGMATCH_DIE_DECL extern void usage ()
54453 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
54454 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
54455 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
54456 echo $ECHO_N "(cached) $ECHO_C" >&6
54458 ac_cv_func_setvbuf_reversed=no
54459 cat >conftest.$ac_ext <<_ACEOF
54462 cat confdefs.h >>conftest.$ac_ext
54463 cat >>conftest.$ac_ext <<_ACEOF
54464 /* end confdefs.h. */
54467 int (setvbuf) (FILE *, int, char *, size_t);
54472 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
54477 rm -f conftest.$ac_objext conftest$ac_exeext
54478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54479 (eval $ac_link) 2>conftest.er1
54481 grep -v '^ *+' conftest.er1 >conftest.err
54483 cat conftest.err >&5
54484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54485 (exit $ac_status); } &&
54486 { ac_try='test -z "$ac_c_werror_flag"
54487 || test ! -s conftest.err'
54488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54489 (eval $ac_try) 2>&5
54491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54492 (exit $ac_status); }; } &&
54493 { ac_try='test -s conftest$ac_exeext'
54494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54495 (eval $ac_try) 2>&5
54497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54498 (exit $ac_status); }; }; then
54499 cat >conftest.$ac_ext <<_ACEOF
54502 cat confdefs.h >>conftest.$ac_ext
54503 cat >>conftest.$ac_ext <<_ACEOF
54504 /* end confdefs.h. */
54507 int (setvbuf) (FILE *, int, char *, size_t);
54512 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
54517 rm -f conftest.$ac_objext conftest$ac_exeext
54518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54519 (eval $ac_link) 2>conftest.er1
54521 grep -v '^ *+' conftest.er1 >conftest.err
54523 cat conftest.err >&5
54524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54525 (exit $ac_status); } &&
54526 { ac_try='test -z "$ac_c_werror_flag"
54527 || test ! -s conftest.err'
54528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54529 (eval $ac_try) 2>&5
54531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54532 (exit $ac_status); }; } &&
54533 { ac_try='test -s conftest$ac_exeext'
54534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54535 (eval $ac_try) 2>&5
54537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54538 (exit $ac_status); }; }; then
54539 # It compiles and links either way, so it must not be declared
54540 # with a prototype and most likely this is a K&R C compiler.
54542 if test "$cross_compiling" = yes; then
54543 : # Assume setvbuf is not reversed when cross-compiling.
54545 cat >conftest.$ac_ext <<_ACEOF
54548 cat confdefs.h >>conftest.$ac_ext
54549 cat >>conftest.$ac_ext <<_ACEOF
54550 /* end confdefs.h. */
54555 /* This call has the arguments reversed.
54556 A reversed system may check and see that the address of buf
54557 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
54559 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
54562 exit (0); /* Non-reversed systems SEGV here. */
54567 rm -f conftest$ac_exeext
54568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54569 (eval $ac_link) 2>&5
54571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54574 (eval $ac_try) 2>&5
54576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54577 (exit $ac_status); }; }; then
54578 ac_cv_func_setvbuf_reversed=yes
54580 echo "$as_me: program exited with status $ac_status" >&5
54581 echo "$as_me: failed program was:" >&5
54582 sed 's/^/| /' conftest.$ac_ext >&5
54584 ( exit $ac_status )
54587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54589 ac_cv_func_setvbuf_reversed=yes
54591 echo "$as_me: failed program was:" >&5
54592 sed 's/^/| /' conftest.$ac_ext >&5
54595 rm -f conftest.err conftest.$ac_objext \
54596 conftest$ac_exeext conftest.$ac_ext
54598 echo "$as_me: failed program was:" >&5
54599 sed 's/^/| /' conftest.$ac_ext >&5
54602 rm -f conftest.err conftest.$ac_objext \
54603 conftest$ac_exeext conftest.$ac_ext
54605 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
54606 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
54607 if test $ac_cv_func_setvbuf_reversed = yes; then
54609 cat >>confdefs.h <<\_ACEOF
54610 #define SETVBUF_REVERSED 1
54616 # used by sleep and shred
54627 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
54628 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
54629 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
54630 echo $ECHO_N "(cached) $ECHO_C" >&6
54632 if test "$cross_compiling" = yes; then
54633 jm_cv_func_gettimeofday_clobber=yes
54635 cat >conftest.$ac_ext <<_ACEOF
54638 cat confdefs.h >>conftest.$ac_ext
54639 cat >>conftest.$ac_ext <<_ACEOF
54640 /* end confdefs.h. */
54643 #include <string.h>
54645 #if TIME_WITH_SYS_TIME
54646 # include <sys/time.h>
54649 # if HAVE_SYS_TIME_H
54650 # include <sys/time.h>
54656 #include <stdlib.h>
54663 struct tm saved_lt;
54665 lt = localtime (&t);
54667 gettimeofday (&tv, NULL);
54668 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
54675 rm -f conftest$ac_exeext
54676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54677 (eval $ac_link) 2>&5
54679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54682 (eval $ac_try) 2>&5
54684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54685 (exit $ac_status); }; }; then
54686 jm_cv_func_gettimeofday_clobber=no
54688 echo "$as_me: program exited with status $ac_status" >&5
54689 echo "$as_me: failed program was:" >&5
54690 sed 's/^/| /' conftest.$ac_ext >&5
54692 ( exit $ac_status )
54693 jm_cv_func_gettimeofday_clobber=yes
54695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54699 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
54700 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
54701 if test $jm_cv_func_gettimeofday_clobber = yes; then
54704 "gettimeofday.$ac_objext" | \
54705 *" gettimeofday.$ac_objext" | \
54706 "gettimeofday.$ac_objext "* | \
54707 *" gettimeofday.$ac_objext "* ) ;;
54708 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
54712 cat >>confdefs.h <<\_ACEOF
54713 #define gmtime rpl_gmtime
54717 cat >>confdefs.h <<\_ACEOF
54718 #define localtime rpl_localtime
54724 cat >>confdefs.h <<\_ACEOF
54725 #define gettimeofday rpl_gettimeofday
54729 cat >>confdefs.h <<\_ACEOF
54730 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
54823 echo "$as_me:$LINENO: checking for working strtod" >&5
54824 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
54825 if test "${ac_cv_func_strtod+set}" = set; then
54826 echo $ECHO_N "(cached) $ECHO_C" >&6
54828 if test "$cross_compiling" = yes; then
54829 ac_cv_func_strtod=no
54831 cat >conftest.$ac_ext <<_ACEOF
54834 cat confdefs.h >>conftest.$ac_ext
54835 cat >>conftest.$ac_ext <<_ACEOF
54836 /* end confdefs.h. */
54843 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
54844 char *string = " +69";
54847 value = strtod (string, &term);
54848 if (value != 69 || term != (string + 4))
54853 /* Under Solaris 2.4, strtod returns the wrong value for the
54854 terminating character under some conditions. */
54855 char *string = "NaN";
54857 strtod (string, &term);
54858 if (term != string && *(term - 1) == 0)
54865 rm -f conftest$ac_exeext
54866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54867 (eval $ac_link) 2>&5
54869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54872 (eval $ac_try) 2>&5
54874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54875 (exit $ac_status); }; }; then
54876 ac_cv_func_strtod=yes
54878 echo "$as_me: program exited with status $ac_status" >&5
54879 echo "$as_me: failed program was:" >&5
54880 sed 's/^/| /' conftest.$ac_ext >&5
54882 ( exit $ac_status )
54883 ac_cv_func_strtod=no
54885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54888 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
54889 echo "${ECHO_T}$ac_cv_func_strtod" >&6
54890 if test $ac_cv_func_strtod = no; then
54892 "strtod.$ac_objext" | \
54893 *" strtod.$ac_objext" | \
54894 "strtod.$ac_objext "* | \
54895 *" strtod.$ac_objext "* ) ;;
54896 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
54899 echo "$as_me:$LINENO: checking for pow" >&5
54900 echo $ECHO_N "checking for pow... $ECHO_C" >&6
54901 if test "${ac_cv_func_pow+set}" = set; then
54902 echo $ECHO_N "(cached) $ECHO_C" >&6
54904 cat >conftest.$ac_ext <<_ACEOF
54907 cat confdefs.h >>conftest.$ac_ext
54908 cat >>conftest.$ac_ext <<_ACEOF
54909 /* end confdefs.h. */
54910 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
54911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54912 #define pow innocuous_pow
54914 /* System header to define __stub macros and hopefully few prototypes,
54915 which can conflict with char pow (); below.
54916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54917 <limits.h> exists even on freestanding compilers. */
54920 # include <limits.h>
54922 # include <assert.h>
54927 /* Override any gcc2 internal prototype to avoid an error. */
54932 /* We use char because int might match the return type of a gcc2
54933 builtin and then its argument prototype would still apply. */
54935 /* The GNU C library defines this for functions which it implements
54936 to always fail with ENOSYS. Some functions are actually named
54937 something starting with __ and the normal name is an alias. */
54938 #if defined (__stub_pow) || defined (__stub___pow)
54941 char (*f) () = pow;
54955 rm -f conftest.$ac_objext conftest$ac_exeext
54956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54957 (eval $ac_link) 2>conftest.er1
54959 grep -v '^ *+' conftest.er1 >conftest.err
54961 cat conftest.err >&5
54962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54963 (exit $ac_status); } &&
54964 { ac_try='test -z "$ac_c_werror_flag"
54965 || test ! -s conftest.err'
54966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54967 (eval $ac_try) 2>&5
54969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54970 (exit $ac_status); }; } &&
54971 { ac_try='test -s conftest$ac_exeext'
54972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54973 (eval $ac_try) 2>&5
54975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54976 (exit $ac_status); }; }; then
54979 echo "$as_me: failed program was:" >&5
54980 sed 's/^/| /' conftest.$ac_ext >&5
54984 rm -f conftest.err conftest.$ac_objext \
54985 conftest$ac_exeext conftest.$ac_ext
54987 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
54988 echo "${ECHO_T}$ac_cv_func_pow" >&6
54990 if test $ac_cv_func_pow = no; then
54991 echo "$as_me:$LINENO: checking for pow in -lm" >&5
54992 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
54993 if test "${ac_cv_lib_m_pow+set}" = set; then
54994 echo $ECHO_N "(cached) $ECHO_C" >&6
54996 ac_check_lib_save_LIBS=$LIBS
54998 cat >conftest.$ac_ext <<_ACEOF
55001 cat confdefs.h >>conftest.$ac_ext
55002 cat >>conftest.$ac_ext <<_ACEOF
55003 /* end confdefs.h. */
55005 /* Override any gcc2 internal prototype to avoid an error. */
55009 /* We use char because int might match the return type of a gcc2
55010 builtin and then its argument prototype would still apply. */
55020 rm -f conftest.$ac_objext conftest$ac_exeext
55021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55022 (eval $ac_link) 2>conftest.er1
55024 grep -v '^ *+' conftest.er1 >conftest.err
55026 cat conftest.err >&5
55027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55028 (exit $ac_status); } &&
55029 { ac_try='test -z "$ac_c_werror_flag"
55030 || test ! -s conftest.err'
55031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55032 (eval $ac_try) 2>&5
55034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55035 (exit $ac_status); }; } &&
55036 { ac_try='test -s conftest$ac_exeext'
55037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55038 (eval $ac_try) 2>&5
55040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55041 (exit $ac_status); }; }; then
55042 ac_cv_lib_m_pow=yes
55044 echo "$as_me: failed program was:" >&5
55045 sed 's/^/| /' conftest.$ac_ext >&5
55049 rm -f conftest.err conftest.$ac_objext \
55050 conftest$ac_exeext conftest.$ac_ext
55051 LIBS=$ac_check_lib_save_LIBS
55053 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
55054 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
55055 if test $ac_cv_lib_m_pow = yes; then
55058 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
55059 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
55070 # for dd.c and shred.c
55071 fetish_saved_libs=$LIBS
55072 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
55073 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
55074 if test "${ac_cv_search_fdatasync+set}" = set; then
55075 echo $ECHO_N "(cached) $ECHO_C" >&6
55077 ac_func_search_save_LIBS=$LIBS
55078 ac_cv_search_fdatasync=no
55079 cat >conftest.$ac_ext <<_ACEOF
55082 cat confdefs.h >>conftest.$ac_ext
55083 cat >>conftest.$ac_ext <<_ACEOF
55084 /* end confdefs.h. */
55086 /* Override any gcc2 internal prototype to avoid an error. */
55090 /* We use char because int might match the return type of a gcc2
55091 builtin and then its argument prototype would still apply. */
55101 rm -f conftest.$ac_objext conftest$ac_exeext
55102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55103 (eval $ac_link) 2>conftest.er1
55105 grep -v '^ *+' conftest.er1 >conftest.err
55107 cat conftest.err >&5
55108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55109 (exit $ac_status); } &&
55110 { ac_try='test -z "$ac_c_werror_flag"
55111 || test ! -s conftest.err'
55112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55113 (eval $ac_try) 2>&5
55115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55116 (exit $ac_status); }; } &&
55117 { ac_try='test -s conftest$ac_exeext'
55118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55119 (eval $ac_try) 2>&5
55121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55122 (exit $ac_status); }; }; then
55123 ac_cv_search_fdatasync="none required"
55125 echo "$as_me: failed program was:" >&5
55126 sed 's/^/| /' conftest.$ac_ext >&5
55129 rm -f conftest.err conftest.$ac_objext \
55130 conftest$ac_exeext conftest.$ac_ext
55131 if test "$ac_cv_search_fdatasync" = no; then
55132 for ac_lib in rt posix4; do
55133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
55134 cat >conftest.$ac_ext <<_ACEOF
55137 cat confdefs.h >>conftest.$ac_ext
55138 cat >>conftest.$ac_ext <<_ACEOF
55139 /* end confdefs.h. */
55141 /* Override any gcc2 internal prototype to avoid an error. */
55145 /* We use char because int might match the return type of a gcc2
55146 builtin and then its argument prototype would still apply. */
55156 rm -f conftest.$ac_objext conftest$ac_exeext
55157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55158 (eval $ac_link) 2>conftest.er1
55160 grep -v '^ *+' conftest.er1 >conftest.err
55162 cat conftest.err >&5
55163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55164 (exit $ac_status); } &&
55165 { ac_try='test -z "$ac_c_werror_flag"
55166 || test ! -s conftest.err'
55167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55168 (eval $ac_try) 2>&5
55170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55171 (exit $ac_status); }; } &&
55172 { ac_try='test -s conftest$ac_exeext'
55173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55174 (eval $ac_try) 2>&5
55176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55177 (exit $ac_status); }; }; then
55178 ac_cv_search_fdatasync="-l$ac_lib"
55181 echo "$as_me: failed program was:" >&5
55182 sed 's/^/| /' conftest.$ac_ext >&5
55185 rm -f conftest.err conftest.$ac_objext \
55186 conftest$ac_exeext conftest.$ac_ext
55189 LIBS=$ac_func_search_save_LIBS
55191 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
55192 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
55193 if test "$ac_cv_search_fdatasync" != no; then
55194 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
55195 test "$ac_cv_search_fdatasync" = "none required" ||
55196 LIB_FDATASYNC=$ac_cv_search_fdatasync
55201 for ac_func in fdatasync
55203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55204 echo "$as_me:$LINENO: checking for $ac_func" >&5
55205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55206 if eval "test \"\${$as_ac_var+set}\" = set"; then
55207 echo $ECHO_N "(cached) $ECHO_C" >&6
55209 cat >conftest.$ac_ext <<_ACEOF
55212 cat confdefs.h >>conftest.$ac_ext
55213 cat >>conftest.$ac_ext <<_ACEOF
55214 /* end confdefs.h. */
55215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55217 #define $ac_func innocuous_$ac_func
55219 /* System header to define __stub macros and hopefully few prototypes,
55220 which can conflict with char $ac_func (); below.
55221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55222 <limits.h> exists even on freestanding compilers. */
55225 # include <limits.h>
55227 # include <assert.h>
55232 /* Override any gcc2 internal prototype to avoid an error. */
55237 /* We use char because int might match the return type of a gcc2
55238 builtin and then its argument prototype would still apply. */
55240 /* The GNU C library defines this for functions which it implements
55241 to always fail with ENOSYS. Some functions are actually named
55242 something starting with __ and the normal name is an alias. */
55243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55246 char (*f) () = $ac_func;
55255 return f != $ac_func;
55260 rm -f conftest.$ac_objext conftest$ac_exeext
55261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55262 (eval $ac_link) 2>conftest.er1
55264 grep -v '^ *+' conftest.er1 >conftest.err
55266 cat conftest.err >&5
55267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55268 (exit $ac_status); } &&
55269 { ac_try='test -z "$ac_c_werror_flag"
55270 || test ! -s conftest.err'
55271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55272 (eval $ac_try) 2>&5
55274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55275 (exit $ac_status); }; } &&
55276 { ac_try='test -s conftest$ac_exeext'
55277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55278 (eval $ac_try) 2>&5
55280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55281 (exit $ac_status); }; }; then
55282 eval "$as_ac_var=yes"
55284 echo "$as_me: failed program was:" >&5
55285 sed 's/^/| /' conftest.$ac_ext >&5
55287 eval "$as_ac_var=no"
55289 rm -f conftest.err conftest.$ac_objext \
55290 conftest$ac_exeext conftest.$ac_ext
55292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55294 if test `eval echo '${'$as_ac_var'}'` = yes; then
55295 cat >>confdefs.h <<_ACEOF
55296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55302 LIBS=$fetish_saved_libs
55304 # See if linking `seq' requires -lm.
55305 # It does on nearly every system. The single exception (so far) is
55306 # BeOS which has all the math functions in the normal runtime library
55307 # and doesn't have a separate math library.
55311 static double x, y;
55315 cat >conftest.$ac_ext <<_ACEOF
55318 cat confdefs.h >>conftest.$ac_ext
55319 cat >>conftest.$ac_ext <<_ACEOF
55320 /* end confdefs.h. */
55330 rm -f conftest.$ac_objext conftest$ac_exeext
55331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55332 (eval $ac_link) 2>conftest.er1
55334 grep -v '^ *+' conftest.er1 >conftest.err
55336 cat conftest.err >&5
55337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55338 (exit $ac_status); } &&
55339 { ac_try='test -z "$ac_c_werror_flag"
55340 || test ! -s conftest.err'
55341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55342 (eval $ac_try) 2>&5
55344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55345 (exit $ac_status); }; } &&
55346 { ac_try='test -s conftest$ac_exeext'
55347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55348 (eval $ac_try) 2>&5
55350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55351 (exit $ac_status); }; }; then
55354 echo "$as_me: failed program was:" >&5
55355 sed 's/^/| /' conftest.$ac_ext >&5
55357 ac_seq_save_LIBS="$LIBS"
55359 cat >conftest.$ac_ext <<_ACEOF
55362 cat confdefs.h >>conftest.$ac_ext
55363 cat >>conftest.$ac_ext <<_ACEOF
55364 /* end confdefs.h. */
55374 rm -f conftest.$ac_objext conftest$ac_exeext
55375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55376 (eval $ac_link) 2>conftest.er1
55378 grep -v '^ *+' conftest.er1 >conftest.err
55380 cat conftest.err >&5
55381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55382 (exit $ac_status); } &&
55383 { ac_try='test -z "$ac_c_werror_flag"
55384 || test ! -s conftest.err'
55385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55386 (eval $ac_try) 2>&5
55388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55389 (exit $ac_status); }; } &&
55390 { ac_try='test -s conftest$ac_exeext'
55391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55392 (eval $ac_try) 2>&5
55394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55395 (exit $ac_status); }; }; then
55398 echo "$as_me: failed program was:" >&5
55399 sed 's/^/| /' conftest.$ac_ext >&5
55402 rm -f conftest.err conftest.$ac_objext \
55403 conftest$ac_exeext conftest.$ac_ext
55404 LIBS="$ac_seq_save_LIBS"
55407 rm -f conftest.err conftest.$ac_objext \
55408 conftest$ac_exeext conftest.$ac_ext
55411 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
55412 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
55413 if test "${am_cv_langinfo_codeset+set}" = set; then
55414 echo $ECHO_N "(cached) $ECHO_C" >&6
55416 cat >conftest.$ac_ext <<_ACEOF
55419 cat confdefs.h >>conftest.$ac_ext
55420 cat >>conftest.$ac_ext <<_ACEOF
55421 /* end confdefs.h. */
55422 #include <langinfo.h>
55426 char* cs = nl_langinfo(CODESET);
55431 rm -f conftest.$ac_objext conftest$ac_exeext
55432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55433 (eval $ac_link) 2>conftest.er1
55435 grep -v '^ *+' conftest.er1 >conftest.err
55437 cat conftest.err >&5
55438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55439 (exit $ac_status); } &&
55440 { ac_try='test -z "$ac_c_werror_flag"
55441 || test ! -s conftest.err'
55442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55443 (eval $ac_try) 2>&5
55445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55446 (exit $ac_status); }; } &&
55447 { ac_try='test -s conftest$ac_exeext'
55448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55449 (eval $ac_try) 2>&5
55451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55452 (exit $ac_status); }; }; then
55453 am_cv_langinfo_codeset=yes
55455 echo "$as_me: failed program was:" >&5
55456 sed 's/^/| /' conftest.$ac_ext >&5
55458 am_cv_langinfo_codeset=no
55460 rm -f conftest.err conftest.$ac_objext \
55461 conftest$ac_exeext conftest.$ac_ext
55464 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
55465 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
55466 if test $am_cv_langinfo_codeset = yes; then
55468 cat >>confdefs.h <<\_ACEOF
55469 #define HAVE_LANGINFO_CODESET 1
55475 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
55476 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
55477 if test "${ac_cv_gnu_library_2_1+set}" = set; then
55478 echo $ECHO_N "(cached) $ECHO_C" >&6
55480 cat >conftest.$ac_ext <<_ACEOF
55483 cat confdefs.h >>conftest.$ac_ext
55484 cat >>conftest.$ac_ext <<_ACEOF
55485 /* end confdefs.h. */
55487 #include <features.h>
55488 #ifdef __GNU_LIBRARY__
55489 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
55495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55496 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
55497 ac_cv_gnu_library_2_1=yes
55499 ac_cv_gnu_library_2_1=no
55506 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
55507 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
55509 GLIBC21="$ac_cv_gnu_library_2_1"
55517 am_save_CPPFLAGS="$CPPFLAGS"
55519 for element in $INCICONV; do
55521 for x in $CPPFLAGS; do
55523 acl_save_prefix="$prefix"
55524 prefix="$acl_final_prefix"
55525 acl_save_exec_prefix="$exec_prefix"
55526 exec_prefix="$acl_final_exec_prefix"
55528 exec_prefix="$acl_save_exec_prefix"
55529 prefix="$acl_save_prefix"
55531 if test "X$x" = "X$element"; then
55536 if test -z "$haveit"; then
55537 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55542 echo "$as_me:$LINENO: checking for iconv" >&5
55543 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
55544 if test "${am_cv_func_iconv+set}" = set; then
55545 echo $ECHO_N "(cached) $ECHO_C" >&6
55548 am_cv_func_iconv="no, consider installing GNU libiconv"
55550 cat >conftest.$ac_ext <<_ACEOF
55553 cat confdefs.h >>conftest.$ac_ext
55554 cat >>conftest.$ac_ext <<_ACEOF
55555 /* end confdefs.h. */
55556 #include <stdlib.h>
55561 iconv_t cd = iconv_open("","");
55562 iconv(cd,NULL,NULL,NULL,NULL);
55568 rm -f conftest.$ac_objext conftest$ac_exeext
55569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55570 (eval $ac_link) 2>conftest.er1
55572 grep -v '^ *+' conftest.er1 >conftest.err
55574 cat conftest.err >&5
55575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55576 (exit $ac_status); } &&
55577 { ac_try='test -z "$ac_c_werror_flag"
55578 || test ! -s conftest.err'
55579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55580 (eval $ac_try) 2>&5
55582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55583 (exit $ac_status); }; } &&
55584 { ac_try='test -s conftest$ac_exeext'
55585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55586 (eval $ac_try) 2>&5
55588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55589 (exit $ac_status); }; }; then
55590 am_cv_func_iconv=yes
55592 echo "$as_me: failed program was:" >&5
55593 sed 's/^/| /' conftest.$ac_ext >&5
55596 rm -f conftest.err conftest.$ac_objext \
55597 conftest$ac_exeext conftest.$ac_ext
55598 if test "$am_cv_func_iconv" != yes; then
55599 am_save_LIBS="$LIBS"
55600 LIBS="$LIBS $LIBICONV"
55601 cat >conftest.$ac_ext <<_ACEOF
55604 cat confdefs.h >>conftest.$ac_ext
55605 cat >>conftest.$ac_ext <<_ACEOF
55606 /* end confdefs.h. */
55607 #include <stdlib.h>
55612 iconv_t cd = iconv_open("","");
55613 iconv(cd,NULL,NULL,NULL,NULL);
55619 rm -f conftest.$ac_objext conftest$ac_exeext
55620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55621 (eval $ac_link) 2>conftest.er1
55623 grep -v '^ *+' conftest.er1 >conftest.err
55625 cat conftest.err >&5
55626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55627 (exit $ac_status); } &&
55628 { ac_try='test -z "$ac_c_werror_flag"
55629 || test ! -s conftest.err'
55630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55631 (eval $ac_try) 2>&5
55633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55634 (exit $ac_status); }; } &&
55635 { ac_try='test -s conftest$ac_exeext'
55636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55637 (eval $ac_try) 2>&5
55639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55640 (exit $ac_status); }; }; then
55641 am_cv_lib_iconv=yes
55642 am_cv_func_iconv=yes
55644 echo "$as_me: failed program was:" >&5
55645 sed 's/^/| /' conftest.$ac_ext >&5
55648 rm -f conftest.err conftest.$ac_objext \
55649 conftest$ac_exeext conftest.$ac_ext
55650 LIBS="$am_save_LIBS"
55654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
55655 echo "${ECHO_T}$am_cv_func_iconv" >&6
55656 if test "$am_cv_func_iconv" = yes; then
55658 cat >>confdefs.h <<\_ACEOF
55659 #define HAVE_ICONV 1
55663 if test "$am_cv_lib_iconv" = yes; then
55664 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
55665 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
55666 echo "$as_me:$LINENO: result: $LIBICONV" >&5
55667 echo "${ECHO_T}$LIBICONV" >&6
55669 CPPFLAGS="$am_save_CPPFLAGS"
55676 if test "$am_cv_func_iconv" = yes; then
55677 echo "$as_me:$LINENO: checking for iconv declaration" >&5
55678 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
55679 if test "${am_cv_proto_iconv+set}" = set; then
55680 echo $ECHO_N "(cached) $ECHO_C" >&6
55683 cat >conftest.$ac_ext <<_ACEOF
55686 cat confdefs.h >>conftest.$ac_ext
55687 cat >>conftest.$ac_ext <<_ACEOF
55688 /* end confdefs.h. */
55690 #include <stdlib.h>
55696 #if defined(__STDC__) || defined(__cplusplus)
55697 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
55710 rm -f conftest.$ac_objext
55711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55712 (eval $ac_compile) 2>conftest.er1
55714 grep -v '^ *+' conftest.er1 >conftest.err
55716 cat conftest.err >&5
55717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55718 (exit $ac_status); } &&
55719 { ac_try='test -z "$ac_c_werror_flag"
55720 || test ! -s conftest.err'
55721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55722 (eval $ac_try) 2>&5
55724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55725 (exit $ac_status); }; } &&
55726 { ac_try='test -s conftest.$ac_objext'
55727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55728 (eval $ac_try) 2>&5
55730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55731 (exit $ac_status); }; }; then
55732 am_cv_proto_iconv_arg1=""
55734 echo "$as_me: failed program was:" >&5
55735 sed 's/^/| /' conftest.$ac_ext >&5
55737 am_cv_proto_iconv_arg1="const"
55739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55740 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);"
55743 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
55744 echo "$as_me:$LINENO: result: ${ac_t:-
55745 }$am_cv_proto_iconv" >&5
55746 echo "${ECHO_T}${ac_t:-
55747 }$am_cv_proto_iconv" >&6
55749 cat >>confdefs.h <<_ACEOF
55750 #define ICONV_CONST $am_cv_proto_iconv_arg1
55755 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
55756 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
55757 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
55758 echo $ECHO_N "(cached) $ECHO_C" >&6
55761 if test "$cross_compiling" = yes; then
55762 jm_cv_func_unlink_busy_text=no
55765 cat >conftest.$ac_ext <<_ACEOF
55768 cat confdefs.h >>conftest.$ac_ext
55769 cat >>conftest.$ac_ext <<_ACEOF
55770 /* end confdefs.h. */
55778 exit (unlink (argv[0]));
55782 rm -f conftest$ac_exeext
55783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55784 (eval $ac_link) 2>&5
55786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55789 (eval $ac_try) 2>&5
55791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55792 (exit $ac_status); }; }; then
55793 jm_cv_func_unlink_busy_text=yes
55795 echo "$as_me: program exited with status $ac_status" >&5
55796 echo "$as_me: failed program was:" >&5
55797 sed 's/^/| /' conftest.$ac_ext >&5
55799 ( exit $ac_status )
55800 jm_cv_func_unlink_busy_text=no
55802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55807 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
55808 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
55810 if test $jm_cv_func_unlink_busy_text = no; then
55811 INSTALL=$ac_install_sh
55815 # These tests are for df.
55818 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
55819 DF_PROG='df$(EXEEXT)'
55824 # If any of these functions don't exist (e.g. DJGPP 2.03),
55825 # use the corresponding stub.
55826 echo "$as_me:$LINENO: checking for fchdir" >&5
55827 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
55828 if test "${ac_cv_func_fchdir+set}" = set; then
55829 echo $ECHO_N "(cached) $ECHO_C" >&6
55831 cat >conftest.$ac_ext <<_ACEOF
55834 cat confdefs.h >>conftest.$ac_ext
55835 cat >>conftest.$ac_ext <<_ACEOF
55836 /* end confdefs.h. */
55837 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
55838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55839 #define fchdir innocuous_fchdir
55841 /* System header to define __stub macros and hopefully few prototypes,
55842 which can conflict with char fchdir (); below.
55843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55844 <limits.h> exists even on freestanding compilers. */
55847 # include <limits.h>
55849 # include <assert.h>
55854 /* Override any gcc2 internal prototype to avoid an error. */
55859 /* We use char because int might match the return type of a gcc2
55860 builtin and then its argument prototype would still apply. */
55862 /* The GNU C library defines this for functions which it implements
55863 to always fail with ENOSYS. Some functions are actually named
55864 something starting with __ and the normal name is an alias. */
55865 #if defined (__stub_fchdir) || defined (__stub___fchdir)
55868 char (*f) () = fchdir;
55877 return f != fchdir;
55882 rm -f conftest.$ac_objext conftest$ac_exeext
55883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55884 (eval $ac_link) 2>conftest.er1
55886 grep -v '^ *+' conftest.er1 >conftest.err
55888 cat conftest.err >&5
55889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55890 (exit $ac_status); } &&
55891 { ac_try='test -z "$ac_c_werror_flag"
55892 || test ! -s conftest.err'
55893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55894 (eval $ac_try) 2>&5
55896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55897 (exit $ac_status); }; } &&
55898 { ac_try='test -s conftest$ac_exeext'
55899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55900 (eval $ac_try) 2>&5
55902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55903 (exit $ac_status); }; }; then
55904 ac_cv_func_fchdir=yes
55906 echo "$as_me: failed program was:" >&5
55907 sed 's/^/| /' conftest.$ac_ext >&5
55909 ac_cv_func_fchdir=no
55911 rm -f conftest.err conftest.$ac_objext \
55912 conftest$ac_exeext conftest.$ac_ext
55914 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
55915 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
55916 if test $ac_cv_func_fchdir = yes; then
55920 "fchdir-stub.$ac_objext" | \
55921 *" fchdir-stub.$ac_objext" | \
55922 "fchdir-stub.$ac_objext "* | \
55923 *" fchdir-stub.$ac_objext "* ) ;;
55924 *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext" ;;
55934 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
55935 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
55936 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
55937 echo $ECHO_N "(cached) $ECHO_C" >&6
55939 cat >conftest.$ac_ext <<_ACEOF
55942 cat confdefs.h >>conftest.$ac_ext
55943 cat >>conftest.$ac_ext <<_ACEOF
55944 /* end confdefs.h. */
55945 #include <sys/types.h>
55946 #include <termios.h>
55952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55953 $EGREP "yes" >/dev/null 2>&1; then
55954 ac_cv_sys_tiocgwinsz_in_termios_h=yes
55956 ac_cv_sys_tiocgwinsz_in_termios_h=no
55961 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
55962 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
55964 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
55965 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
55966 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
55967 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
55968 echo $ECHO_N "(cached) $ECHO_C" >&6
55970 cat >conftest.$ac_ext <<_ACEOF
55973 cat confdefs.h >>conftest.$ac_ext
55974 cat >>conftest.$ac_ext <<_ACEOF
55975 /* end confdefs.h. */
55976 #include <sys/types.h>
55977 #include <sys/ioctl.h>
55983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55984 $EGREP "yes" >/dev/null 2>&1; then
55985 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
55987 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
55992 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
55993 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
55995 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
55997 cat >>confdefs.h <<\_ACEOF
55998 #define GWINSZ_IN_SYS_IOCTL 1
56004 echo "$as_me:$LINENO: checking POSIX termios" >&5
56005 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
56006 if test "${ac_cv_sys_posix_termios+set}" = set; then
56007 echo $ECHO_N "(cached) $ECHO_C" >&6
56009 cat >conftest.$ac_ext <<_ACEOF
56012 cat confdefs.h >>conftest.$ac_ext
56013 cat >>conftest.$ac_ext <<_ACEOF
56014 /* end confdefs.h. */
56015 #include <sys/types.h>
56016 #include <unistd.h>
56017 #include <termios.h>
56022 /* SunOS 4.0.3 has termios.h but not the library calls. */
56028 rm -f conftest.$ac_objext conftest$ac_exeext
56029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56030 (eval $ac_link) 2>conftest.er1
56032 grep -v '^ *+' conftest.er1 >conftest.err
56034 cat conftest.err >&5
56035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56036 (exit $ac_status); } &&
56037 { ac_try='test -z "$ac_c_werror_flag"
56038 || test ! -s conftest.err'
56039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56040 (eval $ac_try) 2>&5
56042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56043 (exit $ac_status); }; } &&
56044 { ac_try='test -s conftest$ac_exeext'
56045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56046 (eval $ac_try) 2>&5
56048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56049 (exit $ac_status); }; }; then
56050 ac_cv_sys_posix_termios=yes
56052 echo "$as_me: failed program was:" >&5
56053 sed 's/^/| /' conftest.$ac_ext >&5
56055 ac_cv_sys_posix_termios=no
56057 rm -f conftest.err conftest.$ac_objext \
56058 conftest$ac_exeext conftest.$ac_ext
56060 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
56061 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
56064 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
56065 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
56066 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
56067 echo $ECHO_N "(cached) $ECHO_C" >&6
56069 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
56070 if test $ac_cv_sys_posix_termios = yes; then
56071 cat >conftest.$ac_ext <<_ACEOF
56074 cat confdefs.h >>conftest.$ac_ext
56075 cat >>conftest.$ac_ext <<_ACEOF
56076 /* end confdefs.h. */
56077 #include <termios.h>
56082 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56087 rm -f conftest.$ac_objext
56088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56089 (eval $ac_compile) 2>conftest.er1
56091 grep -v '^ *+' conftest.er1 >conftest.err
56093 cat conftest.err >&5
56094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56095 (exit $ac_status); } &&
56096 { ac_try='test -z "$ac_c_werror_flag"
56097 || test ! -s conftest.err'
56098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56099 (eval $ac_try) 2>&5
56101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56102 (exit $ac_status); }; } &&
56103 { ac_try='test -s conftest.$ac_objext'
56104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56105 (eval $ac_try) 2>&5
56107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56108 (exit $ac_status); }; }; then
56111 echo "$as_me: failed program was:" >&5
56112 sed 's/^/| /' conftest.$ac_ext >&5
56115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56117 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56118 cat >conftest.$ac_ext <<_ACEOF
56121 cat confdefs.h >>conftest.$ac_ext
56122 cat >>conftest.$ac_ext <<_ACEOF
56123 /* end confdefs.h. */
56124 #include <sys/ptem.h>
56133 rm -f conftest.$ac_objext
56134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56135 (eval $ac_compile) 2>conftest.er1
56137 grep -v '^ *+' conftest.er1 >conftest.err
56139 cat conftest.err >&5
56140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56141 (exit $ac_status); } &&
56142 { ac_try='test -z "$ac_c_werror_flag"
56143 || test ! -s conftest.err'
56144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56145 (eval $ac_try) 2>&5
56147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56148 (exit $ac_status); }; } &&
56149 { ac_try='test -s conftest.$ac_objext'
56150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56151 (eval $ac_try) 2>&5
56153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56154 (exit $ac_status); }; }; then
56157 echo "$as_me: failed program was:" >&5
56158 sed 's/^/| /' conftest.$ac_ext >&5
56160 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56165 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
56166 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
56167 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56169 cat >>confdefs.h <<\_ACEOF
56170 #define WINSIZE_IN_PTEM 1
56175 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
56176 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
56177 if test "${utils_cv_localtime_cache+set}" = set; then
56178 echo $ECHO_N "(cached) $ECHO_C" >&6
56180 if test x$ac_cv_func_tzset = xyes; then
56181 if test "$cross_compiling" = yes; then
56182 # If we have tzset, assume the worst when cross-compiling.
56183 utils_cv_localtime_cache=yes
56185 cat >conftest.$ac_ext <<_ACEOF
56188 cat confdefs.h >>conftest.$ac_ext
56189 cat >>conftest.$ac_ext <<_ACEOF
56190 /* end confdefs.h. */
56193 # include <stdlib.h>
56195 extern char **environ;
56199 for (to = from = environ; (*to = *from); from++)
56200 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
56205 time_t now = time ((time_t *) 0);
56206 int hour_GMT0, hour_unset;
56207 if (putenv ("TZ=GMT0") != 0)
56209 hour_GMT0 = localtime (&now)->tm_hour;
56211 hour_unset = localtime (&now)->tm_hour;
56212 if (putenv ("TZ=PST8") != 0)
56214 if (localtime (&now)->tm_hour == hour_GMT0)
56217 if (localtime (&now)->tm_hour != hour_unset)
56222 rm -f conftest$ac_exeext
56223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56224 (eval $ac_link) 2>&5
56226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56229 (eval $ac_try) 2>&5
56231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56232 (exit $ac_status); }; }; then
56233 utils_cv_localtime_cache=no
56235 echo "$as_me: program exited with status $ac_status" >&5
56236 echo "$as_me: failed program was:" >&5
56237 sed 's/^/| /' conftest.$ac_ext >&5
56239 ( exit $ac_status )
56240 utils_cv_localtime_cache=yes
56242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56245 # If we lack tzset, report that localtime does not cache TZ,
56246 # since we can't invalidate the cache if we don't have tzset.
56247 utils_cv_localtime_cache=no
56250 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
56251 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
56252 if test $utils_cv_localtime_cache = yes; then
56254 cat >>confdefs.h <<\_ACEOF
56255 #define LOCALTIME_CACHE 1
56260 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
56262 for ac_func in initgroups
56264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56265 echo "$as_me:$LINENO: checking for $ac_func" >&5
56266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56267 if eval "test \"\${$as_ac_var+set}\" = set"; then
56268 echo $ECHO_N "(cached) $ECHO_C" >&6
56270 cat >conftest.$ac_ext <<_ACEOF
56273 cat confdefs.h >>conftest.$ac_ext
56274 cat >>conftest.$ac_ext <<_ACEOF
56275 /* end confdefs.h. */
56276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56278 #define $ac_func innocuous_$ac_func
56280 /* System header to define __stub macros and hopefully few prototypes,
56281 which can conflict with char $ac_func (); below.
56282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56283 <limits.h> exists even on freestanding compilers. */
56286 # include <limits.h>
56288 # include <assert.h>
56293 /* Override any gcc2 internal prototype to avoid an error. */
56298 /* We use char because int might match the return type of a gcc2
56299 builtin and then its argument prototype would still apply. */
56301 /* The GNU C library defines this for functions which it implements
56302 to always fail with ENOSYS. Some functions are actually named
56303 something starting with __ and the normal name is an alias. */
56304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56307 char (*f) () = $ac_func;
56316 return f != $ac_func;
56321 rm -f conftest.$ac_objext conftest$ac_exeext
56322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56323 (eval $ac_link) 2>conftest.er1
56325 grep -v '^ *+' conftest.er1 >conftest.err
56327 cat conftest.err >&5
56328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56329 (exit $ac_status); } &&
56330 { ac_try='test -z "$ac_c_werror_flag"
56331 || test ! -s conftest.err'
56332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56333 (eval $ac_try) 2>&5
56335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56336 (exit $ac_status); }; } &&
56337 { ac_try='test -s conftest$ac_exeext'
56338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56339 (eval $ac_try) 2>&5
56341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56342 (exit $ac_status); }; }; then
56343 eval "$as_ac_var=yes"
56345 echo "$as_me: failed program was:" >&5
56346 sed 's/^/| /' conftest.$ac_ext >&5
56348 eval "$as_ac_var=no"
56350 rm -f conftest.err conftest.$ac_objext \
56351 conftest$ac_exeext conftest.$ac_ext
56353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56355 if test `eval echo '${'$as_ac_var'}'` = yes; then
56356 cat >>confdefs.h <<_ACEOF
56357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56363 if test $ac_cv_func_initgroups = no; then
56365 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
56366 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
56367 if test "${ac_cv_lib_os_initgroups+set}" = set; then
56368 echo $ECHO_N "(cached) $ECHO_C" >&6
56370 ac_check_lib_save_LIBS=$LIBS
56372 cat >conftest.$ac_ext <<_ACEOF
56375 cat confdefs.h >>conftest.$ac_ext
56376 cat >>conftest.$ac_ext <<_ACEOF
56377 /* end confdefs.h. */
56379 /* Override any gcc2 internal prototype to avoid an error. */
56383 /* We use char because int might match the return type of a gcc2
56384 builtin and then its argument prototype would still apply. */
56385 char initgroups ();
56394 rm -f conftest.$ac_objext conftest$ac_exeext
56395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56396 (eval $ac_link) 2>conftest.er1
56398 grep -v '^ *+' conftest.er1 >conftest.err
56400 cat conftest.err >&5
56401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56402 (exit $ac_status); } &&
56403 { ac_try='test -z "$ac_c_werror_flag"
56404 || test ! -s conftest.err'
56405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56406 (eval $ac_try) 2>&5
56408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56409 (exit $ac_status); }; } &&
56410 { ac_try='test -s conftest$ac_exeext'
56411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56412 (eval $ac_try) 2>&5
56414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56415 (exit $ac_status); }; }; then
56416 ac_cv_lib_os_initgroups=yes
56418 echo "$as_me: failed program was:" >&5
56419 sed 's/^/| /' conftest.$ac_ext >&5
56421 ac_cv_lib_os_initgroups=no
56423 rm -f conftest.err conftest.$ac_objext \
56424 conftest$ac_exeext conftest.$ac_ext
56425 LIBS=$ac_check_lib_save_LIBS
56427 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
56428 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
56429 if test $ac_cv_lib_os_initgroups = yes; then
56430 cat >>confdefs.h <<_ACEOF
56431 #define HAVE_LIBOS 1
56441 for ac_func in syslog
56443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56444 echo "$as_me:$LINENO: checking for $ac_func" >&5
56445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56446 if eval "test \"\${$as_ac_var+set}\" = set"; then
56447 echo $ECHO_N "(cached) $ECHO_C" >&6
56449 cat >conftest.$ac_ext <<_ACEOF
56452 cat confdefs.h >>conftest.$ac_ext
56453 cat >>conftest.$ac_ext <<_ACEOF
56454 /* end confdefs.h. */
56455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56457 #define $ac_func innocuous_$ac_func
56459 /* System header to define __stub macros and hopefully few prototypes,
56460 which can conflict with char $ac_func (); below.
56461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56462 <limits.h> exists even on freestanding compilers. */
56465 # include <limits.h>
56467 # include <assert.h>
56472 /* Override any gcc2 internal prototype to avoid an error. */
56477 /* We use char because int might match the return type of a gcc2
56478 builtin and then its argument prototype would still apply. */
56480 /* The GNU C library defines this for functions which it implements
56481 to always fail with ENOSYS. Some functions are actually named
56482 something starting with __ and the normal name is an alias. */
56483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56486 char (*f) () = $ac_func;
56495 return f != $ac_func;
56500 rm -f conftest.$ac_objext conftest$ac_exeext
56501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56502 (eval $ac_link) 2>conftest.er1
56504 grep -v '^ *+' conftest.er1 >conftest.err
56506 cat conftest.err >&5
56507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56508 (exit $ac_status); } &&
56509 { ac_try='test -z "$ac_c_werror_flag"
56510 || test ! -s conftest.err'
56511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56512 (eval $ac_try) 2>&5
56514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56515 (exit $ac_status); }; } &&
56516 { ac_try='test -s conftest$ac_exeext'
56517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56518 (eval $ac_try) 2>&5
56520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56521 (exit $ac_status); }; }; then
56522 eval "$as_ac_var=yes"
56524 echo "$as_me: failed program was:" >&5
56525 sed 's/^/| /' conftest.$ac_ext >&5
56527 eval "$as_ac_var=no"
56529 rm -f conftest.err conftest.$ac_objext \
56530 conftest$ac_exeext conftest.$ac_ext
56532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56534 if test `eval echo '${'$as_ac_var'}'` = yes; then
56535 cat >>confdefs.h <<_ACEOF
56536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56542 if test $ac_cv_func_syslog = no; then
56543 # syslog is not in the default libraries. See if it's in some other.
56544 for lib in bsd socket inet; do
56545 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
56546 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
56547 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
56548 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
56549 echo $ECHO_N "(cached) $ECHO_C" >&6
56551 ac_check_lib_save_LIBS=$LIBS
56552 LIBS="-l$lib $LIBS"
56553 cat >conftest.$ac_ext <<_ACEOF
56556 cat confdefs.h >>conftest.$ac_ext
56557 cat >>conftest.$ac_ext <<_ACEOF
56558 /* end confdefs.h. */
56560 /* Override any gcc2 internal prototype to avoid an error. */
56564 /* We use char because int might match the return type of a gcc2
56565 builtin and then its argument prototype would still apply. */
56575 rm -f conftest.$ac_objext conftest$ac_exeext
56576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56577 (eval $ac_link) 2>conftest.er1
56579 grep -v '^ *+' conftest.er1 >conftest.err
56581 cat conftest.err >&5
56582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56583 (exit $ac_status); } &&
56584 { ac_try='test -z "$ac_c_werror_flag"
56585 || test ! -s conftest.err'
56586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56587 (eval $ac_try) 2>&5
56589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56590 (exit $ac_status); }; } &&
56591 { ac_try='test -s conftest$ac_exeext'
56592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56593 (eval $ac_try) 2>&5
56595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56596 (exit $ac_status); }; }; then
56597 eval "$as_ac_Lib=yes"
56599 echo "$as_me: failed program was:" >&5
56600 sed 's/^/| /' conftest.$ac_ext >&5
56602 eval "$as_ac_Lib=no"
56604 rm -f conftest.err conftest.$ac_objext \
56605 conftest$ac_exeext conftest.$ac_ext
56606 LIBS=$ac_check_lib_save_LIBS
56608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
56609 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
56610 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
56612 cat >>confdefs.h <<\_ACEOF
56613 #define HAVE_SYSLOG 1
56616 LIBS="$LIBS -l$lib"; break
56622 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
56623 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
56624 if test "${utils_cv_func_setpriority+set}" = set; then
56625 echo $ECHO_N "(cached) $ECHO_C" >&6
56627 cat >conftest.$ac_ext <<_ACEOF
56630 cat confdefs.h >>conftest.$ac_ext
56631 cat >>conftest.$ac_ext <<_ACEOF
56632 /* end confdefs.h. */
56633 #include <sys/time.h>
56634 #include <sys/resource.h>
56638 setpriority(0, 0, 0);
56643 rm -f conftest.$ac_objext conftest$ac_exeext
56644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56645 (eval $ac_link) 2>conftest.er1
56647 grep -v '^ *+' conftest.er1 >conftest.err
56649 cat conftest.err >&5
56650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56651 (exit $ac_status); } &&
56652 { ac_try='test -z "$ac_c_werror_flag"
56653 || test ! -s conftest.err'
56654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56655 (eval $ac_try) 2>&5
56657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56658 (exit $ac_status); }; } &&
56659 { ac_try='test -s conftest$ac_exeext'
56660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56661 (eval $ac_try) 2>&5
56663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56664 (exit $ac_status); }; }; then
56665 utils_cv_func_setpriority=yes
56667 echo "$as_me: failed program was:" >&5
56668 sed 's/^/| /' conftest.$ac_ext >&5
56670 utils_cv_func_setpriority=no
56672 rm -f conftest.err conftest.$ac_objext \
56673 conftest$ac_exeext conftest.$ac_ext
56676 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
56677 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
56678 if test $utils_cv_func_setpriority = yes; then
56679 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
56682 echo "$as_me:$LINENO: checking for nice function" >&5
56683 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
56684 if test "${utils_cv_func_nice+set}" = set; then
56685 echo $ECHO_N "(cached) $ECHO_C" >&6
56687 cat >conftest.$ac_ext <<_ACEOF
56690 cat confdefs.h >>conftest.$ac_ext
56691 cat >>conftest.$ac_ext <<_ACEOF
56692 /* end confdefs.h. */
56702 rm -f conftest.$ac_objext conftest$ac_exeext
56703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56704 (eval $ac_link) 2>conftest.er1
56706 grep -v '^ *+' conftest.er1 >conftest.err
56708 cat conftest.err >&5
56709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56710 (exit $ac_status); } &&
56711 { ac_try='test -z "$ac_c_werror_flag"
56712 || test ! -s conftest.err'
56713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56714 (eval $ac_try) 2>&5
56716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56717 (exit $ac_status); }; } &&
56718 { ac_try='test -s conftest$ac_exeext'
56719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56720 (eval $ac_try) 2>&5
56722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56723 (exit $ac_status); }; }; then
56724 utils_cv_func_nice=yes
56726 echo "$as_me: failed program was:" >&5
56727 sed 's/^/| /' conftest.$ac_ext >&5
56729 utils_cv_func_nice=no
56731 rm -f conftest.err conftest.$ac_objext \
56732 conftest$ac_exeext conftest.$ac_ext
56735 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
56736 echo "${ECHO_T}$utils_cv_func_nice" >&6
56737 if test $utils_cv_func_nice = yes; then
56739 cat >>confdefs.h <<\_ACEOF
56740 #define NICE_PRIORITY 1
56743 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
56751 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
56752 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
56753 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
56754 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
56755 MAN="$MAN pinky.1 users.1 who.1"
56759 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
56760 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
56761 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
56762 echo $ECHO_N "(cached) $ECHO_C" >&6
56764 cat >conftest.$ac_ext <<_ACEOF
56767 cat confdefs.h >>conftest.$ac_ext
56768 cat >>conftest.$ac_ext <<_ACEOF
56769 /* end confdefs.h. */
56770 #include <sys/types.h>
56775 struct utmp ut; ut.ut_host;
56780 rm -f conftest.$ac_objext conftest$ac_exeext
56781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56782 (eval $ac_link) 2>conftest.er1
56784 grep -v '^ *+' conftest.er1 >conftest.err
56786 cat conftest.err >&5
56787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56788 (exit $ac_status); } &&
56789 { ac_try='test -z "$ac_c_werror_flag"
56790 || test ! -s conftest.err'
56791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56792 (eval $ac_try) 2>&5
56794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56795 (exit $ac_status); }; } &&
56796 { ac_try='test -s conftest$ac_exeext'
56797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56798 (eval $ac_try) 2>&5
56800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56801 (exit $ac_status); }; }; then
56802 su_cv_func_ut_host_in_utmp=yes
56804 echo "$as_me: failed program was:" >&5
56805 sed 's/^/| /' conftest.$ac_ext >&5
56807 su_cv_func_ut_host_in_utmp=no
56809 rm -f conftest.err conftest.$ac_objext \
56810 conftest$ac_exeext conftest.$ac_ext
56813 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
56814 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
56815 if test $su_cv_func_ut_host_in_utmp = yes; then
56818 cat >>confdefs.h <<\_ACEOF
56819 #define HAVE_UT_HOST 1
56824 if test -z "$have_ut_host"; then
56825 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
56826 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
56827 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
56828 echo $ECHO_N "(cached) $ECHO_C" >&6
56830 cat >conftest.$ac_ext <<_ACEOF
56833 cat confdefs.h >>conftest.$ac_ext
56834 cat >>conftest.$ac_ext <<_ACEOF
56835 /* end confdefs.h. */
56836 #include <sys/types.h>
56841 struct utmpx ut; ut.ut_host;
56846 rm -f conftest.$ac_objext conftest$ac_exeext
56847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56848 (eval $ac_link) 2>conftest.er1
56850 grep -v '^ *+' conftest.er1 >conftest.err
56852 cat conftest.err >&5
56853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56854 (exit $ac_status); } &&
56855 { ac_try='test -z "$ac_c_werror_flag"
56856 || test ! -s conftest.err'
56857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56858 (eval $ac_try) 2>&5
56860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861 (exit $ac_status); }; } &&
56862 { ac_try='test -s conftest$ac_exeext'
56863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56864 (eval $ac_try) 2>&5
56866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56867 (exit $ac_status); }; }; then
56868 su_cv_func_ut_host_in_utmpx=yes
56870 echo "$as_me: failed program was:" >&5
56871 sed 's/^/| /' conftest.$ac_ext >&5
56873 su_cv_func_ut_host_in_utmpx=no
56875 rm -f conftest.err conftest.$ac_objext \
56876 conftest$ac_exeext conftest.$ac_ext
56879 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
56880 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
56881 if test $su_cv_func_ut_host_in_utmpx = yes; then
56883 cat >>confdefs.h <<\_ACEOF
56884 #define HAVE_UTMPX_H 1
56888 cat >>confdefs.h <<\_ACEOF
56889 #define HAVE_UT_HOST 1
56897 for ac_func in sysctl
56899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56900 echo "$as_me:$LINENO: checking for $ac_func" >&5
56901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56902 if eval "test \"\${$as_ac_var+set}\" = set"; then
56903 echo $ECHO_N "(cached) $ECHO_C" >&6
56905 cat >conftest.$ac_ext <<_ACEOF
56908 cat confdefs.h >>conftest.$ac_ext
56909 cat >>conftest.$ac_ext <<_ACEOF
56910 /* end confdefs.h. */
56911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56913 #define $ac_func innocuous_$ac_func
56915 /* System header to define __stub macros and hopefully few prototypes,
56916 which can conflict with char $ac_func (); below.
56917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56918 <limits.h> exists even on freestanding compilers. */
56921 # include <limits.h>
56923 # include <assert.h>
56928 /* Override any gcc2 internal prototype to avoid an error. */
56933 /* We use char because int might match the return type of a gcc2
56934 builtin and then its argument prototype would still apply. */
56936 /* The GNU C library defines this for functions which it implements
56937 to always fail with ENOSYS. Some functions are actually named
56938 something starting with __ and the normal name is an alias. */
56939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56942 char (*f) () = $ac_func;
56951 return f != $ac_func;
56956 rm -f conftest.$ac_objext conftest$ac_exeext
56957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56958 (eval $ac_link) 2>conftest.er1
56960 grep -v '^ *+' conftest.er1 >conftest.err
56962 cat conftest.err >&5
56963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56964 (exit $ac_status); } &&
56965 { ac_try='test -z "$ac_c_werror_flag"
56966 || test ! -s conftest.err'
56967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56968 (eval $ac_try) 2>&5
56970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56971 (exit $ac_status); }; } &&
56972 { ac_try='test -s conftest$ac_exeext'
56973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56974 (eval $ac_try) 2>&5
56976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56977 (exit $ac_status); }; }; then
56978 eval "$as_ac_var=yes"
56980 echo "$as_me: failed program was:" >&5
56981 sed 's/^/| /' conftest.$ac_ext >&5
56983 eval "$as_ac_var=no"
56985 rm -f conftest.err conftest.$ac_objext \
56986 conftest$ac_exeext conftest.$ac_ext
56988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56990 if test `eval echo '${'$as_ac_var'}'` = yes; then
56991 cat >>confdefs.h <<_ACEOF
56992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57006 for ac_header in sys/sysctl.h
57008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57009 echo "$as_me:$LINENO: checking for $ac_header" >&5
57010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57012 echo $ECHO_N "(cached) $ECHO_C" >&6
57014 cat >conftest.$ac_ext <<_ACEOF
57017 cat confdefs.h >>conftest.$ac_ext
57018 cat >>conftest.$ac_ext <<_ACEOF
57019 /* end confdefs.h. */
57020 $ac_includes_default
57021 #if HAVE_SYS_PARAM_H
57022 #include <sys/param.h>
57025 #include <$ac_header>
57027 rm -f conftest.$ac_objext
57028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57029 (eval $ac_compile) 2>conftest.er1
57031 grep -v '^ *+' conftest.er1 >conftest.err
57033 cat conftest.err >&5
57034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57035 (exit $ac_status); } &&
57036 { ac_try='test -z "$ac_c_werror_flag"
57037 || test ! -s conftest.err'
57038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57039 (eval $ac_try) 2>&5
57041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57042 (exit $ac_status); }; } &&
57043 { ac_try='test -s conftest.$ac_objext'
57044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57045 (eval $ac_try) 2>&5
57047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57048 (exit $ac_status); }; }; then
57049 eval "$as_ac_Header=yes"
57051 echo "$as_me: failed program was:" >&5
57052 sed 's/^/| /' conftest.$ac_ext >&5
57054 eval "$as_ac_Header=no"
57056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57061 cat >>confdefs.h <<_ACEOF
57062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57069 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
57070 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
57071 if test "${gnulib_cv_have_boot_time+set}" = set; then
57072 echo $ECHO_N "(cached) $ECHO_C" >&6
57075 cat >conftest.$ac_ext <<_ACEOF
57078 cat confdefs.h >>conftest.$ac_ext
57079 cat >>conftest.$ac_ext <<_ACEOF
57080 /* end confdefs.h. */
57081 $ac_includes_default
57082 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
57083 # if HAVE_SYS_PARAM_H
57084 # include <sys/param.h> /* needed for OpenBSD 3.0 */
57086 # include <sys/sysctl.h>
57088 #ifdef HAVE_UTMPX_H
57089 # include <utmpx.h>
57098 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
57099 /* your system *does* have the infrastructure to determine boot time */
57101 please_tell_us_how_to_determine_boot_time_on_your_system
57108 rm -f conftest.$ac_objext
57109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57110 (eval $ac_compile) 2>conftest.er1
57112 grep -v '^ *+' conftest.er1 >conftest.err
57114 cat conftest.err >&5
57115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57116 (exit $ac_status); } &&
57117 { ac_try='test -z "$ac_c_werror_flag"
57118 || test ! -s conftest.err'
57119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57120 (eval $ac_try) 2>&5
57122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57123 (exit $ac_status); }; } &&
57124 { ac_try='test -s conftest.$ac_objext'
57125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57126 (eval $ac_try) 2>&5
57128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57129 (exit $ac_status); }; }; then
57130 gnulib_cv_have_boot_time=yes
57132 echo "$as_me: failed program was:" >&5
57133 sed 's/^/| /' conftest.$ac_ext >&5
57135 gnulib_cv_have_boot_time=no
57137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57140 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
57141 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
57142 if test $gnulib_cv_have_boot_time = yes; then
57143 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
57144 MAN="$MAN uptime.1"
57149 echo "$as_me:$LINENO: checking POSIX termios" >&5
57150 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
57151 if test "${ac_cv_sys_posix_termios+set}" = set; then
57152 echo $ECHO_N "(cached) $ECHO_C" >&6
57154 cat >conftest.$ac_ext <<_ACEOF
57157 cat confdefs.h >>conftest.$ac_ext
57158 cat >>conftest.$ac_ext <<_ACEOF
57159 /* end confdefs.h. */
57160 #include <sys/types.h>
57161 #include <unistd.h>
57162 #include <termios.h>
57167 /* SunOS 4.0.3 has termios.h but not the library calls. */
57173 rm -f conftest.$ac_objext conftest$ac_exeext
57174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57175 (eval $ac_link) 2>conftest.er1
57177 grep -v '^ *+' conftest.er1 >conftest.err
57179 cat conftest.err >&5
57180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57181 (exit $ac_status); } &&
57182 { ac_try='test -z "$ac_c_werror_flag"
57183 || test ! -s conftest.err'
57184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57185 (eval $ac_try) 2>&5
57187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57188 (exit $ac_status); }; } &&
57189 { ac_try='test -s conftest$ac_exeext'
57190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57191 (eval $ac_try) 2>&5
57193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57194 (exit $ac_status); }; }; then
57195 ac_cv_sys_posix_termios=yes
57197 echo "$as_me: failed program was:" >&5
57198 sed 's/^/| /' conftest.$ac_ext >&5
57200 ac_cv_sys_posix_termios=no
57202 rm -f conftest.err conftest.$ac_objext \
57203 conftest$ac_exeext conftest.$ac_ext
57205 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
57206 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
57209 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57210 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
57211 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57212 echo $ECHO_N "(cached) $ECHO_C" >&6
57214 jm_cv_sys_tiocgwinsz_needs_termios_h=no
57216 if test $ac_cv_sys_posix_termios = yes; then
57217 cat >conftest.$ac_ext <<_ACEOF
57220 cat confdefs.h >>conftest.$ac_ext
57221 cat >>conftest.$ac_ext <<_ACEOF
57222 /* end confdefs.h. */
57223 #include <sys/types.h>
57224 # include <termios.h>
57230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57231 $EGREP "yes" >/dev/null 2>&1; then
57232 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57239 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57240 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
57243 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
57244 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
57245 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
57246 echo $ECHO_N "(cached) $ECHO_C" >&6
57248 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
57250 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
57251 cat >conftest.$ac_ext <<_ACEOF
57254 cat confdefs.h >>conftest.$ac_ext
57255 cat >>conftest.$ac_ext <<_ACEOF
57256 /* end confdefs.h. */
57257 #include <sys/types.h>
57258 # include <sys/ioctl.h>
57264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57265 $EGREP "yes" >/dev/null 2>&1; then
57266 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
57273 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
57274 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
57275 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
57277 cat >>confdefs.h <<\_ACEOF
57278 #define GWINSZ_IN_SYS_IOCTL 1
57284 if test $ac_cv_sys_posix_termios = yes; then
57285 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
57287 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
57288 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
57289 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
57290 echo $ECHO_N "(cached) $ECHO_C" >&6
57292 cat >conftest.$ac_ext <<_ACEOF
57295 cat confdefs.h >>conftest.$ac_ext
57296 cat >>conftest.$ac_ext <<_ACEOF
57297 /* end confdefs.h. */
57298 #include <termios.h>
57303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57304 $EGREP "yes" >/dev/null 2>&1; then
57305 su_cv_sys_termios_needs_xopen_source=no
57307 cat >conftest.$ac_ext <<_ACEOF
57310 cat confdefs.h >>conftest.$ac_ext
57311 cat >>conftest.$ac_ext <<_ACEOF
57312 /* end confdefs.h. */
57313 #define _XOPEN_SOURCE
57314 #include <termios.h>
57319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57320 $EGREP "yes" >/dev/null 2>&1; then
57321 su_cv_sys_termios_needs_xopen_source=yes
57323 su_cv_sys_termios_needs_xopen_source=no
57332 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
57333 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
57334 test $su_cv_sys_termios_needs_xopen_source = yes &&
57336 cat >>confdefs.h <<\_ACEOF
57337 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
57341 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
57342 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
57343 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
57344 echo $ECHO_N "(cached) $ECHO_C" >&6
57346 cat >conftest.$ac_ext <<_ACEOF
57349 cat confdefs.h >>conftest.$ac_ext
57350 cat >>conftest.$ac_ext <<_ACEOF
57351 /* end confdefs.h. */
57352 #if TERMIOS_NEEDS_XOPEN_SOURCE
57353 #define _XOPEN_SOURCE
57355 #include <sys/types.h>
57356 #include <termios.h>
57360 struct termios t; t.c_line;
57365 rm -f conftest.$ac_objext conftest$ac_exeext
57366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57367 (eval $ac_link) 2>conftest.er1
57369 grep -v '^ *+' conftest.er1 >conftest.err
57371 cat conftest.err >&5
57372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57373 (exit $ac_status); } &&
57374 { ac_try='test -z "$ac_c_werror_flag"
57375 || test ! -s conftest.err'
57376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57377 (eval $ac_try) 2>&5
57379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57380 (exit $ac_status); }; } &&
57381 { ac_try='test -s conftest$ac_exeext'
57382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57383 (eval $ac_try) 2>&5
57385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57386 (exit $ac_status); }; }; then
57387 su_cv_sys_c_line_in_termios=yes
57389 echo "$as_me: failed program was:" >&5
57390 sed 's/^/| /' conftest.$ac_ext >&5
57392 su_cv_sys_c_line_in_termios=no
57394 rm -f conftest.err conftest.$ac_objext \
57395 conftest$ac_exeext conftest.$ac_ext
57398 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
57399 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
57400 test $su_cv_sys_c_line_in_termios = yes \
57402 cat >>confdefs.h <<\_ACEOF
57403 #define HAVE_C_LINE 1
57408 # FIXME: note that this macro appears above, too.
57409 # I'm leaving it here for now. This whole thing needs to be modernized...
57411 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
57412 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
57413 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
57414 echo $ECHO_N "(cached) $ECHO_C" >&6
57416 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
57417 if test $ac_cv_sys_posix_termios = yes; then
57418 cat >conftest.$ac_ext <<_ACEOF
57421 cat confdefs.h >>conftest.$ac_ext
57422 cat >>conftest.$ac_ext <<_ACEOF
57423 /* end confdefs.h. */
57424 #include <termios.h>
57429 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57434 rm -f conftest.$ac_objext
57435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57436 (eval $ac_compile) 2>conftest.er1
57438 grep -v '^ *+' conftest.er1 >conftest.err
57440 cat conftest.err >&5
57441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57442 (exit $ac_status); } &&
57443 { ac_try='test -z "$ac_c_werror_flag"
57444 || test ! -s conftest.err'
57445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57446 (eval $ac_try) 2>&5
57448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57449 (exit $ac_status); }; } &&
57450 { ac_try='test -s conftest.$ac_objext'
57451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57452 (eval $ac_try) 2>&5
57454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57455 (exit $ac_status); }; }; then
57458 echo "$as_me: failed program was:" >&5
57459 sed 's/^/| /' conftest.$ac_ext >&5
57462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57464 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57465 cat >conftest.$ac_ext <<_ACEOF
57468 cat confdefs.h >>conftest.$ac_ext
57469 cat >>conftest.$ac_ext <<_ACEOF
57470 /* end confdefs.h. */
57471 #include <sys/ptem.h>
57480 rm -f conftest.$ac_objext
57481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57482 (eval $ac_compile) 2>conftest.er1
57484 grep -v '^ *+' conftest.er1 >conftest.err
57486 cat conftest.err >&5
57487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57488 (exit $ac_status); } &&
57489 { ac_try='test -z "$ac_c_werror_flag"
57490 || test ! -s conftest.err'
57491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57492 (eval $ac_try) 2>&5
57494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57495 (exit $ac_status); }; } &&
57496 { ac_try='test -s conftest.$ac_objext'
57497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57498 (eval $ac_try) 2>&5
57500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57501 (exit $ac_status); }; }; then
57504 echo "$as_me: failed program was:" >&5
57505 sed 's/^/| /' conftest.$ac_ext >&5
57507 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57512 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
57513 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
57514 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57516 cat >>confdefs.h <<\_ACEOF
57517 #define WINSIZE_IN_PTEM 1
57523 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57524 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
57525 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57526 echo $ECHO_N "(cached) $ECHO_C" >&6
57528 jm_cv_sys_tiocgwinsz_needs_termios_h=no
57530 if test $ac_cv_sys_posix_termios = yes; then
57531 cat >conftest.$ac_ext <<_ACEOF
57534 cat confdefs.h >>conftest.$ac_ext
57535 cat >>conftest.$ac_ext <<_ACEOF
57536 /* end confdefs.h. */
57537 #include <sys/types.h>
57538 # include <termios.h>
57544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57545 $EGREP "yes" >/dev/null 2>&1; then
57546 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57553 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57554 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
57557 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
57558 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
57559 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
57560 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
57561 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
57562 echo $ECHO_N "(cached) $ECHO_C" >&6
57564 cat >conftest.$ac_ext <<_ACEOF
57567 cat confdefs.h >>conftest.$ac_ext
57568 cat >>conftest.$ac_ext <<_ACEOF
57569 /* end confdefs.h. */
57570 #include <sys/types.h>
57571 #ifdef WINSIZE_IN_PTEM
57572 # include <sys/stream.h>
57573 # include <sys/ptem.h>
57575 #include <sys/ioctl.h>
57576 #include <sys/tty.h>
57577 #include <sys/pty.h>
57581 int x = TIOCGWINSZ;
57586 rm -f conftest.$ac_objext conftest$ac_exeext
57587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57588 (eval $ac_link) 2>conftest.er1
57590 grep -v '^ *+' conftest.er1 >conftest.err
57592 cat conftest.err >&5
57593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57594 (exit $ac_status); } &&
57595 { ac_try='test -z "$ac_c_werror_flag"
57596 || test ! -s conftest.err'
57597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57598 (eval $ac_try) 2>&5
57600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57601 (exit $ac_status); }; } &&
57602 { ac_try='test -s conftest$ac_exeext'
57603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57604 (eval $ac_try) 2>&5
57606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57607 (exit $ac_status); }; }; then
57608 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
57610 echo "$as_me: failed program was:" >&5
57611 sed 's/^/| /' conftest.$ac_ext >&5
57613 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
57615 rm -f conftest.err conftest.$ac_objext \
57616 conftest$ac_exeext conftest.$ac_ext
57619 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
57620 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
57622 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
57624 cat >>confdefs.h <<\_ACEOF
57625 #define GWINSZ_IN_SYS_PTY 1
57631 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
57632 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
57633 if test "${ac_cv_have_decl_strsignal+set}" = set; then
57634 echo $ECHO_N "(cached) $ECHO_C" >&6
57636 cat >conftest.$ac_ext <<_ACEOF
57639 cat confdefs.h >>conftest.$ac_ext
57640 cat >>conftest.$ac_ext <<_ACEOF
57641 /* end confdefs.h. */
57642 $ac_includes_default
57643 #include <signal.h>
57649 char *p = (char *) strsignal;
57656 rm -f conftest.$ac_objext
57657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57658 (eval $ac_compile) 2>conftest.er1
57660 grep -v '^ *+' conftest.er1 >conftest.err
57662 cat conftest.err >&5
57663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57664 (exit $ac_status); } &&
57665 { ac_try='test -z "$ac_c_werror_flag"
57666 || test ! -s conftest.err'
57667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57668 (eval $ac_try) 2>&5
57670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57671 (exit $ac_status); }; } &&
57672 { ac_try='test -s conftest.$ac_objext'
57673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57674 (eval $ac_try) 2>&5
57676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57677 (exit $ac_status); }; }; then
57678 ac_cv_have_decl_strsignal=yes
57680 echo "$as_me: failed program was:" >&5
57681 sed 's/^/| /' conftest.$ac_ext >&5
57683 ac_cv_have_decl_strsignal=no
57685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
57688 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
57689 if test $ac_cv_have_decl_strsignal = yes; then
57691 cat >>confdefs.h <<_ACEOF
57692 #define HAVE_DECL_STRSIGNAL 1
57697 cat >>confdefs.h <<_ACEOF
57698 #define HAVE_DECL_STRSIGNAL 0
57703 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
57704 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
57705 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
57706 echo $ECHO_N "(cached) $ECHO_C" >&6
57708 cat >conftest.$ac_ext <<_ACEOF
57711 cat confdefs.h >>conftest.$ac_ext
57712 cat >>conftest.$ac_ext <<_ACEOF
57713 /* end confdefs.h. */
57714 $ac_includes_default
57715 #include <signal.h>
57720 #ifndef sys_siglist
57721 char *p = (char *) sys_siglist;
57728 rm -f conftest.$ac_objext
57729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57730 (eval $ac_compile) 2>conftest.er1
57732 grep -v '^ *+' conftest.er1 >conftest.err
57734 cat conftest.err >&5
57735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57736 (exit $ac_status); } &&
57737 { ac_try='test -z "$ac_c_werror_flag"
57738 || test ! -s conftest.err'
57739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57740 (eval $ac_try) 2>&5
57742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57743 (exit $ac_status); }; } &&
57744 { ac_try='test -s conftest.$ac_objext'
57745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57746 (eval $ac_try) 2>&5
57748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57749 (exit $ac_status); }; }; then
57750 ac_cv_have_decl_sys_siglist=yes
57752 echo "$as_me: failed program was:" >&5
57753 sed 's/^/| /' conftest.$ac_ext >&5
57755 ac_cv_have_decl_sys_siglist=no
57757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
57760 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
57761 if test $ac_cv_have_decl_sys_siglist = yes; then
57763 cat >>confdefs.h <<_ACEOF
57764 #define HAVE_DECL_SYS_SIGLIST 1
57769 cat >>confdefs.h <<_ACEOF
57770 #define HAVE_DECL_SYS_SIGLIST 0
57775 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
57776 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
57777 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
57778 echo $ECHO_N "(cached) $ECHO_C" >&6
57780 cat >conftest.$ac_ext <<_ACEOF
57783 cat confdefs.h >>conftest.$ac_ext
57784 cat >>conftest.$ac_ext <<_ACEOF
57785 /* end confdefs.h. */
57786 $ac_includes_default
57787 #include <signal.h>
57792 #ifndef _sys_siglist
57793 char *p = (char *) _sys_siglist;
57800 rm -f conftest.$ac_objext
57801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57802 (eval $ac_compile) 2>conftest.er1
57804 grep -v '^ *+' conftest.er1 >conftest.err
57806 cat conftest.err >&5
57807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57808 (exit $ac_status); } &&
57809 { ac_try='test -z "$ac_c_werror_flag"
57810 || test ! -s conftest.err'
57811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57812 (eval $ac_try) 2>&5
57814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57815 (exit $ac_status); }; } &&
57816 { ac_try='test -s conftest.$ac_objext'
57817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57818 (eval $ac_try) 2>&5
57820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57821 (exit $ac_status); }; }; then
57822 ac_cv_have_decl__sys_siglist=yes
57824 echo "$as_me: failed program was:" >&5
57825 sed 's/^/| /' conftest.$ac_ext >&5
57827 ac_cv_have_decl__sys_siglist=no
57829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57831 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
57832 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
57833 if test $ac_cv_have_decl__sys_siglist = yes; then
57835 cat >>confdefs.h <<_ACEOF
57836 #define HAVE_DECL__SYS_SIGLIST 1
57841 cat >>confdefs.h <<_ACEOF
57842 #define HAVE_DECL__SYS_SIGLIST 0
57847 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
57848 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
57849 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
57850 echo $ECHO_N "(cached) $ECHO_C" >&6
57852 cat >conftest.$ac_ext <<_ACEOF
57855 cat confdefs.h >>conftest.$ac_ext
57856 cat >>conftest.$ac_ext <<_ACEOF
57857 /* end confdefs.h. */
57858 $ac_includes_default
57859 #include <signal.h>
57864 #ifndef __sys_siglist
57865 char *p = (char *) __sys_siglist;
57872 rm -f conftest.$ac_objext
57873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57874 (eval $ac_compile) 2>conftest.er1
57876 grep -v '^ *+' conftest.er1 >conftest.err
57878 cat conftest.err >&5
57879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57880 (exit $ac_status); } &&
57881 { ac_try='test -z "$ac_c_werror_flag"
57882 || test ! -s conftest.err'
57883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57884 (eval $ac_try) 2>&5
57886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57887 (exit $ac_status); }; } &&
57888 { ac_try='test -s conftest.$ac_objext'
57889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57890 (eval $ac_try) 2>&5
57892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57893 (exit $ac_status); }; }; then
57894 ac_cv_have_decl___sys_siglist=yes
57896 echo "$as_me: failed program was:" >&5
57897 sed 's/^/| /' conftest.$ac_ext >&5
57899 ac_cv_have_decl___sys_siglist=no
57901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57903 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
57904 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
57905 if test $ac_cv_have_decl___sys_siglist = yes; then
57907 cat >>confdefs.h <<_ACEOF
57908 #define HAVE_DECL___SYS_SIGLIST 1
57913 cat >>confdefs.h <<_ACEOF
57914 #define HAVE_DECL___SYS_SIGLIST 0
57922 # For src/kill.c and src/printf.c.
57923 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
57924 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
57925 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
57926 echo $ECHO_N "(cached) $ECHO_C" >&6
57928 cat >conftest.$ac_ext <<_ACEOF
57931 cat confdefs.h >>conftest.$ac_ext
57932 cat >>conftest.$ac_ext <<_ACEOF
57933 /* end confdefs.h. */
57934 $ac_includes_default
57939 char *p = (char *) strtoimax;
57946 rm -f conftest.$ac_objext
57947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57948 (eval $ac_compile) 2>conftest.er1
57950 grep -v '^ *+' conftest.er1 >conftest.err
57952 cat conftest.err >&5
57953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57954 (exit $ac_status); } &&
57955 { ac_try='test -z "$ac_c_werror_flag"
57956 || test ! -s conftest.err'
57957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57958 (eval $ac_try) 2>&5
57960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57961 (exit $ac_status); }; } &&
57962 { ac_try='test -s conftest.$ac_objext'
57963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57964 (eval $ac_try) 2>&5
57966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57967 (exit $ac_status); }; }; then
57968 ac_cv_have_decl_strtoimax=yes
57970 echo "$as_me: failed program was:" >&5
57971 sed 's/^/| /' conftest.$ac_ext >&5
57973 ac_cv_have_decl_strtoimax=no
57975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57977 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
57978 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
57979 if test $ac_cv_have_decl_strtoimax = yes; then
57981 cat >>confdefs.h <<_ACEOF
57982 #define HAVE_DECL_STRTOIMAX 1
57987 cat >>confdefs.h <<_ACEOF
57988 #define HAVE_DECL_STRTOIMAX 0
57993 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
57994 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
57995 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
57996 echo $ECHO_N "(cached) $ECHO_C" >&6
57998 cat >conftest.$ac_ext <<_ACEOF
58001 cat confdefs.h >>conftest.$ac_ext
58002 cat >>conftest.$ac_ext <<_ACEOF
58003 /* end confdefs.h. */
58004 $ac_includes_default
58009 char *p = (char *) strtoumax;
58016 rm -f conftest.$ac_objext
58017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58018 (eval $ac_compile) 2>conftest.er1
58020 grep -v '^ *+' conftest.er1 >conftest.err
58022 cat conftest.err >&5
58023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58024 (exit $ac_status); } &&
58025 { ac_try='test -z "$ac_c_werror_flag"
58026 || test ! -s conftest.err'
58027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58028 (eval $ac_try) 2>&5
58030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58031 (exit $ac_status); }; } &&
58032 { ac_try='test -s conftest.$ac_objext'
58033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58034 (eval $ac_try) 2>&5
58036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58037 (exit $ac_status); }; }; then
58038 ac_cv_have_decl_strtoumax=yes
58040 echo "$as_me: failed program was:" >&5
58041 sed 's/^/| /' conftest.$ac_ext >&5
58043 ac_cv_have_decl_strtoumax=no
58045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
58048 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
58049 if test $ac_cv_have_decl_strtoumax = yes; then
58051 cat >>confdefs.h <<_ACEOF
58052 #define HAVE_DECL_STRTOUMAX 1
58057 cat >>confdefs.h <<_ACEOF
58058 #define HAVE_DECL_STRTOUMAX 0
58068 # Check for libypsec.a on Dolphin M88K machines.
58070 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
58071 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
58072 if test "${ac_cv_lib_ypsec_main+set}" = set; then
58073 echo $ECHO_N "(cached) $ECHO_C" >&6
58075 ac_check_lib_save_LIBS=$LIBS
58076 LIBS="-lypsec $LIBS"
58077 cat >conftest.$ac_ext <<_ACEOF
58080 cat confdefs.h >>conftest.$ac_ext
58081 cat >>conftest.$ac_ext <<_ACEOF
58082 /* end confdefs.h. */
58093 rm -f conftest.$ac_objext conftest$ac_exeext
58094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58095 (eval $ac_link) 2>conftest.er1
58097 grep -v '^ *+' conftest.er1 >conftest.err
58099 cat conftest.err >&5
58100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58101 (exit $ac_status); } &&
58102 { ac_try='test -z "$ac_c_werror_flag"
58103 || test ! -s conftest.err'
58104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58105 (eval $ac_try) 2>&5
58107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58108 (exit $ac_status); }; } &&
58109 { ac_try='test -s conftest$ac_exeext'
58110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58111 (eval $ac_try) 2>&5
58113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58114 (exit $ac_status); }; }; then
58115 ac_cv_lib_ypsec_main=yes
58117 echo "$as_me: failed program was:" >&5
58118 sed 's/^/| /' conftest.$ac_ext >&5
58120 ac_cv_lib_ypsec_main=no
58122 rm -f conftest.err conftest.$ac_objext \
58123 conftest$ac_exeext conftest.$ac_ext
58124 LIBS=$ac_check_lib_save_LIBS
58126 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
58127 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
58128 if test $ac_cv_lib_ypsec_main = yes; then
58129 cat >>confdefs.h <<_ACEOF
58130 #define HAVE_LIBYPSEC 1
58133 LIBS="-lypsec $LIBS"
58138 # m88k running dgux 5.4 needs this
58140 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
58141 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
58142 if test "${ac_cv_lib_ldgc_main+set}" = set; then
58143 echo $ECHO_N "(cached) $ECHO_C" >&6
58145 ac_check_lib_save_LIBS=$LIBS
58146 LIBS="-lldgc $LIBS"
58147 cat >conftest.$ac_ext <<_ACEOF
58150 cat confdefs.h >>conftest.$ac_ext
58151 cat >>conftest.$ac_ext <<_ACEOF
58152 /* end confdefs.h. */
58163 rm -f conftest.$ac_objext conftest$ac_exeext
58164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58165 (eval $ac_link) 2>conftest.er1
58167 grep -v '^ *+' conftest.er1 >conftest.err
58169 cat conftest.err >&5
58170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58171 (exit $ac_status); } &&
58172 { ac_try='test -z "$ac_c_werror_flag"
58173 || test ! -s conftest.err'
58174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58175 (eval $ac_try) 2>&5
58177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58178 (exit $ac_status); }; } &&
58179 { ac_try='test -s conftest$ac_exeext'
58180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58181 (eval $ac_try) 2>&5
58183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58184 (exit $ac_status); }; }; then
58185 ac_cv_lib_ldgc_main=yes
58187 echo "$as_me: failed program was:" >&5
58188 sed 's/^/| /' conftest.$ac_ext >&5
58190 ac_cv_lib_ldgc_main=no
58192 rm -f conftest.err conftest.$ac_objext \
58193 conftest$ac_exeext conftest.$ac_ext
58194 LIBS=$ac_check_lib_save_LIBS
58196 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
58197 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
58198 if test $ac_cv_lib_ldgc_main = yes; then
58199 cat >>confdefs.h <<_ACEOF
58200 #define HAVE_LIBLDGC 1
58203 LIBS="-lldgc $LIBS"
58208 # Some programs need to link with -lm. printf does if it uses
58209 # lib/strtod.c which uses pow. And seq uses the math functions,
58210 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
58212 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
58213 # Check for these math functions used by seq.
58214 ac_su_saved_lib="$LIBS"
58219 for ac_func in floor modf rint
58221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58222 echo "$as_me:$LINENO: checking for $ac_func" >&5
58223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58224 if eval "test \"\${$as_ac_var+set}\" = set"; then
58225 echo $ECHO_N "(cached) $ECHO_C" >&6
58227 cat >conftest.$ac_ext <<_ACEOF
58230 cat confdefs.h >>conftest.$ac_ext
58231 cat >>conftest.$ac_ext <<_ACEOF
58232 /* end confdefs.h. */
58233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58235 #define $ac_func innocuous_$ac_func
58237 /* System header to define __stub macros and hopefully few prototypes,
58238 which can conflict with char $ac_func (); below.
58239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58240 <limits.h> exists even on freestanding compilers. */
58243 # include <limits.h>
58245 # include <assert.h>
58250 /* Override any gcc2 internal prototype to avoid an error. */
58255 /* We use char because int might match the return type of a gcc2
58256 builtin and then its argument prototype would still apply. */
58258 /* The GNU C library defines this for functions which it implements
58259 to always fail with ENOSYS. Some functions are actually named
58260 something starting with __ and the normal name is an alias. */
58261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58264 char (*f) () = $ac_func;
58273 return f != $ac_func;
58278 rm -f conftest.$ac_objext conftest$ac_exeext
58279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58280 (eval $ac_link) 2>conftest.er1
58282 grep -v '^ *+' conftest.er1 >conftest.err
58284 cat conftest.err >&5
58285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58286 (exit $ac_status); } &&
58287 { ac_try='test -z "$ac_c_werror_flag"
58288 || test ! -s conftest.err'
58289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58290 (eval $ac_try) 2>&5
58292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58293 (exit $ac_status); }; } &&
58294 { ac_try='test -s conftest$ac_exeext'
58295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58296 (eval $ac_try) 2>&5
58298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58299 (exit $ac_status); }; }; then
58300 eval "$as_ac_var=yes"
58302 echo "$as_me: failed program was:" >&5
58303 sed 's/^/| /' conftest.$ac_ext >&5
58305 eval "$as_ac_var=no"
58307 rm -f conftest.err conftest.$ac_objext \
58308 conftest$ac_exeext conftest.$ac_ext
58310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58312 if test `eval echo '${'$as_ac_var'}'` = yes; then
58313 cat >>confdefs.h <<_ACEOF
58314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58320 LIBS="$ac_su_saved_lib"
58324 for ac_func in sqrt
58326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58327 echo "$as_me:$LINENO: checking for $ac_func" >&5
58328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58329 if eval "test \"\${$as_ac_var+set}\" = set"; then
58330 echo $ECHO_N "(cached) $ECHO_C" >&6
58332 cat >conftest.$ac_ext <<_ACEOF
58335 cat confdefs.h >>conftest.$ac_ext
58336 cat >>conftest.$ac_ext <<_ACEOF
58337 /* end confdefs.h. */
58338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58340 #define $ac_func innocuous_$ac_func
58342 /* System header to define __stub macros and hopefully few prototypes,
58343 which can conflict with char $ac_func (); below.
58344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58345 <limits.h> exists even on freestanding compilers. */
58348 # include <limits.h>
58350 # include <assert.h>
58355 /* Override any gcc2 internal prototype to avoid an error. */
58360 /* We use char because int might match the return type of a gcc2
58361 builtin and then its argument prototype would still apply. */
58363 /* The GNU C library defines this for functions which it implements
58364 to always fail with ENOSYS. Some functions are actually named
58365 something starting with __ and the normal name is an alias. */
58366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58369 char (*f) () = $ac_func;
58378 return f != $ac_func;
58383 rm -f conftest.$ac_objext conftest$ac_exeext
58384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58385 (eval $ac_link) 2>conftest.er1
58387 grep -v '^ *+' conftest.er1 >conftest.err
58389 cat conftest.err >&5
58390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58391 (exit $ac_status); } &&
58392 { ac_try='test -z "$ac_c_werror_flag"
58393 || test ! -s conftest.err'
58394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58395 (eval $ac_try) 2>&5
58397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58398 (exit $ac_status); }; } &&
58399 { ac_try='test -s conftest$ac_exeext'
58400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58401 (eval $ac_try) 2>&5
58403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58404 (exit $ac_status); }; }; then
58405 eval "$as_ac_var=yes"
58407 echo "$as_me: failed program was:" >&5
58408 sed 's/^/| /' conftest.$ac_ext >&5
58410 eval "$as_ac_var=no"
58412 rm -f conftest.err conftest.$ac_objext \
58413 conftest$ac_exeext conftest.$ac_ext
58415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58417 if test `eval echo '${'$as_ac_var'}'` = yes; then
58418 cat >>confdefs.h <<_ACEOF
58419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58425 if test $ac_cv_func_sqrt = no; then
58426 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
58427 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
58428 if test "${ac_cv_lib_m_sqrt+set}" = set; then
58429 echo $ECHO_N "(cached) $ECHO_C" >&6
58431 ac_check_lib_save_LIBS=$LIBS
58433 cat >conftest.$ac_ext <<_ACEOF
58436 cat confdefs.h >>conftest.$ac_ext
58437 cat >>conftest.$ac_ext <<_ACEOF
58438 /* end confdefs.h. */
58440 /* Override any gcc2 internal prototype to avoid an error. */
58444 /* We use char because int might match the return type of a gcc2
58445 builtin and then its argument prototype would still apply. */
58455 rm -f conftest.$ac_objext conftest$ac_exeext
58456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58457 (eval $ac_link) 2>conftest.er1
58459 grep -v '^ *+' conftest.er1 >conftest.err
58461 cat conftest.err >&5
58462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58463 (exit $ac_status); } &&
58464 { ac_try='test -z "$ac_c_werror_flag"
58465 || test ! -s conftest.err'
58466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58467 (eval $ac_try) 2>&5
58469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58470 (exit $ac_status); }; } &&
58471 { ac_try='test -s conftest$ac_exeext'
58472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58473 (eval $ac_try) 2>&5
58475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58476 (exit $ac_status); }; }; then
58477 ac_cv_lib_m_sqrt=yes
58479 echo "$as_me: failed program was:" >&5
58480 sed 's/^/| /' conftest.$ac_ext >&5
58482 ac_cv_lib_m_sqrt=no
58484 rm -f conftest.err conftest.$ac_objext \
58485 conftest$ac_exeext conftest.$ac_ext
58486 LIBS=$ac_check_lib_save_LIBS
58488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
58489 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
58490 if test $ac_cv_lib_m_sqrt = yes; then
58498 for ac_func in fesetround
58500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58501 echo "$as_me:$LINENO: checking for $ac_func" >&5
58502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58503 if eval "test \"\${$as_ac_var+set}\" = set"; then
58504 echo $ECHO_N "(cached) $ECHO_C" >&6
58506 cat >conftest.$ac_ext <<_ACEOF
58509 cat confdefs.h >>conftest.$ac_ext
58510 cat >>conftest.$ac_ext <<_ACEOF
58511 /* end confdefs.h. */
58512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58514 #define $ac_func innocuous_$ac_func
58516 /* System header to define __stub macros and hopefully few prototypes,
58517 which can conflict with char $ac_func (); below.
58518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58519 <limits.h> exists even on freestanding compilers. */
58522 # include <limits.h>
58524 # include <assert.h>
58529 /* Override any gcc2 internal prototype to avoid an error. */
58534 /* We use char because int might match the return type of a gcc2
58535 builtin and then its argument prototype would still apply. */
58537 /* The GNU C library defines this for functions which it implements
58538 to always fail with ENOSYS. Some functions are actually named
58539 something starting with __ and the normal name is an alias. */
58540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58543 char (*f) () = $ac_func;
58552 return f != $ac_func;
58557 rm -f conftest.$ac_objext conftest$ac_exeext
58558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58559 (eval $ac_link) 2>conftest.er1
58561 grep -v '^ *+' conftest.er1 >conftest.err
58563 cat conftest.err >&5
58564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58565 (exit $ac_status); } &&
58566 { ac_try='test -z "$ac_c_werror_flag"
58567 || test ! -s conftest.err'
58568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58569 (eval $ac_try) 2>&5
58571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58572 (exit $ac_status); }; } &&
58573 { ac_try='test -s conftest$ac_exeext'
58574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58575 (eval $ac_try) 2>&5
58577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58578 (exit $ac_status); }; }; then
58579 eval "$as_ac_var=yes"
58581 echo "$as_me: failed program was:" >&5
58582 sed 's/^/| /' conftest.$ac_ext >&5
58584 eval "$as_ac_var=no"
58586 rm -f conftest.err conftest.$ac_objext \
58587 conftest$ac_exeext conftest.$ac_ext
58589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58591 if test `eval echo '${'$as_ac_var'}'` = yes; then
58592 cat >>confdefs.h <<_ACEOF
58593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58599 if test $ac_cv_func_fesetround = no; then
58600 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
58601 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
58602 if test "${ac_cv_lib_m_fesetround+set}" = set; then
58603 echo $ECHO_N "(cached) $ECHO_C" >&6
58605 ac_check_lib_save_LIBS=$LIBS
58607 cat >conftest.$ac_ext <<_ACEOF
58610 cat confdefs.h >>conftest.$ac_ext
58611 cat >>conftest.$ac_ext <<_ACEOF
58612 /* end confdefs.h. */
58614 /* Override any gcc2 internal prototype to avoid an error. */
58618 /* We use char because int might match the return type of a gcc2
58619 builtin and then its argument prototype would still apply. */
58620 char fesetround ();
58629 rm -f conftest.$ac_objext conftest$ac_exeext
58630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58631 (eval $ac_link) 2>conftest.er1
58633 grep -v '^ *+' conftest.er1 >conftest.err
58635 cat conftest.err >&5
58636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58637 (exit $ac_status); } &&
58638 { ac_try='test -z "$ac_c_werror_flag"
58639 || test ! -s conftest.err'
58640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58641 (eval $ac_try) 2>&5
58643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58644 (exit $ac_status); }; } &&
58645 { ac_try='test -s conftest$ac_exeext'
58646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58647 (eval $ac_try) 2>&5
58649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58650 (exit $ac_status); }; }; then
58651 ac_cv_lib_m_fesetround=yes
58653 echo "$as_me: failed program was:" >&5
58654 sed 's/^/| /' conftest.$ac_ext >&5
58656 ac_cv_lib_m_fesetround=no
58658 rm -f conftest.err conftest.$ac_objext \
58659 conftest$ac_exeext conftest.$ac_ext
58660 LIBS=$ac_check_lib_save_LIBS
58662 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
58663 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
58664 if test $ac_cv_lib_m_fesetround = yes; then
58665 FESETROUND_LIBM=-lm
58670 # The -lsun library is required for YP support on Irix-4.0.5 systems.
58671 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
58672 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
58673 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
58674 if test "${ac_cv_search_yp_match+set}" = set; then
58675 echo $ECHO_N "(cached) $ECHO_C" >&6
58677 ac_func_search_save_LIBS=$LIBS
58678 ac_cv_search_yp_match=no
58679 cat >conftest.$ac_ext <<_ACEOF
58682 cat confdefs.h >>conftest.$ac_ext
58683 cat >>conftest.$ac_ext <<_ACEOF
58684 /* end confdefs.h. */
58686 /* Override any gcc2 internal prototype to avoid an error. */
58690 /* We use char because int might match the return type of a gcc2
58691 builtin and then its argument prototype would still apply. */
58701 rm -f conftest.$ac_objext conftest$ac_exeext
58702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58703 (eval $ac_link) 2>conftest.er1
58705 grep -v '^ *+' conftest.er1 >conftest.err
58707 cat conftest.err >&5
58708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709 (exit $ac_status); } &&
58710 { ac_try='test -z "$ac_c_werror_flag"
58711 || test ! -s conftest.err'
58712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58713 (eval $ac_try) 2>&5
58715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58716 (exit $ac_status); }; } &&
58717 { ac_try='test -s conftest$ac_exeext'
58718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58719 (eval $ac_try) 2>&5
58721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58722 (exit $ac_status); }; }; then
58723 ac_cv_search_yp_match="none required"
58725 echo "$as_me: failed program was:" >&5
58726 sed 's/^/| /' conftest.$ac_ext >&5
58729 rm -f conftest.err conftest.$ac_objext \
58730 conftest$ac_exeext conftest.$ac_ext
58731 if test "$ac_cv_search_yp_match" = no; then
58732 for ac_lib in sun ypsec; do
58733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58734 cat >conftest.$ac_ext <<_ACEOF
58737 cat confdefs.h >>conftest.$ac_ext
58738 cat >>conftest.$ac_ext <<_ACEOF
58739 /* end confdefs.h. */
58741 /* Override any gcc2 internal prototype to avoid an error. */
58745 /* We use char because int might match the return type of a gcc2
58746 builtin and then its argument prototype would still apply. */
58756 rm -f conftest.$ac_objext conftest$ac_exeext
58757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58758 (eval $ac_link) 2>conftest.er1
58760 grep -v '^ *+' conftest.er1 >conftest.err
58762 cat conftest.err >&5
58763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58764 (exit $ac_status); } &&
58765 { ac_try='test -z "$ac_c_werror_flag"
58766 || test ! -s conftest.err'
58767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58768 (eval $ac_try) 2>&5
58770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58771 (exit $ac_status); }; } &&
58772 { ac_try='test -s conftest$ac_exeext'
58773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58774 (eval $ac_try) 2>&5
58776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58777 (exit $ac_status); }; }; then
58778 ac_cv_search_yp_match="-l$ac_lib"
58781 echo "$as_me: failed program was:" >&5
58782 sed 's/^/| /' conftest.$ac_ext >&5
58785 rm -f conftest.err conftest.$ac_objext \
58786 conftest$ac_exeext conftest.$ac_ext
58789 LIBS=$ac_func_search_save_LIBS
58791 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
58792 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
58793 if test "$ac_cv_search_yp_match" != no; then
58794 test "$ac_cv_search_yp_match" = "none required" || LIBS="$ac_cv_search_yp_match $LIBS"
58799 # SysV needs -lsec, older versions of Linux need -lshadow for
58800 # shadow passwords. UnixWare 7 needs -lgen.
58801 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
58802 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
58803 if test "${ac_cv_search_getspnam+set}" = set; then
58804 echo $ECHO_N "(cached) $ECHO_C" >&6
58806 ac_func_search_save_LIBS=$LIBS
58807 ac_cv_search_getspnam=no
58808 cat >conftest.$ac_ext <<_ACEOF
58811 cat confdefs.h >>conftest.$ac_ext
58812 cat >>conftest.$ac_ext <<_ACEOF
58813 /* end confdefs.h. */
58815 /* Override any gcc2 internal prototype to avoid an error. */
58819 /* We use char because int might match the return type of a gcc2
58820 builtin and then its argument prototype would still apply. */
58830 rm -f conftest.$ac_objext conftest$ac_exeext
58831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58832 (eval $ac_link) 2>conftest.er1
58834 grep -v '^ *+' conftest.er1 >conftest.err
58836 cat conftest.err >&5
58837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58838 (exit $ac_status); } &&
58839 { ac_try='test -z "$ac_c_werror_flag"
58840 || test ! -s conftest.err'
58841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58842 (eval $ac_try) 2>&5
58844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58845 (exit $ac_status); }; } &&
58846 { ac_try='test -s conftest$ac_exeext'
58847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58848 (eval $ac_try) 2>&5
58850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58851 (exit $ac_status); }; }; then
58852 ac_cv_search_getspnam="none required"
58854 echo "$as_me: failed program was:" >&5
58855 sed 's/^/| /' conftest.$ac_ext >&5
58858 rm -f conftest.err conftest.$ac_objext \
58859 conftest$ac_exeext conftest.$ac_ext
58860 if test "$ac_cv_search_getspnam" = no; then
58861 for ac_lib in shadow sec gen; do
58862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58863 cat >conftest.$ac_ext <<_ACEOF
58866 cat confdefs.h >>conftest.$ac_ext
58867 cat >>conftest.$ac_ext <<_ACEOF
58868 /* end confdefs.h. */
58870 /* Override any gcc2 internal prototype to avoid an error. */
58874 /* We use char because int might match the return type of a gcc2
58875 builtin and then its argument prototype would still apply. */
58885 rm -f conftest.$ac_objext conftest$ac_exeext
58886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58887 (eval $ac_link) 2>conftest.er1
58889 grep -v '^ *+' conftest.er1 >conftest.err
58891 cat conftest.err >&5
58892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58893 (exit $ac_status); } &&
58894 { ac_try='test -z "$ac_c_werror_flag"
58895 || test ! -s conftest.err'
58896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58897 (eval $ac_try) 2>&5
58899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58900 (exit $ac_status); }; } &&
58901 { ac_try='test -s conftest$ac_exeext'
58902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58903 (eval $ac_try) 2>&5
58905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58906 (exit $ac_status); }; }; then
58907 ac_cv_search_getspnam="-l$ac_lib"
58910 echo "$as_me: failed program was:" >&5
58911 sed 's/^/| /' conftest.$ac_ext >&5
58914 rm -f conftest.err conftest.$ac_objext \
58915 conftest$ac_exeext conftest.$ac_ext
58918 LIBS=$ac_func_search_save_LIBS
58920 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
58921 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
58922 if test "$ac_cv_search_getspnam" != no; then
58923 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
58929 for ac_header in shadow.h
58931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58933 echo "$as_me:$LINENO: checking for $ac_header" >&5
58934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58936 echo $ECHO_N "(cached) $ECHO_C" >&6
58938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58941 # Is the header compilable?
58942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58944 cat >conftest.$ac_ext <<_ACEOF
58947 cat confdefs.h >>conftest.$ac_ext
58948 cat >>conftest.$ac_ext <<_ACEOF
58949 /* end confdefs.h. */
58950 $ac_includes_default
58951 #include <$ac_header>
58953 rm -f conftest.$ac_objext
58954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58955 (eval $ac_compile) 2>conftest.er1
58957 grep -v '^ *+' conftest.er1 >conftest.err
58959 cat conftest.err >&5
58960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58961 (exit $ac_status); } &&
58962 { ac_try='test -z "$ac_c_werror_flag"
58963 || test ! -s conftest.err'
58964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58965 (eval $ac_try) 2>&5
58967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58968 (exit $ac_status); }; } &&
58969 { ac_try='test -s conftest.$ac_objext'
58970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58971 (eval $ac_try) 2>&5
58973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58974 (exit $ac_status); }; }; then
58975 ac_header_compiler=yes
58977 echo "$as_me: failed program was:" >&5
58978 sed 's/^/| /' conftest.$ac_ext >&5
58980 ac_header_compiler=no
58982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58984 echo "${ECHO_T}$ac_header_compiler" >&6
58986 # Is the header present?
58987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58989 cat >conftest.$ac_ext <<_ACEOF
58992 cat confdefs.h >>conftest.$ac_ext
58993 cat >>conftest.$ac_ext <<_ACEOF
58994 /* end confdefs.h. */
58995 #include <$ac_header>
58997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59000 grep -v '^ *+' conftest.er1 >conftest.err
59002 cat conftest.err >&5
59003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59004 (exit $ac_status); } >/dev/null; then
59005 if test -s conftest.err; then
59006 ac_cpp_err=$ac_c_preproc_warn_flag
59007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59014 if test -z "$ac_cpp_err"; then
59015 ac_header_preproc=yes
59017 echo "$as_me: failed program was:" >&5
59018 sed 's/^/| /' conftest.$ac_ext >&5
59020 ac_header_preproc=no
59022 rm -f conftest.err conftest.$ac_ext
59023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59024 echo "${ECHO_T}$ac_header_preproc" >&6
59026 # So? What about this header?
59027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59033 ac_header_preproc=yes
59036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59050 ## ------------------------------------ ##
59051 ## Report this to bug-coreutils@gnu.org ##
59052 ## ------------------------------------ ##
59055 sed "s/^/$as_me: WARNING: /" >&2
59058 echo "$as_me:$LINENO: checking for $ac_header" >&5
59059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59061 echo $ECHO_N "(cached) $ECHO_C" >&6
59063 eval "$as_ac_Header=\$ac_header_preproc"
59065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59070 cat >>confdefs.h <<_ACEOF
59071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59079 # Requirements for su.c.
59081 $ac_includes_default
59083 # include <shadow.h>
59086 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
59087 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
59088 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
59089 echo $ECHO_N "(cached) $ECHO_C" >&6
59091 cat >conftest.$ac_ext <<_ACEOF
59094 cat confdefs.h >>conftest.$ac_ext
59095 cat >>conftest.$ac_ext <<_ACEOF
59096 /* end confdefs.h. */
59102 static struct spwd ac_aggr;
59103 if (ac_aggr.sp_pwdp)
59109 rm -f conftest.$ac_objext
59110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59111 (eval $ac_compile) 2>conftest.er1
59113 grep -v '^ *+' conftest.er1 >conftest.err
59115 cat conftest.err >&5
59116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59117 (exit $ac_status); } &&
59118 { ac_try='test -z "$ac_c_werror_flag"
59119 || test ! -s conftest.err'
59120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59121 (eval $ac_try) 2>&5
59123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59124 (exit $ac_status); }; } &&
59125 { ac_try='test -s conftest.$ac_objext'
59126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59127 (eval $ac_try) 2>&5
59129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59130 (exit $ac_status); }; }; then
59131 ac_cv_member_struct_spwd_sp_pwdp=yes
59133 echo "$as_me: failed program was:" >&5
59134 sed 's/^/| /' conftest.$ac_ext >&5
59136 cat >conftest.$ac_ext <<_ACEOF
59139 cat confdefs.h >>conftest.$ac_ext
59140 cat >>conftest.$ac_ext <<_ACEOF
59141 /* end confdefs.h. */
59147 static struct spwd ac_aggr;
59148 if (sizeof ac_aggr.sp_pwdp)
59154 rm -f conftest.$ac_objext
59155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59156 (eval $ac_compile) 2>conftest.er1
59158 grep -v '^ *+' conftest.er1 >conftest.err
59160 cat conftest.err >&5
59161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59162 (exit $ac_status); } &&
59163 { ac_try='test -z "$ac_c_werror_flag"
59164 || test ! -s conftest.err'
59165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59166 (eval $ac_try) 2>&5
59168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59169 (exit $ac_status); }; } &&
59170 { ac_try='test -s conftest.$ac_objext'
59171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59172 (eval $ac_try) 2>&5
59174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59175 (exit $ac_status); }; }; then
59176 ac_cv_member_struct_spwd_sp_pwdp=yes
59178 echo "$as_me: failed program was:" >&5
59179 sed 's/^/| /' conftest.$ac_ext >&5
59181 ac_cv_member_struct_spwd_sp_pwdp=no
59183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59187 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
59188 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
59189 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
59191 cat >>confdefs.h <<_ACEOF
59192 #define HAVE_STRUCT_SPWD_SP_PWDP 1
59199 for ac_func in getspnam
59201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59202 echo "$as_me:$LINENO: checking for $ac_func" >&5
59203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59204 if eval "test \"\${$as_ac_var+set}\" = set"; then
59205 echo $ECHO_N "(cached) $ECHO_C" >&6
59207 cat >conftest.$ac_ext <<_ACEOF
59210 cat confdefs.h >>conftest.$ac_ext
59211 cat >>conftest.$ac_ext <<_ACEOF
59212 /* end confdefs.h. */
59213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59215 #define $ac_func innocuous_$ac_func
59217 /* System header to define __stub macros and hopefully few prototypes,
59218 which can conflict with char $ac_func (); below.
59219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59220 <limits.h> exists even on freestanding compilers. */
59223 # include <limits.h>
59225 # include <assert.h>
59230 /* Override any gcc2 internal prototype to avoid an error. */
59235 /* We use char because int might match the return type of a gcc2
59236 builtin and then its argument prototype would still apply. */
59238 /* The GNU C library defines this for functions which it implements
59239 to always fail with ENOSYS. Some functions are actually named
59240 something starting with __ and the normal name is an alias. */
59241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59244 char (*f) () = $ac_func;
59253 return f != $ac_func;
59258 rm -f conftest.$ac_objext conftest$ac_exeext
59259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59260 (eval $ac_link) 2>conftest.er1
59262 grep -v '^ *+' conftest.er1 >conftest.err
59264 cat conftest.err >&5
59265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59266 (exit $ac_status); } &&
59267 { ac_try='test -z "$ac_c_werror_flag"
59268 || test ! -s conftest.err'
59269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59270 (eval $ac_try) 2>&5
59272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59273 (exit $ac_status); }; } &&
59274 { ac_try='test -s conftest$ac_exeext'
59275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59276 (eval $ac_try) 2>&5
59278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59279 (exit $ac_status); }; }; then
59280 eval "$as_ac_var=yes"
59282 echo "$as_me: failed program was:" >&5
59283 sed 's/^/| /' conftest.$ac_ext >&5
59285 eval "$as_ac_var=no"
59287 rm -f conftest.err conftest.$ac_objext \
59288 conftest$ac_exeext conftest.$ac_ext
59290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59292 if test `eval echo '${'$as_ac_var'}'` = yes; then
59293 cat >>confdefs.h <<_ACEOF
59294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59301 # SCO-ODT-3.0 is reported to need -lufc for crypt.
59302 # NetBSD needs -lcrypt for crypt.
59303 ac_su_saved_lib="$LIBS"
59304 echo "$as_me:$LINENO: checking for library containing crypt" >&5
59305 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
59306 if test "${ac_cv_search_crypt+set}" = set; then
59307 echo $ECHO_N "(cached) $ECHO_C" >&6
59309 ac_func_search_save_LIBS=$LIBS
59310 ac_cv_search_crypt=no
59311 cat >conftest.$ac_ext <<_ACEOF
59314 cat confdefs.h >>conftest.$ac_ext
59315 cat >>conftest.$ac_ext <<_ACEOF
59316 /* end confdefs.h. */
59318 /* Override any gcc2 internal prototype to avoid an error. */
59322 /* We use char because int might match the return type of a gcc2
59323 builtin and then its argument prototype would still apply. */
59333 rm -f conftest.$ac_objext conftest$ac_exeext
59334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59335 (eval $ac_link) 2>conftest.er1
59337 grep -v '^ *+' conftest.er1 >conftest.err
59339 cat conftest.err >&5
59340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59341 (exit $ac_status); } &&
59342 { ac_try='test -z "$ac_c_werror_flag"
59343 || test ! -s conftest.err'
59344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59345 (eval $ac_try) 2>&5
59347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59348 (exit $ac_status); }; } &&
59349 { ac_try='test -s conftest$ac_exeext'
59350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59351 (eval $ac_try) 2>&5
59353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59354 (exit $ac_status); }; }; then
59355 ac_cv_search_crypt="none required"
59357 echo "$as_me: failed program was:" >&5
59358 sed 's/^/| /' conftest.$ac_ext >&5
59361 rm -f conftest.err conftest.$ac_objext \
59362 conftest$ac_exeext conftest.$ac_ext
59363 if test "$ac_cv_search_crypt" = no; then
59364 for ac_lib in ufc crypt; do
59365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
59366 cat >conftest.$ac_ext <<_ACEOF
59369 cat confdefs.h >>conftest.$ac_ext
59370 cat >>conftest.$ac_ext <<_ACEOF
59371 /* end confdefs.h. */
59373 /* Override any gcc2 internal prototype to avoid an error. */
59377 /* We use char because int might match the return type of a gcc2
59378 builtin and then its argument prototype would still apply. */
59388 rm -f conftest.$ac_objext conftest$ac_exeext
59389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59390 (eval $ac_link) 2>conftest.er1
59392 grep -v '^ *+' conftest.er1 >conftest.err
59394 cat conftest.err >&5
59395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59396 (exit $ac_status); } &&
59397 { ac_try='test -z "$ac_c_werror_flag"
59398 || test ! -s conftest.err'
59399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59400 (eval $ac_try) 2>&5
59402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59403 (exit $ac_status); }; } &&
59404 { ac_try='test -s conftest$ac_exeext'
59405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59406 (eval $ac_try) 2>&5
59408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59409 (exit $ac_status); }; }; then
59410 ac_cv_search_crypt="-l$ac_lib"
59413 echo "$as_me: failed program was:" >&5
59414 sed 's/^/| /' conftest.$ac_ext >&5
59417 rm -f conftest.err conftest.$ac_objext \
59418 conftest$ac_exeext conftest.$ac_ext
59421 LIBS=$ac_func_search_save_LIBS
59423 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
59424 echo "${ECHO_T}$ac_cv_search_crypt" >&6
59425 if test "$ac_cv_search_crypt" != no; then
59426 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
59427 test "$ac_cv_search_crypt" = "none required" ||
59428 LIB_CRYPT="$ac_cv_search_crypt"
59431 LIBS="$ac_su_saved_lib"
59437 if test -n "$ac_aux_dir"; then
59438 case "$ac_aux_dir" in
59439 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
59440 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
59443 if test -z "$MKINSTALLDIRS"; then
59444 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
59449 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59450 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
59451 # Check whether --enable-nls or --disable-nls was given.
59452 if test "${enable_nls+set}" = set; then
59453 enableval="$enable_nls"
59458 echo "$as_me:$LINENO: result: $USE_NLS" >&5
59459 echo "${ECHO_T}$USE_NLS" >&6
59466 # Prepare PATH_SEPARATOR.
59467 # The user is always right.
59468 if test "${PATH_SEPARATOR+set}" != set; then
59469 echo "#! /bin/sh" >conf$$.sh
59470 echo "exit 0" >>conf$$.sh
59472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59480 # Find out how to test for executable files. Don't use a zero-byte file,
59481 # as systems may use methods other than mode bits to determine executability.
59482 cat >conf$$.file <<_ASEOF
59486 chmod +x conf$$.file
59487 if test -x conf$$.file >/dev/null 2>&1; then
59488 ac_executable_p="test -x"
59490 ac_executable_p="test -f"
59494 # Extract the first word of "msgfmt", so it can be a program name with args.
59495 set dummy msgfmt; ac_word=$2
59496 echo "$as_me:$LINENO: checking for $ac_word" >&5
59497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59498 if test "${ac_cv_path_MSGFMT+set}" = set; then
59499 echo $ECHO_N "(cached) $ECHO_C" >&6
59503 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
59506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59507 for ac_dir in $PATH; do
59509 test -z "$ac_dir" && ac_dir=.
59510 for ac_exec_ext in '' $ac_executable_extensions; do
59511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59512 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
59513 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59514 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
59521 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
59525 MSGFMT="$ac_cv_path_MSGFMT"
59526 if test "$MSGFMT" != ":"; then
59527 echo "$as_me:$LINENO: result: $MSGFMT" >&5
59528 echo "${ECHO_T}$MSGFMT" >&6
59530 echo "$as_me:$LINENO: result: no" >&5
59531 echo "${ECHO_T}no" >&6
59534 # Extract the first word of "gmsgfmt", so it can be a program name with args.
59535 set dummy gmsgfmt; ac_word=$2
59536 echo "$as_me:$LINENO: checking for $ac_word" >&5
59537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59538 if test "${ac_cv_path_GMSGFMT+set}" = set; then
59539 echo $ECHO_N "(cached) $ECHO_C" >&6
59543 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
59546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59547 for as_dir in $PATH
59550 test -z "$as_dir" && as_dir=.
59551 for ac_exec_ext in '' $ac_executable_extensions; do
59552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59553 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
59554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59560 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
59564 GMSGFMT=$ac_cv_path_GMSGFMT
59566 if test -n "$GMSGFMT"; then
59567 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
59568 echo "${ECHO_T}$GMSGFMT" >&6
59570 echo "$as_me:$LINENO: result: no" >&5
59571 echo "${ECHO_T}no" >&6
59576 # Prepare PATH_SEPARATOR.
59577 # The user is always right.
59578 if test "${PATH_SEPARATOR+set}" != set; then
59579 echo "#! /bin/sh" >conf$$.sh
59580 echo "exit 0" >>conf$$.sh
59582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59590 # Find out how to test for executable files. Don't use a zero-byte file,
59591 # as systems may use methods other than mode bits to determine executability.
59592 cat >conf$$.file <<_ASEOF
59596 chmod +x conf$$.file
59597 if test -x conf$$.file >/dev/null 2>&1; then
59598 ac_executable_p="test -x"
59600 ac_executable_p="test -f"
59604 # Extract the first word of "xgettext", so it can be a program name with args.
59605 set dummy xgettext; ac_word=$2
59606 echo "$as_me:$LINENO: checking for $ac_word" >&5
59607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59608 if test "${ac_cv_path_XGETTEXT+set}" = set; then
59609 echo $ECHO_N "(cached) $ECHO_C" >&6
59611 case "$XGETTEXT" in
59613 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
59616 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59617 for ac_dir in $PATH; do
59619 test -z "$ac_dir" && ac_dir=.
59620 for ac_exec_ext in '' $ac_executable_extensions; do
59621 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59622 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59623 (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
59624 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
59631 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
59635 XGETTEXT="$ac_cv_path_XGETTEXT"
59636 if test "$XGETTEXT" != ":"; then
59637 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
59638 echo "${ECHO_T}$XGETTEXT" >&6
59640 echo "$as_me:$LINENO: result: no" >&5
59641 echo "${ECHO_T}no" >&6
59647 # Prepare PATH_SEPARATOR.
59648 # The user is always right.
59649 if test "${PATH_SEPARATOR+set}" != set; then
59650 echo "#! /bin/sh" >conf$$.sh
59651 echo "exit 0" >>conf$$.sh
59653 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59661 # Find out how to test for executable files. Don't use a zero-byte file,
59662 # as systems may use methods other than mode bits to determine executability.
59663 cat >conf$$.file <<_ASEOF
59667 chmod +x conf$$.file
59668 if test -x conf$$.file >/dev/null 2>&1; then
59669 ac_executable_p="test -x"
59671 ac_executable_p="test -f"
59675 # Extract the first word of "msgmerge", so it can be a program name with args.
59676 set dummy msgmerge; ac_word=$2
59677 echo "$as_me:$LINENO: checking for $ac_word" >&5
59678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59679 if test "${ac_cv_path_MSGMERGE+set}" = set; then
59680 echo $ECHO_N "(cached) $ECHO_C" >&6
59682 case "$MSGMERGE" in
59684 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
59687 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59688 for ac_dir in $PATH; do
59690 test -z "$ac_dir" && ac_dir=.
59691 for ac_exec_ext in '' $ac_executable_extensions; do
59692 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59693 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
59694 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
59701 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
59705 MSGMERGE="$ac_cv_path_MSGMERGE"
59706 if test "$MSGMERGE" != ":"; then
59707 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
59708 echo "${ECHO_T}$MSGMERGE" >&6
59710 echo "$as_me:$LINENO: result: no" >&5
59711 echo "${ECHO_T}no" >&6
59715 if test "$GMSGFMT" != ":"; then
59716 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
59717 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59720 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
59721 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
59722 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
59727 if test "$XGETTEXT" != ":"; then
59728 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59729 (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
59732 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
59733 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
59739 ac_config_commands="$ac_config_commands default-1"
59748 # ifelse(gt_included_intl, yes, [
59749 # AC_REQUIRE([AM_INTL_SUBDIR])dnl
59760 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
59762 # Check whether --enable-nls or --disable-nls was given.
59763 if test "${enable_nls+set}" = set; then
59764 enableval="$enable_nls"
59769 echo "$as_me:$LINENO: result: $USE_NLS" >&5
59770 echo "${ECHO_T}$USE_NLS" >&6
59779 if test "$USE_NLS" = "yes"; then
59780 gt_use_preinstalled_gnugettext=no
59787 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
59788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
59789 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
59790 echo $ECHO_N "(cached) $ECHO_C" >&6
59792 cat >conftest.$ac_ext <<_ACEOF
59795 cat confdefs.h >>conftest.$ac_ext
59796 cat >>conftest.$ac_ext <<_ACEOF
59797 /* end confdefs.h. */
59798 #include <libintl.h>
59799 extern int _nl_msg_cat_cntr;
59800 extern int *_nl_domain_bindings;
59804 bindtextdomain ("", "");
59805 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
59810 rm -f conftest.$ac_objext conftest$ac_exeext
59811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59812 (eval $ac_link) 2>conftest.er1
59814 grep -v '^ *+' conftest.er1 >conftest.err
59816 cat conftest.err >&5
59817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59818 (exit $ac_status); } &&
59819 { ac_try='test -z "$ac_c_werror_flag"
59820 || test ! -s conftest.err'
59821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59822 (eval $ac_try) 2>&5
59824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59825 (exit $ac_status); }; } &&
59826 { ac_try='test -s conftest$ac_exeext'
59827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59828 (eval $ac_try) 2>&5
59830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59831 (exit $ac_status); }; }; then
59832 gt_cv_func_gnugettext2_libc=yes
59834 echo "$as_me: failed program was:" >&5
59835 sed 's/^/| /' conftest.$ac_ext >&5
59837 gt_cv_func_gnugettext2_libc=no
59839 rm -f conftest.err conftest.$ac_objext \
59840 conftest$ac_exeext conftest.$ac_ext
59842 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
59843 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
59845 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
59851 am_save_CPPFLAGS="$CPPFLAGS"
59853 for element in $INCICONV; do
59855 for x in $CPPFLAGS; do
59857 acl_save_prefix="$prefix"
59858 prefix="$acl_final_prefix"
59859 acl_save_exec_prefix="$exec_prefix"
59860 exec_prefix="$acl_final_exec_prefix"
59862 exec_prefix="$acl_save_exec_prefix"
59863 prefix="$acl_save_prefix"
59865 if test "X$x" = "X$element"; then
59870 if test -z "$haveit"; then
59871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
59876 echo "$as_me:$LINENO: checking for iconv" >&5
59877 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
59878 if test "${am_cv_func_iconv+set}" = set; then
59879 echo $ECHO_N "(cached) $ECHO_C" >&6
59882 am_cv_func_iconv="no, consider installing GNU libiconv"
59884 cat >conftest.$ac_ext <<_ACEOF
59887 cat confdefs.h >>conftest.$ac_ext
59888 cat >>conftest.$ac_ext <<_ACEOF
59889 /* end confdefs.h. */
59890 #include <stdlib.h>
59895 iconv_t cd = iconv_open("","");
59896 iconv(cd,NULL,NULL,NULL,NULL);
59902 rm -f conftest.$ac_objext conftest$ac_exeext
59903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59904 (eval $ac_link) 2>conftest.er1
59906 grep -v '^ *+' conftest.er1 >conftest.err
59908 cat conftest.err >&5
59909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59910 (exit $ac_status); } &&
59911 { ac_try='test -z "$ac_c_werror_flag"
59912 || test ! -s conftest.err'
59913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59914 (eval $ac_try) 2>&5
59916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59917 (exit $ac_status); }; } &&
59918 { ac_try='test -s conftest$ac_exeext'
59919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59920 (eval $ac_try) 2>&5
59922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59923 (exit $ac_status); }; }; then
59924 am_cv_func_iconv=yes
59926 echo "$as_me: failed program was:" >&5
59927 sed 's/^/| /' conftest.$ac_ext >&5
59930 rm -f conftest.err conftest.$ac_objext \
59931 conftest$ac_exeext conftest.$ac_ext
59932 if test "$am_cv_func_iconv" != yes; then
59933 am_save_LIBS="$LIBS"
59934 LIBS="$LIBS $LIBICONV"
59935 cat >conftest.$ac_ext <<_ACEOF
59938 cat confdefs.h >>conftest.$ac_ext
59939 cat >>conftest.$ac_ext <<_ACEOF
59940 /* end confdefs.h. */
59941 #include <stdlib.h>
59946 iconv_t cd = iconv_open("","");
59947 iconv(cd,NULL,NULL,NULL,NULL);
59953 rm -f conftest.$ac_objext conftest$ac_exeext
59954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59955 (eval $ac_link) 2>conftest.er1
59957 grep -v '^ *+' conftest.er1 >conftest.err
59959 cat conftest.err >&5
59960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59961 (exit $ac_status); } &&
59962 { ac_try='test -z "$ac_c_werror_flag"
59963 || test ! -s conftest.err'
59964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59965 (eval $ac_try) 2>&5
59967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59968 (exit $ac_status); }; } &&
59969 { ac_try='test -s conftest$ac_exeext'
59970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59971 (eval $ac_try) 2>&5
59973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59974 (exit $ac_status); }; }; then
59975 am_cv_lib_iconv=yes
59976 am_cv_func_iconv=yes
59978 echo "$as_me: failed program was:" >&5
59979 sed 's/^/| /' conftest.$ac_ext >&5
59982 rm -f conftest.err conftest.$ac_objext \
59983 conftest$ac_exeext conftest.$ac_ext
59984 LIBS="$am_save_LIBS"
59988 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
59989 echo "${ECHO_T}$am_cv_func_iconv" >&6
59990 if test "$am_cv_func_iconv" = yes; then
59992 cat >>confdefs.h <<\_ACEOF
59993 #define HAVE_ICONV 1
59997 if test "$am_cv_lib_iconv" = yes; then
59998 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
59999 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
60000 echo "$as_me:$LINENO: result: $LIBICONV" >&5
60001 echo "${ECHO_T}$LIBICONV" >&6
60003 CPPFLAGS="$am_save_CPPFLAGS"
60015 acl_save_prefix="$prefix"
60016 prefix="$acl_final_prefix"
60017 acl_save_exec_prefix="$exec_prefix"
60018 exec_prefix="$acl_final_exec_prefix"
60020 eval additional_includedir=\"$includedir\"
60021 eval additional_libdir=\"$libdir\"
60023 exec_prefix="$acl_save_exec_prefix"
60024 prefix="$acl_save_prefix"
60027 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
60028 if test "${with_libintl_prefix+set}" = set; then
60029 withval="$with_libintl_prefix"
60031 if test "X$withval" = "Xno"; then
60034 if test "X$withval" = "X"; then
60036 acl_save_prefix="$prefix"
60037 prefix="$acl_final_prefix"
60038 acl_save_exec_prefix="$exec_prefix"
60039 exec_prefix="$acl_final_exec_prefix"
60041 eval additional_includedir=\"$includedir\"
60042 eval additional_libdir=\"$libdir\"
60044 exec_prefix="$acl_save_exec_prefix"
60045 prefix="$acl_save_prefix"
60048 additional_includedir="$withval/include"
60049 additional_libdir="$withval/lib"
60059 names_already_handled=
60060 names_next_round='intl '
60061 while test -n "$names_next_round"; do
60062 names_this_round="$names_next_round"
60064 for name in $names_this_round; do
60066 for n in $names_already_handled; do
60067 if test "$n" = "$name"; then
60068 already_handled=yes
60072 if test -z "$already_handled"; then
60073 names_already_handled="$names_already_handled $name"
60074 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
60075 eval value=\"\$HAVE_LIB$uppername\"
60076 if test -n "$value"; then
60077 if test "$value" = yes; then
60078 eval value=\"\$LIB$uppername\"
60079 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
60080 eval value=\"\$LTLIB$uppername\"
60081 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
60090 if test $use_additional = yes; then
60091 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
60092 found_dir="$additional_libdir"
60093 found_so="$additional_libdir/lib$name.$shlibext"
60094 if test -f "$additional_libdir/lib$name.la"; then
60095 found_la="$additional_libdir/lib$name.la"
60098 if test -f "$additional_libdir/lib$name.$libext"; then
60099 found_dir="$additional_libdir"
60100 found_a="$additional_libdir/lib$name.$libext"
60101 if test -f "$additional_libdir/lib$name.la"; then
60102 found_la="$additional_libdir/lib$name.la"
60107 if test "X$found_dir" = "X"; then
60108 for x in $LDFLAGS $LTLIBINTL; do
60110 acl_save_prefix="$prefix"
60111 prefix="$acl_final_prefix"
60112 acl_save_exec_prefix="$exec_prefix"
60113 exec_prefix="$acl_final_exec_prefix"
60115 exec_prefix="$acl_save_exec_prefix"
60116 prefix="$acl_save_prefix"
60120 dir=`echo "X$x" | sed -e 's/^X-L//'`
60121 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
60123 found_so="$dir/lib$name.$shlibext"
60124 if test -f "$dir/lib$name.la"; then
60125 found_la="$dir/lib$name.la"
60128 if test -f "$dir/lib$name.$libext"; then
60130 found_a="$dir/lib$name.$libext"
60131 if test -f "$dir/lib$name.la"; then
60132 found_la="$dir/lib$name.la"
60138 if test "X$found_dir" != "X"; then
60143 if test "X$found_dir" != "X"; then
60144 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
60145 if test "X$found_so" != "X"; then
60146 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
60147 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60150 for x in $ltrpathdirs; do
60151 if test "X$x" = "X$found_dir"; then
60156 if test -z "$haveit"; then
60157 ltrpathdirs="$ltrpathdirs $found_dir"
60159 if test "$hardcode_direct" = yes; then
60160 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60162 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
60163 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60165 for x in $rpathdirs; do
60166 if test "X$x" = "X$found_dir"; then
60171 if test -z "$haveit"; then
60172 rpathdirs="$rpathdirs $found_dir"
60176 for x in $LDFLAGS $LIBINTL; do
60178 acl_save_prefix="$prefix"
60179 prefix="$acl_final_prefix"
60180 acl_save_exec_prefix="$exec_prefix"
60181 exec_prefix="$acl_final_exec_prefix"
60183 exec_prefix="$acl_save_exec_prefix"
60184 prefix="$acl_save_prefix"
60186 if test "X$x" = "X-L$found_dir"; then
60191 if test -z "$haveit"; then
60192 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
60194 if test "$hardcode_minus_L" != no; then
60195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60197 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60203 if test "X$found_a" != "X"; then
60204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
60206 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
60209 additional_includedir=
60210 case "$found_dir" in
60212 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
60213 additional_includedir="$basedir/include"
60216 if test "X$additional_includedir" != "X"; then
60217 if test "X$additional_includedir" != "X/usr/include"; then
60219 if test "X$additional_includedir" = "X/usr/local/include"; then
60220 if test -n "$GCC"; then
60222 linux*) haveit=yes;;
60226 if test -z "$haveit"; then
60227 for x in $CPPFLAGS $INCINTL; do
60229 acl_save_prefix="$prefix"
60230 prefix="$acl_final_prefix"
60231 acl_save_exec_prefix="$exec_prefix"
60232 exec_prefix="$acl_final_exec_prefix"
60234 exec_prefix="$acl_save_exec_prefix"
60235 prefix="$acl_save_prefix"
60237 if test "X$x" = "X-I$additional_includedir"; then
60242 if test -z "$haveit"; then
60243 if test -d "$additional_includedir"; then
60244 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
60250 if test -n "$found_la"; then
60251 save_libdir="$libdir"
60252 case "$found_la" in
60253 */* | *\\*) . "$found_la" ;;
60254 *) . "./$found_la" ;;
60256 libdir="$save_libdir"
60257 for dep in $dependency_libs; do
60260 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
60261 if test "X$additional_libdir" != "X/usr/lib"; then
60263 if test "X$additional_libdir" = "X/usr/local/lib"; then
60264 if test -n "$GCC"; then
60266 linux*) haveit=yes;;
60270 if test -z "$haveit"; then
60272 for x in $LDFLAGS $LIBINTL; do
60274 acl_save_prefix="$prefix"
60275 prefix="$acl_final_prefix"
60276 acl_save_exec_prefix="$exec_prefix"
60277 exec_prefix="$acl_final_exec_prefix"
60279 exec_prefix="$acl_save_exec_prefix"
60280 prefix="$acl_save_prefix"
60282 if test "X$x" = "X-L$additional_libdir"; then
60287 if test -z "$haveit"; then
60288 if test -d "$additional_libdir"; then
60289 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
60293 for x in $LDFLAGS $LTLIBINTL; do
60295 acl_save_prefix="$prefix"
60296 prefix="$acl_final_prefix"
60297 acl_save_exec_prefix="$exec_prefix"
60298 exec_prefix="$acl_final_exec_prefix"
60300 exec_prefix="$acl_save_exec_prefix"
60301 prefix="$acl_save_prefix"
60303 if test "X$x" = "X-L$additional_libdir"; then
60308 if test -z "$haveit"; then
60309 if test -d "$additional_libdir"; then
60310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
60317 dir=`echo "X$dep" | sed -e 's/^X-R//'`
60318 if test "$enable_rpath" != no; then
60320 for x in $rpathdirs; do
60321 if test "X$x" = "X$dir"; then
60326 if test -z "$haveit"; then
60327 rpathdirs="$rpathdirs $dir"
60330 for x in $ltrpathdirs; do
60331 if test "X$x" = "X$dir"; then
60336 if test -z "$haveit"; then
60337 ltrpathdirs="$ltrpathdirs $dir"
60342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
60345 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
60348 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
60349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
60355 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60356 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
60362 if test "X$rpathdirs" != "X"; then
60363 if test -n "$hardcode_libdir_separator"; then
60365 for found_dir in $rpathdirs; do
60366 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
60368 acl_save_libdir="$libdir"
60370 eval flag=\"$hardcode_libdir_flag_spec\"
60371 libdir="$acl_save_libdir"
60372 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60374 for found_dir in $rpathdirs; do
60375 acl_save_libdir="$libdir"
60376 libdir="$found_dir"
60377 eval flag=\"$hardcode_libdir_flag_spec\"
60378 libdir="$acl_save_libdir"
60379 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60383 if test "X$ltrpathdirs" != "X"; then
60384 for found_dir in $ltrpathdirs; do
60385 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
60389 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
60390 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
60391 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
60392 echo $ECHO_N "(cached) $ECHO_C" >&6
60394 gt_save_CPPFLAGS="$CPPFLAGS"
60395 CPPFLAGS="$CPPFLAGS $INCINTL"
60396 gt_save_LIBS="$LIBS"
60397 LIBS="$LIBS $LIBINTL"
60398 cat >conftest.$ac_ext <<_ACEOF
60401 cat confdefs.h >>conftest.$ac_ext
60402 cat >>conftest.$ac_ext <<_ACEOF
60403 /* end confdefs.h. */
60404 #include <libintl.h>
60405 extern int _nl_msg_cat_cntr;
60410 const char *_nl_expand_alias ();
60414 bindtextdomain ("", "");
60415 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
60420 rm -f conftest.$ac_objext conftest$ac_exeext
60421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60422 (eval $ac_link) 2>conftest.er1
60424 grep -v '^ *+' conftest.er1 >conftest.err
60426 cat conftest.err >&5
60427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60428 (exit $ac_status); } &&
60429 { ac_try='test -z "$ac_c_werror_flag"
60430 || test ! -s conftest.err'
60431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60432 (eval $ac_try) 2>&5
60434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60435 (exit $ac_status); }; } &&
60436 { ac_try='test -s conftest$ac_exeext'
60437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60438 (eval $ac_try) 2>&5
60440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60441 (exit $ac_status); }; }; then
60442 gt_cv_func_gnugettext2_libintl=yes
60444 echo "$as_me: failed program was:" >&5
60445 sed 's/^/| /' conftest.$ac_ext >&5
60447 gt_cv_func_gnugettext2_libintl=no
60449 rm -f conftest.err conftest.$ac_objext \
60450 conftest$ac_exeext conftest.$ac_ext
60451 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
60452 LIBS="$LIBS $LIBICONV"
60453 cat >conftest.$ac_ext <<_ACEOF
60456 cat confdefs.h >>conftest.$ac_ext
60457 cat >>conftest.$ac_ext <<_ACEOF
60458 /* end confdefs.h. */
60459 #include <libintl.h>
60460 extern int _nl_msg_cat_cntr;
60465 const char *_nl_expand_alias ();
60469 bindtextdomain ("", "");
60470 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
60475 rm -f conftest.$ac_objext conftest$ac_exeext
60476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60477 (eval $ac_link) 2>conftest.er1
60479 grep -v '^ *+' conftest.er1 >conftest.err
60481 cat conftest.err >&5
60482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60483 (exit $ac_status); } &&
60484 { ac_try='test -z "$ac_c_werror_flag"
60485 || test ! -s conftest.err'
60486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60487 (eval $ac_try) 2>&5
60489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60490 (exit $ac_status); }; } &&
60491 { ac_try='test -s conftest$ac_exeext'
60492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60493 (eval $ac_try) 2>&5
60495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60496 (exit $ac_status); }; }; then
60497 LIBINTL="$LIBINTL $LIBICONV"
60498 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
60499 gt_cv_func_gnugettext2_libintl=yes
60502 echo "$as_me: failed program was:" >&5
60503 sed 's/^/| /' conftest.$ac_ext >&5
60506 rm -f conftest.err conftest.$ac_objext \
60507 conftest$ac_exeext conftest.$ac_ext
60509 CPPFLAGS="$gt_save_CPPFLAGS"
60510 LIBS="$gt_save_LIBS"
60512 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
60513 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
60516 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
60517 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
60518 && test "$PACKAGE" != gettext-runtime \
60519 && test "$PACKAGE" != gettext-tools; }; then
60520 gt_use_preinstalled_gnugettext=yes
60529 if test "$gt_use_preinstalled_gnugettext" = "yes" \
60530 || test "$nls_cv_use_gnu_gettext" = "yes"; then
60532 cat >>confdefs.h <<\_ACEOF
60533 #define ENABLE_NLS 1
60541 echo "$as_me:$LINENO: checking whether to use NLS" >&5
60542 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
60543 echo "$as_me:$LINENO: result: $USE_NLS" >&5
60544 echo "${ECHO_T}$USE_NLS" >&6
60545 if test "$USE_NLS" = "yes"; then
60546 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
60547 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
60548 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
60549 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
60550 gt_source="external libintl"
60555 gt_source="included intl directory"
60557 echo "$as_me:$LINENO: result: $gt_source" >&5
60558 echo "${ECHO_T}$gt_source" >&6
60561 if test "$USE_NLS" = "yes"; then
60563 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
60564 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
60565 echo "$as_me:$LINENO: checking how to link with libintl" >&5
60566 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
60567 echo "$as_me:$LINENO: result: $LIBINTL" >&5
60568 echo "${ECHO_T}$LIBINTL" >&6
60570 for element in $INCINTL; do
60572 for x in $CPPFLAGS; do
60574 acl_save_prefix="$prefix"
60575 prefix="$acl_final_prefix"
60576 acl_save_exec_prefix="$exec_prefix"
60577 exec_prefix="$acl_final_exec_prefix"
60579 exec_prefix="$acl_save_exec_prefix"
60580 prefix="$acl_save_prefix"
60582 if test "X$x" = "X$element"; then
60587 if test -z "$haveit"; then
60588 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
60595 cat >>confdefs.h <<\_ACEOF
60596 #define HAVE_GETTEXT 1
60600 cat >>confdefs.h <<\_ACEOF
60601 #define HAVE_DCGETTEXT 1
60611 INTLLIBS="$LIBINTL"
60620 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile po/Makefile.in src/Makefile tests/Makefile tests/basename/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/date/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/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
60622 cat >confcache <<\_ACEOF
60623 # This file is a shell script that caches the results of configure
60624 # tests run on this system so they can be shared between configure
60625 # scripts and configure runs, see configure's option --config-cache.
60626 # It is not useful on other systems. If it contains results you don't
60627 # want to keep, you may remove or edit it.
60629 # config.status only pays attention to the cache file if you give it
60630 # the --recheck option to rerun configure.
60632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
60633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
60634 # following values.
60638 # The following way of writing the cache mishandles newlines in values,
60639 # but we know of no workaround that is simple, portable, and efficient.
60640 # So, don't put newlines in cache variables' values.
60641 # Ultrix sh set writes to stderr and can't be redirected directly,
60642 # and sets the high bit in the cache file unless we assign to the vars.
60645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
60647 # `set' does not quote correctly, so add quotes (double-quote
60648 # substitution turns \\\\ into \\, and sed turns \\ into \).
60651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
60654 # `set' quotes correctly as required by POSIX, so do not add quotes.
60656 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
60663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
60665 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
60667 if diff $cache_file confcache >/dev/null 2>&1; then :; else
60668 if test -w $cache_file; then
60669 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
60670 cat confcache >$cache_file
60672 echo "not updating unwritable cache $cache_file"
60677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
60678 # Let make expand exec_prefix.
60679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
60681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
60682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
60683 # trailing colons and then remove the whole line if VPATH becomes empty
60684 # (actually we leave an empty line to preserve line numbers).
60685 if test "x$srcdir" = x.; then
60686 ac_vpsub='/^[ ]*VPATH[ ]*=/{
60687 s/:*\$(srcdir):*/:/;
60688 s/:*\${srcdir}:*/:/;
60690 s/^\([^=]*=[ ]*\):*/\1/;
60696 DEFS=-DHAVE_CONFIG_H
60700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
60701 # 1. Remove the extension, and $U if already installed.
60702 ac_i=`echo "$ac_i" |
60703 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
60705 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
60706 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
60708 LIBOBJS=$ac_libobjs
60710 LTLIBOBJS=$ac_ltlibobjs
60713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
60714 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
60715 Usually this means the macro was only invoked conditionally." >&5
60716 echo "$as_me: error: conditional \"AMDEP\" was never defined.
60717 Usually this means the macro was only invoked conditionally." >&2;}
60718 { (exit 1); exit 1; }; }
60720 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60721 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
60722 Usually this means the macro was only invoked conditionally." >&5
60723 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
60724 Usually this means the macro was only invoked conditionally." >&2;}
60725 { (exit 1); exit 1; }; }
60727 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60728 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
60729 Usually this means the macro was only invoked conditionally." >&5
60730 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
60731 Usually this means the macro was only invoked conditionally." >&2;}
60732 { (exit 1); exit 1; }; }
60735 : ${CONFIG_STATUS=./config.status}
60736 ac_clean_files_save=$ac_clean_files
60737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
60738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
60739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
60740 cat >$CONFIG_STATUS <<_ACEOF
60742 # Generated by $as_me.
60743 # Run this file to recreate the current configuration.
60744 # Compiler output produced by configure, useful for debugging
60745 # configure, is in config.log if it exists.
60748 ac_cs_recheck=false
60750 SHELL=\${CONFIG_SHELL-$SHELL}
60753 cat >>$CONFIG_STATUS <<\_ACEOF
60754 ## --------------------- ##
60755 ## M4sh Initialization. ##
60756 ## --------------------- ##
60758 # Be Bourne compatible
60759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
60762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
60763 # is contrary to our usage. Disable this feature.
60764 alias -g '${1+"$@"}'='"$@"'
60765 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
60768 DUALCASE=1; export DUALCASE # for MKS sh
60770 # Support unset when possible.
60771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60778 # Work around bugs in pre-3.0 UWIN ksh.
60779 $as_unset ENV MAIL MAILPATH
60786 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
60787 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
60788 LC_TELEPHONE LC_TIME
60790 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
60791 eval $as_var=C; export $as_var
60797 # Required to use basename.
60798 if expr a : '\(a\)' >/dev/null 2>&1; then
60804 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60805 as_basename=basename
60811 # Name of the executable.
60812 as_me=`$as_basename "$0" ||
60813 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
60814 X"$0" : 'X\(//\)$' \| \
60815 X"$0" : 'X\(/\)$' \| \
60816 . : '\(.\)' 2>/dev/null ||
60818 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
60819 /^X\/\(\/\/\)$/{ s//\1/; q; }
60820 /^X\/\(\/\).*/{ s//\1/; q; }
60824 # PATH needs CR, and LINENO needs CR and PATH.
60825 # Avoid depending upon Character Ranges.
60826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
60827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
60828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60829 as_cr_digits='0123456789'
60830 as_cr_alnum=$as_cr_Letters$as_cr_digits
60832 # The user is always right.
60833 if test "${PATH_SEPARATOR+set}" != set; then
60834 echo "#! /bin/sh" >conf$$.sh
60835 echo "exit 0" >>conf$$.sh
60837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
60846 as_lineno_1=$LINENO
60847 as_lineno_2=$LINENO
60848 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
60849 test "x$as_lineno_1" != "x$as_lineno_2" &&
60850 test "x$as_lineno_3" = "x$as_lineno_2" || {
60851 # Find who we are. Look in the path if we contain no path at all
60854 *[\\/]* ) as_myself=$0 ;;
60855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60856 for as_dir in $PATH
60859 test -z "$as_dir" && as_dir=.
60860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
60865 # We did not find ourselves, most probably we were run as `sh COMMAND'
60866 # in which case we are not to be found in the path.
60867 if test "x$as_myself" = x; then
60870 if test ! -f "$as_myself"; then
60871 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
60872 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
60873 { (exit 1); exit 1; }; }
60875 case $CONFIG_SHELL in
60877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60878 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
60881 test -z "$as_dir" && as_dir=.
60882 for as_base in sh bash ksh sh5; do
60885 if ("$as_dir/$as_base" -c '
60886 as_lineno_1=$LINENO
60887 as_lineno_2=$LINENO
60888 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
60889 test "x$as_lineno_1" != "x$as_lineno_2" &&
60890 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
60891 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
60892 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
60893 CONFIG_SHELL=$as_dir/$as_base
60894 export CONFIG_SHELL
60895 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
60903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
60904 # uniformly replaced by the line number. The first 'sed' inserts a
60905 # line-number line before each line; the second 'sed' does the real
60906 # work. The second script uses 'N' to pair each line-number line
60907 # with the numbered line, and appends trailing '-' during
60908 # substitution so that $LINENO is not a special case at line end.
60909 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
60910 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
60911 sed '=' <$as_myself |
60916 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
60919 s,^['$as_cr_digits']*\n,,
60920 ' >$as_me.lineno &&
60921 chmod +x $as_me.lineno ||
60922 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
60923 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
60924 { (exit 1); exit 1; }; }
60926 # Don't try to exec as it changes $[0], causing all sort of problems
60927 # (the dirname of $[0] is not the place where we might find the
60928 # original and so on. Autoconf is especially sensible to this).
60930 # Exit status is that of the last command.
60935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
60936 *c*,-n*) ECHO_N= ECHO_C='
60938 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
60939 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
60942 if expr a : '\(a\)' >/dev/null 2>&1; then
60948 rm -f conf$$ conf$$.exe conf$$.file
60950 if ln -s conf$$.file conf$$ 2>/dev/null; then
60951 # We could just check for DJGPP; but this test a) works b) is more generic
60952 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
60953 if test -f conf$$.exe; then
60954 # Don't use ln at all; we don't have any links
60959 elif ln conf$$.file conf$$ 2>/dev/null; then
60964 rm -f conf$$ conf$$.exe conf$$.file
60966 if mkdir -p . 2>/dev/null; then
60969 test -d ./-p && rmdir ./-p
60973 as_executable_p="test -f"
60975 # Sed expression to map a string onto a valid CPP name.
60976 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
60978 # Sed expression to map a string onto a valid variable name.
60979 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
60983 # We need space, tab and new line, in precisely that order.
60993 # Open the log real soon, to keep \$[0] and so on meaningful, and to
60994 # report actual input values of CONFIG_FILES etc. instead of their
60995 # values after options handling. Logging --version etc. is OK.
60999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61000 ## Running $as_me. ##
61005 This file was extended by GNU coreutils $as_me 5.3.0, which was
61006 generated by GNU Autoconf 2.59. Invocation command line was
61008 CONFIG_FILES = $CONFIG_FILES
61009 CONFIG_HEADERS = $CONFIG_HEADERS
61010 CONFIG_LINKS = $CONFIG_LINKS
61011 CONFIG_COMMANDS = $CONFIG_COMMANDS
61015 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
61019 # Files that config.status was made for.
61020 if test -n "$ac_config_files"; then
61021 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
61024 if test -n "$ac_config_headers"; then
61025 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
61028 if test -n "$ac_config_links"; then
61029 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
61032 if test -n "$ac_config_commands"; then
61033 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
61036 cat >>$CONFIG_STATUS <<\_ACEOF
61039 \`$as_me' instantiates files from templates according to the
61040 current configuration.
61042 Usage: $0 [OPTIONS] [FILE]...
61044 -h, --help print this help, then exit
61045 -V, --version print version number, then exit
61046 -q, --quiet do not print progress messages
61047 -d, --debug don't remove temporary files
61048 --recheck update $as_me by reconfiguring in the same conditions
61049 --file=FILE[:TEMPLATE]
61050 instantiate the configuration file FILE
61051 --header=FILE[:TEMPLATE]
61052 instantiate the configuration header FILE
61054 Configuration files:
61057 Configuration headers:
61060 Configuration commands:
61063 Report bugs to <bug-autoconf@gnu.org>."
61066 cat >>$CONFIG_STATUS <<_ACEOF
61068 GNU coreutils config.status 5.3.0
61069 configured by $0, generated by GNU Autoconf 2.59,
61070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
61072 Copyright (C) 2003 Free Software Foundation, Inc.
61073 This config.status script is free software; the Free Software Foundation
61074 gives unlimited permission to copy, distribute and modify it."
61079 cat >>$CONFIG_STATUS <<\_ACEOF
61080 # If no file are specified by the user, then we need to provide default
61081 # value. By we need to know if files were specified by the user.
61087 ac_option=`expr "x$1" : 'x\([^=]*\)='`
61088 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
61096 *) # This is not an option, so the user has probably given explicit
61099 ac_need_defaults=false;;
61103 # Handling of the options.
61105 cat >>$CONFIG_STATUS <<\_ACEOF
61106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61108 --version | --vers* | -V )
61109 echo "$ac_cs_version"; exit 0 ;;
61111 # Conflict between --help and --header
61112 { { echo "$as_me:$LINENO: error: ambiguous option: $1
61113 Try \`$0 --help' for more information." >&5
61114 echo "$as_me: error: ambiguous option: $1
61115 Try \`$0 --help' for more information." >&2;}
61116 { (exit 1); exit 1; }; };;
61117 --help | --hel | -h )
61118 echo "$ac_cs_usage"; exit 0 ;;
61119 --debug | --d* | -d )
61121 --file | --fil | --fi | --f )
61123 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
61124 ac_need_defaults=false;;
61125 --header | --heade | --head | --hea )
61127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
61128 ac_need_defaults=false;;
61129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
61133 # This is an error.
61134 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
61135 Try \`$0 --help' for more information." >&5
61136 echo "$as_me: error: unrecognized option: $1
61137 Try \`$0 --help' for more information." >&2;}
61138 { (exit 1); exit 1; }; } ;;
61140 *) ac_config_targets="$ac_config_targets $1" ;;
61146 ac_configure_extra_args=
61148 if $ac_cs_silent; then
61150 ac_configure_extra_args="$ac_configure_extra_args --silent"
61154 cat >>$CONFIG_STATUS <<_ACEOF
61155 if \$ac_cs_recheck; then
61156 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
61157 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61162 cat >>$CONFIG_STATUS <<_ACEOF
61164 # INIT-COMMANDS section.
61167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61168 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
61169 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
61171 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
61172 # Capture the value of LINGUAS because we need it to compute CATALOGS.
61173 LINGUAS="${LINGUAS-%UNSET%}"
61180 cat >>$CONFIG_STATUS <<\_ACEOF
61181 for ac_config_target in $ac_config_targets
61183 case "$ac_config_target" in
61184 # Handling of arguments.
61185 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61186 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
61187 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
61188 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
61189 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
61190 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
61191 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
61192 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
61193 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
61194 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
61195 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
61196 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
61197 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
61198 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
61199 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
61200 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
61201 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
61202 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
61203 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
61204 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
61205 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
61206 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
61207 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
61208 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
61209 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
61210 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
61211 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
61212 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
61213 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
61214 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
61215 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
61216 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
61217 "tests/readlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
61218 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
61219 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
61220 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
61221 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
61222 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
61223 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
61224 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
61225 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
61226 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
61227 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
61228 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
61229 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
61230 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
61231 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
61232 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
61233 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
61234 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
61235 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
61236 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61237 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
61238 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
61239 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
61240 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
61241 { (exit 1); exit 1; }; };;
61245 # If the user did not use the arguments to specify the items to instantiate,
61246 # then the envvar interface is used. Set only those that are not.
61247 # We use the long form for the default assignment because of an extremely
61248 # bizarre bug on SunOS 4.1.3.
61249 if $ac_need_defaults; then
61250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61252 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61255 # Have a temporary directory for convenience. Make it in the build tree
61256 # simply because there is no reason to put it here, and in addition,
61257 # creating and moving files from /tmp can sometimes cause problems.
61258 # Create a temporary directory, and hook for its removal unless debugging.
61261 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
61262 trap '{ (exit 1); exit 1; }' 1 2 13 15
61265 # Create a (secure) tmp directory for tmp files.
61268 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
61269 test -n "$tmp" && test -d "$tmp"
61272 tmp=./confstat$$-$RANDOM
61273 (umask 077 && mkdir $tmp)
61276 echo "$me: cannot create a temporary directory in ." >&2
61277 { (exit 1); exit 1; }
61282 cat >>$CONFIG_STATUS <<_ACEOF
61285 # CONFIG_FILES section.
61288 # No need to generate the scripts if there are no CONFIG_FILES.
61289 # This happens for instance when ./config.status config.h
61290 if test -n "\$CONFIG_FILES"; then
61291 # Protect against being on the right side of a sed subst in config.status.
61292 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
61293 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
61294 s,@SHELL@,$SHELL,;t t
61295 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
61296 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
61297 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
61298 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
61299 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
61300 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
61301 s,@exec_prefix@,$exec_prefix,;t t
61302 s,@prefix@,$prefix,;t t
61303 s,@program_transform_name@,$program_transform_name,;t t
61304 s,@bindir@,$bindir,;t t
61305 s,@sbindir@,$sbindir,;t t
61306 s,@libexecdir@,$libexecdir,;t t
61307 s,@datadir@,$datadir,;t t
61308 s,@sysconfdir@,$sysconfdir,;t t
61309 s,@sharedstatedir@,$sharedstatedir,;t t
61310 s,@localstatedir@,$localstatedir,;t t
61311 s,@libdir@,$libdir,;t t
61312 s,@includedir@,$includedir,;t t
61313 s,@oldincludedir@,$oldincludedir,;t t
61314 s,@infodir@,$infodir,;t t
61315 s,@mandir@,$mandir,;t t
61316 s,@build_alias@,$build_alias,;t t
61317 s,@host_alias@,$host_alias,;t t
61318 s,@target_alias@,$target_alias,;t t
61319 s,@DEFS@,$DEFS,;t t
61320 s,@ECHO_C@,$ECHO_C,;t t
61321 s,@ECHO_N@,$ECHO_N,;t t
61322 s,@ECHO_T@,$ECHO_T,;t t
61323 s,@LIBS@,$LIBS,;t t
61324 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
61325 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
61326 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
61327 s,@CYGPATH_W@,$CYGPATH_W,;t t
61328 s,@PACKAGE@,$PACKAGE,;t t
61329 s,@VERSION@,$VERSION,;t t
61330 s,@ACLOCAL@,$ACLOCAL,;t t
61331 s,@AUTOCONF@,$AUTOCONF,;t t
61332 s,@AUTOMAKE@,$AUTOMAKE,;t t
61333 s,@AUTOHEADER@,$AUTOHEADER,;t t
61334 s,@MAKEINFO@,$MAKEINFO,;t t
61335 s,@install_sh@,$install_sh,;t t
61336 s,@STRIP@,$STRIP,;t t
61337 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
61338 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
61339 s,@mkdir_p@,$mkdir_p,;t t
61341 s,@SET_MAKE@,$SET_MAKE,;t t
61342 s,@am__leading_dot@,$am__leading_dot,;t t
61343 s,@AMTAR@,$AMTAR,;t t
61344 s,@am__tar@,$am__tar,;t t
61345 s,@am__untar@,$am__untar,;t t
61346 s,@DEFAULT_POSIX2_VERSION@,$DEFAULT_POSIX2_VERSION,;t t
61348 s,@CFLAGS@,$CFLAGS,;t t
61349 s,@LDFLAGS@,$LDFLAGS,;t t
61350 s,@CPPFLAGS@,$CPPFLAGS,;t t
61351 s,@ac_ct_CC@,$ac_ct_CC,;t t
61352 s,@EXEEXT@,$EXEEXT,;t t
61353 s,@OBJEXT@,$OBJEXT,;t t
61354 s,@DEPDIR@,$DEPDIR,;t t
61355 s,@am__include@,$am__include,;t t
61356 s,@am__quote@,$am__quote,;t t
61357 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
61358 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
61359 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
61360 s,@CCDEPMODE@,$CCDEPMODE,;t t
61361 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
61362 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
61364 s,@EGREP@,$EGREP,;t t
61365 s,@PERL@,$PERL,;t t
61366 s,@RANLIB@,$RANLIB,;t t
61367 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
61368 s,@LN_S@,$LN_S,;t t
61369 s,@build@,$build,;t t
61370 s,@build_cpu@,$build_cpu,;t t
61371 s,@build_vendor@,$build_vendor,;t t
61372 s,@build_os@,$build_os,;t t
61373 s,@host@,$host,;t t
61374 s,@host_cpu@,$host_cpu,;t t
61375 s,@host_vendor@,$host_vendor,;t t
61376 s,@host_os@,$host_os,;t t
61377 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
61378 s,@HELP2MAN@,$HELP2MAN,;t t
61379 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
61381 s,@DF_PROG@,$DF_PROG,;t t
61383 s,@ANSI2KNR@,$ANSI2KNR,;t t
61384 s,@LIBOBJS@,$LIBOBJS,;t t
61385 s,@STDBOOL_H@,$STDBOOL_H,;t t
61386 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
61387 s,@ALLOCA@,$ALLOCA,;t t
61388 s,@ALLOCA_H@,$ALLOCA_H,;t t
61389 s,@FNMATCH_H@,$FNMATCH_H,;t t
61390 s,@NEED_SETGID@,$NEED_SETGID,;t t
61391 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
61392 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
61393 s,@LIB_EACCESS@,$LIB_EACCESS,;t t
61394 s,@POW_LIB@,$POW_LIB,;t t
61395 s,@EOVERFLOW@,$EOVERFLOW,;t t
61396 s,@YACC@,$YACC,;t t
61397 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
61398 s,@GETOPT_H@,$GETOPT_H,;t t
61399 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
61400 s,@LIB_FDATASYNC@,$LIB_FDATASYNC,;t t
61401 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
61402 s,@GLIBC21@,$GLIBC21,;t t
61403 s,@LIBICONV@,$LIBICONV,;t t
61404 s,@LTLIBICONV@,$LTLIBICONV,;t t
61405 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
61406 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
61407 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
61408 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
61409 s,@USE_NLS@,$USE_NLS,;t t
61410 s,@MSGFMT@,$MSGFMT,;t t
61411 s,@GMSGFMT@,$GMSGFMT,;t t
61412 s,@XGETTEXT@,$XGETTEXT,;t t
61413 s,@MSGMERGE@,$MSGMERGE,;t t
61414 s,@INTLLIBS@,$INTLLIBS,;t t
61415 s,@LIBINTL@,$LIBINTL,;t t
61416 s,@LTLIBINTL@,$LTLIBINTL,;t t
61417 s,@POSUB@,$POSUB,;t t
61418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
61423 cat >>$CONFIG_STATUS <<\_ACEOF
61424 # Split the substitutions into bite-sized pieces for seds with
61425 # small command number limits, like on Digital OSF/1 and HP-UX.
61426 ac_max_sed_lines=48
61427 ac_sed_frag=1 # Number of current file.
61428 ac_beg=1 # First line for current file.
61429 ac_end=$ac_max_sed_lines # Line after last line for current file.
61432 while $ac_more_lines; do
61433 if test $ac_beg -gt 1; then
61434 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
61436 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
61438 if test ! -s $tmp/subs.frag; then
61439 ac_more_lines=false
61441 # The purpose of the label and of the branching condition is to
61442 # speed up the sed processing (if there are no `@' at all, there
61443 # is no need to browse any of the substitutions).
61444 # These are the two extra sed commands mentioned above.
61446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
61447 if test -z "$ac_sed_cmds"; then
61448 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
61450 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
61452 ac_sed_frag=`expr $ac_sed_frag + 1`
61454 ac_end=`expr $ac_end + $ac_max_sed_lines`
61457 if test -z "$ac_sed_cmds"; then
61460 fi # test -n "$CONFIG_FILES"
61463 cat >>$CONFIG_STATUS <<\_ACEOF
61464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
61465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
61467 - | *:- | *:-:* ) # input from stdin
61469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61473 * ) ac_file_in=$ac_file.in ;;
61476 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
61477 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
61478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61479 X"$ac_file" : 'X\(//\)[^/]' \| \
61480 X"$ac_file" : 'X\(//\)$' \| \
61481 X"$ac_file" : 'X\(/\)' \| \
61482 . : '\(.\)' 2>/dev/null ||
61484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61486 /^X\(\/\/\)$/{ s//\1/; q; }
61487 /^X\(\/\).*/{ s//\1/; q; }
61489 { if $as_mkdir_p; then
61494 while test ! -d "$as_dir"; do
61495 as_dirs="$as_dir $as_dirs"
61496 as_dir=`(dirname "$as_dir") 2>/dev/null ||
61497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61498 X"$as_dir" : 'X\(//\)[^/]' \| \
61499 X"$as_dir" : 'X\(//\)$' \| \
61500 X"$as_dir" : 'X\(/\)' \| \
61501 . : '\(.\)' 2>/dev/null ||
61503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61505 /^X\(\/\/\)$/{ s//\1/; q; }
61506 /^X\(\/\).*/{ s//\1/; q; }
61509 test ! -n "$as_dirs" || mkdir $as_dirs
61510 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61512 { (exit 1); exit 1; }; }; }
61516 if test "$ac_dir" != .; then
61517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
61518 # A "../" for each directory in $ac_dir_suffix.
61519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
61521 ac_dir_suffix= ac_top_builddir=
61525 .) # No --srcdir option. We are building in place.
61527 if test -z "$ac_top_builddir"; then
61530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
61532 [\\/]* | ?:[\\/]* ) # Absolute path.
61533 ac_srcdir=$srcdir$ac_dir_suffix;
61534 ac_top_srcdir=$srcdir ;;
61535 *) # Relative path.
61536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
61537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
61540 # Do not use `cd foo && pwd` to compute absolute paths, because
61541 # the directories may not exist.
61543 .) ac_abs_builddir="$ac_dir";;
61546 .) ac_abs_builddir=`pwd`;;
61547 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
61548 *) ac_abs_builddir=`pwd`/"$ac_dir";;
61551 case $ac_abs_builddir in
61552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
61554 case ${ac_top_builddir}. in
61555 .) ac_abs_top_builddir=$ac_abs_builddir;;
61556 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
61557 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
61560 case $ac_abs_builddir in
61561 .) ac_abs_srcdir=$ac_srcdir;;
61564 .) ac_abs_srcdir=$ac_abs_builddir;;
61565 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
61566 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
61569 case $ac_abs_builddir in
61570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
61572 case $ac_top_srcdir in
61573 .) ac_abs_top_srcdir=$ac_abs_builddir;;
61574 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
61575 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
61581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
61582 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
61585 if test x"$ac_file" != x-; then
61586 { echo "$as_me:$LINENO: creating $ac_file" >&5
61587 echo "$as_me: creating $ac_file" >&6;}
61590 # Let's still pretend it is `configure' which instantiates (i.e., don't
61591 # use $as_me), people would be surprised to read:
61592 # /* config.h. Generated by config.status. */
61593 if test x"$ac_file" = x-; then
61596 configure_input="$ac_file. "
61598 configure_input=$configure_input"Generated from `echo $ac_file_in |
61599 sed 's,.*/,,'` by configure."
61601 # First look for the input files in the build tree, otherwise in the
61603 ac_file_inputs=`IFS=:
61604 for f in $ac_file_in; do
61606 -) echo $tmp/stdin ;;
61608 # Absolute (can't be DOS-style, as IFS=:)
61609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61610 echo "$as_me: error: cannot find input file: $f" >&2;}
61611 { (exit 1); exit 1; }; }
61614 if test -f "$f"; then
61617 elif test -f "$srcdir/$f"; then
61622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61623 echo "$as_me: error: cannot find input file: $f" >&2;}
61624 { (exit 1); exit 1; }; }
61627 done` || { (exit 1); exit 1; }
61629 cat >>$CONFIG_STATUS <<_ACEOF
61633 cat >>$CONFIG_STATUS <<\_ACEOF
61635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
61636 s,@configure_input@,$configure_input,;t t
61637 s,@srcdir@,$ac_srcdir,;t t
61638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
61639 s,@top_srcdir@,$ac_top_srcdir,;t t
61640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
61641 s,@builddir@,$ac_builddir,;t t
61642 s,@abs_builddir@,$ac_abs_builddir,;t t
61643 s,@top_builddir@,$ac_top_builddir,;t t
61644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
61645 s,@INSTALL@,$ac_INSTALL,;t t
61646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
61648 if test x"$ac_file" != x-; then
61649 mv $tmp/out $ac_file
61657 cat >>$CONFIG_STATUS <<\_ACEOF
61660 # CONFIG_HEADER section.
61663 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
61664 # NAME is the cpp macro being defined and VALUE is the value it is being given.
61666 # ac_d sets the value in "#define NAME VALUE" lines.
61667 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
61668 ac_dB='[ ].*$,\1#\2'
61671 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
61672 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
61673 ac_uB='$,\1#\2define\3'
61677 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
61678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
61680 - | *:- | *:-:* ) # input from stdin
61682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61686 * ) ac_file_in=$ac_file.in ;;
61689 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
61690 echo "$as_me: creating $ac_file" >&6;}
61692 # First look for the input files in the build tree, otherwise in the
61694 ac_file_inputs=`IFS=:
61695 for f in $ac_file_in; do
61697 -) echo $tmp/stdin ;;
61699 # Absolute (can't be DOS-style, as IFS=:)
61700 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61701 echo "$as_me: error: cannot find input file: $f" >&2;}
61702 { (exit 1); exit 1; }; }
61703 # Do quote $f, to prevent DOS paths from being IFS'd.
61706 if test -f "$f"; then
61709 elif test -f "$srcdir/$f"; then
61714 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61715 echo "$as_me: error: cannot find input file: $f" >&2;}
61716 { (exit 1); exit 1; }; }
61719 done` || { (exit 1); exit 1; }
61720 # Remove the trailing spaces.
61721 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
61725 # Transform confdefs.h into two sed scripts, `conftest.defines' and
61726 # `conftest.undefs', that substitutes the proper values into
61727 # config.h.in to produce config.h. The first handles `#define'
61728 # templates, and the second `#undef' templates.
61729 # And first: Protect against being on the right side of a sed subst in
61730 # config.status. Protect against being in an unquoted here document
61731 # in config.status.
61732 rm -f conftest.defines conftest.undefs
61733 # Using a here document instead of a string reduces the quoting nightmare.
61734 # Putting comments in sed scripts is not portable.
61736 # `end' is used to avoid that the second main sed command (meant for
61737 # 0-ary CPP macros) applies to n-ary macro definitions.
61738 # See the Autoconf documentation for `clear'.
61739 cat >confdef2sed.sed <<\_ACEOF
61744 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
61746 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
61749 # If some macros were called several times there might be several times
61750 # the same #defines, which is useless. Nevertheless, we may not want to
61751 # sort them, since we want the *last* AC-DEFINE to be honored.
61752 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
61753 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
61754 rm -f confdef2sed.sed
61756 # This sed command replaces #undef with comments. This is necessary, for
61757 # example, in the case of _POSIX_SOURCE, which is predefined and required
61758 # on some systems where configure will not decide to define it.
61759 cat >>conftest.undefs <<\_ACEOF
61760 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
61763 # Break up conftest.defines because some shells have a limit on the size
61764 # of here documents, and old seds have small limits too (100 cmds).
61765 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
61766 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
61767 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
61768 echo ' :' >>$CONFIG_STATUS
61769 rm -f conftest.tail
61770 while grep . conftest.defines >/dev/null
61772 # Write a limited-size here document to $tmp/defines.sed.
61773 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
61774 # Speed up: don't consider the non `#define' lines.
61775 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
61776 # Work around the forget-to-reset-the-flag bug.
61777 echo 't clr' >>$CONFIG_STATUS
61778 echo ': clr' >>$CONFIG_STATUS
61779 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
61781 sed -f $tmp/defines.sed $tmp/in >$tmp/out
61783 mv $tmp/out $tmp/in
61785 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
61786 rm -f conftest.defines
61787 mv conftest.tail conftest.defines
61789 rm -f conftest.defines
61790 echo ' fi # grep' >>$CONFIG_STATUS
61791 echo >>$CONFIG_STATUS
61793 # Break up conftest.undefs because some shells have a limit on the size
61794 # of here documents, and old seds have small limits too (100 cmds).
61795 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
61796 rm -f conftest.tail
61797 while grep . conftest.undefs >/dev/null
61799 # Write a limited-size here document to $tmp/undefs.sed.
61800 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
61801 # Speed up: don't consider the non `#undef'
61802 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
61803 # Work around the forget-to-reset-the-flag bug.
61804 echo 't clr' >>$CONFIG_STATUS
61805 echo ': clr' >>$CONFIG_STATUS
61806 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
61808 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
61810 mv $tmp/out $tmp/in
61812 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
61813 rm -f conftest.undefs
61814 mv conftest.tail conftest.undefs
61816 rm -f conftest.undefs
61818 cat >>$CONFIG_STATUS <<\_ACEOF
61819 # Let's still pretend it is `configure' which instantiates (i.e., don't
61820 # use $as_me), people would be surprised to read:
61821 # /* config.h. Generated by config.status. */
61822 if test x"$ac_file" = x-; then
61823 echo "/* Generated by configure. */" >$tmp/config.h
61825 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
61827 cat $tmp/in >>$tmp/config.h
61829 if test x"$ac_file" != x-; then
61830 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
61831 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
61832 echo "$as_me: $ac_file is unchanged" >&6;}
61834 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
61835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61836 X"$ac_file" : 'X\(//\)[^/]' \| \
61837 X"$ac_file" : 'X\(//\)$' \| \
61838 X"$ac_file" : 'X\(/\)' \| \
61839 . : '\(.\)' 2>/dev/null ||
61841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61843 /^X\(\/\/\)$/{ s//\1/; q; }
61844 /^X\(\/\).*/{ s//\1/; q; }
61846 { if $as_mkdir_p; then
61851 while test ! -d "$as_dir"; do
61852 as_dirs="$as_dir $as_dirs"
61853 as_dir=`(dirname "$as_dir") 2>/dev/null ||
61854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61855 X"$as_dir" : 'X\(//\)[^/]' \| \
61856 X"$as_dir" : 'X\(//\)$' \| \
61857 X"$as_dir" : 'X\(/\)' \| \
61858 . : '\(.\)' 2>/dev/null ||
61860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61862 /^X\(\/\/\)$/{ s//\1/; q; }
61863 /^X\(\/\).*/{ s//\1/; q; }
61866 test ! -n "$as_dirs" || mkdir $as_dirs
61867 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61869 { (exit 1); exit 1; }; }; }
61872 mv $tmp/config.h $ac_file
61876 rm -f $tmp/config.h
61878 # Compute $ac_file's index in $config_headers.
61880 for _am_header in $config_headers :; do
61881 case $_am_header in
61882 $ac_file | $ac_file:* )
61885 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61888 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
61889 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61890 X$ac_file : 'X\(//\)[^/]' \| \
61891 X$ac_file : 'X\(//\)$' \| \
61892 X$ac_file : 'X\(/\)' \| \
61893 . : '\(.\)' 2>/dev/null ||
61895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61897 /^X\(\/\/\)$/{ s//\1/; q; }
61898 /^X\(\/\).*/{ s//\1/; q; }
61899 s/.*/./; q'`/stamp-h$_am_stamp_count
61902 cat >>$CONFIG_STATUS <<\_ACEOF
61905 # CONFIG_COMMANDS section.
61907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
61908 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
61909 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
61910 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
61911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61912 X"$ac_dest" : 'X\(//\)[^/]' \| \
61913 X"$ac_dest" : 'X\(//\)$' \| \
61914 X"$ac_dest" : 'X\(/\)' \| \
61915 . : '\(.\)' 2>/dev/null ||
61917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61919 /^X\(\/\/\)$/{ s//\1/; q; }
61920 /^X\(\/\).*/{ s//\1/; q; }
61922 { if $as_mkdir_p; then
61927 while test ! -d "$as_dir"; do
61928 as_dirs="$as_dir $as_dirs"
61929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
61930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61931 X"$as_dir" : 'X\(//\)[^/]' \| \
61932 X"$as_dir" : 'X\(//\)$' \| \
61933 X"$as_dir" : 'X\(/\)' \| \
61934 . : '\(.\)' 2>/dev/null ||
61936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61938 /^X\(\/\/\)$/{ s//\1/; q; }
61939 /^X\(\/\).*/{ s//\1/; q; }
61942 test ! -n "$as_dirs" || mkdir $as_dirs
61943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61945 { (exit 1); exit 1; }; }; }
61949 if test "$ac_dir" != .; then
61950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
61951 # A "../" for each directory in $ac_dir_suffix.
61952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
61954 ac_dir_suffix= ac_top_builddir=
61958 .) # No --srcdir option. We are building in place.
61960 if test -z "$ac_top_builddir"; then
61963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
61965 [\\/]* | ?:[\\/]* ) # Absolute path.
61966 ac_srcdir=$srcdir$ac_dir_suffix;
61967 ac_top_srcdir=$srcdir ;;
61968 *) # Relative path.
61969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
61970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
61973 # Do not use `cd foo && pwd` to compute absolute paths, because
61974 # the directories may not exist.
61976 .) ac_abs_builddir="$ac_dir";;
61979 .) ac_abs_builddir=`pwd`;;
61980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
61981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
61984 case $ac_abs_builddir in
61985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
61987 case ${ac_top_builddir}. in
61988 .) ac_abs_top_builddir=$ac_abs_builddir;;
61989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
61990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
61993 case $ac_abs_builddir in
61994 .) ac_abs_srcdir=$ac_srcdir;;
61997 .) ac_abs_srcdir=$ac_abs_builddir;;
61998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
61999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
62002 case $ac_abs_builddir in
62003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
62005 case $ac_top_srcdir in
62006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
62007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
62008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
62013 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
62014 echo "$as_me: executing $ac_dest commands" >&6;}
62016 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
62017 # Strip MF so we end up with the name of the file.
62018 mf=`echo "$mf" | sed -e 's/:.*$//'`
62019 # Check whether this is an Automake generated Makefile or not.
62020 # We used to match only the files named `Makefile.in', but
62021 # some people rename them; so instead we look at the file content.
62022 # Grep'ing the first line is not enough: some people post-process
62023 # each Makefile.in and add a new line on top of each file to say so.
62024 # So let's grep whole file.
62025 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
62026 dirpart=`(dirname "$mf") 2>/dev/null ||
62027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62028 X"$mf" : 'X\(//\)[^/]' \| \
62029 X"$mf" : 'X\(//\)$' \| \
62030 X"$mf" : 'X\(/\)' \| \
62031 . : '\(.\)' 2>/dev/null ||
62033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62035 /^X\(\/\/\)$/{ s//\1/; q; }
62036 /^X\(\/\).*/{ s//\1/; q; }
62041 # Extract the definition of DEPDIR, am__include, and am__quote
62042 # from the Makefile without running `make'.
62043 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62044 test -z "$DEPDIR" && continue
62045 am__include=`sed -n 's/^am__include = //p' < "$mf"`
62046 test -z "am__include" && continue
62047 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62048 # When using ansi2knr, U may be empty or an underscore; expand it
62049 U=`sed -n 's/^U = //p' < "$mf"`
62050 # Find all dependency output files, they are included files with
62051 # $(DEPDIR) in their names. We invoke sed twice because it is the
62052 # simplest approach to changing $(DEPDIR) to its actual value in the
62054 for file in `sed -n "
62055 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62056 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62057 # Make sure the directory exists.
62058 test -f "$dirpart/$file" && continue
62059 fdir=`(dirname "$file") 2>/dev/null ||
62060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62061 X"$file" : 'X\(//\)[^/]' \| \
62062 X"$file" : 'X\(//\)$' \| \
62063 X"$file" : 'X\(/\)' \| \
62064 . : '\(.\)' 2>/dev/null ||
62066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62068 /^X\(\/\/\)$/{ s//\1/; q; }
62069 /^X\(\/\).*/{ s//\1/; q; }
62071 { if $as_mkdir_p; then
62072 mkdir -p $dirpart/$fdir
62074 as_dir=$dirpart/$fdir
62076 while test ! -d "$as_dir"; do
62077 as_dirs="$as_dir $as_dirs"
62078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
62079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62080 X"$as_dir" : 'X\(//\)[^/]' \| \
62081 X"$as_dir" : 'X\(//\)$' \| \
62082 X"$as_dir" : 'X\(/\)' \| \
62083 . : '\(.\)' 2>/dev/null ||
62085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62087 /^X\(\/\/\)$/{ s//\1/; q; }
62088 /^X\(\/\).*/{ s//\1/; q; }
62091 test ! -n "$as_dirs" || mkdir $as_dirs
62092 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
62093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
62094 { (exit 1); exit 1; }; }; }
62096 # echo "creating $dirpart/$file"
62097 echo '# dummy' > "$dirpart/$file"
62102 for ac_file in $CONFIG_FILES; do
62103 # Support "outfile[:infile[:infile...]]"
62105 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62107 # PO directories have a Makefile.in generated from Makefile.in.in.
62108 case "$ac_file" in */Makefile.in)
62109 # Adjust a relative srcdir.
62110 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62111 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62112 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62113 # In autoconf-2.13 it is called $ac_given_srcdir.
62114 # In autoconf-2.50 it is called $srcdir.
62115 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62116 case "$ac_given_srcdir" in
62117 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62118 /*) top_srcdir="$ac_given_srcdir" ;;
62119 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
62121 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62122 rm -f "$ac_dir/POTFILES"
62123 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62124 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62125 POMAKEFILEDEPS="POTFILES.in"
62126 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62127 # on $ac_dir but don't depend on user-specified configuration
62129 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62130 # The LINGUAS file contains the set of available languages.
62131 if test -n "$OBSOLETE_ALL_LINGUAS"; then
62132 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62134 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62135 # Hide the ALL_LINGUAS assigment from automake.
62136 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62137 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62139 # The set of available languages was given in configure.in.
62140 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62143 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62144 # Compute UPDATEPOFILES
62145 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62146 # Compute DUMMYPOFILES
62147 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62149 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62150 case "$ac_given_srcdir" in
62152 *) srcdirpre='$(srcdir)/' ;;
62158 for lang in $ALL_LINGUAS; do
62159 POFILES="$POFILES $srcdirpre$lang.po"
62160 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62161 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62162 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62164 # CATALOGS depends on both $ac_dir and the user's LINGUAS
62165 # environment variable.
62167 if test -n "$ALL_LINGUAS"; then
62168 for presentlang in $ALL_LINGUAS; do
62170 if test "%UNSET%" != "$LINGUAS"; then
62171 desiredlanguages="$LINGUAS"
62173 desiredlanguages="$ALL_LINGUAS"
62175 for desiredlang in $desiredlanguages; do
62176 # Use the presentlang catalog if desiredlang is
62177 # a. equal to presentlang, or
62178 # b. a variant of presentlang (because in this case,
62179 # presentlang can be used as a fallback for messages
62180 # which are not translated in the desiredlang catalog).
62181 case "$desiredlang" in
62182 "$presentlang"*) useit=yes;;
62185 if test $useit = yes; then
62186 INST_LINGUAS="$INST_LINGUAS $presentlang"
62191 if test -n "$INST_LINGUAS"; then
62192 for lang in $INST_LINGUAS; do
62193 CATALOGS="$CATALOGS $lang.gmo"
62196 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62197 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"
62198 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62199 if test -f "$f"; then
62201 *.orig | *.bak | *~) ;;
62202 *) cat "$f" >> "$ac_dir/Makefile" ;;
62214 cat >>$CONFIG_STATUS <<\_ACEOF
62216 { (exit 0); exit 0; }
62218 chmod +x $CONFIG_STATUS
62219 ac_clean_files=$ac_clean_files_save
62222 # configure is writing to config.log, and then calls config.status.
62223 # config.status does its own redirection, appending to config.log.
62224 # Unfortunately, on DOS this fails, as config.log is still kept open
62225 # by configure, so config.status won't be able to write to it; its
62226 # output is simply discarded. So we exec the FD to /dev/null,
62227 # effectively closing config.log, so it can be properly (re)opened and
62228 # appended to by config.status. When coming back to configure, we
62229 # need to make the FD available again.
62230 if test "$no_create" != yes; then
62232 ac_config_status_args=
62233 test "$silent" = yes &&
62234 ac_config_status_args="$ac_config_status_args --quiet"
62236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62239 # would make configure fail if this is the last instruction.
62240 $ac_cs_success || { (exit 1); exit 1; }