2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU coreutils 5.2.1.
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.2.1'
273 PACKAGE_STRING='GNU coreutils 5.2.1'
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 POW_LIB YACC LIB_CLOCK_GETTIME LIB_NANOSLEEP 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.2.1 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.2.1:";;
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 --without-included-regex don't compile regex; this is the default on
872 systems with version 2 of the GNU C library
873 (use with caution on other system)
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
876 --without-libiconv-prefix don't search for libiconv in includedir and libdir
877 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
878 --without-libintl-prefix don't search for libintl in includedir and libdir
880 Some influential environment variables:
881 DEFAULT_POSIX2_VERSION
882 POSIX version to default to; see 'config.hin'.
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 Report bugs to <bug-coreutils@gnu.org>.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
990 GNU coreutils configure 5.2.1
991 generated by GNU Autoconf 2.59
993 Copyright (C) 2003 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by GNU coreutils $as_me 5.2.1, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 for ac_dir in config $srcdir/config; do
1344 if test -f $ac_dir/install-sh; then
1346 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 elif test -f $ac_dir/install.sh; then
1350 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 elif test -f $ac_dir/shtool; then
1354 ac_install_sh="$ac_aux_dir/shtool install -c"
1358 if test -z "$ac_aux_dir"; then
1359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1360 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1361 { (exit 1); exit 1; }; }
1363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367 ac_config_headers="$ac_config_headers config.h:config.hin"
1370 am__api_version="1.8"
1371 # Find a good install program. We prefer a C program (faster),
1372 # so one script is as good as another. But avoid the broken or
1373 # incompatible versions:
1374 # SysV /etc/install, /usr/sbin/install
1375 # SunOS /usr/etc/install
1376 # IRIX /sbin/install
1378 # AmigaOS /C/install, which installs bootblocks on floppy discs
1379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1382 # OS/2's system install, which has a completely different semantic
1383 # ./install, which can be erroneously created by make from ./install.sh.
1384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1386 if test -z "$INSTALL"; then
1387 if test "${ac_cv_path_install+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 test -z "$as_dir" && as_dir=.
1395 # Account for people who put trailing slashes in PATH elements.
1397 ./ | .// | /cC/* | \
1398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1399 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1402 # OSF1 and SCO ODT 3.0 have their own names for install.
1403 # Don't use installbsd from OSF since it installs stuff as root
1405 for ac_prog in ginstall scoinst install; do
1406 for ac_exec_ext in '' $ac_executable_extensions; do
1407 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1408 if test $ac_prog = install &&
1409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1410 # AIX install. It has an incompatible calling convention.
1412 elif test $ac_prog = install &&
1413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414 # program-specific install script used by HP pwplus--don't use.
1417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1429 if test "${ac_cv_path_install+set}" = set; then
1430 INSTALL=$ac_cv_path_install
1432 # As a last resort, use the slow shell script. We don't cache a
1433 # path for INSTALL within a source directory, because that will
1434 # break other packages using the cache if that directory is
1435 # removed, or if the path is relative.
1436 INSTALL=$ac_install_sh
1439 echo "$as_me:$LINENO: result: $INSTALL" >&5
1440 echo "${ECHO_T}$INSTALL" >&6
1442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1443 # It thinks the first close brace ends the variable substitution.
1444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1451 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1454 echo timestamp > conftest.file
1455 # Do `set' in a subshell so we don't clobber the current shell's
1456 # arguments. Must try -L first in case configure is actually a
1457 # symlink; some systems play weird games with the mod time of symlinks
1458 # (eg FreeBSD returns the mod time of the symlink's containing
1461 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1462 if test "$*" = "X"; then
1464 set X `ls -t $srcdir/configure conftest.file`
1467 if test "$*" != "X $srcdir/configure conftest.file" \
1468 && test "$*" != "X conftest.file $srcdir/configure"; then
1470 # If neither matched, then we have a broken ls. This can happen
1471 # if, for instance, CONFIG_SHELL is bash and it inherits a
1472 # broken ls alias from the environment. This has actually
1473 # happened. Such a system could not be considered "sane".
1474 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1475 alias in your environment" >&5
1476 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1477 alias in your environment" >&2;}
1478 { (exit 1); exit 1; }; }
1481 test "$2" = conftest.file
1487 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488 Check your system clock" >&5
1489 echo "$as_me: error: newly created file is older than distributed files!
1490 Check your system clock" >&2;}
1491 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: yes" >&5
1494 echo "${ECHO_T}yes" >&6
1495 test "$program_prefix" != NONE &&
1496 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1497 # Use a double $ so make ignores it.
1498 test "$program_suffix" != NONE &&
1499 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1500 # Double any \ or $. echo might interpret backslashes.
1501 # By default was `s,x,x', remove it if useless.
1502 cat <<\_ACEOF >conftest.sed
1503 s/[\\$]/&&/g;s/;s,x,x,$//
1505 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1508 # expand $ac_aux_dir to an absolute path
1509 am_aux_dir=`cd $ac_aux_dir && pwd`
1511 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1512 # Use eval to expand $SHELL
1513 if eval "$MISSING --run true"; then
1514 am_missing_run="$MISSING --run "
1517 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1518 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1521 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1522 # Keeping the `.' argument allows $(mkdir_p) to be used without
1523 # argument. Indeed, we sometimes output rules like
1524 # $(mkdir_p) $(somedir)
1525 # where $(somedir) is conditionally defined.
1526 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1527 # expensive solution, as it forces Make to start a sub-shell.)
1528 mkdir_p='mkdir -p -- .'
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1534 for d in ./-p ./--version;
1536 test -d $d && rmdir $d
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1542 mkdir_p='$(install_sh) -d'
1546 for ac_prog in gawk mawk nawk awk
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1579 echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1583 test -n "$AWK" && break
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 cat >conftest.make <<\_ACEOF
1594 @echo 'ac_maketemp="$(MAKE)"'
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1601 eval ac_cv_prog_make_${ac_make}_set=no
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1622 rmdir .tst 2>/dev/null
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1642 # Define the identity of the package.
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1656 # Some tools Automake needs.
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1673 AMTAR=${AMTAR-"${am_missing_run}tar"}
1675 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1677 # Installed binaries are usually stripped using `strip' when the user
1678 # run `make install-strip'. However `strip' might not be the right
1679 # tool to use in cross-compilation environments, therefore Automake
1680 # will honor the `STRIP' environment variable to overrule this program.
1681 if test "$cross_compiling" != no; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}strip; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_STRIP+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 if test -n "$STRIP"; then
1691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 STRIP=$ac_cv_prog_STRIP
1710 if test -n "$STRIP"; then
1711 echo "$as_me:$LINENO: result: $STRIP" >&5
1712 echo "${ECHO_T}$STRIP" >&6
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$ac_cv_prog_STRIP"; then
1721 # Extract the first word of "strip", so it can be a program name with args.
1722 set dummy strip; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_STRIP"; then
1729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_STRIP="strip"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749 if test -n "$ac_ct_STRIP"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1751 echo "${ECHO_T}$ac_ct_STRIP" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1759 STRIP="$ac_cv_prog_STRIP"
1763 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1765 # We need awk for the "check" target. The system "awk" is bad on
1772 echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
1773 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6
1774 gl_default_posix2_version=none-specified
1775 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
1776 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
1778 cat >>confdefs.h <<_ACEOF
1779 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
1783 echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
1784 echo "${ECHO_T}$gl_default_posix2_version" >&6
1788 cat >>confdefs.h <<\_ACEOF
1789 #define _GNU_SOURCE 1
1793 DEPDIR="${am__leading_dot}deps"
1795 ac_config_commands="$ac_config_commands depfiles"
1798 am_make=${MAKE-make}
1799 cat > confinc << 'END'
1804 # If we don't find an include directive, just comment out the code.
1805 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1806 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1810 # First try GNU make style include.
1811 echo "include confinc" > confmf
1812 # We grep out `Entering directory' and `Leaving directory'
1813 # messages which can occur if `w' ends up in MAKEFLAGS.
1814 # In particular we don't look at `^make:' because GNU make might
1815 # be invoked under some other name (usually "gmake"), in which
1816 # case it prints its new name instead of `make'.
1817 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1822 # Now try BSD make style include.
1823 if test "$am__include" = "#"; then
1824 echo '.include "confinc"' > confmf
1825 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1826 am__include=.include
1833 echo "$as_me:$LINENO: result: $_am_result" >&5
1834 echo "${ECHO_T}$_am_result" >&6
1835 rm -f confinc confmf
1837 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1838 if test "${enable_dependency_tracking+set}" = set; then
1839 enableval="$enable_dependency_tracking"
1842 if test "x$enable_dependency_tracking" != xno; then
1843 am_depcomp="$ac_aux_dir/depcomp"
1848 if test "x$enable_dependency_tracking" != xno; then
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863 if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1900 if test -z "$ac_cv_prog_CC"; then
1902 # Extract the first word of "gcc", so it can be a program name with args.
1903 set dummy gcc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$ac_ct_CC"; then
1910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_ac_ct_CC="gcc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1929 if test -n "$ac_ct_CC"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1931 echo "${ECHO_T}$ac_ct_CC" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1942 if test -z "$CC"; then
1943 if test -n "$ac_tool_prefix"; then
1944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC="$CC" # Let the user override the test.
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_CC="${ac_tool_prefix}cc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$ac_cv_prog_CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$ac_ct_CC"; then
1990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CC="cc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 echo "${ECHO_T}$ac_ct_CC" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2023 if test -z "$CC"; then
2024 # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2043 ac_prog_rejected=yes
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test $ac_prog_rejected = yes; then
2054 # We found a bogon in the path, so make sure we never use it.
2055 set dummy $ac_cv_prog_CC
2057 if test $# != 0; then
2058 # We chose a different compiler from the bogus one.
2059 # However, it has the same basename, so the bogon will be chosen
2060 # first if we set CC to just the basename; use the full file name.
2062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2068 if test -n "$CC"; then
2069 echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2077 if test -z "$CC"; then
2078 if test -n "$ac_tool_prefix"; then
2081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$CC"; then
2089 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 if test -n "$CC"; then
2109 echo "$as_me:$LINENO: result: $CC" >&5
2110 echo "${ECHO_T}$CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 test -n "$CC" && break
2119 if test -z "$CC"; then
2123 # Extract the first word of "$ac_prog", so it can be a program name with args.
2124 set dummy $ac_prog; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$ac_ct_CC"; then
2131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140 ac_cv_prog_ac_ct_CC="$ac_prog"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152 echo "${ECHO_T}$ac_ct_CC" >&6
2154 echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2158 test -n "$ac_ct_CC" && break
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO:" \
2175 "checking for C compiler version" >&5
2176 ac_compiler=`set X $ac_compile; echo $2`
2177 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2178 (eval $ac_compiler --version </dev/null >&5) 2>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }
2182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2183 (eval $ac_compiler -v </dev/null >&5) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2188 (eval $ac_compiler -V </dev/null >&5) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2193 cat >conftest.$ac_ext <<_ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2208 ac_clean_files_save=$ac_clean_files
2209 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210 # Try to create an executable without -o first, disregard a.out.
2211 # It will help us diagnose broken compilers, and finding out an intuition
2213 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217 (eval $ac_link_default) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # Find the output, starting from the most likely. This scheme is
2222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2225 # Be careful to initialize this variable, since it used to be cached.
2226 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2228 # b.out is created by i960 compilers.
2229 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2231 test -f "$ac_file" || continue
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2236 # This is the source file.
2239 # We found the default executable, but exeext='' is most
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # FIXME: I believe we export ac_cv_exeext for Libtool,
2245 # but it would be cool to find out if it's true. Does anybody
2246 # maintain Libtool? --akim.
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: C compiler cannot create executables
2260 See \`config.log' for more details." >&2;}
2261 { (exit 77); exit 77; }; }
2264 ac_exeext=$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_file" >&5
2266 echo "${ECHO_T}$ac_file" >&6
2268 # Check the compiler produces executables we can run. If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2271 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2272 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2273 # If not cross compiling, check that we can run a simple program.
2274 if test "$cross_compiling" != yes; then
2275 if { ac_try='./$ac_file'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 if test "$cross_compiling" = maybe; then
2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2296 echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2305 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6
2308 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2311 (eval $ac_link) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2317 # work properly (i.e., refer to `conftest.exe'), while it won't with
2319 for ac_file in conftest.exe conftest conftest.*; do
2320 test -f "$ac_file" || continue
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest$ac_cv_exeext
2338 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2339 echo "${ECHO_T}$ac_cv_exeext" >&6
2341 rm -f conftest.$ac_ext
2342 EXEEXT=$ac_cv_exeext
2344 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2345 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2346 if test "${ac_cv_objext+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 cat >conftest.$ac_ext <<_ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2364 rm -f conftest.o conftest.obj
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6
2392 OBJEXT=$ac_cv_objext
2394 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419 (eval $ac_compile) 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -z "$ac_c_werror_flag"
2427 || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2450 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2451 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2452 GCC=`test $ac_compiler_gnu = yes && echo yes`
2453 ac_test_CFLAGS=${CFLAGS+set}
2454 ac_save_CFLAGS=$CFLAGS
2456 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 cat >conftest.$ac_ext <<_ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag"
2486 || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2508 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2509 if test "$ac_test_CFLAGS" = set; then
2510 CFLAGS=$ac_save_CFLAGS
2511 elif test $ac_cv_prog_cc_g = yes; then
2512 if test "$GCC" = yes; then
2518 if test "$GCC" = yes; then
2524 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2525 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2526 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 ac_cv_prog_cc_stdc=no
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2539 #include <sys/types.h>
2540 #include <sys/stat.h>
2541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2542 struct buf { int x; };
2543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2544 static char *e (p, i)
2550 static char *f (char * (*g) (char **, int), char **p, ...)
2555 s = g (p, va_arg (v,int));
2560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2561 function prototypes and stuff, but not '\xHH' hex character constants.
2562 These don't provoke an error unfortunately, instead are silently treated
2563 as 'x'. The following induces an error, until -std1 is added to get
2564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2565 array size at least. It's necessary to write '\x00'==0 to get something
2566 that's true only with -std1. */
2567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2569 int test (int i, double x);
2570 struct s1 {int (*f) (int a);};
2571 struct s2 {int (*f) (double a);};
2572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2583 # Don't try gcc -ansi; that turns off useful extensions and
2584 # breaks some systems' header files.
2585 # AIX -qlanglvl=ansi
2586 # Ultrix and OSF/1 -std1
2587 # HP-UX 10.20 and later -Ae
2588 # HP-UX older versions -Aa -D_HPUX_SOURCE
2589 # SVR4 -Xc -D__EXTENSIONS__
2590 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2592 CC="$ac_save_CC $ac_arg"
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 ac_cv_prog_cc_stdc=$ac_arg
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2622 rm -f conftest.err conftest.$ac_objext
2624 rm -f conftest.$ac_ext conftest.$ac_objext
2629 case "x$ac_cv_prog_cc_stdc" in
2631 echo "$as_me:$LINENO: result: none needed" >&5
2632 echo "${ECHO_T}none needed" >&6 ;;
2634 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2635 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2636 CC="$CC $ac_cv_prog_cc_stdc" ;;
2639 # Some people use a C++ compiler to compile C. Since we use `exit',
2640 # in C++ we need to declare it. In case someone uses the same compiler
2641 # for both compiling C and C++ we need to have the C++ compiler decide
2642 # the declaration of exit, since it's the most demanding environment.
2643 cat >conftest.$ac_ext <<_ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 for ac_declaration in \
2672 'extern "C" void std::exit (int) throw (); using std::exit;' \
2673 'extern "C" void std::exit (int); using std::exit;' \
2674 'extern "C" void exit (int) throw ();' \
2675 'extern "C" void exit (int);' \
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag"
2704 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 if test -n "$ac_declaration"; then
2771 echo '#ifdef __cplusplus' >>confdefs.h
2772 echo $ac_declaration >>confdefs.h
2773 echo '#endif' >>confdefs.h
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 depcc="$CC" am_compiler_list=
2790 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2796 # We make a subdir and do the tests there. Otherwise we can end up
2797 # making bogus files that we don't know about and never remove. For
2798 # instance it was reported that on HP-UX the gcc test will end up
2799 # making a dummy file named `D' -- because `-MD' means `put the output
2802 # Copy depcomp to subdir because otherwise we won't find it if we're
2803 # using a relative directory.
2804 cp "$am_depcomp" conftest.dir
2806 # We will build objects and dependencies in a subdirectory because
2807 # it helps to detect inapplicable dependency modes. For instance
2808 # both Tru64's cc and ICC support -MD to output dependencies as a
2809 # side effect of compilation, but ICC will put the dependencies in
2810 # the current directory while Tru64 will put them in the object
2814 am_cv_CC_dependencies_compiler_type=none
2815 if test "$am_compiler_list" = ""; then
2816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2818 for depmode in $am_compiler_list; do
2819 # Setup a source with many dependencies, because some compilers
2820 # like to wrap large dependency lists on column 80 (with \), and
2821 # we should not choose a depcomp mode which is confused by this.
2823 # We need to recreate these files for each test, as the compiler may
2824 # overwrite some of them when testing with obscure command lines.
2825 # This happens at least with the AIX C compiler.
2827 for i in 1 2 3 4 5 6; do
2828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2830 # Solaris 8's {/usr,}/bin/sh.
2831 touch sub/conftst$i.h
2833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2837 # after this tag, mechanisms are not by side-effect, so they'll
2838 # only be used when explicitly requested
2839 if test "x$enable_dependency_tracking" = xyes; then
2847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2848 # mode. It turns out that the SunPro C++ compiler does not properly
2849 # handle `-M -o', and we need to detect this.
2850 if depmode=$depmode \
2851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2854 >/dev/null 2>conftest.err &&
2855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2858 # icc doesn't choke on unknown options, it will just issue warnings
2859 # (even with -Werror). So we grep stderr for any message
2860 # that says an option was ignored.
2861 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2862 am_cv_CC_dependencies_compiler_type=$depmode
2871 am_cv_CC_dependencies_compiler_type=none
2875 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2876 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2877 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2882 test "x$enable_dependency_tracking" != xno \
2883 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2885 am__fastdepCC_FALSE='#'
2887 am__fastdepCC_TRUE='#'
2888 am__fastdepCC_FALSE=
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2899 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2900 # On Suns, sometimes $CPP names a directory.
2901 if test -n "$CPP" && test -d "$CPP"; then
2904 if test -z "$CPP"; then
2905 if test "${ac_cv_prog_CPP+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 # Double quotes because CPP needs to be expanded
2909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2912 for ac_c_preproc_warn_flag in '' yes
2914 # Use a header file that comes with gcc, so configuring glibc
2915 # with a fresh cross-compiler works.
2916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2917 # <limits.h> exists even on freestanding compilers.
2918 # On the NeXT, cc -E runs the code through the compiler's parser,
2919 # not just through cpp. "Syntax error" is here to catch this case.
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2927 # include <limits.h>
2929 # include <assert.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2950 if test -z "$ac_cpp_err"; then
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Broken: fails on valid input.
2959 rm -f conftest.err conftest.$ac_ext
2961 # OK, works on sane cases. Now check whether non-existent headers
2962 # can be detected and how.
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <ac_nonexistent.h>
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev/null; then
2979 if test -s conftest.err; then
2980 ac_cpp_err=$ac_c_preproc_warn_flag
2981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988 if test -z "$ac_cpp_err"; then
2989 # Broken: success on invalid input.
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Passes both tests.
2999 rm -f conftest.err conftest.$ac_ext
3002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3003 rm -f conftest.err conftest.$ac_ext
3004 if $ac_preproc_ok; then
3016 echo "$as_me:$LINENO: result: $CPP" >&5
3017 echo "${ECHO_T}$CPP" >&6
3019 for ac_c_preproc_warn_flag in '' yes
3021 # Use a header file that comes with gcc, so configuring glibc
3022 # with a fresh cross-compiler works.
3023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3024 # <limits.h> exists even on freestanding compilers.
3025 # On the NeXT, cc -E runs the code through the compiler's parser,
3026 # not just through cpp. "Syntax error" is here to catch this case.
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3034 # include <limits.h>
3036 # include <assert.h>
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null; then
3048 if test -s conftest.err; then
3049 ac_cpp_err=$ac_c_preproc_warn_flag
3050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057 if test -z "$ac_cpp_err"; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 # Broken: fails on valid input.
3066 rm -f conftest.err conftest.$ac_ext
3068 # OK, works on sane cases. Now check whether non-existent headers
3069 # can be detected and how.
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3076 #include <ac_nonexistent.h>
3078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } >/dev/null; then
3086 if test -s conftest.err; then
3087 ac_cpp_err=$ac_c_preproc_warn_flag
3088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095 if test -z "$ac_cpp_err"; then
3096 # Broken: success on invalid input.
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 # Passes both tests.
3106 rm -f conftest.err conftest.$ac_ext
3109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3110 rm -f conftest.err conftest.$ac_ext
3111 if $ac_preproc_ok; then
3114 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 echo "$as_me:$LINENO: checking for egrep" >&5
3129 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3130 if test "${ac_cv_prog_egrep+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3134 then ac_cv_prog_egrep='grep -E'
3135 else ac_cv_prog_egrep='egrep'
3138 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3139 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3140 EGREP=$ac_cv_prog_egrep
3144 echo "$as_me:$LINENO: checking for AIX" >&5
3145 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158 $EGREP "yes" >/dev/null 2>&1; then
3159 echo "$as_me:$LINENO: result: yes" >&5
3160 echo "${ECHO_T}yes" >&6
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _ALL_SOURCE 1
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3174 if test "${ac_cv_header_stdc+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>conftest.er1
3200 grep -v '^ *+' conftest.er1 >conftest.err
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag"
3206 || test ! -s conftest.err'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_cv_header_stdc=yes
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 ac_cv_header_stdc=no
3225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227 if test $ac_cv_header_stdc = yes; then
3228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 $EGREP "memchr" >/dev/null 2>&1; then
3242 ac_cv_header_stdc=no
3248 if test $ac_cv_header_stdc = yes; then
3249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 $EGREP "free" >/dev/null 2>&1; then
3263 ac_cv_header_stdc=no
3269 if test $ac_cv_header_stdc = yes; then
3270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3271 if test "$cross_compiling" = yes; then
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3281 #if ((' ' & 0x0FF) == 0x020)
3282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3285 # define ISLOWER(c) \
3286 (('a' <= (c) && (c) <= 'i') \
3287 || ('j' <= (c) && (c) <= 'r') \
3288 || ('s' <= (c) && (c) <= 'z'))
3289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3297 for (i = 0; i < 256; i++)
3298 if (XOR (islower (i), ISLOWER (i))
3299 || toupper (i) != TOUPPER (i))
3304 rm -f conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3317 echo "$as_me: program exited with status $ac_status" >&5
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3322 ac_cv_header_stdc=no
3324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3328 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3329 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3330 if test $ac_cv_header_stdc = yes; then
3332 cat >>confdefs.h <<\_ACEOF
3333 #define STDC_HEADERS 1
3338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3349 inttypes.h stdint.h unistd.h
3351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3352 echo "$as_me:$LINENO: checking for $ac_header" >&5
3353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 $ac_includes_default
3365 #include <$ac_header>
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 eval "$as_ac_Header=yes"
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 eval "$as_ac_Header=no"
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3401 cat >>confdefs.h <<_ACEOF
3402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3410 if test "${ac_cv_header_minix_config_h+set}" = set; then
3411 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3412 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3413 if test "${ac_cv_header_minix_config_h+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3417 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3419 # Is the header compilable?
3420 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3421 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3429 #include <minix/config.h>
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_header_compiler=yes
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_header_compiler=no
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3462 echo "${ECHO_T}$ac_header_compiler" >&6
3464 # Is the header present?
3465 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3466 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #include <minix/config.h>
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3493 ac_header_preproc=yes
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 ac_header_preproc=no
3500 rm -f conftest.err conftest.$ac_ext
3501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3502 echo "${ECHO_T}$ac_header_preproc" >&6
3504 # So? What about this header?
3505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3507 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3508 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3509 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3510 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3511 ac_header_preproc=yes
3514 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3515 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3516 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3517 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3518 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3519 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3520 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3521 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3522 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3523 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3524 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3525 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3528 ## ------------------------------------ ##
3529 ## Report this to bug-coreutils@gnu.org ##
3530 ## ------------------------------------ ##
3533 sed "s/^/$as_me: WARNING: /" >&2
3536 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3537 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3538 if test "${ac_cv_header_minix_config_h+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 ac_cv_header_minix_config_h=$ac_header_preproc
3543 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3544 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3547 if test $ac_cv_header_minix_config_h = yes; then
3554 if test "$MINIX" = yes; then
3556 cat >>confdefs.h <<\_ACEOF
3557 #define _POSIX_SOURCE 1
3561 cat >>confdefs.h <<\_ACEOF
3562 #define _POSIX_1_SOURCE 2
3566 cat >>confdefs.h <<\_ACEOF
3582 cat >>confdefs.h <<\_ACEOF
3583 #define __EXTENSIONS__ 1
3588 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
3589 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
3590 if test "${PERL+set}" = set; then
3591 # `PERL' is set in the user's environment.
3592 candidate_perl_names="$PERL"
3595 candidate_perl_names='perl perl5'
3601 PERL="$am_missing_run perl"
3602 for perl in $candidate_perl_names; do
3603 # Run test in a subshell; some versions of sh will print an error if
3604 # an executable is not found, even if stderr is redirected.
3605 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
3612 echo "$as_me:$LINENO: result: $found" >&5
3613 echo "${ECHO_T}$found" >&6
3614 test $found = no && { echo "$as_me:$LINENO: WARNING:
3615 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3616 a usable version of the Perl File::Compare module. As a result,
3617 you may be unable to run a few tests or to regenerate certain
3618 files if you modify the sources from which they are derived.
3620 echo "$as_me: WARNING:
3621 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3622 a usable version of the Perl File::Compare module. As a result,
3623 you may be unable to run a few tests or to regenerate certain
3624 files if you modify the sources from which they are derived.
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 echo "$as_me:$LINENO: result: $CC" >&5
3662 echo "${ECHO_T}$CC" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3669 if test -z "$ac_cv_prog_CC"; then
3671 # Extract the first word of "gcc", so it can be a program name with args.
3672 set dummy gcc; ac_word=$2
3673 echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 if test -n "$ac_ct_CC"; then
3679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_ac_ct_CC="gcc"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3700 echo "${ECHO_T}$ac_ct_CC" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3711 if test -z "$CC"; then
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}cc; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_CC+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_CC="${ac_tool_prefix}cc"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$CC"; then
3741 echo "$as_me:$LINENO: result: $CC" >&5
3742 echo "${ECHO_T}$CC" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3749 if test -z "$ac_cv_prog_CC"; then
3751 # Extract the first word of "cc", so it can be a program name with args.
3752 set dummy cc; ac_word=$2
3753 echo "$as_me:$LINENO: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CC="cc"
3769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3780 echo "${ECHO_T}$ac_ct_CC" >&6
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3792 if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794 set dummy cc; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_CC+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3812 ac_prog_rejected=yes
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 if test $ac_prog_rejected = yes; then
3823 # We found a bogon in the path, so make sure we never use it.
3824 set dummy $ac_cv_prog_CC
3826 if test $# != 0; then
3827 # We chose a different compiler from the bogus one.
3828 # However, it has the same basename, so the bogon will be chosen
3829 # first if we set CC to just the basename; use the full file name.
3831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3837 if test -n "$CC"; then
3838 echo "$as_me:$LINENO: result: $CC" >&5
3839 echo "${ECHO_T}$CC" >&6
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_CC+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 if test -n "$CC"; then
3878 echo "$as_me:$LINENO: result: $CC" >&5
3879 echo "${ECHO_T}$CC" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3885 test -n "$CC" && break
3888 if test -z "$CC"; then
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CC="$ac_prog"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3919 if test -n "$ac_ct_CC"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3921 echo "${ECHO_T}$ac_ct_CC" >&6
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3927 test -n "$ac_ct_CC" && break
3936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details." >&5
3938 echo "$as_me: error: no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." >&2;}
3940 { (exit 1); exit 1; }; }
3942 # Provide some information about the compiler.
3943 echo "$as_me:$LINENO:" \
3944 "checking for C compiler version" >&5
3945 ac_compiler=`set X $ac_compile; echo $2`
3946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3947 (eval $ac_compiler --version </dev/null >&5) 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }
3951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3952 (eval $ac_compiler -v </dev/null >&5) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3957 (eval $ac_compiler -V </dev/null >&5) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }
3962 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4018 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4020 GCC=`test $ac_compiler_gnu = yes && echo yes`
4021 ac_test_CFLAGS=${CFLAGS+set}
4022 ac_save_CFLAGS=$CFLAGS
4024 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4025 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4026 if test "${ac_cv_prog_cc_g+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag"
4054 || test ! -s conftest.err'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4077 if test "$ac_test_CFLAGS" = set; then
4078 CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080 if test "$GCC" = yes; then
4086 if test "$GCC" = yes; then
4092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_cv_prog_cc_stdc=no
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std1 is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std1. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 # Don't try gcc -ansi; that turns off useful extensions and
4152 # breaks some systems' header files.
4153 # AIX -qlanglvl=ansi
4154 # Ultrix and OSF/1 -std1
4155 # HP-UX 10.20 and later -Ae
4156 # HP-UX older versions -Aa -D_HPUX_SOURCE
4157 # SVR4 -Xc -D__EXTENSIONS__
4158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 CC="$ac_save_CC $ac_arg"
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4165 grep -v '^ *+' conftest.er1 >conftest.err
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_prog_cc_stdc=$ac_arg
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -f conftest.err conftest.$ac_objext
4192 rm -f conftest.$ac_ext conftest.$ac_objext
4197 case "x$ac_cv_prog_cc_stdc" in
4199 echo "$as_me:$LINENO: result: none needed" >&5
4200 echo "${ECHO_T}none needed" >&6 ;;
4202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4204 CC="$CC $ac_cv_prog_cc_stdc" ;;
4207 # Some people use a C++ compiler to compile C. Since we use `exit',
4208 # in C++ we need to declare it. In case someone uses the same compiler
4209 # for both compiling C and C++ we need to have the C++ compiler decide
4210 # the declaration of exit, since it's the most demanding environment.
4211 cat >conftest.$ac_ext <<_ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 for ac_declaration in \
4240 'extern "C" void std::exit (int) throw (); using std::exit;' \
4241 'extern "C" void std::exit (int); using std::exit;' \
4242 'extern "C" void exit (int) throw ();' \
4243 'extern "C" void exit (int);' \
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } &&
4316 { ac_try='test -z "$ac_c_werror_flag"
4317 || test ! -s conftest.err'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 if test -n "$ac_declaration"; then
4339 echo '#ifdef __cplusplus' >>confdefs.h
4340 echo $ac_declaration >>confdefs.h
4341 echo '#endif' >>confdefs.h
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 depcc="$CC" am_compiler_list=
4358 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4359 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4360 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4364 # We make a subdir and do the tests there. Otherwise we can end up
4365 # making bogus files that we don't know about and never remove. For
4366 # instance it was reported that on HP-UX the gcc test will end up
4367 # making a dummy file named `D' -- because `-MD' means `put the output
4370 # Copy depcomp to subdir because otherwise we won't find it if we're
4371 # using a relative directory.
4372 cp "$am_depcomp" conftest.dir
4374 # We will build objects and dependencies in a subdirectory because
4375 # it helps to detect inapplicable dependency modes. For instance
4376 # both Tru64's cc and ICC support -MD to output dependencies as a
4377 # side effect of compilation, but ICC will put the dependencies in
4378 # the current directory while Tru64 will put them in the object
4382 am_cv_CC_dependencies_compiler_type=none
4383 if test "$am_compiler_list" = ""; then
4384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4386 for depmode in $am_compiler_list; do
4387 # Setup a source with many dependencies, because some compilers
4388 # like to wrap large dependency lists on column 80 (with \), and
4389 # we should not choose a depcomp mode which is confused by this.
4391 # We need to recreate these files for each test, as the compiler may
4392 # overwrite some of them when testing with obscure command lines.
4393 # This happens at least with the AIX C compiler.
4395 for i in 1 2 3 4 5 6; do
4396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4398 # Solaris 8's {/usr,}/bin/sh.
4399 touch sub/conftst$i.h
4401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4405 # after this tag, mechanisms are not by side-effect, so they'll
4406 # only be used when explicitly requested
4407 if test "x$enable_dependency_tracking" = xyes; then
4415 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4416 # mode. It turns out that the SunPro C++ compiler does not properly
4417 # handle `-M -o', and we need to detect this.
4418 if depmode=$depmode \
4419 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4420 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4421 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4422 >/dev/null 2>conftest.err &&
4423 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4424 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4425 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4426 # icc doesn't choke on unknown options, it will just issue warnings
4427 # (even with -Werror). So we grep stderr for any message
4428 # that says an option was ignored.
4429 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4430 am_cv_CC_dependencies_compiler_type=$depmode
4439 am_cv_CC_dependencies_compiler_type=none
4443 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4444 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4450 test "x$enable_dependency_tracking" != xno \
4451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453 am__fastdepCC_FALSE='#'
4455 am__fastdepCC_TRUE='#'
4456 am__fastdepCC_FALSE=
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4471 if test -z "$CPP"; then
4472 if test "${ac_cv_prog_CPP+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 # Double quotes because CPP needs to be expanded
4476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4479 for ac_c_preproc_warn_flag in '' yes
4481 # Use a header file that comes with gcc, so configuring glibc
4482 # with a fresh cross-compiler works.
4483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484 # <limits.h> exists even on freestanding compilers.
4485 # On the NeXT, cc -E runs the code through the compiler's parser,
4486 # not just through cpp. "Syntax error" is here to catch this case.
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4494 # include <limits.h>
4496 # include <assert.h>
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null; then
4508 if test -s conftest.err; then
4509 ac_cpp_err=$ac_c_preproc_warn_flag
4510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4517 if test -z "$ac_cpp_err"; then
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 # Broken: fails on valid input.
4526 rm -f conftest.err conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether non-existent headers
4529 # can be detected and how.
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <ac_nonexistent.h>
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev/null; then
4546 if test -s conftest.err; then
4547 ac_cpp_err=$ac_c_preproc_warn_flag
4548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4555 if test -z "$ac_cpp_err"; then
4556 # Broken: success on invalid input.
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 # Passes both tests.
4566 rm -f conftest.err conftest.$ac_ext
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then
4583 echo "$as_me:$LINENO: result: $CPP" >&5
4584 echo "${ECHO_T}$CPP" >&6
4586 for ac_c_preproc_warn_flag in '' yes
4588 # Use a header file that comes with gcc, so configuring glibc
4589 # with a fresh cross-compiler works.
4590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591 # <limits.h> exists even on freestanding compilers.
4592 # On the NeXT, cc -E runs the code through the compiler's parser,
4593 # not just through cpp. "Syntax error" is here to catch this case.
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4601 # include <limits.h>
4603 # include <assert.h>
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null; then
4615 if test -s conftest.err; then
4616 ac_cpp_err=$ac_c_preproc_warn_flag
4617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4624 if test -z "$ac_cpp_err"; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 # Broken: fails on valid input.
4633 rm -f conftest.err conftest.$ac_ext
4635 # OK, works on sane cases. Now check whether non-existent headers
4636 # can be detected and how.
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <ac_nonexistent.h>
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
4655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4662 if test -z "$ac_cpp_err"; then
4663 # Broken: success on invalid input.
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 # Passes both tests.
4673 rm -f conftest.err conftest.$ac_ext
4676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677 rm -f conftest.err conftest.$ac_ext
4678 if $ac_preproc_ok; then
4681 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684 See \`config.log' for more details." >&2;}
4685 { (exit 1); exit 1; }; }
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 if test $ac_cv_c_compiler_gnu = yes; then
4695 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4696 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4697 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 ac_pattern="Autoconf.*'x'"
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4712 ac_cv_prog_gcc_traditional=yes
4714 ac_cv_prog_gcc_traditional=no
4719 if test $ac_cv_prog_gcc_traditional = no; then
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4731 ac_cv_prog_gcc_traditional=yes
4737 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4738 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4739 if test $ac_cv_prog_gcc_traditional = yes; then
4740 CC="$CC -traditional"
4744 if test -n "$ac_tool_prefix"; then
4745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4747 echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749 if test "${ac_cv_prog_RANLIB+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 if test -n "$RANLIB"; then
4753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 RANLIB=$ac_cv_prog_RANLIB
4772 if test -n "$RANLIB"; then
4773 echo "$as_me:$LINENO: result: $RANLIB" >&5
4774 echo "${ECHO_T}$RANLIB" >&6
4776 echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4781 if test -z "$ac_cv_prog_RANLIB"; then
4782 ac_ct_RANLIB=$RANLIB
4783 # Extract the first word of "ranlib", so it can be a program name with args.
4784 set dummy ranlib; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 if test -n "$ac_ct_RANLIB"; then
4791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_ac_ct_RANLIB="ranlib"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4811 if test -n "$ac_ct_RANLIB"; then
4812 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4813 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815 echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6
4819 RANLIB=$ac_ct_RANLIB
4821 RANLIB="$ac_cv_prog_RANLIB"
4824 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4825 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4827 if test "$LN_S" = "ln -s"; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4831 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4832 echo "${ECHO_T}no, using $LN_S" >&6
4835 # Make sure we can run config.sub.
4836 $ac_config_sub sun4 >/dev/null 2>&1 ||
4837 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4838 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4839 { (exit 1); exit 1; }; }
4841 echo "$as_me:$LINENO: checking build system type" >&5
4842 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4843 if test "${ac_cv_build+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_cv_build_alias=$build_alias
4847 test -z "$ac_cv_build_alias" &&
4848 ac_cv_build_alias=`$ac_config_guess`
4849 test -z "$ac_cv_build_alias" &&
4850 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4851 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4852 { (exit 1); exit 1; }; }
4853 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4854 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4855 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4856 { (exit 1); exit 1; }; }
4859 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4860 echo "${ECHO_T}$ac_cv_build" >&6
4862 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4863 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4864 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4867 echo "$as_me:$LINENO: checking host system type" >&5
4868 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4869 if test "${ac_cv_host+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 ac_cv_host_alias=$host_alias
4873 test -z "$ac_cv_host_alias" &&
4874 ac_cv_host_alias=$ac_cv_build_alias
4875 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4876 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4877 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4878 { (exit 1); exit 1; }; }
4881 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4882 echo "${ECHO_T}$ac_cv_host" >&6
4884 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4885 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4886 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4892 for ac_func in uname
4894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4895 echo "$as_me:$LINENO: checking for $ac_func" >&5
4896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4897 if eval "test \"\${$as_ac_var+set}\" = set"; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4908 #define $ac_func innocuous_$ac_func
4910 /* System header to define __stub macros and hopefully few prototypes,
4911 which can conflict with char $ac_func (); below.
4912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 <limits.h> exists even on freestanding compilers. */
4916 # include <limits.h>
4918 # include <assert.h>
4923 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4931 /* The GNU C library defines this for functions which it implements
4932 to always fail with ENOSYS. Some functions are actually named
4933 something starting with __ and the normal name is an alias. */
4934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 char (*f) () = $ac_func;
4946 return f != $ac_func;
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953 (eval $ac_link) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest$ac_exeext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 eval "$as_ac_var=yes"
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 eval "$as_ac_var=no"
4980 rm -f conftest.err conftest.$ac_objext \
4981 conftest$ac_exeext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4985 if test `eval echo '${'$as_ac_var'}'` = yes; then
4986 cat >>confdefs.h <<_ACEOF
4987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4989 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
4995 for ac_func in chroot
4997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4998 echo "$as_me:$LINENO: checking for $ac_func" >&5
4999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5000 if eval "test \"\${$as_ac_var+set}\" = set"; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 cat >conftest.$ac_ext <<_ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5011 #define $ac_func innocuous_$ac_func
5013 /* System header to define __stub macros and hopefully few prototypes,
5014 which can conflict with char $ac_func (); below.
5015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 <limits.h> exists even on freestanding compilers. */
5019 # include <limits.h>
5021 # include <assert.h>
5026 /* Override any gcc2 internal prototype to avoid an error. */
5031 /* We use char because int might match the return type of a gcc2
5032 builtin and then its argument prototype would still apply. */
5034 /* The GNU C library defines this for functions which it implements
5035 to always fail with ENOSYS. Some functions are actually named
5036 something starting with __ and the normal name is an alias. */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 char (*f) () = $ac_func;
5049 return f != $ac_func;
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 eval "$as_ac_var=yes"
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 eval "$as_ac_var=no"
5083 rm -f conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5088 if test `eval echo '${'$as_ac_var'}'` = yes; then
5089 cat >>confdefs.h <<_ACEOF
5090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5092 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5098 for ac_func in gethostid
5100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5101 echo "$as_me:$LINENO: checking for $ac_func" >&5
5102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5103 if eval "test \"\${$as_ac_var+set}\" = set"; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5114 #define $ac_func innocuous_$ac_func
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func (); below.
5118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 <limits.h> exists even on freestanding compilers. */
5122 # include <limits.h>
5124 # include <assert.h>
5129 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5143 char (*f) () = $ac_func;
5152 return f != $ac_func;
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 eval "$as_ac_var=yes"
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 eval "$as_ac_var=no"
5186 rm -f conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5191 if test `eval echo '${'$as_ac_var'}'` = yes; then
5192 cat >>confdefs.h <<_ACEOF
5193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5195 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5201 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5202 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5203 if test "${ac_cv_search_strerror+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 ac_func_search_save_LIBS=$LIBS
5207 ac_cv_search_strerror=no
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>conftest.er1
5234 grep -v '^ *+' conftest.er1 >conftest.err
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try='test -s conftest$ac_exeext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 ac_cv_search_strerror="none required"
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5258 rm -f conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260 if test "$ac_cv_search_strerror" = no; then
5261 for ac_lib in cposix; do
5262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5263 cat >conftest.$ac_ext <<_ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5270 /* Override any gcc2 internal prototype to avoid an error. */
5274 /* We use char because int might match the return type of a gcc2
5275 builtin and then its argument prototype would still apply. */
5285 rm -f conftest.$ac_objext conftest$ac_exeext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5287 (eval $ac_link) 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -z "$ac_c_werror_flag"
5295 || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_cv_search_strerror="-l$ac_lib"
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5314 rm -f conftest.err conftest.$ac_objext \
5315 conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_func_search_save_LIBS
5320 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5321 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5322 if test "$ac_cv_search_strerror" != no; then
5323 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5327 # Check whether --enable-largefile or --disable-largefile was given.
5328 if test "${enable_largefile+set}" = set; then
5329 enableval="$enable_largefile"
5332 if test "$enable_largefile" != no; then
5334 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5335 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5336 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 ac_cv_sys_largefile_CC=no
5340 if test "$GCC" != yes; then
5343 # IRIX 6.2 and later do not support large files by default,
5344 # so use the C compiler's -n32 option if that helps.
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <sys/types.h>
5352 /* Check that off_t can represent 2**63 - 1 correctly.
5353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5354 since some C++ compilers masquerading as C compilers
5355 incorrectly reject 9223372036854775807. */
5356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5358 && LARGE_OFF_T % 2147483647 == 1)
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5396 rm -f conftest.err conftest.$ac_objext
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_sys_largefile_CC=' -n32'; break
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5426 rm -f conftest.err conftest.$ac_objext
5430 rm -f conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5434 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5435 if test "$ac_cv_sys_largefile_CC" != no; then
5436 CC=$CC$ac_cv_sys_largefile_CC
5439 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5440 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5441 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_cv_sys_file_offset_bits=no
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 /* Check that off_t can represent 2**63 - 1 correctly.
5454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455 since some C++ compilers masquerading as C compilers
5456 incorrectly reject 9223372036854775807. */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459 && LARGE_OFF_T % 2147483647 == 1)
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 #define _FILE_OFFSET_BITS 64
5505 #include <sys/types.h>
5506 /* Check that off_t can represent 2**63 - 1 correctly.
5507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5508 since some C++ compilers masquerading as C compilers
5509 incorrectly reject 9223372036854775807. */
5510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5512 && LARGE_OFF_T % 2147483647 == 1)
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_sys_file_offset_bits=64; break
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5554 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5555 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5556 if test "$ac_cv_sys_file_offset_bits" != no; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5564 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5565 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5566 if test "${ac_cv_sys_large_files+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_cv_sys_large_files=no
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <sys/types.h>
5578 /* Check that off_t can represent 2**63 - 1 correctly.
5579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5580 since some C++ compilers masquerading as C compilers
5581 incorrectly reject 9223372036854775807. */
5582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5584 && LARGE_OFF_T % 2147483647 == 1)
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #define _LARGE_FILES 1
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_sys_large_files=1; break
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5680 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5681 if test "$ac_cv_sys_large_files" != no; then
5683 cat >>confdefs.h <<_ACEOF
5684 #define _LARGE_FILES $ac_cv_sys_large_files
5691 echo "$as_me:$LINENO: checking for function prototypes" >&5
5692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5693 if test "$ac_cv_prog_cc_stdc" != no; then
5694 echo "$as_me:$LINENO: result: yes" >&5
5695 echo "${ECHO_T}yes" >&6
5697 cat >>confdefs.h <<\_ACEOF
5698 #define PROTOTYPES 1
5702 cat >>confdefs.h <<\_ACEOF
5703 #define __PROTOTYPES 1
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5712 if test "$ac_cv_prog_cc_stdc" != no; then
5715 U=_ ANSI2KNR=./ansi2knr
5717 # Ensure some checks needed by ansi2knr itself.
5720 for ac_header in string.h
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732 # Is the header compilable?
5733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 #include <$ac_header>
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag"
5754 || test ! -s conftest.err'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_header_compiler=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_compiler=no
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775 echo "${ECHO_T}$ac_header_compiler" >&6
5777 # Is the header present?
5778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <$ac_header>
5788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } >/dev/null; then
5796 if test -s conftest.err; then
5797 ac_cpp_err=$ac_c_preproc_warn_flag
5798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5805 if test -z "$ac_cpp_err"; then
5806 ac_header_preproc=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_header_preproc=no
5813 rm -f conftest.err conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6
5817 # So? What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824 ac_header_preproc=yes
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5841 ## ------------------------------------ ##
5842 ## Report this to bug-coreutils@gnu.org ##
5843 ## ------------------------------------ ##
5846 sed "s/^/$as_me: WARNING: /" >&2
5849 echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 eval "$as_ac_Header=\$ac_header_preproc"
5856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5870 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5871 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5872 if test "${ac_cv_c_bigendian+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 # See if sys/param.h defines the BYTE_ORDER macro.
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5883 #include <sys/param.h>
5888 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 # It does; now see whether it defined to BIG_ENDIAN or not.
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <sys/types.h>
5926 #include <sys/param.h>
5931 #if BYTE_ORDER != BIG_ENDIAN
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag"
5949 || test ! -s conftest.err'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_c_bigendian=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_cv_c_bigendian=no
5968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 # It does not; compile a test program.
5974 if test "$cross_compiling" = yes; then
5975 # try to guess the endianness by grepping values into an object file
5976 ac_cv_c_bigendian=unknown
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5984 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5985 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5986 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5987 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5988 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5992 _ascii (); _ebcdic ();
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6020 ac_cv_c_bigendian=yes
6022 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6023 if test "$ac_cv_c_bigendian" = unknown; then
6024 ac_cv_c_bigendian=no
6026 # finding both strings is unlikely to happen, but who knows?
6027 ac_cv_c_bigendian=unknown
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6046 /* Are we little or big endian? From Harbison&Steele. */
6050 char c[sizeof (long)];
6053 exit (u.c[sizeof (long) - 1] == 1);
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_c_bigendian=no
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_cv_c_bigendian=yes
6076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6082 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6083 case $ac_cv_c_bigendian in
6086 cat >>confdefs.h <<\_ACEOF
6087 #define WORDS_BIGENDIAN 1
6093 { { echo "$as_me:$LINENO: error: unknown endianness
6094 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6095 echo "$as_me: error: unknown endianness
6096 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6097 { (exit 1); exit 1; }; } ;;
6100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6102 if test "${ac_cv_c_const+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6115 /* FIXME: Include the comments suggested by Paul. */
6117 /* Ultrix mips cc rejects this. */
6118 typedef int charset[2];
6120 /* SunOS 4.1.1 cc rejects this. */
6121 char const *const *ccp;
6123 /* NEC SVR4.0.2 mips cc rejects this. */
6124 struct point {int x, y;};
6125 static struct point const zero = {0,0};
6126 /* AIX XL C 1.02.0.0 rejects this.
6127 It does not let you subtract one const X* pointer from another in
6128 an arm of an if-expression whose if-part is not a constant
6130 const char *g = "string";
6131 ccp = &g + (g ? g-g : 0);
6132 /* HPUX 7.0 cc rejects these. */
6135 ccp = (char const *const *) p;
6136 { /* SCO 3.2v4 cc rejects this. */
6138 char const *s = 0 ? (char *) 0 : (char const *) 0;
6142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6144 const int *foo = &x[0];
6147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6148 typedef const int *iptr;
6152 { /* AIX XL C 1.02.0.0 rejects this saying
6153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6154 struct s { int j; const int *ap[3]; };
6155 struct s *b; b->j = 5;
6157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6198 echo "${ECHO_T}$ac_cv_c_const" >&6
6199 if test $ac_cv_c_const = no; then
6201 cat >>confdefs.h <<\_ACEOF
6207 echo "$as_me:$LINENO: checking for working volatile" >&5
6208 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6209 if test "${ac_cv_c_volatile+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_c_volatile=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6261 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6262 if test $ac_cv_c_volatile = no; then
6264 cat >>confdefs.h <<\_ACEOF
6270 echo "$as_me:$LINENO: checking for inline" >&5
6271 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6272 if test "${ac_cv_c_inline+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 for ac_kw in inline __inline__ __inline; do
6277 cat >conftest.$ac_ext <<_ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6285 static $ac_kw foo_t static_foo () {return 0; }
6286 $ac_kw foo_t foo () {return 0; }
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -z "$ac_c_werror_flag"
6300 || test ! -s conftest.err'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; } &&
6306 { ac_try='test -s conftest.$ac_objext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_c_inline=$ac_kw; break
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6323 echo "${ECHO_T}$ac_cv_c_inline" >&6
6326 case $ac_cv_c_inline in
6329 case $ac_cv_c_inline in
6331 *) ac_val=$ac_cv_c_inline;;
6333 cat >>confdefs.h <<_ACEOF
6335 #define inline $ac_val
6341 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
6342 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
6343 if test "${ac_cv_c_long_double+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6353 long double foo = 0.0;
6357 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
6358 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
6359 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1 >conftest.err
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_c_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_c_long_double=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cv_c_long_double=no
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
6398 echo "${ECHO_T}$ac_cv_c_long_double" >&6
6399 if test $ac_cv_c_long_double = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_LONG_DOUBLE 1
6485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 # Is the header compilable?
6496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6505 #include <$ac_header>
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag"
6517 || test ! -s conftest.err'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; } &&
6523 { ac_try='test -s conftest.$ac_objext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 ac_header_compiler=yes
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 ac_header_compiler=no
6536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6538 echo "${ECHO_T}$ac_header_compiler" >&6
6540 # Is the header present?
6541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #include <$ac_header>
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } >/dev/null; then
6559 if test -s conftest.err; then
6560 ac_cpp_err=$ac_c_preproc_warn_flag
6561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6568 if test -z "$ac_cpp_err"; then
6569 ac_header_preproc=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_preproc=no
6576 rm -f conftest.err conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6578 echo "${ECHO_T}$ac_header_preproc" >&6
6580 # So? What about this header?
6581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6587 ac_header_preproc=yes
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6604 ## ------------------------------------ ##
6605 ## Report this to bug-coreutils@gnu.org ##
6606 ## ------------------------------------ ##
6609 sed "s/^/$as_me: WARNING: /" >&2
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 eval "$as_ac_Header=\$ac_header_preproc"
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6624 cat >>confdefs.h <<_ACEOF
6625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6640 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6641 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6642 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 #include <sys/types.h>
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 eval "$as_ac_Header=yes"
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 eval "$as_ac_Header=no"
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6702 ac_header_dirent=$ac_hdr; break
6706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6707 if test $ac_header_dirent = dirent.h; then
6708 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6710 if test "${ac_cv_search_opendir+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_func_search_save_LIBS=$LIBS
6714 ac_cv_search_opendir=no
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6722 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag"
6747 || test ! -s conftest.err'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_cv_search_opendir="none required"
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6765 rm -f conftest.err conftest.$ac_objext \
6766 conftest$ac_exeext conftest.$ac_ext
6767 if test "$ac_cv_search_opendir" = no; then
6768 for ac_lib in dir; do
6769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6770 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_search_opendir="-l$ac_lib"
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6821 rm -f conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6825 LIBS=$ac_func_search_save_LIBS
6827 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6828 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6829 if test "$ac_cv_search_opendir" != no; then
6830 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6837 if test "${ac_cv_search_opendir+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_func_search_save_LIBS=$LIBS
6841 ac_cv_search_opendir=no
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6849 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866 (eval $ac_link) 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -z "$ac_c_werror_flag"
6874 || test ! -s conftest.err'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; } &&
6880 { ac_try='test -s conftest$ac_exeext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_cv_search_opendir="none required"
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 if test "$ac_cv_search_opendir" = no; then
6896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6904 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921 (eval $ac_link) 2>conftest.er1
6923 grep -v '^ *+' conftest.er1 >conftest.err
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_search_opendir="-l$ac_lib"
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6948 rm -f conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6952 LIBS=$ac_func_search_save_LIBS
6954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6956 if test "$ac_cv_search_opendir" != no; then
6957 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6963 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6964 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6965 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6978 static struct stat ac_aggr;
6979 if (ac_aggr.st_blocks)
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_member_struct_stat_st_blocks=yes
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7022 static struct stat ac_aggr;
7023 if (sizeof ac_aggr.st_blocks)
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031 (eval $ac_compile) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1 >conftest.err
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest.$ac_objext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_cv_member_struct_stat_st_blocks=yes
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_member_struct_stat_st_blocks=no
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7063 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
7064 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_ST_BLOCKS 1
7077 "fileblocks.$ac_objext" | \
7078 *" fileblocks.$ac_objext" | \
7079 "fileblocks.$ac_objext "* | \
7080 *" fileblocks.$ac_objext "* ) ;;
7081 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
7087 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7089 if test "${ac_cv_header_stat_broken+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <sys/types.h>
7099 #include <sys/stat.h>
7101 #if defined(S_ISBLK) && defined(S_IFDIR)
7102 # if S_ISBLK (S_IFDIR)
7107 #if defined(S_ISBLK) && defined(S_IFCHR)
7108 # if S_ISBLK (S_IFCHR)
7113 #if defined(S_ISLNK) && defined(S_IFREG)
7114 # if S_ISLNK (S_IFREG)
7119 #if defined(S_ISSOCK) && defined(S_IFREG)
7120 # if S_ISSOCK (S_IFREG)
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "You lose" >/dev/null 2>&1; then
7128 ac_cv_header_stat_broken=yes
7130 ac_cv_header_stat_broken=no
7135 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7136 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7137 if test $ac_cv_header_stat_broken = yes; then
7139 cat >>confdefs.h <<\_ACEOF
7140 #define STAT_MACROS_BROKEN 1
7145 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
7146 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
7147 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_save_CPPFLAGS="$CPPFLAGS"
7151 ac_cv_struct_st_mtim_nsec=no
7152 # tv_nsec -- the usual case
7153 # _tv_nsec -- Solaris 2.6, if
7154 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7155 # && !defined __EXTENSIONS__)
7156 # st__tim.tv_nsec -- UnixWare 2.1.2
7157 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7158 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 #include <sys/types.h>
7166 #include <sys/stat.h>
7170 struct stat s; s.st_mtim.ST_MTIM_NSEC;
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1 >conftest.err
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag"
7185 || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_struct_st_mtim_nsec=$ac_val; break
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7205 CPPFLAGS="$ac_save_CPPFLAGS"
7207 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7208 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
7210 if test $ac_cv_struct_st_mtim_nsec != no; then
7212 cat >>confdefs.h <<_ACEOF
7213 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7219 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7220 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
7221 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #include <sys/types.h>
7231 #include <sys/stat.h>
7235 struct stat s; s.st_dm_mode;
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7244 grep -v '^ *+' conftest.er1 >conftest.err
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_cv_struct_st_dm_mode=yes
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 ac_cv_struct_st_dm_mode=no
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7272 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
7274 if test $ac_cv_struct_st_dm_mode = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_ST_DM_MODE 1
7283 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7284 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7285 if test "${ac_cv_type_uid_t+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 cat >conftest.$ac_ext <<_ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 #include <sys/types.h>
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "uid_t" >/dev/null 2>&1; then
7299 ac_cv_type_uid_t=yes
7306 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7307 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7308 if test $ac_cv_type_uid_t = no; then
7310 cat >>confdefs.h <<\_ACEOF
7315 cat >>confdefs.h <<\_ACEOF
7321 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7322 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7323 if test "${ac_cv_type_getgroups+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 if test "$cross_compiling" = yes; then
7327 ac_cv_type_getgroups=cross
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 /* Thanks to Mike Rendell for this test. */
7336 #include <sys/types.h>
7339 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7346 union { gid_t gval; long lval; } val;
7349 for (i = 0; i < NGID; i++)
7350 gidset[i] = val.gval;
7351 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7353 /* Exit non-zero if getgroups seems to require an array of ints. This
7354 happens when gid_t is short but getgroups modifies an array of ints. */
7355 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7358 rm -f conftest$ac_exeext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7360 (eval $ac_link) 2>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 ac_cv_type_getgroups=gid_t
7371 echo "$as_me: program exited with status $ac_status" >&5
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_type_getgroups=int
7378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7380 if test $ac_cv_type_getgroups = cross; then
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7392 ac_cv_type_getgroups=gid_t
7394 ac_cv_type_getgroups=int
7400 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7401 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7403 cat >>confdefs.h <<_ACEOF
7404 #define GETGROUPS_T $ac_cv_type_getgroups
7408 echo "$as_me:$LINENO: checking for mode_t" >&5
7409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7410 if test "${ac_cv_type_mode_t+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7425 if (sizeof (mode_t))
7431 rm -f conftest.$ac_objext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433 (eval $ac_compile) 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try='test -z "$ac_c_werror_flag"
7441 || test ! -s conftest.err'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; } &&
7447 { ac_try='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_type_mode_t=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_cv_type_mode_t=no
7460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7464 if test $ac_cv_type_mode_t = yes; then
7468 cat >>confdefs.h <<_ACEOF
7474 echo "$as_me:$LINENO: checking for off_t" >&5
7475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7476 if test "${ac_cv_type_off_t+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 cat >conftest.$ac_ext <<_ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499 (eval $ac_compile) 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -z "$ac_c_werror_flag"
7507 || test ! -s conftest.err'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest.$ac_objext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_type_off_t=yes
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7528 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7529 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7530 if test $ac_cv_type_off_t = yes; then
7534 cat >>confdefs.h <<_ACEOF
7540 echo "$as_me:$LINENO: checking for pid_t" >&5
7541 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7542 if test "${ac_cv_type_pid_t+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7563 rm -f conftest.$ac_objext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7565 (eval $ac_compile) 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest.$ac_objext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585 ac_cv_type_pid_t=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7595 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7596 if test $ac_cv_type_pid_t = yes; then
7600 cat >>confdefs.h <<_ACEOF
7606 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7607 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7608 if test "${ac_cv_type_signal+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include <sys/types.h>
7623 extern "C" void (*signal (int, void (*)(int)))(int);
7625 void (*signal ()) ();
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>conftest.er1
7640 grep -v '^ *+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -z "$ac_c_werror_flag"
7646 || test ! -s conftest.err'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try='test -s conftest.$ac_objext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_cv_type_signal=void
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_cv_type_signal=int
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7668 echo "${ECHO_T}$ac_cv_type_signal" >&6
7670 cat >>confdefs.h <<_ACEOF
7671 #define RETSIGTYPE $ac_cv_type_signal
7675 echo "$as_me:$LINENO: checking for size_t" >&5
7676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7677 if test "${ac_cv_type_size_t+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7692 if (sizeof (size_t))
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1 >conftest.err
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_type_size_t=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 ac_cv_type_size_t=no
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7730 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7731 if test $ac_cv_type_size_t = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736 #define size_t unsigned
7742 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7743 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7744 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7754 #include <inttypes.h>
7758 uintmax_t i = (uintmax_t) -1;
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 jm_ac_cv_header_inttypes_h=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 jm_ac_cv_header_inttypes_h=no
7792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7795 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7796 if test $jm_ac_cv_header_inttypes_h = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7805 echo "$as_me:$LINENO: checking for stdint.h" >&5
7806 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7807 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #include <sys/types.h>
7821 uintmax_t i = (uintmax_t) -1;
7826 rm -f conftest.$ac_objext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828 (eval $ac_compile) 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest.$ac_objext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 jm_ac_cv_header_stdint_h=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 jm_ac_cv_header_stdint_h=no
7855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7858 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7859 if test $jm_ac_cv_header_stdint_h = yes; then
7861 cat >>confdefs.h <<_ACEOF
7862 #define HAVE_STDINT_H_WITH_UINTMAX 1
7868 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7869 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7870 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 unsigned long long ull = 1ULL; int i = 63;
7883 unsigned long long ullmax = (unsigned long long) -1;
7884 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_type_unsigned_long_long=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_type_unsigned_long_long=no
7918 rm -f conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7922 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7923 if test $ac_cv_type_unsigned_long_long = yes; then
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_UNSIGNED_LONG_LONG 1
7934 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7936 test $ac_cv_type_unsigned_long_long = yes \
7937 && ac_type='unsigned long long' \
7938 || ac_type='unsigned long'
7940 cat >>confdefs.h <<_ACEOF
7941 #define uintmax_t $ac_type
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_UINTMAX_T 1
7952 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7953 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
7954 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <sys/types.h>
7967 return makedev(0, 0);
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag"
7982 || test ! -s conftest.err'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_header_sys_types_h_makedev=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 ac_cv_header_sys_types_h_makedev=no
8001 rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8006 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8008 if test $ac_cv_header_sys_types_h_makedev = no; then
8009 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8010 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8011 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8012 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8016 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8018 # Is the header compilable?
8019 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8020 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8028 #include <sys/mkdev.h>
8030 rm -f conftest.$ac_objext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032 (eval $ac_compile) 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_header_compiler=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_header_compiler=no
8059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8061 echo "${ECHO_T}$ac_header_compiler" >&6
8063 # Is the header present?
8064 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8065 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 #include <sys/mkdev.h>
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } >/dev/null; then
8082 if test -s conftest.err; then
8083 ac_cpp_err=$ac_c_preproc_warn_flag
8084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091 if test -z "$ac_cpp_err"; then
8092 ac_header_preproc=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_header_preproc=no
8099 rm -f conftest.err conftest.$ac_ext
8100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8101 echo "${ECHO_T}$ac_header_preproc" >&6
8103 # So? What about this header?
8104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8106 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8107 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
8109 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
8110 ac_header_preproc=yes
8113 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8114 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8115 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8116 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
8118 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
8120 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
8124 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
8127 ## ------------------------------------ ##
8128 ## Report this to bug-coreutils@gnu.org ##
8129 ## ------------------------------------ ##
8132 sed "s/^/$as_me: WARNING: /" >&2
8135 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8136 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 ac_cv_header_sys_mkdev_h=$ac_header_preproc
8142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8146 if test $ac_cv_header_sys_mkdev_h = yes; then
8148 cat >>confdefs.h <<\_ACEOF
8149 #define MAJOR_IN_MKDEV 1
8156 if test $ac_cv_header_sys_mkdev_h = no; then
8157 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8158 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8159 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8160 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8164 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8166 # Is the header compilable?
8167 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8168 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #include <sys/sysmacros.h>
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_header_compiler=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 ac_header_compiler=no
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209 echo "${ECHO_T}$ac_header_compiler" >&6
8211 # Is the header present?
8212 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8213 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 #include <sys/sysmacros.h>
8222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } >/dev/null; then
8230 if test -s conftest.err; then
8231 ac_cpp_err=$ac_c_preproc_warn_flag
8232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8239 if test -z "$ac_cpp_err"; then
8240 ac_header_preproc=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_header_preproc=no
8247 rm -f conftest.err conftest.$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8249 echo "${ECHO_T}$ac_header_preproc" >&6
8251 # So? What about this header?
8252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8254 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
8255 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
8257 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8258 ac_header_preproc=yes
8261 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
8262 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
8264 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
8265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
8266 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
8267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
8268 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
8270 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
8272 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
8275 ## ------------------------------------ ##
8276 ## Report this to bug-coreutils@gnu.org ##
8277 ## ------------------------------------ ##
8280 sed "s/^/$as_me: WARNING: /" >&2
8283 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8284 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8285 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
8290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8291 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8294 if test $ac_cv_header_sys_sysmacros_h = yes; then
8296 cat >>confdefs.h <<\_ACEOF
8297 #define MAJOR_IN_SYSMACROS 1
8307 echo "$as_me:$LINENO: checking host operating system" >&5
8308 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8309 if test "${utils_cv_host_operating_system+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 # These operating system names do not use the default heuristic below.
8315 # They are in reverse order, so that more-specific prefixes come first.
8316 winnt*) os='Windows NT';;
8318 sysv*) os='Unix System V';;
8319 superux*) os='SUPER-UX';;
8320 sunos*) os='SunOS';;
8322 sco*) os='SCO Unix';;
8323 riscos*) os='RISC OS';;
8324 riscix*) os='RISCiX';;
8328 plan9*) os='Plan 9';;
8331 openbsd*) os='OpenBSD';;
8332 nsk*) os='NonStop Kernel';;
8333 nonstopux*) os='NonStop-UX';;
8334 netbsd*-gnu*) os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
8335 netbsd*) os='NetBSD';;
8336 knetbsd*-gnu) os='GNU/KNetBSD';; # NetBSD kernel, GNU libc+userland
8337 kfreebsd*-gnu) os='GNU/KFreeBSD';; # FreeBSD kernel, GNU libc+userland
8338 msdosdjgpp*) os='DJGPP';;
8339 mpeix*) os='MPE/iX';;
8341 mingw*) os='MinGW';;
8342 lynxos*) os='LynxOS';;
8343 linux*) os='GNU/Linux';;
8347 freebsd*) os='FreeBSD';;
8349 bsdi*) os='BSD/OS';;
8353 atheos*) os='AtheOS';;
8354 amigaos*) os='Amiga OS';;
8357 # The default heuristic takes the initial alphabetic string
8358 # from $host_os, but capitalizes its first letter.
8361 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8363 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8367 # If $host_os does not start with an alphabetic string, use it unchanged.
8371 utils_cv_host_operating_system=$os
8373 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8374 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8376 cat >>confdefs.h <<_ACEOF
8377 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8382 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8383 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8384 # Check whether --enable-assert or --disable-assert was given.
8385 if test "${enable_assert+set}" = set; then
8386 enableval="$enable_assert"
8387 echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6
8390 cat >>confdefs.h <<\_ACEOF
8395 echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8402 for ac_header in sys/time.h
8404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8406 echo "$as_me:$LINENO: checking for $ac_header" >&5
8407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8414 # Is the header compilable?
8415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 #include <$ac_header>
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_header_compiler=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_header_compiler=no
8455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8457 echo "${ECHO_T}$ac_header_compiler" >&6
8459 # Is the header present?
8460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 #include <$ac_header>
8470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473 grep -v '^ *+' conftest.er1 >conftest.err
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } >/dev/null; then
8478 if test -s conftest.err; then
8479 ac_cpp_err=$ac_c_preproc_warn_flag
8480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8487 if test -z "$ac_cpp_err"; then
8488 ac_header_preproc=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_header_preproc=no
8495 rm -f conftest.err conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 echo "${ECHO_T}$ac_header_preproc" >&6
8499 # So? What about this header?
8500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8506 ac_header_preproc=yes
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8523 ## ------------------------------------ ##
8524 ## Report this to bug-coreutils@gnu.org ##
8525 ## ------------------------------------ ##
8528 sed "s/^/$as_me: WARNING: /" >&2
8531 echo "$as_me:$LINENO: checking for $ac_header" >&5
8532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 eval "$as_ac_Header=\$ac_header_preproc"
8538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8543 cat >>confdefs.h <<_ACEOF
8544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554 for ac_header in utime.h
8556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566 # Is the header compilable?
8567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 #include <$ac_header>
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler=yes
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 ac_header_compiler=no
8607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6
8611 # Is the header present?
8612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_c_preproc_warn_flag
8632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8639 if test -z "$ac_cpp_err"; then
8640 ac_header_preproc=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_header_preproc=no
8647 rm -f conftest.err conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8649 echo "${ECHO_T}$ac_header_preproc" >&6
8651 # So? What about this header?
8652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8658 ac_header_preproc=yes
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8675 ## ------------------------------------ ##
8676 ## Report this to bug-coreutils@gnu.org ##
8677 ## ------------------------------------ ##
8680 sed "s/^/$as_me: WARNING: /" >&2
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 eval "$as_ac_Header=\$ac_header_preproc"
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695 cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8704 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8705 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8706 if test "${ac_cv_header_time+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 #include <sys/types.h>
8716 #include <sys/time.h>
8722 if ((struct tm *) 0)
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>conftest.er1
8732 grep -v '^ *+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_cv_header_time=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 ac_cv_header_time=no
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8760 echo "${ECHO_T}$ac_cv_header_time" >&6
8761 if test $ac_cv_header_time = yes; then
8763 cat >>confdefs.h <<\_ACEOF
8764 #define TIME_WITH_SYS_TIME 1
8781 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8782 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8783 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 #ifdef TIME_WITH_SYS_TIME
8794 # include <sys/time.h>
8797 # ifdef HAVE_SYS_TIME_H
8798 # include <sys/time.h>
8810 static struct utimbuf x; x.actime = x.modtime;
8815 rm -f conftest.$ac_objext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817 (eval $ac_compile) 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag"
8825 || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest.$ac_objext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 fu_cv_sys_struct_utimbuf=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 fu_cv_sys_struct_utimbuf=no
8844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8848 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8850 if test $fu_cv_sys_struct_utimbuf = yes; then
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_STRUCT_UTIMBUF 1
8858 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8859 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8860 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8870 #include <sys/types.h>
8871 #ifdef HAVE_DIRENT_H
8872 # include <dirent.h>
8873 #else /* not HAVE_DIRENT_H */
8874 # define dirent direct
8875 # ifdef HAVE_SYS_NDIR_H
8876 # include <sys/ndir.h>
8877 # endif /* HAVE_SYS_NDIR_H */
8878 # ifdef HAVE_SYS_DIR_H
8879 # include <sys/dir.h>
8880 # endif /* HAVE_SYS_DIR_H */
8883 # endif /* HAVE_NDIR_H */
8884 #endif /* HAVE_DIRENT_H */
8889 struct dirent dp; dp.d_type = 0;
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 jm_cv_struct_dirent_d_type=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 jm_cv_struct_dirent_d_type=no
8923 rm -f conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8928 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8929 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8930 if test $jm_cv_struct_dirent_d_type = yes; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8939 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8940 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8941 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 #include <sys/types.h>
8952 #ifdef HAVE_DIRENT_H
8953 # include <dirent.h>
8954 #else /* not HAVE_DIRENT_H */
8955 # define dirent direct
8956 # ifdef HAVE_SYS_NDIR_H
8957 # include <sys/ndir.h>
8958 # endif /* HAVE_SYS_NDIR_H */
8959 # ifdef HAVE_SYS_DIR_H
8960 # include <sys/dir.h>
8961 # endif /* HAVE_SYS_DIR_H */
8964 # endif /* HAVE_NDIR_H */
8965 #endif /* HAVE_DIRENT_H */
8970 struct dirent dp; dp.d_ino = 0;
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try='test -z "$ac_c_werror_flag"
8985 || test ! -s conftest.err'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 jm_cv_struct_dirent_d_ino=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 jm_cv_struct_dirent_d_ino=no
9004 rm -f conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9010 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
9011 if test $jm_cv_struct_dirent_d_ino = yes; then
9013 cat >>confdefs.h <<\_ACEOF
9014 #define D_INO_IN_DIRENT 1
9032 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
9033 unistd.h sys/time.h utmp.h utmpx.h
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037 echo "$as_me:$LINENO: checking for $ac_header" >&5
9038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9045 # Is the header compilable?
9046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9055 #include <$ac_header>
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_header_compiler=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_header_compiler=no
9086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088 echo "${ECHO_T}$ac_header_compiler" >&6
9090 # Is the header present?
9091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <$ac_header>
9101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9104 grep -v '^ *+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null; then
9109 if test -s conftest.err; then
9110 ac_cpp_err=$ac_c_preproc_warn_flag
9111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118 if test -z "$ac_cpp_err"; then
9119 ac_header_preproc=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_preproc=no
9126 rm -f conftest.err conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128 echo "${ECHO_T}$ac_header_preproc" >&6
9130 # So? What about this header?
9131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9137 ac_header_preproc=yes
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9154 ## ------------------------------------ ##
9155 ## Report this to bug-coreutils@gnu.org ##
9156 ## ------------------------------------ ##
9159 sed "s/^/$as_me: WARNING: /" >&2
9162 echo "$as_me:$LINENO: checking for $ac_header" >&5
9163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 eval "$as_ac_Header=\$ac_header_preproc"
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174 cat >>confdefs.h <<_ACEOF
9175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9192 # include <unistd.h>
9195 #include <sys/types.h>
9196 #if TIME_WITH_SYS_TIME
9197 # include <sys/time.h>
9200 # if HAVE_SYS_TIME_H
9201 # include <sys/time.h>
9220 echo "$as_me:$LINENO: checking whether free is declared" >&5
9221 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9222 if test "${ac_cv_have_decl_free+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9237 char *p = (char *) free;
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_have_decl_free=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_cv_have_decl_free=no
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9276 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9277 if test $ac_cv_have_decl_free = yes; then
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_FREE 1
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_FREE 0
9291 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9292 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9293 if test "${ac_cv_have_decl_getenv+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9308 char *p = (char *) getenv;
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -z "$ac_c_werror_flag"
9325 || test ! -s conftest.err'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_have_decl_getenv=yes
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_have_decl_getenv=no
9344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9347 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9348 if test $ac_cv_have_decl_getenv = yes; then
9350 cat >>confdefs.h <<_ACEOF
9351 #define HAVE_DECL_GETENV 1
9356 cat >>confdefs.h <<_ACEOF
9357 #define HAVE_DECL_GETENV 0
9362 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9363 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9364 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9379 char *p = (char *) geteuid;
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_cv_have_decl_geteuid=yes
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_have_decl_geteuid=no
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9417 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9418 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9419 if test $ac_cv_have_decl_geteuid = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_DECL_GETEUID 1
9427 cat >>confdefs.h <<_ACEOF
9428 #define HAVE_DECL_GETEUID 0
9433 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9434 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9435 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 cat >conftest.$ac_ext <<_ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9450 char *p = (char *) getgrgid;
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459 (eval $ac_compile) 2>conftest.er1
9461 grep -v '^ *+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest.$ac_objext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_have_decl_getgrgid=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_have_decl_getgrgid=no
9486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9489 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9490 if test $ac_cv_have_decl_getgrgid = yes; then
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_DECL_GETGRGID 1
9498 cat >>confdefs.h <<_ACEOF
9499 #define HAVE_DECL_GETGRGID 0
9504 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9505 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9506 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9521 char *p = (char *) getlogin;
9528 rm -f conftest.$ac_objext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530 (eval $ac_compile) 2>conftest.er1
9532 grep -v '^ *+' conftest.er1 >conftest.err
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } &&
9537 { ac_try='test -z "$ac_c_werror_flag"
9538 || test ! -s conftest.err'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; } &&
9544 { ac_try='test -s conftest.$ac_objext'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_have_decl_getlogin=yes
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_cv_have_decl_getlogin=no
9557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9560 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9561 if test $ac_cv_have_decl_getlogin = yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define HAVE_DECL_GETLOGIN 1
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_DECL_GETLOGIN 0
9575 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9576 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9577 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9592 char *p = (char *) getpwuid;
9599 rm -f conftest.$ac_objext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601 (eval $ac_compile) 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest.$ac_objext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_have_decl_getpwuid=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_have_decl_getpwuid=no
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9631 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9632 if test $ac_cv_have_decl_getpwuid = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635 #define HAVE_DECL_GETPWUID 1
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_DECL_GETPWUID 0
9646 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9647 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9648 if test "${ac_cv_have_decl_getuid+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9663 char *p = (char *) getuid;
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_have_decl_getuid=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_have_decl_getuid=no
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9702 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9703 if test $ac_cv_have_decl_getuid = yes; then
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_DECL_GETUID 1
9711 cat >>confdefs.h <<_ACEOF
9712 #define HAVE_DECL_GETUID 0
9717 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9718 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9719 if test "${ac_cv_have_decl_getutent+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9734 char *p = (char *) getutent;
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_have_decl_getutent=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_have_decl_getutent=no
9770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9772 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9773 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9774 if test $ac_cv_have_decl_getutent = yes; then
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_GETUTENT 1
9782 cat >>confdefs.h <<_ACEOF
9783 #define HAVE_DECL_GETUTENT 0
9788 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9789 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9790 if test "${ac_cv_have_decl_lseek+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9805 char *p = (char *) lseek;
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814 (eval $ac_compile) 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag"
9822 || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 ac_cv_have_decl_lseek=yes
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_cv_have_decl_lseek=no
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9844 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9845 if test $ac_cv_have_decl_lseek = yes; then
9847 cat >>confdefs.h <<_ACEOF
9848 #define HAVE_DECL_LSEEK 1
9853 cat >>confdefs.h <<_ACEOF
9854 #define HAVE_DECL_LSEEK 0
9859 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9860 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9861 if test "${ac_cv_have_decl_malloc+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9876 char *p = (char *) malloc;
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885 (eval $ac_compile) 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag"
9893 || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_have_decl_malloc=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_have_decl_malloc=no
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9915 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9916 if test $ac_cv_have_decl_malloc = yes; then
9918 cat >>confdefs.h <<_ACEOF
9919 #define HAVE_DECL_MALLOC 1
9924 cat >>confdefs.h <<_ACEOF
9925 #define HAVE_DECL_MALLOC 0
9930 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9931 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9932 if test "${ac_cv_have_decl_memchr+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9947 char *p = (char *) memchr;
9954 rm -f conftest.$ac_objext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9956 (eval $ac_compile) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_have_decl_memchr=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_have_decl_memchr=no
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9986 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9987 if test $ac_cv_have_decl_memchr = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_MEMCHR 1
9995 cat >>confdefs.h <<_ACEOF
9996 #define HAVE_DECL_MEMCHR 0
10001 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10002 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
10003 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10018 char *p = (char *) memrchr;
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 (eval $ac_compile) 2>conftest.er1
10029 grep -v '^ *+' conftest.er1 >conftest.err
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest.$ac_objext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_have_decl_memrchr=yes
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_have_decl_memrchr=no
10054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10056 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10057 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
10058 if test $ac_cv_have_decl_memrchr = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL_MEMRCHR 1
10066 cat >>confdefs.h <<_ACEOF
10067 #define HAVE_DECL_MEMRCHR 0
10072 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10073 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
10074 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10089 char *p = (char *) nanosleep;
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag"
10106 || test ! -s conftest.err'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest.$ac_objext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_have_decl_nanosleep=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_have_decl_nanosleep=no
10125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10127 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10128 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
10129 if test $ac_cv_have_decl_nanosleep = yes; then
10131 cat >>confdefs.h <<_ACEOF
10132 #define HAVE_DECL_NANOSLEEP 1
10137 cat >>confdefs.h <<_ACEOF
10138 #define HAVE_DECL_NANOSLEEP 0
10143 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10144 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10145 if test "${ac_cv_have_decl_realloc+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10160 char *p = (char *) realloc;
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_have_decl_realloc=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_have_decl_realloc=no
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10200 if test $ac_cv_have_decl_realloc = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_REALLOC 1
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_REALLOC 0
10214 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10215 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10216 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10231 char *p = (char *) stpcpy;
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240 (eval $ac_compile) 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest.$ac_objext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_have_decl_stpcpy=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_have_decl_stpcpy=no
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10270 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10271 if test $ac_cv_have_decl_stpcpy = yes; then
10273 cat >>confdefs.h <<_ACEOF
10274 #define HAVE_DECL_STPCPY 1
10279 cat >>confdefs.h <<_ACEOF
10280 #define HAVE_DECL_STPCPY 0
10285 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10286 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
10287 if test "${ac_cv_have_decl_strndup+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10302 char *p = (char *) strndup;
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_have_decl_strndup=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_cv_have_decl_strndup=no
10338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10341 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
10342 if test $ac_cv_have_decl_strndup = yes; then
10344 cat >>confdefs.h <<_ACEOF
10345 #define HAVE_DECL_STRNDUP 1
10350 cat >>confdefs.h <<_ACEOF
10351 #define HAVE_DECL_STRNDUP 0
10356 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10357 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
10358 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10373 char *p = (char *) strnlen;
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_have_decl_strnlen=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_cv_have_decl_strnlen=no
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10412 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
10413 if test $ac_cv_have_decl_strnlen = yes; then
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_DECL_STRNLEN 1
10421 cat >>confdefs.h <<_ACEOF
10422 #define HAVE_DECL_STRNLEN 0
10427 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10428 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10429 if test "${ac_cv_have_decl_strstr+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 cat >conftest.$ac_ext <<_ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10444 char *p = (char *) strstr;
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 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); } &&
10460 { ac_try='test -z "$ac_c_werror_flag"
10461 || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_have_decl_strstr=yes
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_cv_have_decl_strstr=no
10480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10482 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10483 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10484 if test $ac_cv_have_decl_strstr = yes; then
10486 cat >>confdefs.h <<_ACEOF
10487 #define HAVE_DECL_STRSTR 1
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_DECL_STRSTR 0
10498 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10499 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10500 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10515 char *p = (char *) strtoul;
10522 rm -f conftest.$ac_objext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 (eval $ac_compile) 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag"
10532 || test ! -s conftest.err'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; } &&
10538 { ac_try='test -s conftest.$ac_objext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_have_decl_strtoul=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_have_decl_strtoul=no
10551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10554 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10555 if test $ac_cv_have_decl_strtoul = yes; then
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_DECL_STRTOUL 1
10563 cat >>confdefs.h <<_ACEOF
10564 #define HAVE_DECL_STRTOUL 0
10569 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10570 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10571 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.$ac_ext <<_ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10586 char *p = (char *) strtoull;
10593 rm -f conftest.$ac_objext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -z "$ac_c_werror_flag"
10603 || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_have_decl_strtoull=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_have_decl_strtoull=no
10622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10625 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10626 if test $ac_cv_have_decl_strtoull = yes; then
10628 cat >>confdefs.h <<_ACEOF
10629 #define HAVE_DECL_STRTOULL 1
10634 cat >>confdefs.h <<_ACEOF
10635 #define HAVE_DECL_STRTOULL 0
10640 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10641 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10642 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10657 char *p = (char *) ttyname;
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666 (eval $ac_compile) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest.$ac_objext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_have_decl_ttyname=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_cv_have_decl_ttyname=no
10693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10696 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10697 if test $ac_cv_have_decl_ttyname = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define HAVE_DECL_TTYNAME 1
10705 cat >>confdefs.h <<_ACEOF
10706 #define HAVE_DECL_TTYNAME 0
10717 am_getline_needs_run_time_check=no
10718 echo "$as_me:$LINENO: checking for getline" >&5
10719 echo $ECHO_N "checking for getline... $ECHO_C" >&6
10720 if test "${ac_cv_func_getline+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
10730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10731 #define getline innocuous_getline
10733 /* System header to define __stub macros and hopefully few prototypes,
10734 which can conflict with char getline (); below.
10735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10736 <limits.h> exists even on freestanding compilers. */
10739 # include <limits.h>
10741 # include <assert.h>
10746 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined (__stub_getline) || defined (__stub___getline)
10760 char (*f) () = getline;
10769 return f != getline;
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 ac_cv_func_getline=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_func_getline=no
10803 rm -f conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
10806 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
10807 echo "${ECHO_T}$ac_cv_func_getline" >&6
10808 if test $ac_cv_func_getline = yes; then
10809 am_getline_needs_run_time_check=yes
10811 am_cv_func_working_getline=no
10814 if test $am_getline_needs_run_time_check = yes; then
10815 echo "$as_me:$LINENO: checking for working getline function" >&5
10816 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
10817 if test "${am_cv_func_working_getline+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
10821 if test "$cross_compiling" = yes; then
10822 am_cv_func_working_getline=no
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10831 # include <stdio.h>
10832 # include <stdlib.h>
10833 # include <string.h>
10835 { /* Based on a test program from Karl Heuer. */
10839 FILE *in = fopen ("./conftest.data", "r");
10842 len = getline (&line, &siz, in);
10843 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
10847 rm -f conftest$ac_exeext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849 (eval $ac_link) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 am_cv_func_working_getline=yes
10860 echo "$as_me: program exited with status $ac_status" >&5
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ( exit $ac_status )
10865 am_cv_func_working_getline=no
10867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
10871 echo "${ECHO_T}$am_cv_func_working_getline" >&6
10874 if test $am_cv_func_working_getline = no; then
10876 cat >>confdefs.h <<\_ACEOF
10877 #define getline gnu_getline
10881 "getline.$ac_objext" | \
10882 *" getline.$ac_objext" | \
10883 "getline.$ac_objext "* | \
10884 *" getline.$ac_objext "* ) ;;
10885 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
10889 "getndelim2.$ac_objext" | \
10890 *" getndelim2.$ac_objext" | \
10891 "getndelim2.$ac_objext "* | \
10892 *" getndelim2.$ac_objext "* ) ;;
10893 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
10898 for ac_func in getdelim
10900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10903 if eval "test \"\${$as_ac_var+set}\" = set"; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define $ac_func innocuous_$ac_func
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10922 # include <limits.h>
10924 # include <assert.h>
10929 /* Override any gcc2 internal prototype to avoid an error. */
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10943 char (*f) () = $ac_func;
10952 return f != $ac_func;
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10959 (eval $ac_link) 2>conftest.er1
10961 grep -v '^ *+' conftest.er1 >conftest.err
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 eval "$as_ac_var=yes"
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 eval "$as_ac_var=no"
10986 rm -f conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10991 if test `eval echo '${'$as_ac_var'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11006 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11007 if test "${ac_cv_header_stdbool_h+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11017 #include <stdbool.h>
11019 "error: bool is not defined"
11022 "error: false is not defined"
11025 "error: false is not 0"
11028 "error: false is not defined"
11031 "error: true is not 1"
11033 #ifndef __bool_true_false_are_defined
11034 "error: __bool_true_false_are_defined is not defined"
11037 struct s { _Bool s: 1; _Bool t; } s;
11039 char a[true == 1 ? 1 : -1];
11040 char b[false == 0 ? 1 : -1];
11041 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11042 char d[(bool) -0.5 == true ? 1 : -1];
11044 char f[(_Bool) -0.0 == false ? 1 : -1];
11046 char h[sizeof (_Bool)];
11047 char i[sizeof s.t];
11052 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11057 rm -f conftest.$ac_objext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11059 (eval $ac_compile) 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
11066 { ac_try='test -z "$ac_c_werror_flag"
11067 || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest.$ac_objext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_header_stdbool_h=yes
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ac_cv_header_stdbool_h=no
11086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11088 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11089 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
11090 echo "$as_me:$LINENO: checking for _Bool" >&5
11091 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
11092 if test "${ac_cv_type__Bool+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11107 if (sizeof (_Bool))
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_type__Bool=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_cv_type__Bool=no
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11145 echo "${ECHO_T}$ac_cv_type__Bool" >&6
11146 if test $ac_cv_type__Bool = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE__BOOL 1
11155 if test $ac_cv_header_stdbool_h = yes; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_STDBOOL_H 1
11165 # Define two additional variables used in the Makefile substitution.
11167 if test "$ac_cv_header_stdbool_h" = yes; then
11170 STDBOOL_H='stdbool.h'
11174 if test "$ac_cv_type__Bool" = yes; then
11181 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
11182 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
11183 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 # Arrange for deletion of the temporary directory this test might create.
11188 ac_clean_files="$ac_clean_files confdir-slash"
11189 if test "$cross_compiling" = yes; then
11190 utils_cv_func_mkdir_trailing_slash_bug=yes
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11200 # include <sys/types.h>
11201 # include <sys/stat.h>
11202 # include <stdlib.h>
11205 rmdir ("confdir-slash");
11206 exit (mkdir ("confdir-slash/", 0700));
11210 rm -f conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212 (eval $ac_link) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 utils_cv_func_mkdir_trailing_slash_bug=no
11223 echo "$as_me: program exited with status $ac_status" >&5
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ( exit $ac_status )
11228 utils_cv_func_mkdir_trailing_slash_bug=yes
11230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
11236 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
11238 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
11240 "mkdir.$ac_objext" | \
11241 *" mkdir.$ac_objext" | \
11242 "mkdir.$ac_objext "* | \
11243 *" mkdir.$ac_objext "* ) ;;
11244 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
11248 cat >>confdefs.h <<\_ACEOF
11249 #define mkdir rpl_mkdir
11257 for ac_header in fcntl.h
11259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11269 # Is the header compilable?
11270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11279 #include <$ac_header>
11281 rm -f conftest.$ac_objext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283 (eval $ac_compile) 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag"
11291 || test ! -s conftest.err'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_header_compiler=yes
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 ac_header_compiler=no
11310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11312 echo "${ECHO_T}$ac_header_compiler" >&6
11314 # Is the header present?
11315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <$ac_header>
11325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } >/dev/null; then
11333 if test -s conftest.err; then
11334 ac_cpp_err=$ac_c_preproc_warn_flag
11335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11342 if test -z "$ac_cpp_err"; then
11343 ac_header_preproc=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_header_preproc=no
11350 rm -f conftest.err conftest.$ac_ext
11351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352 echo "${ECHO_T}$ac_header_preproc" >&6
11354 # So? What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361 ac_header_preproc=yes
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11378 ## ------------------------------------ ##
11379 ## Report this to bug-coreutils@gnu.org ##
11380 ## ------------------------------------ ##
11383 sed "s/^/$as_me: WARNING: /" >&2
11386 echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 eval "$as_ac_Header=\$ac_header_preproc"
11393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11398 cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 for ac_header in unistd.h
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11413 echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421 # Is the header compilable?
11422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_compiler=no
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464 echo "${ECHO_T}$ac_header_compiler" >&6
11466 # Is the header present?
11467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <$ac_header>
11477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } >/dev/null; then
11485 if test -s conftest.err; then
11486 ac_cpp_err=$ac_c_preproc_warn_flag
11487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494 if test -z "$ac_cpp_err"; then
11495 ac_header_preproc=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_header_preproc=no
11502 rm -f conftest.err conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11506 # So? What about this header?
11507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513 ac_header_preproc=yes
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11530 ## ------------------------------------ ##
11531 ## Report this to bug-coreutils@gnu.org ##
11532 ## ------------------------------------ ##
11535 sed "s/^/$as_me: WARNING: /" >&2
11538 echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 eval "$as_ac_Header=\$ac_header_preproc"
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11550 cat >>confdefs.h <<_ACEOF
11551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11561 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11562 if test "${ac_cv_have_decl_getenv+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11576 char *p = (char *) getenv;
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest.$ac_objext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_have_decl_getenv=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_have_decl_getenv=no
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11615 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11616 if test $ac_cv_have_decl_getenv = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_DECL_GETENV 1
11624 cat >>confdefs.h <<_ACEOF
11625 #define HAVE_DECL_GETENV 0
11634 for ac_func in mkstemp
11636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_var+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define $ac_func innocuous_$ac_func
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11658 # include <limits.h>
11660 # include <assert.h>
11665 /* Override any gcc2 internal prototype to avoid an error. */
11670 /* We use char because int might match the return type of a gcc2
11671 builtin and then its argument prototype would still apply. */
11673 /* The GNU C library defines this for functions which it implements
11674 to always fail with ENOSYS. Some functions are actually named
11675 something starting with __ and the normal name is an alias. */
11676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11679 char (*f) () = $ac_func;
11688 return f != $ac_func;
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11695 (eval $ac_link) 2>conftest.er1
11697 grep -v '^ *+' conftest.er1 >conftest.err
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
11702 { ac_try='test -z "$ac_c_werror_flag"
11703 || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest$ac_exeext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 eval "$as_ac_var=yes"
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 eval "$as_ac_var=no"
11722 rm -f conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11727 if test `eval echo '${'$as_ac_var'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11734 "$ac_func.$ac_objext" | \
11735 *" $ac_func.$ac_objext" | \
11736 "$ac_func.$ac_objext "* | \
11737 *" $ac_func.$ac_objext "* ) ;;
11738 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11745 if test $ac_cv_func_mkstemp = no; then
11746 utils_cv_func_mkstemp_limitations=yes
11748 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
11749 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
11750 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 if test "$cross_compiling" = yes; then
11755 utils_cv_func_mkstemp_limitations=yes
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11765 # include <stdlib.h>
11769 for (i = 0; i < 70; i++)
11771 char template[] = "conftestXXXXXX";
11772 int fd = mkstemp (template);
11781 rm -f conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 utils_cv_func_mkstemp_limitations=no
11794 echo "$as_me: program exited with status $ac_status" >&5
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ( exit $ac_status )
11799 utils_cv_func_mkstemp_limitations=yes
11801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11806 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
11807 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
11810 if test $utils_cv_func_mkstemp_limitations = yes; then
11812 "mkstemp.$ac_objext" | \
11813 *" mkstemp.$ac_objext" | \
11814 "mkstemp.$ac_objext "* | \
11815 *" mkstemp.$ac_objext "* ) ;;
11816 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
11820 "tempname.$ac_objext" | \
11821 *" tempname.$ac_objext" | \
11822 "tempname.$ac_objext "* | \
11823 *" tempname.$ac_objext "* ) ;;
11824 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
11828 cat >>confdefs.h <<\_ACEOF
11829 #define mkstemp rpl_mkstemp
11850 for ac_header in stdint.h
11852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11854 echo "$as_me:$LINENO: checking for $ac_header" >&5
11855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11862 # Is the header compilable?
11863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 #include <$ac_header>
11874 rm -f conftest.$ac_objext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876 (eval $ac_compile) 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest.$ac_objext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_header_compiler=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_header_compiler=no
11903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11905 echo "${ECHO_T}$ac_header_compiler" >&6
11907 # Is the header present?
11908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 #include <$ac_header>
11918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } >/dev/null; then
11926 if test -s conftest.err; then
11927 ac_cpp_err=$ac_c_preproc_warn_flag
11928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11935 if test -z "$ac_cpp_err"; then
11936 ac_header_preproc=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_header_preproc=no
11943 rm -f conftest.err conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11945 echo "${ECHO_T}$ac_header_preproc" >&6
11947 # So? What about this header?
11948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11954 ac_header_preproc=yes
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11971 ## ------------------------------------ ##
11972 ## Report this to bug-coreutils@gnu.org ##
11973 ## ------------------------------------ ##
11976 sed "s/^/$as_me: WARNING: /" >&2
11979 echo "$as_me:$LINENO: checking for $ac_header" >&5
11980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 eval "$as_ac_Header=\$ac_header_preproc"
11986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12001 for ac_func in __secure_getenv gettimeofday
12003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_func" >&5
12005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_var+set}\" = set"; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12017 #define $ac_func innocuous_$ac_func
12019 /* System header to define __stub macros and hopefully few prototypes,
12020 which can conflict with char $ac_func (); below.
12021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022 <limits.h> exists even on freestanding compilers. */
12025 # include <limits.h>
12027 # include <assert.h>
12032 /* Override any gcc2 internal prototype to avoid an error. */
12037 /* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12040 /* The GNU C library defines this for functions which it implements
12041 to always fail with ENOSYS. Some functions are actually named
12042 something starting with __ and the normal name is an alias. */
12043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12046 char (*f) () = $ac_func;
12055 return f != $ac_func;
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 eval "$as_ac_var=yes"
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 eval "$as_ac_var=no"
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12094 if test `eval echo '${'$as_ac_var'}'` = yes; then
12095 cat >>confdefs.h <<_ACEOF
12096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12114 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
12115 if test "${ac_cv_func_closedir_void+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 if test "$cross_compiling" = yes; then
12119 ac_cv_func_closedir_void=yes
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 $ac_includes_default
12128 #include <$ac_header_dirent>
12129 #ifndef __cplusplus
12136 exit (closedir (opendir (".")) != 0);
12141 rm -f conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_cv_func_closedir_void=no
12154 echo "$as_me: program exited with status $ac_status" >&5
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ( exit $ac_status )
12159 ac_cv_func_closedir_void=yes
12161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12165 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
12166 if test $ac_cv_func_closedir_void = yes; then
12168 cat >>confdefs.h <<\_ACEOF
12169 #define CLOSEDIR_VOID 1
12175 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
12176 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
12177 if test "${ac_cv_win_or_dos+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12191 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
12192 neither MSDOS nor Windows
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag"
12208 || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_cv_win_or_dos=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_cv_win_or_dos=no
12227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
12231 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
12233 if test x"$ac_cv_win_or_dos" = xyes; then
12234 ac_fs_accepts_drive_letter_prefix=1
12235 ac_fs_backslash_is_file_name_separator=1
12237 ac_fs_accepts_drive_letter_prefix=0
12238 ac_fs_backslash_is_file_name_separator=0
12245 cat >>confdefs.h <<_ACEOF
12246 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12254 cat >>confdefs.h <<_ACEOF
12255 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12259 echo "$as_me:$LINENO: checking for long file names" >&5
12260 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
12261 if test "${ac_cv_sys_long_file_names+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_cv_sys_long_file_names=yes
12265 # Test for long file names in all the places we know might matter:
12266 # . the current directory, where building will happen
12267 # $prefix/lib where we will be installing things
12268 # $exec_prefix/lib likewise
12269 # eval it to expand exec_prefix.
12270 # $TMPDIR if set, where it might want to write temporary files
12271 # if $TMPDIR is not set:
12272 # /tmp where it might want to write temporary files
12273 # /var/tmp likewise
12274 # /usr/tmp likewise
12275 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
12278 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
12280 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
12281 test -d $ac_dir || continue
12282 test -w $ac_dir || continue # It is less confusing to not echo anything here.
12283 ac_xdir=$ac_dir/cf$$
12284 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
12285 ac_tf1=$ac_xdir/conftest9012345
12286 ac_tf2=$ac_xdir/conftest9012346
12287 (echo 1 >$ac_tf1) 2>/dev/null
12288 (echo 2 >$ac_tf2) 2>/dev/null
12289 ac_val=`cat $ac_tf1 2>/dev/null`
12290 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
12291 ac_cv_sys_long_file_names=no
12292 rm -rf $ac_xdir 2>/dev/null
12295 rm -rf $ac_xdir 2>/dev/null
12298 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12299 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
12300 if test $ac_cv_sys_long_file_names = yes; then
12302 cat >>confdefs.h <<\_ACEOF
12303 #define HAVE_LONG_FILE_NAMES 1
12311 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
12312 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
12313 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 #include <sys/types.h>
12324 #ifdef HAVE_DIRENT_H
12325 # include <dirent.h>
12326 #else /* not HAVE_DIRENT_H */
12327 # define dirent direct
12328 # ifdef HAVE_SYS_NDIR_H
12329 # include <sys/ndir.h>
12330 # endif /* HAVE_SYS_NDIR_H */
12331 # ifdef HAVE_SYS_DIR_H
12332 # include <sys/dir.h>
12333 # endif /* HAVE_SYS_DIR_H */
12334 # ifdef HAVE_NDIR_H
12336 # endif /* HAVE_NDIR_H */
12337 #endif /* HAVE_DIRENT_H */
12342 struct dirent dp; dp.d_ino = 0;
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349 (eval $ac_link) 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_c_werror_flag"
12357 || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 jm_cv_struct_dirent_d_ino=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 jm_cv_struct_dirent_d_ino=no
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
12382 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
12383 if test $jm_cv_struct_dirent_d_ino = yes; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define D_INO_IN_DIRENT 1
12403 for ac_func in pathconf
12405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12406 echo "$as_me:$LINENO: checking for $ac_func" >&5
12407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12408 if eval "test \"\${$as_ac_var+set}\" = set"; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define $ac_func innocuous_$ac_func
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char $ac_func (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12427 # include <limits.h>
12429 # include <assert.h>
12434 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12448 char (*f) () = $ac_func;
12457 return f != $ac_func;
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 eval "$as_ac_var=yes"
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 eval "$as_ac_var=no"
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12496 if test `eval echo '${'$as_ac_var'}'` = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12517 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
12519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <$ac_header>
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_header_compiler=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_compiler=no
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 #include <$ac_header>
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } >/dev/null; then
12593 if test -s conftest.err; then
12594 ac_cpp_err=$ac_c_preproc_warn_flag
12595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12602 if test -z "$ac_cpp_err"; then
12603 ac_header_preproc=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_header_preproc=no
12610 rm -f conftest.err conftest.$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12638 ## ------------------------------------ ##
12639 ## Report this to bug-coreutils@gnu.org ##
12640 ## ------------------------------------ ##
12643 sed "s/^/$as_me: WARNING: /" >&2
12646 echo "$as_me:$LINENO: checking for $ac_header" >&5
12647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 eval "$as_ac_Header=\$ac_header_preproc"
12653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12658 cat >>confdefs.h <<_ACEOF
12659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12667 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12668 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
12669 if test "${ac_cv_search_gethostbyname+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_func_search_save_LIBS=$LIBS
12673 ac_cv_search_gethostbyname=no
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 /* Override any gcc2 internal prototype to avoid an error. */
12685 /* We use char because int might match the return type of a gcc2
12686 builtin and then its argument prototype would still apply. */
12687 char gethostbyname ();
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_c_werror_flag"
12706 || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12718 ac_cv_search_gethostbyname="none required"
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12724 rm -f conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 if test "$ac_cv_search_gethostbyname" = no; then
12727 for ac_lib in inet nsl; do
12728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any gcc2 internal prototype to avoid an error. */
12740 /* We use char because int might match the return type of a gcc2
12741 builtin and then its argument prototype would still apply. */
12742 char gethostbyname ();
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest$ac_exeext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ac_cv_search_gethostbyname="-l$ac_lib"
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12780 rm -f conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_func_search_save_LIBS
12786 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12787 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
12788 if test "$ac_cv_search_gethostbyname" != no; then
12789 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
12797 for ac_func in gethostbyname gethostbyaddr inet_ntoa
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813 #define $ac_func innocuous_$ac_func
12815 /* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12821 # include <limits.h>
12823 # include <assert.h>
12828 /* Override any gcc2 internal prototype to avoid an error. */
12833 /* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12836 /* The GNU C library defines this for functions which it implements
12837 to always fail with ENOSYS. Some functions are actually named
12838 something starting with __ and the normal name is an alias. */
12839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12842 char (*f) () = $ac_func;
12851 return f != $ac_func;
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 eval "$as_ac_var=yes"
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 eval "$as_ac_var=no"
12885 rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12890 if test `eval echo '${'$as_ac_var'}'` = yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12906 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
12907 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
12908 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 cat >conftest.$ac_ext <<_ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 $ac_includes_default
12922 char *p = (char *) strerror_r;
12929 rm -f conftest.$ac_objext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>conftest.er1
12933 grep -v '^ *+' conftest.er1 >conftest.err
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_have_decl_strerror_r=yes
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 ac_cv_have_decl_strerror_r=no
12958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
12961 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
12962 if test $ac_cv_have_decl_strerror_r = yes; then
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_DECL_STRERROR_R 1
12970 cat >>confdefs.h <<_ACEOF
12971 #define HAVE_DECL_STRERROR_R 0
12979 for ac_func in strerror_r
12981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12982 echo "$as_me:$LINENO: checking for $ac_func" >&5
12983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12984 if eval "test \"\${$as_ac_var+set}\" = set"; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12995 #define $ac_func innocuous_$ac_func
12997 /* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char $ac_func (); below.
12999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 <limits.h> exists even on freestanding compilers. */
13003 # include <limits.h>
13005 # include <assert.h>
13010 /* Override any gcc2 internal prototype to avoid an error. */
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13018 /* The GNU C library defines this for functions which it implements
13019 to always fail with ENOSYS. Some functions are actually named
13020 something starting with __ and the normal name is an alias. */
13021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13024 char (*f) () = $ac_func;
13033 return f != $ac_func;
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13040 (eval $ac_link) 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_c_werror_flag"
13048 || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13060 eval "$as_ac_var=yes"
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 eval "$as_ac_var=no"
13067 rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13072 if test `eval echo '${'$as_ac_var'}'` = yes; then
13073 cat >>confdefs.h <<_ACEOF
13074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13080 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13081 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
13082 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_cv_func_strerror_r_char_p=no
13087 if test $ac_cv_have_decl_strerror_r = yes; then
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13100 char x = *strerror_r (0, buf, sizeof buf);
13101 char *p = strerror_r (0, buf, sizeof buf);
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag"
13117 || test ! -s conftest.err'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest.$ac_objext'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; }; then
13129 ac_cv_func_strerror_r_char_p=yes
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13137 # strerror_r is not declared. Choose between
13138 # systems that have relatively inaccessible declarations for the
13139 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13140 # former has a strerror_r that returns char*, while the latter
13141 # has a strerror_r that returns `int'.
13142 # This test should segfault on the DEC system.
13143 if test "$cross_compiling" = yes; then
13146 cat >conftest.$ac_ext <<_ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 $ac_includes_default
13153 extern char *strerror_r ();
13158 char x = *strerror_r (0, buf, sizeof buf);
13159 exit (!isalpha (x));
13164 rm -f conftest$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166 (eval $ac_link) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_func_strerror_r_char_p=yes
13177 echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13187 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
13188 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
13189 if test $ac_cv_func_strerror_r_char_p = yes; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define STRERROR_R_CHAR_P 1
13198 echo "$as_me:$LINENO: checking for error_at_line" >&5
13199 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
13200 if test "${ac_cv_lib_error_at_line+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 $ac_includes_default
13213 error_at_line (0, 0, "", 0, "");
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_c_werror_flag"
13228 || test ! -s conftest.err'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; } &&
13234 { ac_try='test -s conftest$ac_exeext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13240 ac_cv_lib_error_at_line=yes
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ac_cv_lib_error_at_line=no
13247 rm -f conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
13251 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
13252 if test $ac_cv_lib_error_at_line = no; then
13254 "error.$ac_objext" | \
13255 *" error.$ac_objext" | \
13256 "error.$ac_objext "* | \
13257 *" error.$ac_objext "* ) ;;
13258 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
13270 for ac_func in isascii
13272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13273 echo "$as_me:$LINENO: checking for $ac_func" >&5
13274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13275 if eval "test \"\${$as_ac_var+set}\" = set"; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 cat >conftest.$ac_ext <<_ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13286 #define $ac_func innocuous_$ac_func
13288 /* System header to define __stub macros and hopefully few prototypes,
13289 which can conflict with char $ac_func (); below.
13290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13291 <limits.h> exists even on freestanding compilers. */
13294 # include <limits.h>
13296 # include <assert.h>
13301 /* Override any gcc2 internal prototype to avoid an error. */
13306 /* We use char because int might match the return type of a gcc2
13307 builtin and then its argument prototype would still apply. */
13309 /* The GNU C library defines this for functions which it implements
13310 to always fail with ENOSYS. Some functions are actually named
13311 something starting with __ and the normal name is an alias. */
13312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13315 char (*f) () = $ac_func;
13324 return f != $ac_func;
13329 rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13331 (eval $ac_link) 2>conftest.er1
13333 grep -v '^ *+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -z "$ac_c_werror_flag"
13339 || test ! -s conftest.err'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest$ac_exeext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 eval "$as_ac_var=yes"
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 eval "$as_ac_var=no"
13358 rm -f conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13363 if test `eval echo '${'$as_ac_var'}'` = yes; then
13364 cat >>confdefs.h <<_ACEOF
13365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13388 for ac_header in sys/param.h
13390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13392 echo "$as_me:$LINENO: checking for $ac_header" >&5
13393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13400 # Is the header compilable?
13401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 #include <$ac_header>
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag"
13422 || test ! -s conftest.err'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_header_compiler=yes
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13439 ac_header_compiler=no
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6
13445 # Is the header present?
13446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <$ac_header>
13456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13459 grep -v '^ *+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null; then
13464 if test -s conftest.err; then
13465 ac_cpp_err=$ac_c_preproc_warn_flag
13466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13473 if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_header_preproc=no
13481 rm -f conftest.err conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483 echo "${ECHO_T}$ac_header_preproc" >&6
13485 # So? What about this header?
13486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13492 ac_header_preproc=yes
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13509 ## ------------------------------------ ##
13510 ## Report this to bug-coreutils@gnu.org ##
13511 ## ------------------------------------ ##
13514 sed "s/^/$as_me: WARNING: /" >&2
13517 echo "$as_me:$LINENO: checking for $ac_header" >&5
13518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 eval "$as_ac_Header=\$ac_header_preproc"
13524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13529 cat >>confdefs.h <<_ACEOF
13530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13539 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13540 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13541 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 $ac_includes_default
13554 static struct stat ac_aggr;
13555 if (ac_aggr.st_blocks)
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563 (eval $ac_compile) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_member_struct_stat_st_blocks=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13598 static struct stat ac_aggr;
13599 if (sizeof ac_aggr.st_blocks)
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607 (eval $ac_compile) 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag"
13615 || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_member_struct_stat_st_blocks=yes
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_cv_member_struct_stat_st_blocks=no
13634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13640 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13647 cat >>confdefs.h <<\_ACEOF
13648 #define HAVE_ST_BLOCKS 1
13653 "fileblocks.$ac_objext" | \
13654 *" fileblocks.$ac_objext" | \
13655 "fileblocks.$ac_objext "* | \
13656 *" fileblocks.$ac_objext "* ) ;;
13657 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13663 if test $ac_cv_member_struct_stat_st_blocks = no; then
13695 for ac_header in sys/mount.h sys/vfs.h sys/fs_types.h
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699 echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13707 # Is the header compilable?
13708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 #include <$ac_header>
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1 >conftest.err
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_header_compiler=yes
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ac_header_compiler=no
13748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6
13752 # Is the header present?
13753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <$ac_header>
13763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null; then
13771 if test -s conftest.err; then
13772 ac_cpp_err=$ac_c_preproc_warn_flag
13773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13780 if test -z "$ac_cpp_err"; then
13781 ac_header_preproc=yes
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_header_preproc=no
13788 rm -f conftest.err conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc=yes
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13816 ## ------------------------------------ ##
13817 ## Report this to bug-coreutils@gnu.org ##
13818 ## ------------------------------------ ##
13821 sed "s/^/$as_me: WARNING: /" >&2
13824 echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 eval "$as_ac_Header=\$ac_header_preproc"
13831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13846 echo "checking how to get filesystem space usage..."
13847 ac_fsusage_space=no
13849 # Perform only the link test since it seems there are no variants of the
13850 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13851 # because that got a false positive on SCO OSR5. Adding the declaration
13852 # of a `struct statvfs' causes this test to fail (as it should) on such
13853 # systems. That system is reported to work fine with STAT_STATFS4 which
13854 # is what it gets when this test fails.
13855 if test $ac_fsusage_space = no; then
13857 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
13858 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
13859 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #include <sys/types.h>
13870 Do not use statvfs on systems with GNU libc, because that function stats
13871 all preceding entries in /proc/mounts, and that makes df hang if even
13872 one of the corresponding file systems is hard-mounted, but not available.
13874 #include <sys/statvfs.h>
13878 struct statvfs fsd; statvfs (0, &fsd);
13883 rm -f conftest.$ac_objext conftest$ac_exeext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885 (eval $ac_link) 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag"
13893 || test ! -s conftest.err'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 fu_cv_sys_stat_statvfs=yes
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13910 fu_cv_sys_stat_statvfs=no
13912 rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
13916 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
13917 if test $fu_cv_sys_stat_statvfs = yes; then
13918 ac_fsusage_space=yes
13920 cat >>confdefs.h <<\_ACEOF
13921 #define STAT_STATVFS 1
13927 if test $ac_fsusage_space = no; then
13928 # DEC Alpha running OSF/1
13929 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
13930 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
13931 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 if test "$cross_compiling" = yes; then
13935 fu_cv_sys_stat_statfs3_osf1=no
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13944 #include <sys/param.h>
13945 #include <sys/types.h>
13946 #include <sys/mount.h>
13951 exit (statfs (".", &fsd, sizeof (struct statfs)));
13954 rm -f conftest$ac_exeext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13956 (eval $ac_link) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 fu_cv_sys_stat_statfs3_osf1=yes
13967 echo "$as_me: program exited with status $ac_status" >&5
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ( exit $ac_status )
13972 fu_cv_sys_stat_statfs3_osf1=no
13974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13978 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13979 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
13980 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13981 ac_fsusage_space=yes
13983 cat >>confdefs.h <<\_ACEOF
13984 #define STAT_STATFS3_OSF1 1
13990 if test $ac_fsusage_space = no; then
13992 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13993 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
13994 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 if test "$cross_compiling" = yes; then
13998 fu_cv_sys_stat_statfs2_bsize=no
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 #ifdef HAVE_SYS_PARAM_H
14008 #include <sys/param.h>
14010 #ifdef HAVE_SYS_MOUNT_H
14011 #include <sys/mount.h>
14013 #ifdef HAVE_SYS_VFS_H
14014 #include <sys/vfs.h>
14020 exit (statfs (".", &fsd));
14023 rm -f conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 fu_cv_sys_stat_statfs2_bsize=yes
14036 echo "$as_me: program exited with status $ac_status" >&5
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ( exit $ac_status )
14041 fu_cv_sys_stat_statfs2_bsize=no
14043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
14048 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
14049 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14050 ac_fsusage_space=yes
14052 cat >>confdefs.h <<\_ACEOF
14053 #define STAT_STATFS2_BSIZE 1
14059 if test $ac_fsusage_space = no; then
14061 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14062 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
14063 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 if test "$cross_compiling" = yes; then
14067 fu_cv_sys_stat_statfs4=no
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <sys/types.h>
14076 #include <sys/statfs.h>
14080 exit (statfs (".", &fsd, sizeof fsd, 0));
14083 rm -f conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 fu_cv_sys_stat_statfs4=yes
14096 echo "$as_me: program exited with status $ac_status" >&5
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ( exit $ac_status )
14101 fu_cv_sys_stat_statfs4=no
14103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14107 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
14108 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
14109 if test $fu_cv_sys_stat_statfs4 = yes; then
14110 ac_fsusage_space=yes
14112 cat >>confdefs.h <<\_ACEOF
14113 #define STAT_STATFS4 1
14119 if test $ac_fsusage_space = no; then
14120 # 4.4BSD and NetBSD
14121 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14122 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
14123 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 if test "$cross_compiling" = yes; then
14127 fu_cv_sys_stat_statfs2_fsize=no
14129 cat >conftest.$ac_ext <<_ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 #include <sys/types.h>
14136 #ifdef HAVE_SYS_PARAM_H
14137 #include <sys/param.h>
14139 #ifdef HAVE_SYS_MOUNT_H
14140 #include <sys/mount.h>
14146 exit (statfs (".", &fsd));
14149 rm -f conftest$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151 (eval $ac_link) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 fu_cv_sys_stat_statfs2_fsize=yes
14162 echo "$as_me: program exited with status $ac_status" >&5
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ( exit $ac_status )
14167 fu_cv_sys_stat_statfs2_fsize=no
14169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
14174 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
14175 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14176 ac_fsusage_space=yes
14178 cat >>confdefs.h <<\_ACEOF
14179 #define STAT_STATFS2_FSIZE 1
14185 if test $ac_fsusage_space = no; then
14187 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14188 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
14189 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 if test "$cross_compiling" = yes; then
14193 fu_cv_sys_stat_fs_data=no
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <sys/types.h>
14202 #ifdef HAVE_SYS_PARAM_H
14203 #include <sys/param.h>
14205 #ifdef HAVE_SYS_MOUNT_H
14206 #include <sys/mount.h>
14208 #ifdef HAVE_SYS_FS_TYPES_H
14209 #include <sys/fs_types.h>
14213 struct fs_data fsd;
14214 /* Ultrix's statfs returns 1 for success,
14215 0 for not mounted, -1 for failure. */
14216 exit (statfs (".", &fsd) != 1);
14219 rm -f conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 fu_cv_sys_stat_fs_data=yes
14232 echo "$as_me: program exited with status $ac_status" >&5
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ( exit $ac_status )
14237 fu_cv_sys_stat_fs_data=no
14239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
14244 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
14245 if test $fu_cv_sys_stat_fs_data = yes; then
14246 ac_fsusage_space=yes
14248 cat >>confdefs.h <<\_ACEOF
14249 #define STAT_STATFS2_FS_DATA 1
14255 if test $ac_fsusage_space = no; then
14257 cat >conftest.$ac_ext <<_ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 #include <sys/filsys.h>
14266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } >/dev/null; then
14274 if test -s conftest.err; then
14275 ac_cpp_err=$ac_c_preproc_warn_flag
14276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14283 if test -z "$ac_cpp_err"; then
14285 cat >>confdefs.h <<\_ACEOF
14286 #define STAT_READ_FILSYS 1
14289 ac_fsusage_space=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14296 rm -f conftest.err conftest.$ac_ext
14299 if test $ac_fsusage_space = yes; then
14307 if test $gl_cv_fs_space = yes; then
14309 "fsusage.$ac_objext" | \
14310 *" fsusage.$ac_objext" | \
14311 "fsusage.$ac_objext "* | \
14312 *" fsusage.$ac_objext "* ) ;;
14313 *) LIBOBJS="$LIBOBJS fsusage.$ac_objext" ;;
14330 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
14332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 # Is the header compilable?
14343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14352 #include <$ac_header>
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356 (eval $ac_compile) 2>conftest.er1
14358 grep -v '^ *+' conftest.er1 >conftest.err
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try='test -z "$ac_c_werror_flag"
14364 || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_compiler=no
14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14385 echo "${ECHO_T}$ac_header_compiler" >&6
14387 # Is the header present?
14388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 #include <$ac_header>
14398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } >/dev/null; then
14406 if test -s conftest.err; then
14407 ac_cpp_err=$ac_c_preproc_warn_flag
14408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14415 if test -z "$ac_cpp_err"; then
14416 ac_header_preproc=yes
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14421 ac_header_preproc=no
14423 rm -f conftest.err conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc=yes
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451 ## ------------------------------------ ##
14452 ## Report this to bug-coreutils@gnu.org ##
14453 ## ------------------------------------ ##
14456 sed "s/^/$as_me: WARNING: /" >&2
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 eval "$as_ac_Header=\$ac_header_preproc"
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14480 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
14481 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
14482 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 #if !defined(sun) && !defined(__sun)
14493 choke -- this is a workaround for a Sun-specific problem
14495 #include <sys/types.h>
14496 #include <sys/vfs.h>
14500 struct statfs t; long c = *(t.f_spare);
14505 rm -f conftest.$ac_objext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507 (eval $ac_compile) 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 fu_cv_sys_truncating_statfs=yes
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 fu_cv_sys_truncating_statfs=no
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537 if test $fu_cv_sys_truncating_statfs = yes; then
14539 cat >>confdefs.h <<\_ACEOF
14540 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
14544 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
14545 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
14550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14551 # for constant arguments. Useless!
14552 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14553 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14554 if test "${ac_cv_working_alloca_h+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 #include <alloca.h>
14567 char *p = (char *) alloca (2 * sizeof (int));
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_cv_working_alloca_h=yes
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ac_cv_working_alloca_h=no
14601 rm -f conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14604 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14605 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14606 if test $ac_cv_working_alloca_h = yes; then
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_ALLOCA_H 1
14614 echo "$as_me:$LINENO: checking for alloca" >&5
14615 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14616 if test "${ac_cv_func_alloca_works+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14626 # define alloca __builtin_alloca
14629 # include <malloc.h>
14630 # define alloca _alloca
14633 # include <alloca.h>
14638 # ifndef alloca /* predefined by HP cc +Olibcalls */
14649 char *p = (char *) alloca (1);
14654 rm -f conftest.$ac_objext conftest$ac_exeext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656 (eval $ac_link) 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -z "$ac_c_werror_flag"
14664 || test ! -s conftest.err'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_func_alloca_works=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_cv_func_alloca_works=no
14683 rm -f conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14686 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14687 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14689 if test $ac_cv_func_alloca_works = yes; then
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_ALLOCA 1
14696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14697 # that cause trouble. Some versions do not even contain alloca or
14698 # contain a buggy version. If you still want to use their alloca,
14699 # use ar to extract alloca.o from them instead of compiling alloca.c.
14701 ALLOCA=alloca.$ac_objext
14703 cat >>confdefs.h <<\_ACEOF
14708 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14709 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14710 if test "${ac_cv_os_cray+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #if defined(CRAY) && ! defined(CRAY2)
14726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14727 $EGREP "webecray" >/dev/null 2>&1; then
14735 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14736 echo "${ECHO_T}$ac_cv_os_cray" >&6
14737 if test $ac_cv_os_cray = yes; then
14738 for ac_func in _getb67 GETB67 getb67; do
14739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14740 echo "$as_me:$LINENO: checking for $ac_func" >&5
14741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14742 if eval "test \"\${$as_ac_var+set}\" = set"; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14753 #define $ac_func innocuous_$ac_func
14755 /* System header to define __stub macros and hopefully few prototypes,
14756 which can conflict with char $ac_func (); below.
14757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14758 <limits.h> exists even on freestanding compilers. */
14761 # include <limits.h>
14763 # include <assert.h>
14768 /* Override any gcc2 internal prototype to avoid an error. */
14773 /* We use char because int might match the return type of a gcc2
14774 builtin and then its argument prototype would still apply. */
14776 /* The GNU C library defines this for functions which it implements
14777 to always fail with ENOSYS. Some functions are actually named
14778 something starting with __ and the normal name is an alias. */
14779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14782 char (*f) () = $ac_func;
14791 return f != $ac_func;
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798 (eval $ac_link) 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -z "$ac_c_werror_flag"
14806 || test ! -s conftest.err'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; } &&
14812 { ac_try='test -s conftest$ac_exeext'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14818 eval "$as_ac_var=yes"
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 eval "$as_ac_var=no"
14825 rm -f conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14830 if test `eval echo '${'$as_ac_var'}'` = yes; then
14832 cat >>confdefs.h <<_ACEOF
14833 #define CRAY_STACKSEG_END $ac_func
14842 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14843 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14844 if test "${ac_cv_c_stack_direction+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 if test "$cross_compiling" = yes; then
14848 ac_cv_c_stack_direction=0
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14857 find_stack_direction ()
14859 static char *addr = 0;
14864 return find_stack_direction ();
14867 return (&dummy > addr) ? 1 : -1;
14873 exit (find_stack_direction () < 0);
14876 rm -f conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_c_stack_direction=1
14889 echo "$as_me: program exited with status $ac_status" >&5
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ( exit $ac_status )
14894 ac_cv_c_stack_direction=-1
14896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14902 cat >>confdefs.h <<_ACEOF
14903 #define STACK_DIRECTION $ac_cv_c_stack_direction
14914 if test $ac_cv_func_alloca_works = no; then
14918 # Define an additional variable used in the Makefile substitution.
14920 cat >conftest.$ac_ext <<_ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14927 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933 $EGREP "Need own alloca" >/dev/null 2>&1; then
14944 for ac_func in atexit
14946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14947 echo "$as_me:$LINENO: checking for $ac_func" >&5
14948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14949 if eval "test \"\${$as_ac_var+set}\" = set"; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14960 #define $ac_func innocuous_$ac_func
14962 /* System header to define __stub macros and hopefully few prototypes,
14963 which can conflict with char $ac_func (); below.
14964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14965 <limits.h> exists even on freestanding compilers. */
14968 # include <limits.h>
14970 # include <assert.h>
14975 /* Override any gcc2 internal prototype to avoid an error. */
14980 /* We use char because int might match the return type of a gcc2
14981 builtin and then its argument prototype would still apply. */
14983 /* The GNU C library defines this for functions which it implements
14984 to always fail with ENOSYS. Some functions are actually named
14985 something starting with __ and the normal name is an alias. */
14986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14989 char (*f) () = $ac_func;
14998 return f != $ac_func;
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005 (eval $ac_link) 2>conftest.er1
15007 grep -v '^ *+' conftest.er1 >conftest.err
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
15012 { ac_try='test -z "$ac_c_werror_flag"
15013 || test ! -s conftest.err'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest$ac_exeext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 eval "$as_ac_var=yes"
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 eval "$as_ac_var=no"
15032 rm -f conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15044 "$ac_func.$ac_objext" | \
15045 *" $ac_func.$ac_objext" | \
15046 "$ac_func.$ac_objext "* | \
15047 *" $ac_func.$ac_objext "* ) ;;
15048 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15055 if test $ac_cv_func_atexit = no; then
15063 for ac_func in dup2
15065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 echo "$as_me:$LINENO: checking for $ac_func" >&5
15067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15068 if eval "test \"\${$as_ac_var+set}\" = set"; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15079 #define $ac_func innocuous_$ac_func
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func (); below.
15083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084 <limits.h> exists even on freestanding compilers. */
15087 # include <limits.h>
15089 # include <assert.h>
15094 /* Override any gcc2 internal prototype to avoid an error. */
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15102 /* The GNU C library defines this for functions which it implements
15103 to always fail with ENOSYS. Some functions are actually named
15104 something starting with __ and the normal name is an alias. */
15105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15108 char (*f) () = $ac_func;
15117 return f != $ac_func;
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 eval "$as_ac_var=yes"
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 eval "$as_ac_var=no"
15151 rm -f conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15156 if test `eval echo '${'$as_ac_var'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15163 "$ac_func.$ac_objext" | \
15164 *" $ac_func.$ac_objext" | \
15165 "$ac_func.$ac_objext "* | \
15166 *" $ac_func.$ac_objext "* ) ;;
15167 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15174 if test $ac_cv_func_dup2 = no; then
15189 echo "$as_me:$LINENO: checking for getgroups" >&5
15190 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
15191 if test "${ac_cv_func_getgroups+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15202 #define getgroups innocuous_getgroups
15204 /* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char getgroups (); below.
15206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207 <limits.h> exists even on freestanding compilers. */
15210 # include <limits.h>
15212 # include <assert.h>
15217 /* Override any gcc2 internal prototype to avoid an error. */
15222 /* We use char because int might match the return type of a gcc2
15223 builtin and then its argument prototype would still apply. */
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_getgroups) || defined (__stub___getgroups)
15231 char (*f) () = getgroups;
15240 return f != getgroups;
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 ac_cv_func_getgroups=yes
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_func_getgroups=no
15274 rm -f conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15278 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
15281 # If we don't yet have getgroups, see if it's in -lbsd.
15282 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15284 if test $ac_cv_func_getgroups = no; then
15285 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15286 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
15287 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 ac_check_lib_save_LIBS=$LIBS
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 /* Override any gcc2 internal prototype to avoid an error. */
15303 /* We use char because int might match the return type of a gcc2
15304 builtin and then its argument prototype would still apply. */
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -z "$ac_c_werror_flag"
15324 || test ! -s conftest.err'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_bsd_getgroups=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_lib_bsd_getgroups=no
15343 rm -f conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15347 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15348 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
15349 if test $ac_cv_lib_bsd_getgroups = yes; then
15350 GETGROUPS_LIB=-lbsd
15355 # Run the program to test the functionality of the system-supplied
15356 # getgroups function only if there is such a function.
15357 if test $ac_cv_func_getgroups = yes; then
15358 echo "$as_me:$LINENO: checking for working getgroups" >&5
15359 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
15360 if test "${ac_cv_func_getgroups_works+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 if test "$cross_compiling" = yes; then
15364 ac_cv_func_getgroups_works=no
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15376 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15377 exit (getgroups (0, 0) == -1 ? 1 : 0);
15382 rm -f conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 ac_cv_func_getgroups_works=yes
15395 echo "$as_me: program exited with status $ac_status" >&5
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ( exit $ac_status )
15400 ac_cv_func_getgroups_works=no
15402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15406 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15407 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
15408 if test $ac_cv_func_getgroups_works = yes; then
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_GETGROUPS 1
15421 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
15422 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
15423 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 $ac_includes_default
15437 char *p = (char *) euidaccess;
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -z "$ac_c_werror_flag"
15454 || test ! -s conftest.err'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_cv_have_decl_euidaccess=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_cv_have_decl_euidaccess=no
15473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
15476 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
15477 if test $ac_cv_have_decl_euidaccess = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_DECL_EUIDACCESS 1
15485 cat >>confdefs.h <<_ACEOF
15486 #define HAVE_DECL_EUIDACCESS 0
15494 for ac_func in euidaccess
15496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 echo "$as_me:$LINENO: checking for $ac_func" >&5
15498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_var+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15510 #define $ac_func innocuous_$ac_func
15512 /* System header to define __stub macros and hopefully few prototypes,
15513 which can conflict with char $ac_func (); below.
15514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515 <limits.h> exists even on freestanding compilers. */
15518 # include <limits.h>
15520 # include <assert.h>
15525 /* Override any gcc2 internal prototype to avoid an error. */
15530 /* We use char because int might match the return type of a gcc2
15531 builtin and then its argument prototype would still apply. */
15533 /* The GNU C library defines this for functions which it implements
15534 to always fail with ENOSYS. Some functions are actually named
15535 something starting with __ and the normal name is an alias. */
15536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15539 char (*f) () = $ac_func;
15548 return f != $ac_func;
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555 (eval $ac_link) 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
15562 { ac_try='test -z "$ac_c_werror_flag"
15563 || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest$ac_exeext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 eval "$as_ac_var=yes"
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 eval "$as_ac_var=no"
15582 rm -f conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15587 if test `eval echo '${'$as_ac_var'}'` = yes; then
15588 cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 "$ac_func.$ac_objext" | \
15595 *" $ac_func.$ac_objext" | \
15596 "$ac_func.$ac_objext "* | \
15597 *" $ac_func.$ac_objext "* ) ;;
15598 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15605 if test $ac_cv_func_euidaccess = no; then
15618 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15619 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15620 if test "${ac_cv_type_mbstate_t+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 $ac_includes_default
15630 # include <wchar.h>
15634 mbstate_t x; return sizeof x;
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1 >conftest.err
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag"
15649 || test ! -s conftest.err'
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); }; } &&
15655 { ac_try='test -s conftest.$ac_objext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661 ac_cv_type_mbstate_t=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_type_mbstate_t=no
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
15671 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
15672 if test $ac_cv_type_mbstate_t = yes; then
15674 cat >>confdefs.h <<\_ACEOF
15675 #define HAVE_MBSTATE_T 1
15680 cat >>confdefs.h <<\_ACEOF
15681 #define mbstate_t int
15689 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
15690 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
15691 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 # Some versions of Solaris, SCO, and the GNU C Library
15695 # have a broken or incompatible fnmatch.
15696 # So we run a test program. If we are cross-compiling, take no chance.
15697 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
15698 if test "$cross_compiling" = yes; then
15699 ac_cv_func_fnmatch_gnu=cross
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 # include <stdlib.h>
15709 # include <fnmatch.h>
15710 # define y(a, b, c) (fnmatch (a, b, c) == 0)
15711 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15717 (!(y ("a*", "abc", 0)
15718 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15719 && y ("a\\\\bc", "abc", 0)
15720 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15721 && y ("*x", ".x", 0)
15722 && n ("*x", ".x", FNM_PERIOD)
15723 && y ("xxXX", "xXxX", FNM_CASEFOLD)
15724 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
15725 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
15726 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
15727 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
15728 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_func_fnmatch_gnu=yes
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ( exit $ac_status )
15751 ac_cv_func_fnmatch_gnu=no
15753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
15757 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
15758 if test $ac_cv_func_fnmatch_gnu = yes; then
15759 rm -f lib/fnmatch.h
15761 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15762 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
15763 if test "${ac_cv_have_decl_getenv+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 $ac_includes_default
15777 char *p = (char *) getenv;
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15788 grep -v '^ *+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_have_decl_getenv=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_cv_have_decl_getenv=no
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15816 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
15817 if test $ac_cv_have_decl_getenv = yes; then
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_DECL_GETENV 1
15825 cat >>confdefs.h <<_ACEOF
15826 #define HAVE_DECL_GETENV 0
15837 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
15839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840 echo "$as_me:$LINENO: checking for $ac_func" >&5
15841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_var+set}\" = set"; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15853 #define $ac_func innocuous_$ac_func
15855 /* System header to define __stub macros and hopefully few prototypes,
15856 which can conflict with char $ac_func (); below.
15857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15858 <limits.h> exists even on freestanding compilers. */
15861 # include <limits.h>
15863 # include <assert.h>
15868 /* Override any gcc2 internal prototype to avoid an error. */
15873 /* We use char because int might match the return type of a gcc2
15874 builtin and then its argument prototype would still apply. */
15876 /* The GNU C library defines this for functions which it implements
15877 to always fail with ENOSYS. Some functions are actually named
15878 something starting with __ and the normal name is an alias. */
15879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15882 char (*f) () = $ac_func;
15891 return f != $ac_func;
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15898 (eval $ac_link) 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag"
15906 || test ! -s conftest.err'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest$ac_exeext'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 eval "$as_ac_var=yes"
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 eval "$as_ac_var=no"
15925 rm -f conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
15928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15930 if test `eval echo '${'$as_ac_var'}'` = yes; then
15931 cat >>confdefs.h <<_ACEOF
15932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15940 for ac_header in wchar.h wctype.h
15942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15944 echo "$as_me:$LINENO: checking for $ac_header" >&5
15945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15952 # Is the header compilable?
15953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 $ac_includes_default
15962 #include <$ac_header>
15964 rm -f conftest.$ac_objext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15966 (eval $ac_compile) 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -z "$ac_c_werror_flag"
15974 || test ! -s conftest.err'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; } &&
15980 { ac_try='test -s conftest.$ac_objext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_header_compiler=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_compiler=no
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6
15997 # Is the header present?
15998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16011 grep -v '^ *+' conftest.er1 >conftest.err
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev/null; then
16016 if test -s conftest.err; then
16017 ac_cpp_err=$ac_c_preproc_warn_flag
16018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16025 if test -z "$ac_cpp_err"; then
16026 ac_header_preproc=yes
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_header_preproc=no
16033 rm -f conftest.err conftest.$ac_ext
16034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16035 echo "${ECHO_T}$ac_header_preproc" >&6
16037 # So? What about this header?
16038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16044 ac_header_preproc=yes
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16061 ## ------------------------------------ ##
16062 ## Report this to bug-coreutils@gnu.org ##
16063 ## ------------------------------------ ##
16066 sed "s/^/$as_me: WARNING: /" >&2
16069 echo "$as_me:$LINENO: checking for $ac_header" >&5
16070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 eval "$as_ac_Header=\$ac_header_preproc"
16076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16081 cat >>confdefs.h <<_ACEOF
16082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16090 "fnmatch.$ac_objext" | \
16091 *" fnmatch.$ac_objext" | \
16092 "fnmatch.$ac_objext "* | \
16093 *" fnmatch.$ac_objext "* ) ;;
16094 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
16097 FNMATCH_H=fnmatch.h
16102 if test $ac_cv_func_fnmatch_gnu != yes; then
16104 cat >>confdefs.h <<\_ACEOF
16105 #define fnmatch gnu_fnmatch
16113 for ac_func in gethostname
16115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16116 echo "$as_me:$LINENO: checking for $ac_func" >&5
16117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16118 if eval "test \"\${$as_ac_var+set}\" = set"; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 cat >conftest.$ac_ext <<_ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16129 #define $ac_func innocuous_$ac_func
16131 /* System header to define __stub macros and hopefully few prototypes,
16132 which can conflict with char $ac_func (); below.
16133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16134 <limits.h> exists even on freestanding compilers. */
16137 # include <limits.h>
16139 # include <assert.h>
16144 /* Override any gcc2 internal prototype to avoid an error. */
16149 /* We use char because int might match the return type of a gcc2
16150 builtin and then its argument prototype would still apply. */
16152 /* The GNU C library defines this for functions which it implements
16153 to always fail with ENOSYS. Some functions are actually named
16154 something starting with __ and the normal name is an alias. */
16155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16158 char (*f) () = $ac_func;
16167 return f != $ac_func;
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest$ac_exeext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 eval "$as_ac_var=yes"
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 eval "$as_ac_var=no"
16201 rm -f conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16206 if test `eval echo '${'$as_ac_var'}'` = yes; then
16207 cat >>confdefs.h <<_ACEOF
16208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16213 "$ac_func.$ac_objext" | \
16214 *" $ac_func.$ac_objext" | \
16215 "$ac_func.$ac_objext "* | \
16216 *" $ac_func.$ac_objext "* ) ;;
16217 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16224 if test $ac_cv_func_gethostname = no; then
16227 for ac_func in uname
16229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16230 echo "$as_me:$LINENO: checking for $ac_func" >&5
16231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16232 if eval "test \"\${$as_ac_var+set}\" = set"; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16243 #define $ac_func innocuous_$ac_func
16245 /* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char $ac_func (); below.
16247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16248 <limits.h> exists even on freestanding compilers. */
16251 # include <limits.h>
16253 # include <assert.h>
16258 /* Override any gcc2 internal prototype to avoid an error. */
16263 /* We use char because int might match the return type of a gcc2
16264 builtin and then its argument prototype would still apply. */
16266 /* The GNU C library defines this for functions which it implements
16267 to always fail with ENOSYS. Some functions are actually named
16268 something starting with __ and the normal name is an alias. */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16272 char (*f) () = $ac_func;
16281 return f != $ac_func;
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288 (eval $ac_link) 2>conftest.er1
16290 grep -v '^ *+' conftest.er1 >conftest.err
16292 cat conftest.err >&5
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } &&
16295 { ac_try='test -z "$ac_c_werror_flag"
16296 || test ! -s conftest.err'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest$ac_exeext'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 eval "$as_ac_var=yes"
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16313 eval "$as_ac_var=no"
16315 rm -f conftest.err conftest.$ac_objext \
16316 conftest$ac_exeext conftest.$ac_ext
16318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16331 ac_have_func=no # yes means we've found a way to get the load average.
16333 # Make sure getloadavg.c is where it belongs, at configure-time.
16334 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16335 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16336 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16337 { (exit 1); exit 1; }; }
16341 # Check for getloadavg, but be sure not to touch the cache variable.
16342 (echo "$as_me:$LINENO: checking for getloadavg" >&5
16343 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
16344 if test "${ac_cv_func_getloadavg+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16355 #define getloadavg innocuous_getloadavg
16357 /* System header to define __stub macros and hopefully few prototypes,
16358 which can conflict with char getloadavg (); below.
16359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16360 <limits.h> exists even on freestanding compilers. */
16363 # include <limits.h>
16365 # include <assert.h>
16370 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377 char getloadavg ();
16378 /* The GNU C library defines this for functions which it implements
16379 to always fail with ENOSYS. Some functions are actually named
16380 something starting with __ and the normal name is an alias. */
16381 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
16384 char (*f) () = getloadavg;
16393 return f != getloadavg;
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400 (eval $ac_link) 2>conftest.er1
16402 grep -v '^ *+' conftest.er1 >conftest.err
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -z "$ac_c_werror_flag"
16408 || test ! -s conftest.err'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest$ac_exeext'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_func_getloadavg=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_func_getloadavg=no
16427 rm -f conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16430 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16431 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
16432 if test $ac_cv_func_getloadavg = yes; then
16437 ) && ac_have_func=yes
16439 # On HPUX9, an unprivileged user can get load averages through this function.
16441 for ac_func in pstat_getdynamic
16443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16444 echo "$as_me:$LINENO: checking for $ac_func" >&5
16445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_var+set}\" = set"; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16457 #define $ac_func innocuous_$ac_func
16459 /* System header to define __stub macros and hopefully few prototypes,
16460 which can conflict with char $ac_func (); below.
16461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16462 <limits.h> exists even on freestanding compilers. */
16465 # include <limits.h>
16467 # include <assert.h>
16472 /* Override any gcc2 internal prototype to avoid an error. */
16477 /* We use char because int might match the return type of a gcc2
16478 builtin and then its argument prototype would still apply. */
16480 /* The GNU C library defines this for functions which it implements
16481 to always fail with ENOSYS. Some functions are actually named
16482 something starting with __ and the normal name is an alias. */
16483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16486 char (*f) () = $ac_func;
16495 return f != $ac_func;
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502 (eval $ac_link) 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag"
16510 || test ! -s conftest.err'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 eval "$as_ac_var=yes"
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 eval "$as_ac_var=no"
16529 rm -f conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16534 if test `eval echo '${'$as_ac_var'}'` = yes; then
16535 cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16543 # Solaris has libkstat which does not require root.
16545 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16546 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16547 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-lkstat $LIBS"
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16559 /* Override any gcc2 internal prototype to avoid an error. */
16563 /* We use char because int might match the return type of a gcc2
16564 builtin and then its argument prototype would still apply. */
16565 char kstat_open ();
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>conftest.er1
16578 grep -v '^ *+' conftest.er1 >conftest.err
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag"
16584 || test ! -s conftest.err'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest$ac_exeext'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596 ac_cv_lib_kstat_kstat_open=yes
16598 echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16601 ac_cv_lib_kstat_kstat_open=no
16603 rm -f conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16608 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16609 if test $ac_cv_lib_kstat_kstat_open = yes; then
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_LIBKSTAT 1
16614 LIBS="-lkstat $LIBS"
16618 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16620 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16621 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16622 # to get the right answer into the cache.
16623 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16624 if test $ac_have_func = no; then
16625 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16626 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16627 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 ac_check_lib_save_LIBS=$LIBS
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16639 /* Override any gcc2 internal prototype to avoid an error. */
16643 /* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_lib_elf_elf_begin=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_lib_elf_elf_begin=no
16683 rm -f conftest.err conftest.$ac_objext \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16687 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16688 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16689 if test $ac_cv_lib_elf_elf_begin = yes; then
16694 if test $ac_have_func = no; then
16695 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16696 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16697 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 ac_check_lib_save_LIBS=$LIBS
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any gcc2 internal prototype to avoid an error. */
16713 /* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_lib_kvm_kvm_open=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_kvm_kvm_open=no
16753 rm -f conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16758 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16759 if test $ac_cv_lib_kvm_kvm_open = yes; then
16763 # Check for the 4.4BSD definition of getloadavg.
16764 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16765 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16766 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 ac_check_lib_save_LIBS=$LIBS
16770 LIBS="-lutil $LIBS"
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16778 /* Override any gcc2 internal prototype to avoid an error. */
16782 /* We use char because int might match the return type of a gcc2
16783 builtin and then its argument prototype would still apply. */
16784 char getloadavg ();
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_lib_util_getloadavg=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_lib_util_getloadavg=no
16822 rm -f conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16827 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16828 if test $ac_cv_lib_util_getloadavg = yes; then
16829 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16834 if test $ac_have_func = no; then
16835 # There is a commonly available library for RS/6000 AIX.
16836 # Since it is not a standard part of AIX, it might be installed locally.
16837 ac_getloadavg_LIBS=$LIBS
16838 LIBS="-L/usr/local/lib $LIBS"
16839 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16840 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16841 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 ac_check_lib_save_LIBS=$LIBS
16845 LIBS="-lgetloadavg $LIBS"
16846 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 /* Override any gcc2 internal prototype to avoid an error. */
16857 /* We use char because int might match the return type of a gcc2
16858 builtin and then its argument prototype would still apply. */
16859 char getloadavg ();
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870 (eval $ac_link) 2>conftest.er1
16872 grep -v '^ *+' conftest.er1 >conftest.err
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag"
16878 || test ! -s conftest.err'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_lib_getloadavg_getloadavg=yes
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 ac_cv_lib_getloadavg_getloadavg=no
16897 rm -f conftest.err conftest.$ac_objext \
16898 conftest$ac_exeext conftest.$ac_ext
16899 LIBS=$ac_check_lib_save_LIBS
16901 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16902 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16903 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16904 LIBS="-lgetloadavg $LIBS"
16906 LIBS=$ac_getloadavg_LIBS
16911 # Make sure it is really in the library, if we think we found it,
16912 # otherwise set up the replacement function.
16914 for ac_func in getloadavg
16916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917 echo "$as_me:$LINENO: checking for $ac_func" >&5
16918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16919 if eval "test \"\${$as_ac_var+set}\" = set"; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define $ac_func innocuous_$ac_func
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char $ac_func (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16945 /* Override any gcc2 internal prototype to avoid an error. */
16950 /* We use char because int might match the return type of a gcc2
16951 builtin and then its argument prototype would still apply. */
16953 /* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16959 char (*f) () = $ac_func;
16968 return f != $ac_func;
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 eval "$as_ac_var=yes"
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 eval "$as_ac_var=no"
17002 rm -f conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17007 if test `eval echo '${'$as_ac_var'}'` = yes; then
17008 cat >>confdefs.h <<_ACEOF
17009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17014 "getloadavg.$ac_objext" | \
17015 *" getloadavg.$ac_objext" | \
17016 "getloadavg.$ac_objext "* | \
17017 *" getloadavg.$ac_objext "* ) ;;
17018 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
17022 cat >>confdefs.h <<\_ACEOF
17023 #define C_GETLOADAVG 1
17026 # Figure out what our getloadavg.c needs.
17028 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17029 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17030 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
17031 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17035 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
17037 # Is the header compilable?
17038 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17039 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 $ac_includes_default
17047 #include <sys/dg_sys_info.h>
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_header_compiler=yes
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_header_compiler=no
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17080 echo "${ECHO_T}$ac_header_compiler" >&6
17082 # Is the header present?
17083 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17084 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 #include <sys/dg_sys_info.h>
17093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17096 grep -v '^ *+' conftest.er1 >conftest.err
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } >/dev/null; then
17101 if test -s conftest.err; then
17102 ac_cpp_err=$ac_c_preproc_warn_flag
17103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17110 if test -z "$ac_cpp_err"; then
17111 ac_header_preproc=yes
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_header_preproc=no
17118 rm -f conftest.err conftest.$ac_ext
17119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17120 echo "${ECHO_T}$ac_header_preproc" >&6
17122 # So? What about this header?
17123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17125 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17126 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17128 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17129 ac_header_preproc=yes
17132 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17133 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17135 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17137 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17139 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17141 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17143 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17146 ## ------------------------------------ ##
17147 ## Report this to bug-coreutils@gnu.org ##
17148 ## ------------------------------------ ##
17151 sed "s/^/$as_me: WARNING: /" >&2
17154 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17155 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
17156 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17162 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
17165 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17168 cat >>confdefs.h <<\_ACEOF
17173 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17174 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
17175 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 ac_check_lib_save_LIBS=$LIBS
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 /* Override any gcc2 internal prototype to avoid an error. */
17191 /* We use char because int might match the return type of a gcc2
17192 builtin and then its argument prototype would still apply. */
17193 char dg_sys_info ();
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag"
17212 || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_lib_dgc_dg_sys_info=yes
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 ac_cv_lib_dgc_dg_sys_info=no
17231 rm -f conftest.err conftest.$ac_objext \
17232 conftest$ac_exeext conftest.$ac_ext
17233 LIBS=$ac_check_lib_save_LIBS
17235 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17236 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
17237 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_LIBDGC 1
17250 if test "${ac_cv_header_locale_h+set}" = set; then
17251 echo "$as_me:$LINENO: checking for locale.h" >&5
17252 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
17253 if test "${ac_cv_header_locale_h+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17257 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
17259 # Is the header compilable?
17260 echo "$as_me:$LINENO: checking locale.h usability" >&5
17261 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17269 #include <locale.h>
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_header_compiler=yes
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_header_compiler=no
17300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6
17304 # Is the header present?
17305 echo "$as_me:$LINENO: checking locale.h presence" >&5
17306 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <locale.h>
17315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } >/dev/null; then
17323 if test -s conftest.err; then
17324 ac_cpp_err=$ac_c_preproc_warn_flag
17325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17332 if test -z "$ac_cpp_err"; then
17333 ac_header_preproc=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_header_preproc=no
17340 rm -f conftest.err conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17342 echo "${ECHO_T}$ac_header_preproc" >&6
17344 # So? What about this header?
17345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17347 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17348 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17350 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17351 ac_header_preproc=yes
17354 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17355 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17357 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17359 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17361 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17363 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17365 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17368 ## ------------------------------------ ##
17369 ## Report this to bug-coreutils@gnu.org ##
17370 ## ------------------------------------ ##
17373 sed "s/^/$as_me: WARNING: /" >&2
17376 echo "$as_me:$LINENO: checking for locale.h" >&5
17377 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
17378 if test "${ac_cv_header_locale_h+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 ac_cv_header_locale_h=$ac_header_preproc
17383 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17384 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
17390 for ac_func in setlocale
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_var+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.$ac_ext <<_ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17406 #define $ac_func innocuous_$ac_func
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func (); below.
17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411 <limits.h> exists even on freestanding compilers. */
17414 # include <limits.h>
17416 # include <assert.h>
17421 /* Override any gcc2 internal prototype to avoid an error. */
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17429 /* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17435 char (*f) () = $ac_func;
17444 return f != $ac_func;
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag"
17459 || test ! -s conftest.err'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest$ac_exeext'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
17471 eval "$as_ac_var=yes"
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 eval "$as_ac_var=no"
17478 rm -f conftest.err conftest.$ac_objext \
17479 conftest$ac_exeext conftest.$ac_ext
17481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17483 if test `eval echo '${'$as_ac_var'}'` = yes; then
17484 cat >>confdefs.h <<_ACEOF
17485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17492 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17493 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17494 # Irix 4.0.5F has the header but not the library.
17495 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17498 cat >>confdefs.h <<\_ACEOF
17504 if test $ac_have_func = no; then
17505 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17506 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17507 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17508 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17514 # Is the header compilable?
17515 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17516 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17517 cat >conftest.$ac_ext <<_ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17524 #include <inq_stats/cpustats.h>
17526 rm -f conftest.$ac_objext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_header_compiler=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_header_compiler=no
17555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17557 echo "${ECHO_T}$ac_header_compiler" >&6
17559 # Is the header present?
17560 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17561 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 #include <inq_stats/cpustats.h>
17570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } >/dev/null; then
17578 if test -s conftest.err; then
17579 ac_cpp_err=$ac_c_preproc_warn_flag
17580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17587 if test -z "$ac_cpp_err"; then
17588 ac_header_preproc=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17595 rm -f conftest.err conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17597 echo "${ECHO_T}$ac_header_preproc" >&6
17599 # So? What about this header?
17600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17602 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17603 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17604 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17605 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17606 ac_header_preproc=yes
17609 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17610 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17611 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17612 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17613 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17614 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17616 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17618 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17620 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17623 ## ------------------------------------ ##
17624 ## Report this to bug-coreutils@gnu.org ##
17625 ## ------------------------------------ ##
17628 sed "s/^/$as_me: WARNING: /" >&2
17631 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17632 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17633 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17638 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17639 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17642 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17645 cat >>confdefs.h <<\_ACEOF
17650 cat >>confdefs.h <<\_ACEOF
17659 if test $ac_have_func = no; then
17660 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17661 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17662 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17663 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17667 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17669 # Is the header compilable?
17670 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17671 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 $ac_includes_default
17679 #include <sys/cpustats.h>
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683 (eval $ac_compile) 2>conftest.er1
17685 grep -v '^ *+' conftest.er1 >conftest.err
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try='test -z "$ac_c_werror_flag"
17691 || test ! -s conftest.err'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_header_compiler=yes
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 ac_header_compiler=no
17710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17712 echo "${ECHO_T}$ac_header_compiler" >&6
17714 # Is the header present?
17715 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17716 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17717 cat >conftest.$ac_ext <<_ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <sys/cpustats.h>
17725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } >/dev/null; then
17733 if test -s conftest.err; then
17734 ac_cpp_err=$ac_c_preproc_warn_flag
17735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17742 if test -z "$ac_cpp_err"; then
17743 ac_header_preproc=yes
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 ac_header_preproc=no
17750 rm -f conftest.err conftest.$ac_ext
17751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17752 echo "${ECHO_T}$ac_header_preproc" >&6
17754 # So? What about this header?
17755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17757 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17758 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17759 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17760 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17761 ac_header_preproc=yes
17764 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17765 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17766 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17767 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17769 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17771 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17773 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17775 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17778 ## ------------------------------------ ##
17779 ## Report this to bug-coreutils@gnu.org ##
17780 ## ------------------------------------ ##
17783 sed "s/^/$as_me: WARNING: /" >&2
17786 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17787 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17788 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17793 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17794 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17797 if test $ac_cv_header_sys_cpustats_h = yes; then
17798 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17807 if test $ac_have_func = no; then
17809 for ac_header in mach/mach.h
17811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17813 echo "$as_me:$LINENO: checking for $ac_header" >&5
17814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17821 # Is the header compilable?
17822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 $ac_includes_default
17831 #include <$ac_header>
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest.$ac_objext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 ac_header_compiler=yes
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 ac_header_compiler=no
17862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17864 echo "${ECHO_T}$ac_header_compiler" >&6
17866 # Is the header present?
17867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17869 cat >conftest.$ac_ext <<_ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17875 #include <$ac_header>
17877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } >/dev/null; then
17885 if test -s conftest.err; then
17886 ac_cpp_err=$ac_c_preproc_warn_flag
17887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17894 if test -z "$ac_cpp_err"; then
17895 ac_header_preproc=yes
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ac_header_preproc=no
17902 rm -f conftest.err conftest.$ac_ext
17903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17904 echo "${ECHO_T}$ac_header_preproc" >&6
17906 # So? What about this header?
17907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17913 ac_header_preproc=yes
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17930 ## ------------------------------------ ##
17931 ## Report this to bug-coreutils@gnu.org ##
17932 ## ------------------------------------ ##
17935 sed "s/^/$as_me: WARNING: /" >&2
17938 echo "$as_me:$LINENO: checking for $ac_header" >&5
17939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 eval "$as_ac_Header=\$ac_header_preproc"
17945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17961 for ac_header in nlist.h
17963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17965 echo "$as_me:$LINENO: checking for $ac_header" >&5
17966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17973 # Is the header compilable?
17974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h. */
17982 $ac_includes_default
17983 #include <$ac_header>
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_header_compiler=yes
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_header_compiler=no
18014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18016 echo "${ECHO_T}$ac_header_compiler" >&6
18018 # Is the header present?
18019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 #include <$ac_header>
18029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } >/dev/null; then
18037 if test -s conftest.err; then
18038 ac_cpp_err=$ac_c_preproc_warn_flag
18039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18046 if test -z "$ac_cpp_err"; then
18047 ac_header_preproc=yes
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_header_preproc=no
18054 rm -f conftest.err conftest.$ac_ext
18055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18056 echo "${ECHO_T}$ac_header_preproc" >&6
18058 # So? What about this header?
18059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18065 ac_header_preproc=yes
18068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18082 ## ------------------------------------ ##
18083 ## Report this to bug-coreutils@gnu.org ##
18084 ## ------------------------------------ ##
18087 sed "s/^/$as_me: WARNING: /" >&2
18090 echo "$as_me:$LINENO: checking for $ac_header" >&5
18091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 eval "$as_ac_Header=\$ac_header_preproc"
18097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18105 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18106 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
18107 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 cat >conftest.$ac_ext <<_ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18121 static struct nlist ac_aggr;
18122 if (ac_aggr.n_un.n_name)
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag"
18138 || test ! -s conftest.err'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 ac_cv_member_struct_nlist_n_un_n_name=yes
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18166 static struct nlist ac_aggr;
18167 if (sizeof ac_aggr.n_un.n_name)
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175 (eval $ac_compile) 2>conftest.er1
18177 grep -v '^ *+' conftest.er1 >conftest.err
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_cv_member_struct_nlist_n_un_n_name=yes
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 ac_cv_member_struct_nlist_n_un_n_name=no
18202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18207 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
18208 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18210 cat >>confdefs.h <<_ACEOF
18211 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18215 cat >>confdefs.h <<\_ACEOF
18216 #define NLIST_NAME_UNION 1
18230 # Some definitions of getloadavg require that the program be installed setgid.
18231 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18232 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
18233 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18243 #ifdef LDAV_PRIVILEGED
18244 Yowza Am I SETGID yet
18247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18248 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18249 ac_cv_func_getloadavg_setgid=yes
18251 ac_cv_func_getloadavg_setgid=no
18256 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18257 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
18258 if test $ac_cv_func_getloadavg_setgid = yes; then
18261 cat >>confdefs.h <<\_ACEOF
18262 #define GETLOADAVG_PRIVILEGED 1
18269 if test $ac_cv_func_getloadavg_setgid = yes; then
18270 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18271 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
18272 if test "${ac_cv_group_kmem+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18276 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18277 # If we got an error (system does not support symlinks), try without -L.
18278 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18279 ac_cv_group_kmem=`echo $ac_ls_output \
18280 | sed -ne 's/[ ][ ]*/ /g;
18281 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18285 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18286 echo "${ECHO_T}$ac_cv_group_kmem" >&6
18287 KMEM_GROUP=$ac_cv_group_kmem
18289 if test "x$ac_save_LIBS" = x; then
18290 GETLOADAVG_LIBS=$LIBS
18292 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18299 for ac_header in stdio_ext.h
18301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18303 echo "$as_me:$LINENO: checking for $ac_header" >&5
18304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18311 # Is the header compilable?
18312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 $ac_includes_default
18321 #include <$ac_header>
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325 (eval $ac_compile) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_header_compiler=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_header_compiler=no
18352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18354 echo "${ECHO_T}$ac_header_compiler" >&6
18356 # Is the header present?
18357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18359 cat >conftest.$ac_ext <<_ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18365 #include <$ac_header>
18367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } >/dev/null; then
18375 if test -s conftest.err; then
18376 ac_cpp_err=$ac_c_preproc_warn_flag
18377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18384 if test -z "$ac_cpp_err"; then
18385 ac_header_preproc=yes
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_preproc=no
18392 rm -f conftest.err conftest.$ac_ext
18393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18394 echo "${ECHO_T}$ac_header_preproc" >&6
18396 # So? What about this header?
18397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18403 ac_header_preproc=yes
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18420 ## ------------------------------------ ##
18421 ## Report this to bug-coreutils@gnu.org ##
18422 ## ------------------------------------ ##
18425 sed "s/^/$as_me: WARNING: /" >&2
18428 echo "$as_me:$LINENO: checking for $ac_header" >&5
18429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 eval "$as_ac_Header=\$ac_header_preproc"
18435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18451 for ac_func in getpass
18453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18454 echo "$as_me:$LINENO: checking for $ac_func" >&5
18455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18456 if eval "test \"\${$as_ac_var+set}\" = set"; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 cat >conftest.$ac_ext <<_ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18467 #define $ac_func innocuous_$ac_func
18469 /* System header to define __stub macros and hopefully few prototypes,
18470 which can conflict with char $ac_func (); below.
18471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472 <limits.h> exists even on freestanding compilers. */
18475 # include <limits.h>
18477 # include <assert.h>
18482 /* Override any gcc2 internal prototype to avoid an error. */
18487 /* We use char because int might match the return type of a gcc2
18488 builtin and then its argument prototype would still apply. */
18490 /* The GNU C library defines this for functions which it implements
18491 to always fail with ENOSYS. Some functions are actually named
18492 something starting with __ and the normal name is an alias. */
18493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18496 char (*f) () = $ac_func;
18505 return f != $ac_func;
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest$ac_exeext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 eval "$as_ac_var=yes"
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 eval "$as_ac_var=no"
18539 rm -f conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18544 if test `eval echo '${'$as_ac_var'}'` = yes; then
18545 cat >>confdefs.h <<_ACEOF
18546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18551 "$ac_func.$ac_objext" | \
18552 *" $ac_func.$ac_objext" | \
18553 "$ac_func.$ac_objext "* | \
18554 *" $ac_func.$ac_objext "* ) ;;
18555 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18562 if test $ac_cv_func_getpass = no; then
18577 for ac_func in getusershell
18579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580 echo "$as_me:$LINENO: checking for $ac_func" >&5
18581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18582 if eval "test \"\${$as_ac_var+set}\" = set"; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18593 #define $ac_func innocuous_$ac_func
18595 /* System header to define __stub macros and hopefully few prototypes,
18596 which can conflict with char $ac_func (); below.
18597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18598 <limits.h> exists even on freestanding compilers. */
18601 # include <limits.h>
18603 # include <assert.h>
18608 /* Override any gcc2 internal prototype to avoid an error. */
18613 /* We use char because int might match the return type of a gcc2
18614 builtin and then its argument prototype would still apply. */
18616 /* The GNU C library defines this for functions which it implements
18617 to always fail with ENOSYS. Some functions are actually named
18618 something starting with __ and the normal name is an alias. */
18619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18622 char (*f) () = $ac_func;
18631 return f != $ac_func;
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638 (eval $ac_link) 2>conftest.er1
18640 grep -v '^ *+' conftest.er1 >conftest.err
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
18645 { ac_try='test -z "$ac_c_werror_flag"
18646 || test ! -s conftest.err'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try='test -s conftest$ac_exeext'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 eval "$as_ac_var=yes"
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no"
18665 rm -f conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671 cat >>confdefs.h <<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18677 "$ac_func.$ac_objext" | \
18678 *" $ac_func.$ac_objext" | \
18679 "$ac_func.$ac_objext "* | \
18680 *" $ac_func.$ac_objext "* ) ;;
18681 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18688 if test $ac_cv_func_getusershell = no; then
18703 for ac_func in memchr
18705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18706 echo "$as_me:$LINENO: checking for $ac_func" >&5
18707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18708 if eval "test \"\${$as_ac_var+set}\" = set"; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18719 #define $ac_func innocuous_$ac_func
18721 /* System header to define __stub macros and hopefully few prototypes,
18722 which can conflict with char $ac_func (); below.
18723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724 <limits.h> exists even on freestanding compilers. */
18727 # include <limits.h>
18729 # include <assert.h>
18734 /* Override any gcc2 internal prototype to avoid an error. */
18739 /* We use char because int might match the return type of a gcc2
18740 builtin and then its argument prototype would still apply. */
18742 /* The GNU C library defines this for functions which it implements
18743 to always fail with ENOSYS. Some functions are actually named
18744 something starting with __ and the normal name is an alias. */
18745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18748 char (*f) () = $ac_func;
18757 return f != $ac_func;
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18764 (eval $ac_link) 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try='test -z "$ac_c_werror_flag"
18772 || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 eval "$as_ac_var=yes"
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 eval "$as_ac_var=no"
18791 rm -f conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18796 if test `eval echo '${'$as_ac_var'}'` = yes; then
18797 cat >>confdefs.h <<_ACEOF
18798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18803 "$ac_func.$ac_objext" | \
18804 *" $ac_func.$ac_objext" | \
18805 "$ac_func.$ac_objext "* | \
18806 *" $ac_func.$ac_objext "* ) ;;
18807 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18814 if test $ac_cv_func_memchr = no; then
18817 for ac_header in bp-sym.h
18819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo "$as_me:$LINENO: checking for $ac_header" >&5
18822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18829 # Is the header compilable?
18830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 $ac_includes_default
18839 #include <$ac_header>
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_header_compiler=yes
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_compiler=no
18870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18872 echo "${ECHO_T}$ac_header_compiler" >&6
18874 # Is the header present?
18875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 #include <$ac_header>
18885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } >/dev/null; then
18893 if test -s conftest.err; then
18894 ac_cpp_err=$ac_c_preproc_warn_flag
18895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18902 if test -z "$ac_cpp_err"; then
18903 ac_header_preproc=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_header_preproc=no
18910 rm -f conftest.err conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18912 echo "${ECHO_T}$ac_header_preproc" >&6
18914 # So? What about this header?
18915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18921 ac_header_preproc=yes
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18938 ## ------------------------------------ ##
18939 ## Report this to bug-coreutils@gnu.org ##
18940 ## ------------------------------------ ##
18943 sed "s/^/$as_me: WARNING: /" >&2
18946 echo "$as_me:$LINENO: checking for $ac_header" >&5
18947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 eval "$as_ac_Header=\$ac_header_preproc"
18953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18958 cat >>confdefs.h <<_ACEOF
18959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18971 for ac_func in memcpy
18973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18974 echo "$as_me:$LINENO: checking for $ac_func" >&5
18975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_var+set}\" = set"; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18987 #define $ac_func innocuous_$ac_func
18989 /* System header to define __stub macros and hopefully few prototypes,
18990 which can conflict with char $ac_func (); below.
18991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18992 <limits.h> exists even on freestanding compilers. */
18995 # include <limits.h>
18997 # include <assert.h>
19002 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19010 /* The GNU C library defines this for functions which it implements
19011 to always fail with ENOSYS. Some functions are actually named
19012 something starting with __ and the normal name is an alias. */
19013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19016 char (*f) () = $ac_func;
19025 return f != $ac_func;
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032 (eval $ac_link) 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag"
19040 || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 eval "$as_ac_var=yes"
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 eval "$as_ac_var=no"
19059 rm -f conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19064 if test `eval echo '${'$as_ac_var'}'` = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19071 "$ac_func.$ac_objext" | \
19072 *" $ac_func.$ac_objext" | \
19073 "$ac_func.$ac_objext "* | \
19074 *" $ac_func.$ac_objext "* ) ;;
19075 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19082 if test $ac_cv_func_memcpy = no; then
19090 for ac_func in memmove
19092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093 echo "$as_me:$LINENO: checking for $ac_func" >&5
19094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19095 if eval "test \"\${$as_ac_var+set}\" = set"; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define $ac_func innocuous_$ac_func
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19114 # include <limits.h>
19116 # include <assert.h>
19121 /* Override any gcc2 internal prototype to avoid an error. */
19126 /* We use char because int might match the return type of a gcc2
19127 builtin and then its argument prototype would still apply. */
19129 /* The GNU C library defines this for functions which it implements
19130 to always fail with ENOSYS. Some functions are actually named
19131 something starting with __ and the normal name is an alias. */
19132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19135 char (*f) () = $ac_func;
19144 return f != $ac_func;
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
19158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 eval "$as_ac_var=yes"
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 eval "$as_ac_var=no"
19178 rm -f conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19183 if test `eval echo '${'$as_ac_var'}'` = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19190 "$ac_func.$ac_objext" | \
19191 *" $ac_func.$ac_objext" | \
19192 "$ac_func.$ac_objext "* | \
19193 *" $ac_func.$ac_objext "* ) ;;
19194 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19201 if test $ac_cv_func_memmove = no; then
19211 for ac_func in memrchr
19213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19214 echo "$as_me:$LINENO: checking for $ac_func" >&5
19215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19216 if eval "test \"\${$as_ac_var+set}\" = set"; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19227 #define $ac_func innocuous_$ac_func
19229 /* System header to define __stub macros and hopefully few prototypes,
19230 which can conflict with char $ac_func (); below.
19231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232 <limits.h> exists even on freestanding compilers. */
19235 # include <limits.h>
19237 # include <assert.h>
19242 /* Override any gcc2 internal prototype to avoid an error. */
19247 /* We use char because int might match the return type of a gcc2
19248 builtin and then its argument prototype would still apply. */
19250 /* The GNU C library defines this for functions which it implements
19251 to always fail with ENOSYS. Some functions are actually named
19252 something starting with __ and the normal name is an alias. */
19253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19256 char (*f) () = $ac_func;
19265 return f != $ac_func;
19270 rm -f conftest.$ac_objext conftest$ac_exeext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19272 (eval $ac_link) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try='test -z "$ac_c_werror_flag"
19280 || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest$ac_exeext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 eval "$as_ac_var=yes"
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 eval "$as_ac_var=no"
19299 rm -f conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19304 if test `eval echo '${'$as_ac_var'}'` = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19311 "$ac_func.$ac_objext" | \
19312 *" $ac_func.$ac_objext" | \
19313 "$ac_func.$ac_objext "* | \
19314 *" $ac_func.$ac_objext "* ) ;;
19315 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19322 if test $ac_cv_func_memrchr = no; then
19328 for ac_func in memset
19330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19331 echo "$as_me:$LINENO: checking for $ac_func" >&5
19332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19333 if eval "test \"\${$as_ac_var+set}\" = set"; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19344 #define $ac_func innocuous_$ac_func
19346 /* System header to define __stub macros and hopefully few prototypes,
19347 which can conflict with char $ac_func (); below.
19348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19349 <limits.h> exists even on freestanding compilers. */
19352 # include <limits.h>
19354 # include <assert.h>
19359 /* Override any gcc2 internal prototype to avoid an error. */
19364 /* We use char because int might match the return type of a gcc2
19365 builtin and then its argument prototype would still apply. */
19367 /* The GNU C library defines this for functions which it implements
19368 to always fail with ENOSYS. Some functions are actually named
19369 something starting with __ and the normal name is an alias. */
19370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19373 char (*f) () = $ac_func;
19382 return f != $ac_func;
19387 rm -f conftest.$ac_objext conftest$ac_exeext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389 (eval $ac_link) 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag"
19397 || test ! -s conftest.err'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest$ac_exeext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 eval "$as_ac_var=yes"
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 eval "$as_ac_var=no"
19416 rm -f conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19421 if test `eval echo '${'$as_ac_var'}'` = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19428 "$ac_func.$ac_objext" | \
19429 *" $ac_func.$ac_objext" | \
19430 "$ac_func.$ac_objext "* | \
19431 *" $ac_func.$ac_objext "* ) ;;
19432 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19439 if test $ac_cv_func_memset = no; then
19448 for ac_header in stdlib.h sys/time.h unistd.h
19450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19452 echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19460 # Is the header compilable?
19461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 $ac_includes_default
19470 #include <$ac_header>
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
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); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_header_compiler=yes
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_header_compiler=no
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <$ac_header>
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } >/dev/null; then
19524 if test -s conftest.err; then
19525 ac_cpp_err=$ac_c_preproc_warn_flag
19526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19533 if test -z "$ac_cpp_err"; then
19534 ac_header_preproc=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_preproc=no
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19545 # So? What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19552 ac_header_preproc=yes
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19569 ## ------------------------------------ ##
19570 ## Report this to bug-coreutils@gnu.org ##
19571 ## ------------------------------------ ##
19574 sed "s/^/$as_me: WARNING: /" >&2
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 eval "$as_ac_Header=\$ac_header_preproc"
19584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19589 cat >>confdefs.h <<_ACEOF
19590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19598 for ac_func in alarm
19600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_var+set}\" = set"; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19622 # include <limits.h>
19624 # include <assert.h>
19629 /* Override any gcc2 internal prototype to avoid an error. */
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19637 /* The GNU C library defines this for functions which it implements
19638 to always fail with ENOSYS. Some functions are actually named
19639 something starting with __ and the normal name is an alias. */
19640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19643 char (*f) () = $ac_func;
19652 return f != $ac_func;
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659 (eval $ac_link) 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 eval "$as_ac_var=yes"
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 eval "$as_ac_var=no"
19686 rm -f conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext conftest.$ac_ext
19689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19691 if test `eval echo '${'$as_ac_var'}'` = yes; then
19692 cat >>confdefs.h <<_ACEOF
19693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19699 echo "$as_me:$LINENO: checking for working mktime" >&5
19700 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
19701 if test "${ac_cv_func_working_mktime+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 if test "$cross_compiling" = yes; then
19705 ac_cv_func_working_mktime=no
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 /* Test program from Paul Eggert and Tony Leneis. */
19714 #if TIME_WITH_SYS_TIME
19715 # include <sys/time.h>
19718 # if HAVE_SYS_TIME_H
19719 # include <sys/time.h>
19726 # include <stdlib.h>
19730 # include <unistd.h>
19734 # define alarm(X) /* empty */
19737 /* Work around redefinition to rpl_putenv by other config tests. */
19740 static time_t time_t_max;
19741 static time_t time_t_min;
19743 /* Values we'll use to set the TZ environment variable. */
19744 static char *tz_strings[] = {
19745 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19746 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19748 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19750 /* Fail if mktime fails to convert a date in the spring-forward gap.
19751 Based on a problem report from Andreas Jaeger. */
19753 spring_forward_gap ()
19755 /* glibc (up to about 1998-10-07) failed this test. */
19758 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19759 instead of "TZ=America/Vancouver" in order to detect the bug even
19760 on systems that don't support the Olson extension, or don't have the
19761 full zoneinfo tables installed. */
19762 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19771 if (mktime (&tm) == (time_t)-1)
19780 if ((lt = localtime (&now)) && mktime (lt) != now)
19788 mktime_test1 (now);
19789 mktime_test1 ((time_t) (time_t_max - now));
19790 mktime_test1 ((time_t) (time_t_min + now));
19796 /* Based on code from Ariel Faigon. */
19806 if (tm.tm_mon != 2 || tm.tm_mday != 31)
19816 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19817 now = mktime (&tm);
19818 if (now != (time_t) -1)
19820 struct tm *lt = localtime (&now);
19822 && lt->tm_year == tm.tm_year
19823 && lt->tm_mon == tm.tm_mon
19824 && lt->tm_mday == tm.tm_mday
19825 && lt->tm_hour == tm.tm_hour
19826 && lt->tm_min == tm.tm_min
19827 && lt->tm_sec == tm.tm_sec
19828 && lt->tm_yday == tm.tm_yday
19829 && lt->tm_wday == tm.tm_wday
19830 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19831 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19842 /* This test makes some buggy mktime implementations loop.
19843 Give up after 60 seconds; a mktime slower than that
19844 isn't worth using anyway. */
19847 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
19850 if ((time_t) -1 < 0)
19851 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
19853 delta = time_t_max / 997; /* a suitable prime number */
19854 for (i = 0; i < N_STRINGS; i++)
19857 putenv (tz_strings[i]);
19859 for (t = 0; t <= time_t_max - delta; t += delta)
19861 mktime_test ((time_t) 1);
19862 mktime_test ((time_t) (60 * 60));
19863 mktime_test ((time_t) (60 * 60 * 24));
19865 for (j = 1; 0 < j; j *= 2)
19867 bigtime_test (j - 1);
19870 spring_forward_gap ();
19874 rm -f conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876 (eval $ac_link) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885 ac_cv_func_working_mktime=yes
19887 echo "$as_me: program exited with status $ac_status" >&5
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ( exit $ac_status )
19892 ac_cv_func_working_mktime=no
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19897 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
19898 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
19899 if test $ac_cv_func_working_mktime = no; then
19901 "mktime.$ac_objext" | \
19902 *" mktime.$ac_objext" | \
19903 "mktime.$ac_objext "* | \
19904 *" mktime.$ac_objext "* ) ;;
19905 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
19912 if test $ac_cv_func_working_mktime = no; then
19914 cat >>confdefs.h <<\_ACEOF
19915 #define mktime rpl_mktime
19923 for ac_func in readlink
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19928 if eval "test \"\${$as_ac_var+set}\" = set"; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19947 # include <limits.h>
19949 # include <assert.h>
19954 /* Override any gcc2 internal prototype to avoid an error. */
19959 /* We use char because int might match the return type of a gcc2
19960 builtin and then its argument prototype would still apply. */
19962 /* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
19965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19968 char (*f) () = $ac_func;
19977 return f != $ac_func;
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest$ac_exeext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 eval "$as_ac_var=yes"
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 eval "$as_ac_var=no"
20011 rm -f conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20016 if test `eval echo '${'$as_ac_var'}'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20024 if test $ac_cv_func_readlink = no; then
20026 "readlink.$ac_objext" | \
20027 *" readlink.$ac_objext" | \
20028 "readlink.$ac_objext "* | \
20029 *" readlink.$ac_objext "* ) ;;
20030 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
20040 for ac_func in rmdir
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20045 if eval "test \"\${$as_ac_var+set}\" = set"; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20056 #define $ac_func innocuous_$ac_func
20058 /* System header to define __stub macros and hopefully few prototypes,
20059 which can conflict with char $ac_func (); below.
20060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061 <limits.h> exists even on freestanding compilers. */
20064 # include <limits.h>
20066 # include <assert.h>
20071 /* Override any gcc2 internal prototype to avoid an error. */
20076 /* We use char because int might match the return type of a gcc2
20077 builtin and then its argument prototype would still apply. */
20079 /* The GNU C library defines this for functions which it implements
20080 to always fail with ENOSYS. Some functions are actually named
20081 something starting with __ and the normal name is an alias. */
20082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20085 char (*f) () = $ac_func;
20094 return f != $ac_func;
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20101 (eval $ac_link) 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_c_werror_flag"
20109 || test ! -s conftest.err'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest$ac_exeext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 eval "$as_ac_var=yes"
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 eval "$as_ac_var=no"
20128 rm -f conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20133 if test `eval echo '${'$as_ac_var'}'` = yes; then
20134 cat >>confdefs.h <<_ACEOF
20135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20140 "$ac_func.$ac_objext" | \
20141 *" $ac_func.$ac_objext" | \
20142 "$ac_func.$ac_objext "* | \
20143 *" $ac_func.$ac_objext "* ) ;;
20144 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20151 if test $ac_cv_func_rmdir = no; then
20160 for ac_func in rpmatch
20162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20163 echo "$as_me:$LINENO: checking for $ac_func" >&5
20164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_var+set}\" = set"; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20176 #define $ac_func innocuous_$ac_func
20178 /* System header to define __stub macros and hopefully few prototypes,
20179 which can conflict with char $ac_func (); below.
20180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20181 <limits.h> exists even on freestanding compilers. */
20184 # include <limits.h>
20186 # include <assert.h>
20191 /* Override any gcc2 internal prototype to avoid an error. */
20196 /* We use char because int might match the return type of a gcc2
20197 builtin and then its argument prototype would still apply. */
20199 /* The GNU C library defines this for functions which it implements
20200 to always fail with ENOSYS. Some functions are actually named
20201 something starting with __ and the normal name is an alias. */
20202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20205 char (*f) () = $ac_func;
20214 return f != $ac_func;
20219 rm -f conftest.$ac_objext conftest$ac_exeext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20221 (eval $ac_link) 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag"
20229 || test ! -s conftest.err'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest$ac_exeext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 eval "$as_ac_var=yes"
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20246 eval "$as_ac_var=no"
20248 rm -f conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20253 if test `eval echo '${'$as_ac_var'}'` = yes; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20260 "$ac_func.$ac_objext" | \
20261 *" $ac_func.$ac_objext" | \
20262 "$ac_func.$ac_objext "* | \
20263 *" $ac_func.$ac_objext "* ) ;;
20264 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20271 if test $ac_cv_func_rpmatch = no; then
20277 for ac_func in sig2str
20279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20280 echo "$as_me:$LINENO: checking for $ac_func" >&5
20281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_var+set}\" = set"; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20293 #define $ac_func innocuous_$ac_func
20295 /* System header to define __stub macros and hopefully few prototypes,
20296 which can conflict with char $ac_func (); below.
20297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20298 <limits.h> exists even on freestanding compilers. */
20301 # include <limits.h>
20303 # include <assert.h>
20308 /* Override any gcc2 internal prototype to avoid an error. */
20313 /* We use char because int might match the return type of a gcc2
20314 builtin and then its argument prototype would still apply. */
20316 /* The GNU C library defines this for functions which it implements
20317 to always fail with ENOSYS. Some functions are actually named
20318 something starting with __ and the normal name is an alias. */
20319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20322 char (*f) () = $ac_func;
20331 return f != $ac_func;
20336 rm -f conftest.$ac_objext conftest$ac_exeext
20337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20338 (eval $ac_link) 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag"
20346 || test ! -s conftest.err'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest$ac_exeext'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 eval "$as_ac_var=yes"
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 eval "$as_ac_var=no"
20365 rm -f conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20370 if test `eval echo '${'$as_ac_var'}'` = yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20377 "$ac_func.$ac_objext" | \
20378 *" $ac_func.$ac_objext" | \
20379 "$ac_func.$ac_objext "* | \
20380 *" $ac_func.$ac_objext "* ) ;;
20381 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20388 if test $ac_cv_func_sig2str = no; then
20398 for ac_func in stpcpy
20400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401 echo "$as_me:$LINENO: checking for $ac_func" >&5
20402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20403 if eval "test \"\${$as_ac_var+set}\" = set"; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20414 #define $ac_func innocuous_$ac_func
20416 /* System header to define __stub macros and hopefully few prototypes,
20417 which can conflict with char $ac_func (); below.
20418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20419 <limits.h> exists even on freestanding compilers. */
20422 # include <limits.h>
20424 # include <assert.h>
20429 /* Override any gcc2 internal prototype to avoid an error. */
20434 /* We use char because int might match the return type of a gcc2
20435 builtin and then its argument prototype would still apply. */
20437 /* The GNU C library defines this for functions which it implements
20438 to always fail with ENOSYS. Some functions are actually named
20439 something starting with __ and the normal name is an alias. */
20440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20443 char (*f) () = $ac_func;
20452 return f != $ac_func;
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20459 (eval $ac_link) 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } &&
20466 { ac_try='test -z "$ac_c_werror_flag"
20467 || test ! -s conftest.err'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest$ac_exeext'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 eval "$as_ac_var=yes"
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 eval "$as_ac_var=no"
20486 rm -f conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20491 if test `eval echo '${'$as_ac_var'}'` = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20498 "$ac_func.$ac_objext" | \
20499 *" $ac_func.$ac_objext" | \
20500 "$ac_func.$ac_objext "* | \
20501 *" $ac_func.$ac_objext "* ) ;;
20502 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20509 if test $ac_cv_func_stpcpy = no; then
20517 for ac_func in strcspn
20519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20520 echo "$as_me:$LINENO: checking for $ac_func" >&5
20521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_var+set}\" = set"; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 cat >conftest.$ac_ext <<_ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20533 #define $ac_func innocuous_$ac_func
20535 /* System header to define __stub macros and hopefully few prototypes,
20536 which can conflict with char $ac_func (); below.
20537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20538 <limits.h> exists even on freestanding compilers. */
20541 # include <limits.h>
20543 # include <assert.h>
20548 /* Override any gcc2 internal prototype to avoid an error. */
20553 /* We use char because int might match the return type of a gcc2
20554 builtin and then its argument prototype would still apply. */
20556 /* The GNU C library defines this for functions which it implements
20557 to always fail with ENOSYS. Some functions are actually named
20558 something starting with __ and the normal name is an alias. */
20559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20562 char (*f) () = $ac_func;
20571 return f != $ac_func;
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20578 (eval $ac_link) 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag"
20586 || test ! -s conftest.err'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 eval "$as_ac_var=yes"
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 eval "$as_ac_var=no"
20605 rm -f conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext conftest.$ac_ext
20608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20610 if test `eval echo '${'$as_ac_var'}'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20617 "$ac_func.$ac_objext" | \
20618 *" $ac_func.$ac_objext" | \
20619 "$ac_func.$ac_objext "* | \
20620 *" $ac_func.$ac_objext "* ) ;;
20621 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20628 if test $ac_cv_func_strcspn = no; then
20634 for ac_func in strdup
20636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20637 echo "$as_me:$LINENO: checking for $ac_func" >&5
20638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20639 if eval "test \"\${$as_ac_var+set}\" = set"; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20650 #define $ac_func innocuous_$ac_func
20652 /* System header to define __stub macros and hopefully few prototypes,
20653 which can conflict with char $ac_func (); below.
20654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20655 <limits.h> exists even on freestanding compilers. */
20658 # include <limits.h>
20660 # include <assert.h>
20665 /* Override any gcc2 internal prototype to avoid an error. */
20670 /* We use char because int might match the return type of a gcc2
20671 builtin and then its argument prototype would still apply. */
20673 /* The GNU C library defines this for functions which it implements
20674 to always fail with ENOSYS. Some functions are actually named
20675 something starting with __ and the normal name is an alias. */
20676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20679 char (*f) () = $ac_func;
20688 return f != $ac_func;
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 eval "$as_ac_var=yes"
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 eval "$as_ac_var=no"
20722 rm -f conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20734 "$ac_func.$ac_objext" | \
20735 *" $ac_func.$ac_objext" | \
20736 "$ac_func.$ac_objext "* | \
20737 *" $ac_func.$ac_objext "* ) ;;
20738 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20745 if test $ac_cv_func_strdup = no; then
20755 for ac_func in strndup
20757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20758 echo "$as_me:$LINENO: checking for $ac_func" >&5
20759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20760 if eval "test \"\${$as_ac_var+set}\" = set"; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define $ac_func innocuous_$ac_func
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20779 # include <limits.h>
20781 # include <assert.h>
20786 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20800 char (*f) () = $ac_func;
20809 return f != $ac_func;
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 eval "$as_ac_var=yes"
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 eval "$as_ac_var=no"
20843 rm -f conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20848 if test `eval echo '${'$as_ac_var'}'` = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20855 "$ac_func.$ac_objext" | \
20856 *" $ac_func.$ac_objext" | \
20857 "$ac_func.$ac_objext "* | \
20858 *" $ac_func.$ac_objext "* ) ;;
20859 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20866 if test $ac_cv_func_strndup = no; then
20868 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
20869 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
20870 if test "${ac_cv_have_decl_strnlen+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20879 $ac_includes_default
20884 char *p = (char *) strnlen;
20891 rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893 (eval $ac_compile) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag"
20901 || test ! -s conftest.err'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_have_decl_strnlen=yes
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_have_decl_strnlen=no
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
20923 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
20924 if test $ac_cv_have_decl_strnlen = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define HAVE_DECL_STRNLEN 1
20932 cat >>confdefs.h <<_ACEOF
20933 #define HAVE_DECL_STRNLEN 0
20946 echo "$as_me:$LINENO: checking for working strnlen" >&5
20947 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
20948 if test "${ac_cv_func_strnlen_working+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 if test "$cross_compiling" = yes; then
20952 ac_cv_func_strnlen_working=no
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 $ac_includes_default
20966 #define S_LEN (sizeof S - 1)
20968 /* At least one implementation is buggy: that of AIX 4.3 would
20969 give strnlen (S, 1) == 3. */
20972 for (i = 0; i < S_LEN + 1; ++i)
20974 int expected = i <= S_LEN ? i : S_LEN;
20975 if (strnlen (S, i) != expected)
20984 rm -f conftest$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986 (eval $ac_link) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_func_strnlen_working=yes
20997 echo "$as_me: program exited with status $ac_status" >&5
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ( exit $ac_status )
21002 ac_cv_func_strnlen_working=no
21004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
21008 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
21009 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
21010 "strnlen.$ac_objext" | \
21011 *" strnlen.$ac_objext" | \
21012 "strnlen.$ac_objext "* | \
21013 *" strnlen.$ac_objext "* ) ;;
21014 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
21018 if test $ac_cv_func_strnlen_working = no; then
21019 # This is necessary because automake-1.6.1 doens't understand
21020 # that the above use of AC_FUNC_STRNLEN means we may have to use
21022 #AC_LIBOBJ(strnlen)
21024 cat >>confdefs.h <<\_ACEOF
21025 #define strnlen rpl_strnlen
21033 for ac_func in strpbrk
21035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21036 echo "$as_me:$LINENO: checking for $ac_func" >&5
21037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21038 if eval "test \"\${$as_ac_var+set}\" = set"; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21049 #define $ac_func innocuous_$ac_func
21051 /* System header to define __stub macros and hopefully few prototypes,
21052 which can conflict with char $ac_func (); below.
21053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21054 <limits.h> exists even on freestanding compilers. */
21057 # include <limits.h>
21059 # include <assert.h>
21064 /* Override any gcc2 internal prototype to avoid an error. */
21069 /* We use char because int might match the return type of a gcc2
21070 builtin and then its argument prototype would still apply. */
21072 /* The GNU C library defines this for functions which it implements
21073 to always fail with ENOSYS. Some functions are actually named
21074 something starting with __ and the normal name is an alias. */
21075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21078 char (*f) () = $ac_func;
21087 return f != $ac_func;
21092 rm -f conftest.$ac_objext conftest$ac_exeext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094 (eval $ac_link) 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -z "$ac_c_werror_flag"
21102 || test ! -s conftest.err'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; } &&
21108 { ac_try='test -s conftest$ac_exeext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 eval "$as_ac_var=yes"
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 eval "$as_ac_var=no"
21121 rm -f conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21126 if test `eval echo '${'$as_ac_var'}'` = yes; then
21127 cat >>confdefs.h <<_ACEOF
21128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21133 "$ac_func.$ac_objext" | \
21134 *" $ac_func.$ac_objext" | \
21135 "$ac_func.$ac_objext "* | \
21136 *" $ac_func.$ac_objext "* ) ;;
21137 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21144 if test $ac_cv_func_strpbrk = no; then
21150 for ac_func in strstr
21152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21153 echo "$as_me:$LINENO: checking for $ac_func" >&5
21154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21155 if eval "test \"\${$as_ac_var+set}\" = set"; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21166 #define $ac_func innocuous_$ac_func
21168 /* System header to define __stub macros and hopefully few prototypes,
21169 which can conflict with char $ac_func (); below.
21170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171 <limits.h> exists even on freestanding compilers. */
21174 # include <limits.h>
21176 # include <assert.h>
21181 /* Override any gcc2 internal prototype to avoid an error. */
21186 /* We use char because int might match the return type of a gcc2
21187 builtin and then its argument prototype would still apply. */
21189 /* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
21192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21195 char (*f) () = $ac_func;
21204 return f != $ac_func;
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -z "$ac_c_werror_flag"
21219 || test ! -s conftest.err'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } &&
21225 { ac_try='test -s conftest$ac_exeext'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 eval "$as_ac_var=yes"
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 eval "$as_ac_var=no"
21238 rm -f conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21250 "$ac_func.$ac_objext" | \
21251 *" $ac_func.$ac_objext" | \
21252 "$ac_func.$ac_objext "* | \
21253 *" $ac_func.$ac_objext "* ) ;;
21254 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21261 if test $ac_cv_func_strstr = no; then
21265 echo "$as_me:$LINENO: checking for working strtod" >&5
21266 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
21267 if test "${ac_cv_func_strtod+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 if test "$cross_compiling" = yes; then
21271 ac_cv_func_strtod=no
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21285 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21286 char *string = " +69";
21289 value = strtod (string, &term);
21290 if (value != 69 || term != (string + 4))
21295 /* Under Solaris 2.4, strtod returns the wrong value for the
21296 terminating character under some conditions. */
21297 char *string = "NaN";
21299 strtod (string, &term);
21300 if (term != string && *(term - 1) == 0)
21307 rm -f conftest$ac_exeext
21308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21309 (eval $ac_link) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_func_strtod=yes
21320 echo "$as_me: program exited with status $ac_status" >&5
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ( exit $ac_status )
21325 ac_cv_func_strtod=no
21327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
21331 echo "${ECHO_T}$ac_cv_func_strtod" >&6
21332 if test $ac_cv_func_strtod = no; then
21334 "strtod.$ac_objext" | \
21335 *" strtod.$ac_objext" | \
21336 "strtod.$ac_objext "* | \
21337 *" strtod.$ac_objext "* ) ;;
21338 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
21341 echo "$as_me:$LINENO: checking for pow" >&5
21342 echo $ECHO_N "checking for pow... $ECHO_C" >&6
21343 if test "${ac_cv_func_pow+set}" = set; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
21353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21354 #define pow innocuous_pow
21356 /* System header to define __stub macros and hopefully few prototypes,
21357 which can conflict with char pow (); below.
21358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359 <limits.h> exists even on freestanding compilers. */
21362 # include <limits.h>
21364 # include <assert.h>
21369 /* Override any gcc2 internal prototype to avoid an error. */
21374 /* We use char because int might match the return type of a gcc2
21375 builtin and then its argument prototype would still apply. */
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined (__stub_pow) || defined (__stub___pow)
21383 char (*f) () = pow;
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399 (eval $ac_link) 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } &&
21406 { ac_try='test -z "$ac_c_werror_flag"
21407 || test ! -s conftest.err'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest$ac_exeext'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21426 rm -f conftest.err conftest.$ac_objext \
21427 conftest$ac_exeext conftest.$ac_ext
21429 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
21430 echo "${ECHO_T}$ac_cv_func_pow" >&6
21432 if test $ac_cv_func_pow = no; then
21433 echo "$as_me:$LINENO: checking for pow in -lm" >&5
21434 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
21435 if test "${ac_cv_lib_m_pow+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 ac_check_lib_save_LIBS=$LIBS
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21447 /* Override any gcc2 internal prototype to avoid an error. */
21451 /* We use char because int might match the return type of a gcc2
21452 builtin and then its argument prototype would still apply. */
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464 (eval $ac_link) 2>conftest.er1
21466 grep -v '^ *+' conftest.er1 >conftest.err
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } &&
21471 { ac_try='test -z "$ac_c_werror_flag"
21472 || test ! -s conftest.err'
21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474 (eval $ac_try) 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; } &&
21478 { ac_try='test -s conftest$ac_exeext'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 ac_cv_lib_m_pow=yes
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21491 rm -f conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext conftest.$ac_ext
21493 LIBS=$ac_check_lib_save_LIBS
21495 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
21496 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
21497 if test $ac_cv_lib_m_pow = yes; then
21500 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
21501 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21510 if test $ac_cv_func_strtod = no; then
21512 cat >>confdefs.h <<\_ACEOF
21513 #define strtod rpl_strtod
21529 echo "$as_me:$LINENO: checking for long long" >&5
21530 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21531 if test "${ac_cv_type_long_long+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 long long ll = 1LL; int i = 63;
21544 long long llmax = (long long) -1;
21545 return ll << i | ll >> i | llmax / ll | llmax % ll;
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21552 (eval $ac_link) 2>conftest.er1
21554 grep -v '^ *+' conftest.er1 >conftest.err
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -z "$ac_c_werror_flag"
21560 || test ! -s conftest.err'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; } &&
21566 { ac_try='test -s conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_type_long_long=yes
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_type_long_long=no
21579 rm -f conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext conftest.$ac_ext
21582 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21583 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21584 if test $ac_cv_type_long_long = yes; then
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_LONG_LONG 1
21596 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
21597 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
21598 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 #include <inttypes.h>
21609 inttypes_h_defines_strtoimax
21612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21613 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
21614 jm_cv_func_strtoimax_macro=yes
21616 jm_cv_func_strtoimax_macro=no
21621 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
21622 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
21624 if test "$jm_cv_func_strtoimax_macro" != yes; then
21626 for ac_func in strtoimax
21628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21629 echo "$as_me:$LINENO: checking for $ac_func" >&5
21630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21631 if eval "test \"\${$as_ac_var+set}\" = set"; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21642 #define $ac_func innocuous_$ac_func
21644 /* System header to define __stub macros and hopefully few prototypes,
21645 which can conflict with char $ac_func (); below.
21646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21647 <limits.h> exists even on freestanding compilers. */
21650 # include <limits.h>
21652 # include <assert.h>
21657 /* Override any gcc2 internal prototype to avoid an error. */
21662 /* We use char because int might match the return type of a gcc2
21663 builtin and then its argument prototype would still apply. */
21665 /* The GNU C library defines this for functions which it implements
21666 to always fail with ENOSYS. Some functions are actually named
21667 something starting with __ and the normal name is an alias. */
21668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21671 char (*f) () = $ac_func;
21680 return f != $ac_func;
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687 (eval $ac_link) 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } &&
21694 { ac_try='test -z "$ac_c_werror_flag"
21695 || test ! -s conftest.err'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; } &&
21701 { ac_try='test -s conftest$ac_exeext'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 eval "$as_ac_var=yes"
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 eval "$as_ac_var=no"
21714 rm -f conftest.err conftest.$ac_objext \
21715 conftest$ac_exeext conftest.$ac_ext
21717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21719 if test `eval echo '${'$as_ac_var'}'` = yes; then
21720 cat >>confdefs.h <<_ACEOF
21721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21726 "$ac_func.$ac_objext" | \
21727 *" $ac_func.$ac_objext" | \
21728 "$ac_func.$ac_objext "* | \
21729 *" $ac_func.$ac_objext "* ) ;;
21730 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21737 if test $ac_cv_func_strtoimax = no; then
21742 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
21744 test $ac_cv_type_long_long = yes \
21745 && ac_type='long long' \
21748 cat >>confdefs.h <<_ACEOF
21749 #define intmax_t $ac_type
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_INTMAX_T 1
21760 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
21761 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
21762 if test "${ac_cv_have_decl_strtoll+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 $ac_includes_default
21776 char *p = (char *) strtoll;
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag"
21793 || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest.$ac_objext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_have_decl_strtoll=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_cv_have_decl_strtoll=no
21812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21814 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
21815 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
21816 if test $ac_cv_have_decl_strtoll = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define HAVE_DECL_STRTOLL 1
21824 cat >>confdefs.h <<_ACEOF
21825 #define HAVE_DECL_STRTOLL 0
21839 if test "$ac_cv_type_long_long" = yes; then
21841 for ac_func in strtoll
21843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21844 echo "$as_me:$LINENO: checking for $ac_func" >&5
21845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21846 if eval "test \"\${$as_ac_var+set}\" = set"; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 cat >conftest.$ac_ext <<_ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h. */
21855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21857 #define $ac_func innocuous_$ac_func
21859 /* System header to define __stub macros and hopefully few prototypes,
21860 which can conflict with char $ac_func (); below.
21861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21862 <limits.h> exists even on freestanding compilers. */
21865 # include <limits.h>
21867 # include <assert.h>
21872 /* Override any gcc2 internal prototype to avoid an error. */
21877 /* We use char because int might match the return type of a gcc2
21878 builtin and then its argument prototype would still apply. */
21880 /* The GNU C library defines this for functions which it implements
21881 to always fail with ENOSYS. Some functions are actually named
21882 something starting with __ and the normal name is an alias. */
21883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21886 char (*f) () = $ac_func;
21895 return f != $ac_func;
21900 rm -f conftest.$ac_objext conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902 (eval $ac_link) 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
21909 { ac_try='test -z "$ac_c_werror_flag"
21910 || test ! -s conftest.err'
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; } &&
21916 { ac_try='test -s conftest$ac_exeext'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 eval "$as_ac_var=yes"
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 eval "$as_ac_var=no"
21929 rm -f conftest.err conftest.$ac_objext \
21930 conftest$ac_exeext conftest.$ac_ext
21932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21934 if test `eval echo '${'$as_ac_var'}'` = yes; then
21935 cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 "$ac_func.$ac_objext" | \
21942 *" $ac_func.$ac_objext" | \
21943 "$ac_func.$ac_objext "* | \
21944 *" $ac_func.$ac_objext "* ) ;;
21945 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21952 if test $ac_cv_func_strtoll = no; then
21961 for ac_func in strtol
21963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21964 echo "$as_me:$LINENO: checking for $ac_func" >&5
21965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21966 if eval "test \"\${$as_ac_var+set}\" = set"; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21969 cat >conftest.$ac_ext <<_ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21977 #define $ac_func innocuous_$ac_func
21979 /* System header to define __stub macros and hopefully few prototypes,
21980 which can conflict with char $ac_func (); below.
21981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21982 <limits.h> exists even on freestanding compilers. */
21985 # include <limits.h>
21987 # include <assert.h>
21992 /* Override any gcc2 internal prototype to avoid an error. */
21997 /* We use char because int might match the return type of a gcc2
21998 builtin and then its argument prototype would still apply. */
22000 /* The GNU C library defines this for functions which it implements
22001 to always fail with ENOSYS. Some functions are actually named
22002 something starting with __ and the normal name is an alias. */
22003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22006 char (*f) () = $ac_func;
22015 return f != $ac_func;
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022 (eval $ac_link) 2>conftest.er1
22024 grep -v '^ *+' conftest.er1 >conftest.err
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest$ac_exeext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 eval "$as_ac_var=yes"
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 eval "$as_ac_var=no"
22049 rm -f conftest.err conftest.$ac_objext \
22050 conftest$ac_exeext conftest.$ac_ext
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22054 if test `eval echo '${'$as_ac_var'}'` = yes; then
22055 cat >>confdefs.h <<_ACEOF
22056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22061 "$ac_func.$ac_objext" | \
22062 *" $ac_func.$ac_objext" | \
22063 "$ac_func.$ac_objext "* | \
22064 *" $ac_func.$ac_objext "* ) ;;
22065 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22072 if test $ac_cv_func_strtol = no; then
22087 if test "$ac_cv_type_unsigned_long_long" = yes; then
22089 for ac_func in strtoull
22091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22092 echo "$as_me:$LINENO: checking for $ac_func" >&5
22093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22094 if eval "test \"\${$as_ac_var+set}\" = set"; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22105 #define $ac_func innocuous_$ac_func
22107 /* System header to define __stub macros and hopefully few prototypes,
22108 which can conflict with char $ac_func (); below.
22109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110 <limits.h> exists even on freestanding compilers. */
22113 # include <limits.h>
22115 # include <assert.h>
22120 /* Override any gcc2 internal prototype to avoid an error. */
22125 /* We use char because int might match the return type of a gcc2
22126 builtin and then its argument prototype would still apply. */
22128 /* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22134 char (*f) () = $ac_func;
22143 return f != $ac_func;
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22150 (eval $ac_link) 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } &&
22157 { ac_try='test -z "$ac_c_werror_flag"
22158 || test ! -s conftest.err'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; } &&
22164 { ac_try='test -s conftest$ac_exeext'
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170 eval "$as_ac_var=yes"
22172 echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22175 eval "$as_ac_var=no"
22177 rm -f conftest.err conftest.$ac_objext \
22178 conftest$ac_exeext conftest.$ac_ext
22180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22182 if test `eval echo '${'$as_ac_var'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22189 "$ac_func.$ac_objext" | \
22190 *" $ac_func.$ac_objext" | \
22191 "$ac_func.$ac_objext "* | \
22192 *" $ac_func.$ac_objext "* ) ;;
22193 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22200 if test $ac_cv_func_strtoull = no; then
22209 for ac_func in strtoul
22211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22212 echo "$as_me:$LINENO: checking for $ac_func" >&5
22213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22214 if eval "test \"\${$as_ac_var+set}\" = set"; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 cat >conftest.$ac_ext <<_ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22225 #define $ac_func innocuous_$ac_func
22227 /* System header to define __stub macros and hopefully few prototypes,
22228 which can conflict with char $ac_func (); below.
22229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22230 <limits.h> exists even on freestanding compilers. */
22233 # include <limits.h>
22235 # include <assert.h>
22240 /* Override any gcc2 internal prototype to avoid an error. */
22245 /* We use char because int might match the return type of a gcc2
22246 builtin and then its argument prototype would still apply. */
22248 /* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22254 char (*f) () = $ac_func;
22263 return f != $ac_func;
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270 (eval $ac_link) 2>conftest.er1
22272 grep -v '^ *+' conftest.er1 >conftest.err
22274 cat conftest.err >&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } &&
22277 { ac_try='test -z "$ac_c_werror_flag"
22278 || test ! -s conftest.err'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest$ac_exeext'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 eval "$as_ac_var=yes"
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22295 eval "$as_ac_var=no"
22297 rm -f conftest.err conftest.$ac_objext \
22298 conftest$ac_exeext conftest.$ac_ext
22300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22309 "$ac_func.$ac_objext" | \
22310 *" $ac_func.$ac_objext" | \
22311 "$ac_func.$ac_objext "* | \
22312 *" $ac_func.$ac_objext "* ) ;;
22313 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22320 if test $ac_cv_func_strtoul = no; then
22339 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
22340 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
22341 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <inttypes.h>
22352 inttypes_h_defines_strtoumax
22355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22356 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
22357 jm_cv_func_strtoumax_macro=yes
22359 jm_cv_func_strtoumax_macro=no
22364 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
22365 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
22367 if test "$jm_cv_func_strtoumax_macro" != yes; then
22369 for ac_func in strtoumax
22371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22372 echo "$as_me:$LINENO: checking for $ac_func" >&5
22373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22374 if eval "test \"\${$as_ac_var+set}\" = set"; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22385 #define $ac_func innocuous_$ac_func
22387 /* System header to define __stub macros and hopefully few prototypes,
22388 which can conflict with char $ac_func (); below.
22389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22390 <limits.h> exists even on freestanding compilers. */
22393 # include <limits.h>
22395 # include <assert.h>
22400 /* Override any gcc2 internal prototype to avoid an error. */
22405 /* We use char because int might match the return type of a gcc2
22406 builtin and then its argument prototype would still apply. */
22408 /* The GNU C library defines this for functions which it implements
22409 to always fail with ENOSYS. Some functions are actually named
22410 something starting with __ and the normal name is an alias. */
22411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22414 char (*f) () = $ac_func;
22423 return f != $ac_func;
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430 (eval $ac_link) 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } &&
22437 { ac_try='test -z "$ac_c_werror_flag"
22438 || test ! -s conftest.err'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; } &&
22444 { ac_try='test -s conftest$ac_exeext'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 eval "$as_ac_var=yes"
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 eval "$as_ac_var=no"
22457 rm -f conftest.err conftest.$ac_objext \
22458 conftest$ac_exeext conftest.$ac_ext
22460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22462 if test `eval echo '${'$as_ac_var'}'` = yes; then
22463 cat >>confdefs.h <<_ACEOF
22464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22469 "$ac_func.$ac_objext" | \
22470 *" $ac_func.$ac_objext" | \
22471 "$ac_func.$ac_objext "* | \
22472 *" $ac_func.$ac_objext "* ) ;;
22473 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22480 if test $ac_cv_func_strtoumax = no; then
22485 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
22487 test $ac_cv_type_unsigned_long_long = yes \
22488 && ac_type='unsigned long long' \
22489 || ac_type='unsigned long'
22491 cat >>confdefs.h <<_ACEOF
22492 #define uintmax_t $ac_type
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_UINTMAX_T 1
22503 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
22504 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
22505 if test "${ac_cv_have_decl_strtoull+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 cat >conftest.$ac_ext <<_ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 $ac_includes_default
22519 char *p = (char *) strtoull;
22526 rm -f conftest.$ac_objext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22528 (eval $ac_compile) 2>conftest.er1
22530 grep -v '^ *+' conftest.er1 >conftest.err
22532 cat conftest.err >&5
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } &&
22535 { ac_try='test -z "$ac_c_werror_flag"
22536 || test ! -s conftest.err'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; } &&
22542 { ac_try='test -s conftest.$ac_objext'
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 ac_cv_have_decl_strtoull=yes
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22553 ac_cv_have_decl_strtoull=no
22555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22557 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
22559 if test $ac_cv_have_decl_strtoull = yes; then
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_STRTOULL 1
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_STRTOULL 0
22584 for ac_func in strverscmp
22586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22587 echo "$as_me:$LINENO: checking for $ac_func" >&5
22588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22589 if eval "test \"\${$as_ac_var+set}\" = set"; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22600 #define $ac_func innocuous_$ac_func
22602 /* System header to define __stub macros and hopefully few prototypes,
22603 which can conflict with char $ac_func (); below.
22604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22605 <limits.h> exists even on freestanding compilers. */
22608 # include <limits.h>
22610 # include <assert.h>
22615 /* Override any gcc2 internal prototype to avoid an error. */
22620 /* We use char because int might match the return type of a gcc2
22621 builtin and then its argument prototype would still apply. */
22623 /* The GNU C library defines this for functions which it implements
22624 to always fail with ENOSYS. Some functions are actually named
22625 something starting with __ and the normal name is an alias. */
22626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22629 char (*f) () = $ac_func;
22638 return f != $ac_func;
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645 (eval $ac_link) 2>conftest.er1
22647 grep -v '^ *+' conftest.er1 >conftest.err
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } &&
22652 { ac_try='test -z "$ac_c_werror_flag"
22653 || test ! -s conftest.err'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; } &&
22659 { ac_try='test -s conftest$ac_exeext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22665 eval "$as_ac_var=yes"
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 eval "$as_ac_var=no"
22672 rm -f conftest.err conftest.$ac_objext \
22673 conftest$ac_exeext conftest.$ac_ext
22675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22677 if test `eval echo '${'$as_ac_var'}'` = yes; then
22678 cat >>confdefs.h <<_ACEOF
22679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22684 "$ac_func.$ac_objext" | \
22685 *" $ac_func.$ac_objext" | \
22686 "$ac_func.$ac_objext "* | \
22687 *" $ac_func.$ac_objext "* ) ;;
22688 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22695 if test $ac_cv_func_strverscmp = no; then
22702 echo "$as_me:$LINENO: checking for signed" >&5
22703 echo $ECHO_N "checking for signed... $ECHO_C" >&6
22704 if test "${bh_cv_c_signed+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 cat >conftest.$ac_ext <<_ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724 (eval $ac_compile) 2>conftest.er1
22726 grep -v '^ *+' conftest.er1 >conftest.err
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -z "$ac_c_werror_flag"
22732 || test ! -s conftest.err'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22753 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
22754 echo "${ECHO_T}$bh_cv_c_signed" >&6
22755 if test $bh_cv_c_signed = no; then
22757 cat >>confdefs.h <<\_ACEOF
22764 echo "$as_me:$LINENO: checking for long double" >&5
22765 echo $ECHO_N "checking for long double... $ECHO_C" >&6
22766 if test "${gt_cv_c_long_double+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 if test "$GCC" = yes; then
22770 gt_cv_c_long_double=yes
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22779 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
22780 long double foo = 0.0;
22781 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22782 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794 (eval $ac_compile) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag"
22802 || test ! -s conftest.err'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; } &&
22808 { ac_try='test -s conftest.$ac_objext'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 gt_cv_c_long_double=yes
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 gt_cv_c_long_double=no
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22824 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
22825 echo "${ECHO_T}$gt_cv_c_long_double" >&6
22826 if test $gt_cv_c_long_double = yes; then
22828 cat >>confdefs.h <<\_ACEOF
22829 #define HAVE_LONG_DOUBLE 1
22835 echo "$as_me:$LINENO: checking for wchar_t" >&5
22836 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
22837 if test "${gt_cv_c_wchar_t+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 cat >conftest.$ac_ext <<_ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <stddef.h>
22847 wchar_t foo = (wchar_t)'\0';
22856 rm -f conftest.$ac_objext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22858 (eval $ac_compile) 2>conftest.er1
22860 grep -v '^ *+' conftest.er1 >conftest.err
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } &&
22865 { ac_try='test -z "$ac_c_werror_flag"
22866 || test ! -s conftest.err'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; } &&
22872 { ac_try='test -s conftest.$ac_objext'
22873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874 (eval $ac_try) 2>&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }; }; then
22878 gt_cv_c_wchar_t=yes
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22888 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
22889 if test $gt_cv_c_wchar_t = yes; then
22891 cat >>confdefs.h <<\_ACEOF
22892 #define HAVE_WCHAR_T 1
22898 echo "$as_me:$LINENO: checking for wint_t" >&5
22899 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
22900 if test "${gt_cv_c_wint_t+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22910 wint_t foo = (wchar_t)'\0';
22919 rm -f conftest.$ac_objext
22920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22921 (eval $ac_compile) 2>conftest.er1
22923 grep -v '^ *+' conftest.er1 >conftest.err
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } &&
22928 { ac_try='test -z "$ac_c_werror_flag"
22929 || test ! -s conftest.err'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 { ac_try='test -s conftest.$ac_objext'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22950 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22951 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
22952 if test $gt_cv_c_wint_t = yes; then
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_WINT_T 1
22963 echo "$as_me:$LINENO: checking for intmax_t" >&5
22964 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22965 if test "${gt_cv_c_intmax_t+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22975 #include <stddef.h>
22976 #include <stdlib.h>
22977 #if HAVE_STDINT_H_WITH_UINTMAX
22978 #include <stdint.h>
22980 #if HAVE_INTTYPES_H_WITH_UINTMAX
22981 #include <inttypes.h>
22992 rm -f conftest.$ac_objext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22994 (eval $ac_compile) 2>conftest.er1
22996 grep -v '^ *+' conftest.er1 >conftest.err
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } &&
23001 { ac_try='test -z "$ac_c_werror_flag"
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } &&
23008 { ac_try='test -s conftest.$ac_objext'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; }; then
23014 gt_cv_c_intmax_t=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 gt_cv_c_intmax_t=no
23021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23023 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23024 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
23025 if test $gt_cv_c_intmax_t = yes; then
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_INTMAX_T 1
23033 test $ac_cv_type_long_long = yes \
23034 && ac_type='long long' \
23037 cat >>confdefs.h <<_ACEOF
23038 #define intmax_t $ac_type
23045 for ac_func in vasnprintf
23047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23048 echo "$as_me:$LINENO: checking for $ac_func" >&5
23049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23050 if eval "test \"\${$as_ac_var+set}\" = set"; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23061 #define $ac_func innocuous_$ac_func
23063 /* System header to define __stub macros and hopefully few prototypes,
23064 which can conflict with char $ac_func (); below.
23065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23066 <limits.h> exists even on freestanding compilers. */
23069 # include <limits.h>
23071 # include <assert.h>
23076 /* Override any gcc2 internal prototype to avoid an error. */
23081 /* We use char because int might match the return type of a gcc2
23082 builtin and then its argument prototype would still apply. */
23084 /* The GNU C library defines this for functions which it implements
23085 to always fail with ENOSYS. Some functions are actually named
23086 something starting with __ and the normal name is an alias. */
23087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23090 char (*f) () = $ac_func;
23099 return f != $ac_func;
23104 rm -f conftest.$ac_objext conftest$ac_exeext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23106 (eval $ac_link) 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -z "$ac_c_werror_flag"
23114 || test ! -s conftest.err'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; } &&
23120 { ac_try='test -s conftest$ac_exeext'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 eval "$as_ac_var=yes"
23128 echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23131 eval "$as_ac_var=no"
23133 rm -f conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
23136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23138 if test `eval echo '${'$as_ac_var'}'` = yes; then
23139 cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23145 "$ac_func.$ac_objext" | \
23146 *" $ac_func.$ac_objext" | \
23147 "$ac_func.$ac_objext "* | \
23148 *" $ac_func.$ac_objext "* ) ;;
23149 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23156 if test $ac_cv_func_vasnprintf = no; then
23158 "printf-args.$ac_objext" | \
23159 *" printf-args.$ac_objext" | \
23160 "printf-args.$ac_objext "* | \
23161 *" printf-args.$ac_objext "* ) ;;
23162 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
23166 "printf-parse.$ac_objext" | \
23167 *" printf-parse.$ac_objext" | \
23168 "printf-parse.$ac_objext "* | \
23169 *" printf-parse.$ac_objext "* ) ;;
23170 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
23174 "asnprintf.$ac_objext" | \
23175 *" asnprintf.$ac_objext" | \
23176 "asnprintf.$ac_objext "* | \
23177 *" asnprintf.$ac_objext "* ) ;;
23178 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
23194 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23195 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
23196 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 $ac_includes_default
23209 if ((ptrdiff_t *) 0)
23211 if (sizeof (ptrdiff_t))
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219 (eval $ac_compile) 2>conftest.er1
23221 grep -v '^ *+' conftest.er1 >conftest.err
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } &&
23226 { ac_try='test -z "$ac_c_werror_flag"
23227 || test ! -s conftest.err'
23228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229 (eval $ac_try) 2>&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); }; } &&
23233 { ac_try='test -s conftest.$ac_objext'
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; }; then
23239 ac_cv_type_ptrdiff_t=yes
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 ac_cv_type_ptrdiff_t=no
23246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23248 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23249 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23250 if test $ac_cv_type_ptrdiff_t = yes; then
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_PTRDIFF_T 1
23269 for ac_func in snprintf wcslen
23271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23272 echo "$as_me:$LINENO: checking for $ac_func" >&5
23273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23274 if eval "test \"\${$as_ac_var+set}\" = set"; then
23275 echo $ECHO_N "(cached) $ECHO_C" >&6
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23285 #define $ac_func innocuous_$ac_func
23287 /* System header to define __stub macros and hopefully few prototypes,
23288 which can conflict with char $ac_func (); below.
23289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23290 <limits.h> exists even on freestanding compilers. */
23293 # include <limits.h>
23295 # include <assert.h>
23300 /* Override any gcc2 internal prototype to avoid an error. */
23305 /* We use char because int might match the return type of a gcc2
23306 builtin and then its argument prototype would still apply. */
23308 /* The GNU C library defines this for functions which it implements
23309 to always fail with ENOSYS. Some functions are actually named
23310 something starting with __ and the normal name is an alias. */
23311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23314 char (*f) () = $ac_func;
23323 return f != $ac_func;
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330 (eval $ac_link) 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } &&
23337 { ac_try='test -z "$ac_c_werror_flag"
23338 || test ! -s conftest.err'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } &&
23344 { ac_try='test -s conftest$ac_exeext'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; }; then
23350 eval "$as_ac_var=yes"
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 eval "$as_ac_var=no"
23357 rm -f conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23362 if test `eval echo '${'$as_ac_var'}'` = yes; then
23363 cat >>confdefs.h <<_ACEOF
23364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23377 for ac_func in vasprintf
23379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23380 echo "$as_me:$LINENO: checking for $ac_func" >&5
23381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23382 if eval "test \"\${$as_ac_var+set}\" = set"; then
23383 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 cat >conftest.$ac_ext <<_ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23393 #define $ac_func innocuous_$ac_func
23395 /* System header to define __stub macros and hopefully few prototypes,
23396 which can conflict with char $ac_func (); below.
23397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23398 <limits.h> exists even on freestanding compilers. */
23401 # include <limits.h>
23403 # include <assert.h>
23408 /* Override any gcc2 internal prototype to avoid an error. */
23413 /* We use char because int might match the return type of a gcc2
23414 builtin and then its argument prototype would still apply. */
23416 /* The GNU C library defines this for functions which it implements
23417 to always fail with ENOSYS. Some functions are actually named
23418 something starting with __ and the normal name is an alias. */
23419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23422 char (*f) () = $ac_func;
23431 return f != $ac_func;
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438 (eval $ac_link) 2>conftest.er1
23440 grep -v '^ *+' conftest.er1 >conftest.err
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
23445 { ac_try='test -z "$ac_c_werror_flag"
23446 || test ! -s conftest.err'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; } &&
23452 { ac_try='test -s conftest$ac_exeext'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; }; then
23458 eval "$as_ac_var=yes"
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 eval "$as_ac_var=no"
23465 rm -f conftest.err conftest.$ac_objext \
23466 conftest$ac_exeext conftest.$ac_ext
23468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23470 if test `eval echo '${'$as_ac_var'}'` = yes; then
23471 cat >>confdefs.h <<_ACEOF
23472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23477 "$ac_func.$ac_objext" | \
23478 *" $ac_func.$ac_objext" | \
23479 "$ac_func.$ac_objext "* | \
23480 *" $ac_func.$ac_objext "* ) ;;
23481 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23488 if test $ac_cv_func_vasprintf = no; then
23490 "asprintf.$ac_objext" | \
23491 *" asprintf.$ac_objext" | \
23492 "asprintf.$ac_objext "* | \
23493 *" asprintf.$ac_objext "* ) ;;
23494 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
23504 # getdate.y works with bison only.
23505 : ${YACC='bison -y'}
23508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23510 if test "${ac_cv_struct_tm+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 cat >conftest.$ac_ext <<_ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h. */
23519 #include <sys/types.h>
23525 struct tm *tp; tp->tm_sec;
23530 rm -f conftest.$ac_objext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23532 (eval $ac_compile) 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } &&
23539 { ac_try='test -z "$ac_c_werror_flag"
23540 || test ! -s conftest.err'
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; } &&
23546 { ac_try='test -s conftest.$ac_objext'
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552 ac_cv_struct_tm=time.h
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ac_cv_struct_tm=sys/time.h
23559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23561 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23562 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23563 if test $ac_cv_struct_tm = sys/time.h; then
23565 cat >>confdefs.h <<\_ACEOF
23566 #define TM_IN_SYS_TIME 1
23572 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
23573 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
23574 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23588 static struct tm ac_aggr;
23589 if (ac_aggr.tm_gmtoff)
23595 rm -f conftest.$ac_objext
23596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23597 (eval $ac_compile) 2>conftest.er1
23599 grep -v '^ *+' conftest.er1 >conftest.err
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
23604 { ac_try='test -z "$ac_c_werror_flag"
23605 || test ! -s conftest.err'
23606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607 (eval $ac_try) 2>&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); }; } &&
23611 { ac_try='test -s conftest.$ac_objext'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 ac_cv_member_struct_tm_tm_gmtoff=yes
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622 cat >conftest.$ac_ext <<_ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23633 static struct tm ac_aggr;
23634 if (sizeof ac_aggr.tm_gmtoff)
23640 rm -f conftest.$ac_objext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23642 (eval $ac_compile) 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } &&
23649 { ac_try='test -z "$ac_c_werror_flag"
23650 || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_member_struct_tm_tm_gmtoff=yes
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 ac_cv_member_struct_tm_tm_gmtoff=no
23669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
23674 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
23675 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
23677 cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_TM_GMTOFF 1
23685 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23686 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23687 if test "${ac_cv_header_time+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23690 cat >conftest.$ac_ext <<_ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 #include <sys/types.h>
23697 #include <sys/time.h>
23703 if ((struct tm *) 0)
23709 rm -f conftest.$ac_objext
23710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23711 (eval $ac_compile) 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } &&
23718 { ac_try='test -z "$ac_c_werror_flag"
23719 || test ! -s conftest.err'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest.$ac_objext'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_cv_header_time=yes
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_cv_header_time=no
23738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23740 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23741 echo "${ECHO_T}$ac_cv_header_time" >&6
23742 if test $ac_cv_header_time = yes; then
23744 cat >>confdefs.h <<\_ACEOF
23745 #define TIME_WITH_SYS_TIME 1
23768 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23769 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
23770 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 #include <sys/types.h>
23780 #include <$ac_cv_struct_tm>
23786 static struct tm ac_aggr;
23787 if (ac_aggr.tm_zone)
23793 rm -f conftest.$ac_objext
23794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23795 (eval $ac_compile) 2>conftest.er1
23797 grep -v '^ *+' conftest.er1 >conftest.err
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } &&
23802 { ac_try='test -z "$ac_c_werror_flag"
23803 || test ! -s conftest.err'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; } &&
23809 { ac_try='test -s conftest.$ac_objext'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23815 ac_cv_member_struct_tm_tm_zone=yes
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23826 #include <sys/types.h>
23827 #include <$ac_cv_struct_tm>
23833 static struct tm ac_aggr;
23834 if (sizeof ac_aggr.tm_zone)
23840 rm -f conftest.$ac_objext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842 (eval $ac_compile) 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try='test -z "$ac_c_werror_flag"
23850 || test ! -s conftest.err'
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest.$ac_objext'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862 ac_cv_member_struct_tm_tm_zone=yes
23864 echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23867 ac_cv_member_struct_tm_tm_zone=no
23869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23873 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23874 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
23875 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_STRUCT_TM_TM_ZONE 1
23884 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23886 cat >>confdefs.h <<\_ACEOF
23887 #define HAVE_TM_ZONE 1
23891 echo "$as_me:$LINENO: checking for tzname" >&5
23892 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
23893 if test "${ac_cv_var_tzname+set}" = set; then
23894 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 cat >conftest.$ac_ext <<_ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23903 #ifndef tzname /* For SGI. */
23904 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23917 (eval $ac_link) 2>conftest.er1
23919 grep -v '^ *+' conftest.er1 >conftest.err
23921 cat conftest.err >&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } &&
23924 { ac_try='test -z "$ac_c_werror_flag"
23925 || test ! -s conftest.err'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; } &&
23931 { ac_try='test -s conftest$ac_exeext'
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; }; then
23937 ac_cv_var_tzname=yes
23939 echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23942 ac_cv_var_tzname=no
23944 rm -f conftest.err conftest.$ac_objext \
23945 conftest$ac_exeext conftest.$ac_ext
23947 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23948 echo "${ECHO_T}$ac_cv_var_tzname" >&6
23949 if test $ac_cv_var_tzname = yes; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_TZNAME 1
23962 "getndelim2.$ac_objext" | \
23963 *" getndelim2.$ac_objext" | \
23964 "getndelim2.$ac_objext "* | \
23965 *" getndelim2.$ac_objext "* ) ;;
23966 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
23985 for ac_header in OS.h
23987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23989 echo "$as_me:$LINENO: checking for $ac_header" >&5
23990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23997 # Is the header compilable?
23998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24000 cat >conftest.$ac_ext <<_ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 $ac_includes_default
24007 #include <$ac_header>
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011 (eval $ac_compile) 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -z "$ac_c_werror_flag"
24019 || test ! -s conftest.err'
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; } &&
24025 { ac_try='test -s conftest.$ac_objext'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; }; then
24031 ac_header_compiler=yes
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 ac_header_compiler=no
24038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24040 echo "${ECHO_T}$ac_header_compiler" >&6
24042 # Is the header present?
24043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24045 cat >conftest.$ac_ext <<_ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include <$ac_header>
24053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } >/dev/null; then
24061 if test -s conftest.err; then
24062 ac_cpp_err=$ac_c_preproc_warn_flag
24063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24070 if test -z "$ac_cpp_err"; then
24071 ac_header_preproc=yes
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_header_preproc=no
24078 rm -f conftest.err conftest.$ac_ext
24079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24080 echo "${ECHO_T}$ac_header_preproc" >&6
24082 # So? What about this header?
24083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24089 ac_header_preproc=yes
24092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24106 ## ------------------------------------ ##
24107 ## Report this to bug-coreutils@gnu.org ##
24108 ## ------------------------------------ ##
24111 sed "s/^/$as_me: WARNING: /" >&2
24114 echo "$as_me:$LINENO: checking for $ac_header" >&5
24115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 eval "$as_ac_Header=\$ac_header_preproc"
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24126 cat >>confdefs.h <<_ACEOF
24127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24135 for ac_func in getpagesize
24137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24138 echo "$as_me:$LINENO: checking for $ac_func" >&5
24139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24140 if eval "test \"\${$as_ac_var+set}\" = set"; then
24141 echo $ECHO_N "(cached) $ECHO_C" >&6
24143 cat >conftest.$ac_ext <<_ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24151 #define $ac_func innocuous_$ac_func
24153 /* System header to define __stub macros and hopefully few prototypes,
24154 which can conflict with char $ac_func (); below.
24155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24156 <limits.h> exists even on freestanding compilers. */
24159 # include <limits.h>
24161 # include <assert.h>
24166 /* Override any gcc2 internal prototype to avoid an error. */
24171 /* We use char because int might match the return type of a gcc2
24172 builtin and then its argument prototype would still apply. */
24174 /* The GNU C library defines this for functions which it implements
24175 to always fail with ENOSYS. Some functions are actually named
24176 something starting with __ and the normal name is an alias. */
24177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24180 char (*f) () = $ac_func;
24189 return f != $ac_func;
24194 rm -f conftest.$ac_objext conftest$ac_exeext
24195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24196 (eval $ac_link) 2>conftest.er1
24198 grep -v '^ *+' conftest.er1 >conftest.err
24200 cat conftest.err >&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } &&
24203 { ac_try='test -z "$ac_c_werror_flag"
24204 || test ! -s conftest.err'
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 eval "$as_ac_var=yes"
24218 echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24221 eval "$as_ac_var=no"
24223 rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
24226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24228 if test `eval echo '${'$as_ac_var'}'` = yes; then
24229 cat >>confdefs.h <<_ACEOF
24230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24245 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24246 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
24247 if test "${ac_cv_type_getgroups+set}" = set; then
24248 echo $ECHO_N "(cached) $ECHO_C" >&6
24250 if test "$cross_compiling" = yes; then
24251 ac_cv_type_getgroups=cross
24253 cat >conftest.$ac_ext <<_ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24259 /* Thanks to Mike Rendell for this test. */
24260 #include <sys/types.h>
24263 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24268 gid_t gidset[NGID];
24270 union { gid_t gval; long lval; } val;
24273 for (i = 0; i < NGID; i++)
24274 gidset[i] = val.gval;
24275 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24277 /* Exit non-zero if getgroups seems to require an array of ints. This
24278 happens when gid_t is short but getgroups modifies an array of ints. */
24279 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24282 rm -f conftest$ac_exeext
24283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24284 (eval $ac_link) 2>&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; }; then
24293 ac_cv_type_getgroups=gid_t
24295 echo "$as_me: program exited with status $ac_status" >&5
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ( exit $ac_status )
24300 ac_cv_type_getgroups=int
24302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24304 if test $ac_cv_type_getgroups = cross; then
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 #include <unistd.h>
24314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24315 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24316 ac_cv_type_getgroups=gid_t
24318 ac_cv_type_getgroups=int
24324 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24325 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24327 cat >>confdefs.h <<_ACEOF
24328 #define GETGROUPS_T $ac_cv_type_getgroups
24335 for ac_header in locale.h
24337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24339 echo "$as_me:$LINENO: checking for $ac_header" >&5
24340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24342 echo $ECHO_N "(cached) $ECHO_C" >&6
24344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24347 # Is the header compilable?
24348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24356 $ac_includes_default
24357 #include <$ac_header>
24359 rm -f conftest.$ac_objext
24360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24361 (eval $ac_compile) 2>conftest.er1
24363 grep -v '^ *+' conftest.er1 >conftest.err
24365 cat conftest.err >&5
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); } &&
24368 { ac_try='test -z "$ac_c_werror_flag"
24369 || test ! -s conftest.err'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; } &&
24375 { ac_try='test -s conftest.$ac_objext'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; }; then
24381 ac_header_compiler=yes
24383 echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24386 ac_header_compiler=no
24388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24390 echo "${ECHO_T}$ac_header_compiler" >&6
24392 # Is the header present?
24393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24395 cat >conftest.$ac_ext <<_ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 #include <$ac_header>
24403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } >/dev/null; then
24411 if test -s conftest.err; then
24412 ac_cpp_err=$ac_c_preproc_warn_flag
24413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24420 if test -z "$ac_cpp_err"; then
24421 ac_header_preproc=yes
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24426 ac_header_preproc=no
24428 rm -f conftest.err conftest.$ac_ext
24429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24430 echo "${ECHO_T}$ac_header_preproc" >&6
24432 # So? What about this header?
24433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24439 ac_header_preproc=yes
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24456 ## ------------------------------------ ##
24457 ## Report this to bug-coreutils@gnu.org ##
24458 ## ------------------------------------ ##
24461 sed "s/^/$as_me: WARNING: /" >&2
24464 echo "$as_me:$LINENO: checking for $ac_header" >&5
24465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 eval "$as_ac_Header=\$ac_header_preproc"
24471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24476 cat >>confdefs.h <<_ACEOF
24477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24487 for ac_func in setlocale
24489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_func" >&5
24491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_var+set}\" = set"; then
24493 echo $ECHO_N "(cached) $ECHO_C" >&6
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24503 #define $ac_func innocuous_$ac_func
24505 /* System header to define __stub macros and hopefully few prototypes,
24506 which can conflict with char $ac_func (); below.
24507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24508 <limits.h> exists even on freestanding compilers. */
24511 # include <limits.h>
24513 # include <assert.h>
24518 /* Override any gcc2 internal prototype to avoid an error. */
24523 /* We use char because int might match the return type of a gcc2
24524 builtin and then its argument prototype would still apply. */
24526 /* The GNU C library defines this for functions which it implements
24527 to always fail with ENOSYS. Some functions are actually named
24528 something starting with __ and the normal name is an alias. */
24529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24532 char (*f) () = $ac_func;
24541 return f != $ac_func;
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24548 (eval $ac_link) 2>conftest.er1
24550 grep -v '^ *+' conftest.er1 >conftest.err
24552 cat conftest.err >&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } &&
24555 { ac_try='test -z "$ac_c_werror_flag"
24556 || test ! -s conftest.err'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; } &&
24562 { ac_try='test -s conftest$ac_exeext'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; }; then
24568 eval "$as_ac_var=yes"
24570 echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 eval "$as_ac_var=no"
24575 rm -f conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
24578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24580 if test `eval echo '${'$as_ac_var'}'` = yes; then
24581 cat >>confdefs.h <<_ACEOF
24582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24610 for ac_func in localeconv
24612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24613 echo "$as_me:$LINENO: checking for $ac_func" >&5
24614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24615 if eval "test \"\${$as_ac_var+set}\" = set"; then
24616 echo $ECHO_N "(cached) $ECHO_C" >&6
24618 cat >conftest.$ac_ext <<_ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24626 #define $ac_func innocuous_$ac_func
24628 /* System header to define __stub macros and hopefully few prototypes,
24629 which can conflict with char $ac_func (); below.
24630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24631 <limits.h> exists even on freestanding compilers. */
24634 # include <limits.h>
24636 # include <assert.h>
24641 /* Override any gcc2 internal prototype to avoid an error. */
24646 /* We use char because int might match the return type of a gcc2
24647 builtin and then its argument prototype would still apply. */
24649 /* The GNU C library defines this for functions which it implements
24650 to always fail with ENOSYS. Some functions are actually named
24651 something starting with __ and the normal name is an alias. */
24652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24655 char (*f) () = $ac_func;
24664 return f != $ac_func;
24669 rm -f conftest.$ac_objext conftest$ac_exeext
24670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24671 (eval $ac_link) 2>conftest.er1
24673 grep -v '^ *+' conftest.er1 >conftest.err
24675 cat conftest.err >&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try='test -z "$ac_c_werror_flag"
24679 || test ! -s conftest.err'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } &&
24685 { ac_try='test -s conftest$ac_exeext'
24686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687 (eval $ac_try) 2>&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 eval "$as_ac_var=yes"
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 eval "$as_ac_var=no"
24698 rm -f conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24703 if test `eval echo '${'$as_ac_var'}'` = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24744 echo "$as_me:$LINENO: checking for AFS" >&5
24745 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
24746 if test -d /afs; then
24748 cat >>confdefs.h <<\_ACEOF
24756 echo "$as_me:$LINENO: result: $ac_result" >&5
24757 echo "${ECHO_T}$ac_result" >&6
24773 for ac_header in wchar.h
24775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24777 echo "$as_me:$LINENO: checking for $ac_header" >&5
24778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24780 echo $ECHO_N "(cached) $ECHO_C" >&6
24782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24785 # Is the header compilable?
24786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24795 #include <$ac_header>
24797 rm -f conftest.$ac_objext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24799 (eval $ac_compile) 2>conftest.er1
24801 grep -v '^ *+' conftest.er1 >conftest.err
24803 cat conftest.err >&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } &&
24806 { ac_try='test -z "$ac_c_werror_flag"
24807 || test ! -s conftest.err'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; } &&
24813 { ac_try='test -s conftest.$ac_objext'
24814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815 (eval $ac_try) 2>&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; }; then
24819 ac_header_compiler=yes
24821 echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 ac_header_compiler=no
24826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 echo "${ECHO_T}$ac_header_compiler" >&6
24830 # Is the header present?
24831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <$ac_header>
24841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24844 grep -v '^ *+' conftest.er1 >conftest.err
24846 cat conftest.err >&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); } >/dev/null; then
24849 if test -s conftest.err; then
24850 ac_cpp_err=$ac_c_preproc_warn_flag
24851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24858 if test -z "$ac_cpp_err"; then
24859 ac_header_preproc=yes
24861 echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 ac_header_preproc=no
24866 rm -f conftest.err conftest.$ac_ext
24867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868 echo "${ECHO_T}$ac_header_preproc" >&6
24870 # So? What about this header?
24871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877 ac_header_preproc=yes
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24894 ## ------------------------------------ ##
24895 ## Report this to bug-coreutils@gnu.org ##
24896 ## ------------------------------------ ##
24899 sed "s/^/$as_me: WARNING: /" >&2
24902 echo "$as_me:$LINENO: checking for $ac_header" >&5
24903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 eval "$as_ac_Header=\$ac_header_preproc"
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24914 cat >>confdefs.h <<_ACEOF
24915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24925 for ac_header in wctype.h
24927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24929 echo "$as_me:$LINENO: checking for $ac_header" >&5
24930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24937 # Is the header compilable?
24938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24940 cat >conftest.$ac_ext <<_ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 $ac_includes_default
24947 #include <$ac_header>
24949 rm -f conftest.$ac_objext
24950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24951 (eval $ac_compile) 2>conftest.er1
24953 grep -v '^ *+' conftest.er1 >conftest.err
24955 cat conftest.err >&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } &&
24958 { ac_try='test -z "$ac_c_werror_flag"
24959 || test ! -s conftest.err'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; } &&
24965 { ac_try='test -s conftest.$ac_objext'
24966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967 (eval $ac_try) 2>&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); }; }; then
24971 ac_header_compiler=yes
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24976 ac_header_compiler=no
24978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24980 echo "${ECHO_T}$ac_header_compiler" >&6
24982 # Is the header present?
24983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 #include <$ac_header>
24993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24996 grep -v '^ *+' conftest.er1 >conftest.err
24998 cat conftest.err >&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } >/dev/null; then
25001 if test -s conftest.err; then
25002 ac_cpp_err=$ac_c_preproc_warn_flag
25003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25010 if test -z "$ac_cpp_err"; then
25011 ac_header_preproc=yes
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_header_preproc=no
25018 rm -f conftest.err conftest.$ac_ext
25019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25020 echo "${ECHO_T}$ac_header_preproc" >&6
25022 # So? What about this header?
25023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25029 ac_header_preproc=yes
25032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25046 ## ------------------------------------ ##
25047 ## Report this to bug-coreutils@gnu.org ##
25048 ## ------------------------------------ ##
25051 sed "s/^/$as_me: WARNING: /" >&2
25054 echo "$as_me:$LINENO: checking for $ac_header" >&5
25055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 eval "$as_ac_Header=\$ac_header_preproc"
25061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25077 for ac_func in iswprint
25079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25080 echo "$as_me:$LINENO: checking for $ac_func" >&5
25081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25082 if eval "test \"\${$as_ac_var+set}\" = set"; then
25083 echo $ECHO_N "(cached) $ECHO_C" >&6
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25093 #define $ac_func innocuous_$ac_func
25095 /* System header to define __stub macros and hopefully few prototypes,
25096 which can conflict with char $ac_func (); below.
25097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25098 <limits.h> exists even on freestanding compilers. */
25101 # include <limits.h>
25103 # include <assert.h>
25108 /* Override any gcc2 internal prototype to avoid an error. */
25113 /* We use char because int might match the return type of a gcc2
25114 builtin and then its argument prototype would still apply. */
25116 /* The GNU C library defines this for functions which it implements
25117 to always fail with ENOSYS. Some functions are actually named
25118 something starting with __ and the normal name is an alias. */
25119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25122 char (*f) () = $ac_func;
25131 return f != $ac_func;
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138 (eval $ac_link) 2>conftest.er1
25140 grep -v '^ *+' conftest.er1 >conftest.err
25142 cat conftest.err >&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } &&
25145 { ac_try='test -z "$ac_c_werror_flag"
25146 || test ! -s conftest.err'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } &&
25152 { ac_try='test -s conftest$ac_exeext'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 eval "$as_ac_var=yes"
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25163 eval "$as_ac_var=no"
25165 rm -f conftest.err conftest.$ac_objext \
25166 conftest$ac_exeext conftest.$ac_ext
25168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171 cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25181 for ac_func in mbsinit
25183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25184 echo "$as_me:$LINENO: checking for $ac_func" >&5
25185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25186 if eval "test \"\${$as_ac_var+set}\" = set"; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25189 cat >conftest.$ac_ext <<_ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25197 #define $ac_func innocuous_$ac_func
25199 /* System header to define __stub macros and hopefully few prototypes,
25200 which can conflict with char $ac_func (); below.
25201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25202 <limits.h> exists even on freestanding compilers. */
25205 # include <limits.h>
25207 # include <assert.h>
25212 /* Override any gcc2 internal prototype to avoid an error. */
25217 /* We use char because int might match the return type of a gcc2
25218 builtin and then its argument prototype would still apply. */
25220 /* The GNU C library defines this for functions which it implements
25221 to always fail with ENOSYS. Some functions are actually named
25222 something starting with __ and the normal name is an alias. */
25223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25226 char (*f) () = $ac_func;
25235 return f != $ac_func;
25240 rm -f conftest.$ac_objext conftest$ac_exeext
25241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25242 (eval $ac_link) 2>conftest.er1
25244 grep -v '^ *+' conftest.er1 >conftest.err
25246 cat conftest.err >&5
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } &&
25249 { ac_try='test -z "$ac_c_werror_flag"
25250 || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest$ac_exeext'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 eval "$as_ac_var=yes"
25264 echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25267 eval "$as_ac_var=no"
25269 rm -f conftest.err conftest.$ac_objext \
25270 conftest$ac_exeext conftest.$ac_ext
25272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25274 if test `eval echo '${'$as_ac_var'}'` = yes; then
25275 cat >>confdefs.h <<_ACEOF
25276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25309 for ac_func in iswcntrl wcwidth
25311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25312 echo "$as_me:$LINENO: checking for $ac_func" >&5
25313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25314 if eval "test \"\${$as_ac_var+set}\" = set"; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25325 #define $ac_func innocuous_$ac_func
25327 /* System header to define __stub macros and hopefully few prototypes,
25328 which can conflict with char $ac_func (); below.
25329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25330 <limits.h> exists even on freestanding compilers. */
25333 # include <limits.h>
25335 # include <assert.h>
25340 /* Override any gcc2 internal prototype to avoid an error. */
25345 /* We use char because int might match the return type of a gcc2
25346 builtin and then its argument prototype would still apply. */
25348 /* The GNU C library defines this for functions which it implements
25349 to always fail with ENOSYS. Some functions are actually named
25350 something starting with __ and the normal name is an alias. */
25351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25354 char (*f) () = $ac_func;
25363 return f != $ac_func;
25368 rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25370 (eval $ac_link) 2>conftest.er1
25372 grep -v '^ *+' conftest.er1 >conftest.err
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } &&
25377 { ac_try='test -z "$ac_c_werror_flag"
25378 || test ! -s conftest.err'
25379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380 (eval $ac_try) 2>&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); }; } &&
25384 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25390 eval "$as_ac_var=yes"
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 eval "$as_ac_var=no"
25397 rm -f conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
25400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25402 if test `eval echo '${'$as_ac_var'}'` = yes; then
25403 cat >>confdefs.h <<_ACEOF
25404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25411 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25412 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
25413 if test "${jm_cv_func_mbrtowc+set}" = set; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25426 mbstate_t state; return ! (sizeof state && mbrtowc);
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25433 (eval $ac_link) 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } &&
25440 { ac_try='test -z "$ac_c_werror_flag"
25441 || test ! -s conftest.err'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; } &&
25447 { ac_try='test -s conftest$ac_exeext'
25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449 (eval $ac_try) 2>&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; }; then
25453 jm_cv_func_mbrtowc=yes
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 jm_cv_func_mbrtowc=no
25460 rm -f conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25463 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
25464 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
25465 if test $jm_cv_func_mbrtowc = yes; then
25467 cat >>confdefs.h <<\_ACEOF
25468 #define HAVE_MBRTOWC 1
25474 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
25475 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
25476 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25479 cat >conftest.$ac_ext <<_ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h. */
25486 /* AIX 3.2.5 declares wcwidth in <string.h>. */
25488 # include <string.h>
25491 # include <wchar.h>
25499 char *p = (char *) wcwidth;
25506 rm -f conftest.$ac_objext
25507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25508 (eval $ac_compile) 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
25515 { ac_try='test -z "$ac_c_werror_flag"
25516 || test ! -s conftest.err'
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); }; } &&
25522 { ac_try='test -s conftest.$ac_objext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_have_decl_wcwidth=yes
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 ac_cv_have_decl_wcwidth=no
25535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25537 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
25538 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
25539 if test $ac_cv_have_decl_wcwidth = yes; then
25545 cat >>confdefs.h <<_ACEOF
25546 #define HAVE_DECL_WCWIDTH $ac_val
25550 echo "$as_me:$LINENO: checking for mbstate_t" >&5
25551 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
25552 if test "${ac_cv_type_mbstate_t+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25555 cat >conftest.$ac_ext <<_ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h. */
25561 $ac_includes_default
25562 # include <wchar.h>
25566 mbstate_t x; return sizeof x;
25571 rm -f conftest.$ac_objext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25573 (eval $ac_compile) 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
25580 { ac_try='test -z "$ac_c_werror_flag"
25581 || test ! -s conftest.err'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; } &&
25587 { ac_try='test -s conftest.$ac_objext'
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; }; then
25593 ac_cv_type_mbstate_t=yes
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 ac_cv_type_mbstate_t=no
25600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25602 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25603 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
25604 if test $ac_cv_type_mbstate_t = yes; then
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_MBSTATE_T 1
25612 cat >>confdefs.h <<\_ACEOF
25613 #define mbstate_t int
25622 echo "$as_me:$LINENO: checking for working memcmp" >&5
25623 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25624 if test "${ac_cv_func_memcmp_working+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 if test "$cross_compiling" = yes; then
25628 ac_cv_func_memcmp_working=no
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25641 /* Some versions of memcmp are not 8-bit clean. */
25642 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25643 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25646 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25647 or more and with at least one buffer not starting on a 4-byte boundary.
25648 William Lewis provided this test program. */
25653 for (i = 0; i < 4; i++)
25657 strcpy (a, "--------01111111");
25658 strcpy (b, "--------10000000");
25659 if (memcmp (a, b, 16) >= 0)
25669 rm -f conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671 (eval $ac_link) 2>&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676 (eval $ac_try) 2>&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); }; }; then
25680 ac_cv_func_memcmp_working=yes
25682 echo "$as_me: program exited with status $ac_status" >&5
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 ( exit $ac_status )
25687 ac_cv_func_memcmp_working=no
25689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25692 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25693 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25694 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25695 "memcmp.$ac_objext" | \
25696 *" memcmp.$ac_objext" | \
25697 "memcmp.$ac_objext "* | \
25698 *" memcmp.$ac_objext "* ) ;;
25699 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25705 echo "$as_me:$LINENO: checking for working strcoll" >&5
25706 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
25707 if test "${ac_cv_func_strcoll_works+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 if test "$cross_compiling" = yes; then
25711 ac_cv_func_strcoll_works=no
25713 cat >conftest.$ac_ext <<_ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25719 $ac_includes_default
25723 exit (strcoll ("abc", "def") >= 0 ||
25724 strcoll ("ABC", "DEF") >= 0 ||
25725 strcoll ("123", "456") >= 0)
25730 rm -f conftest$ac_exeext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732 (eval $ac_link) 2>&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 ac_cv_func_strcoll_works=yes
25743 echo "$as_me: program exited with status $ac_status" >&5
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25747 ( exit $ac_status )
25748 ac_cv_func_strcoll_works=no
25750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25753 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
25754 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
25755 if test $ac_cv_func_strcoll_works = yes; then
25757 cat >>confdefs.h <<\_ACEOF
25758 #define HAVE_STRCOLL 1
25771 for ac_func in listmntent getmntinfo
25773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25774 echo "$as_me:$LINENO: checking for $ac_func" >&5
25775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_var+set}\" = set"; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25787 #define $ac_func innocuous_$ac_func
25789 /* System header to define __stub macros and hopefully few prototypes,
25790 which can conflict with char $ac_func (); below.
25791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25792 <limits.h> exists even on freestanding compilers. */
25795 # include <limits.h>
25797 # include <assert.h>
25802 /* Override any gcc2 internal prototype to avoid an error. */
25807 /* We use char because int might match the return type of a gcc2
25808 builtin and then its argument prototype would still apply. */
25810 /* The GNU C library defines this for functions which it implements
25811 to always fail with ENOSYS. Some functions are actually named
25812 something starting with __ and the normal name is an alias. */
25813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25816 char (*f) () = $ac_func;
25825 return f != $ac_func;
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25832 (eval $ac_link) 2>conftest.er1
25834 grep -v '^ *+' conftest.er1 >conftest.err
25836 cat conftest.err >&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } &&
25839 { ac_try='test -z "$ac_c_werror_flag"
25840 || test ! -s conftest.err'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; } &&
25846 { ac_try='test -s conftest$ac_exeext'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 eval "$as_ac_var=yes"
25854 echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25857 eval "$as_ac_var=no"
25859 rm -f conftest.err conftest.$ac_objext \
25860 conftest$ac_exeext conftest.$ac_ext
25862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25864 if test `eval echo '${'$as_ac_var'}'` = yes; then
25865 cat >>confdefs.h <<_ACEOF
25866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25880 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
25881 # NGROUPS (as the array dimension for a struct member) without a definition.
25883 for ac_header in sys/ucred.h
25885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25886 echo "$as_me:$LINENO: checking for $ac_header" >&5
25887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 cat >conftest.$ac_ext <<_ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25899 #include <$ac_header>
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903 (eval $ac_compile) 2>conftest.er1
25905 grep -v '^ *+' conftest.er1 >conftest.err
25907 cat conftest.err >&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } &&
25910 { ac_try='test -z "$ac_c_werror_flag"
25911 || test ! -s conftest.err'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; } &&
25917 { ac_try='test -s conftest.$ac_objext'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; }; then
25923 eval "$as_ac_Header=yes"
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25928 eval "$as_ac_Header=no"
25930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25935 cat >>confdefs.h <<_ACEOF
25936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25947 for ac_header in mntent.h sys/mount.h sys/fs_types.h
25949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25951 echo "$as_me:$LINENO: checking for $ac_header" >&5
25952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25954 echo $ECHO_N "(cached) $ECHO_C" >&6
25956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25959 # Is the header compilable?
25960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 $ac_includes_default
25969 #include <$ac_header>
25971 rm -f conftest.$ac_objext
25972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25973 (eval $ac_compile) 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } &&
25980 { ac_try='test -z "$ac_c_werror_flag"
25981 || test ! -s conftest.err'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; } &&
25987 { ac_try='test -s conftest.$ac_objext'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; }; then
25993 ac_header_compiler=yes
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 ac_header_compiler=no
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26002 echo "${ECHO_T}$ac_header_compiler" >&6
26004 # Is the header present?
26005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26007 cat >conftest.$ac_ext <<_ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 #include <$ac_header>
26015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26018 grep -v '^ *+' conftest.er1 >conftest.err
26020 cat conftest.err >&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } >/dev/null; then
26023 if test -s conftest.err; then
26024 ac_cpp_err=$ac_c_preproc_warn_flag
26025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26032 if test -z "$ac_cpp_err"; then
26033 ac_header_preproc=yes
26035 echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26038 ac_header_preproc=no
26040 rm -f conftest.err conftest.$ac_ext
26041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26042 echo "${ECHO_T}$ac_header_preproc" >&6
26044 # So? What about this header?
26045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26051 ac_header_preproc=yes
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26068 ## ------------------------------------ ##
26069 ## Report this to bug-coreutils@gnu.org ##
26070 ## ------------------------------------ ##
26073 sed "s/^/$as_me: WARNING: /" >&2
26076 echo "$as_me:$LINENO: checking for $ac_header" >&5
26077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26079 echo $ECHO_N "(cached) $ECHO_C" >&6
26081 eval "$as_ac_Header=\$ac_header_preproc"
26083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26088 cat >>confdefs.h <<_ACEOF
26089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26096 getfsstat_includes="\
26097 $ac_includes_default
26098 #if HAVE_SYS_PARAM_H
26099 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
26101 #if HAVE_SYS_UCRED_H
26102 # include <grp.h> /* needed for definition of NGROUPS */
26103 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
26105 #if HAVE_SYS_MOUNT_H
26106 # include <sys/mount.h>
26108 #if HAVE_SYS_FS_TYPES_H
26109 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
26112 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
26113 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
26114 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
26115 echo $ECHO_N "(cached) $ECHO_C" >&6
26117 cat >conftest.$ac_ext <<_ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h. */
26123 $getfsstat_includes
26128 static struct fsstat ac_aggr;
26129 if (ac_aggr.f_fstypename)
26135 rm -f conftest.$ac_objext
26136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26137 (eval $ac_compile) 2>conftest.er1
26139 grep -v '^ *+' conftest.er1 >conftest.err
26141 cat conftest.err >&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } &&
26144 { ac_try='test -z "$ac_c_werror_flag"
26145 || test ! -s conftest.err'
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest.$ac_objext'
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157 ac_cv_member_struct_fsstat_f_fstypename=yes
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26162 cat >conftest.$ac_ext <<_ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h. */
26168 $getfsstat_includes
26173 static struct fsstat ac_aggr;
26174 if (sizeof ac_aggr.f_fstypename)
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182 (eval $ac_compile) 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest.$ac_objext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 ac_cv_member_struct_fsstat_f_fstypename=yes
26204 echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26207 ac_cv_member_struct_fsstat_f_fstypename=no
26209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
26214 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
26215 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
26217 cat >>confdefs.h <<_ACEOF
26218 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
26225 # Determine how to get the list of mounted filesystems.
26226 ac_list_mounted_fs=
26228 # If the getmntent function is available but not in the standard library,
26229 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
26230 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
26231 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
26232 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
26233 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26236 ac_check_lib_save_LIBS=$LIBS
26238 cat >conftest.$ac_ext <<_ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h. */
26245 /* Override any gcc2 internal prototype to avoid an error. */
26249 /* We use char because int might match the return type of a gcc2
26250 builtin and then its argument prototype would still apply. */
26260 rm -f conftest.$ac_objext conftest$ac_exeext
26261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26262 (eval $ac_link) 2>conftest.er1
26264 grep -v '^ *+' conftest.er1 >conftest.err
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } &&
26269 { ac_try='test -z "$ac_c_werror_flag"
26270 || test ! -s conftest.err'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; } &&
26276 { ac_try='test -s conftest$ac_exeext'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 ac_cv_lib_sun_getmntent=yes
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ac_cv_lib_sun_getmntent=no
26289 rm -f conftest.err conftest.$ac_objext \
26290 conftest$ac_exeext conftest.$ac_ext
26291 LIBS=$ac_check_lib_save_LIBS
26293 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
26294 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
26295 if test $ac_cv_lib_sun_getmntent = yes; then
26298 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
26299 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
26300 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
26303 ac_check_lib_save_LIBS=$LIBS
26305 cat >conftest.$ac_ext <<_ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h. */
26312 /* Override any gcc2 internal prototype to avoid an error. */
26316 /* We use char because int might match the return type of a gcc2
26317 builtin and then its argument prototype would still apply. */
26327 rm -f conftest.$ac_objext conftest$ac_exeext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26329 (eval $ac_link) 2>conftest.er1
26331 grep -v '^ *+' conftest.er1 >conftest.err
26333 cat conftest.err >&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } &&
26336 { ac_try='test -z "$ac_c_werror_flag"
26337 || test ! -s conftest.err'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; } &&
26343 { ac_try='test -s conftest$ac_exeext'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_cv_lib_seq_getmntent=yes
26351 echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26354 ac_cv_lib_seq_getmntent=no
26356 rm -f conftest.err conftest.$ac_objext \
26357 conftest$ac_exeext conftest.$ac_ext
26358 LIBS=$ac_check_lib_save_LIBS
26360 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
26361 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
26362 if test $ac_cv_lib_seq_getmntent = yes; then
26365 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
26366 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
26367 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
26368 echo $ECHO_N "(cached) $ECHO_C" >&6
26370 ac_check_lib_save_LIBS=$LIBS
26372 cat >conftest.$ac_ext <<_ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h. */
26379 /* Override any gcc2 internal prototype to avoid an error. */
26383 /* We use char because int might match the return type of a gcc2
26384 builtin and then its argument prototype would still apply. */
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26396 (eval $ac_link) 2>conftest.er1
26398 grep -v '^ *+' conftest.er1 >conftest.err
26400 cat conftest.err >&5
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); } &&
26403 { ac_try='test -z "$ac_c_werror_flag"
26404 || test ! -s conftest.err'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest$ac_exeext'
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
26416 ac_cv_lib_gen_getmntent=yes
26418 echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26421 ac_cv_lib_gen_getmntent=no
26423 rm -f conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
26425 LIBS=$ac_check_lib_save_LIBS
26427 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
26428 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
26429 if test $ac_cv_lib_gen_getmntent = yes; then
26438 for ac_func in getmntent
26440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26441 echo "$as_me:$LINENO: checking for $ac_func" >&5
26442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26443 if eval "test \"\${$as_ac_var+set}\" = set"; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 cat >conftest.$ac_ext <<_ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h. */
26452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26454 #define $ac_func innocuous_$ac_func
26456 /* System header to define __stub macros and hopefully few prototypes,
26457 which can conflict with char $ac_func (); below.
26458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26459 <limits.h> exists even on freestanding compilers. */
26462 # include <limits.h>
26464 # include <assert.h>
26469 /* Override any gcc2 internal prototype to avoid an error. */
26474 /* We use char because int might match the return type of a gcc2
26475 builtin and then its argument prototype would still apply. */
26477 /* The GNU C library defines this for functions which it implements
26478 to always fail with ENOSYS. Some functions are actually named
26479 something starting with __ and the normal name is an alias. */
26480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26483 char (*f) () = $ac_func;
26492 return f != $ac_func;
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499 (eval $ac_link) 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
26506 { ac_try='test -z "$ac_c_werror_flag"
26507 || test ! -s conftest.err'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; } &&
26513 { ac_try='test -s conftest$ac_exeext'
26514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515 (eval $ac_try) 2>&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); }; }; then
26519 eval "$as_ac_var=yes"
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26524 eval "$as_ac_var=no"
26526 rm -f conftest.err conftest.$ac_objext \
26527 conftest$ac_exeext conftest.$ac_ext
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26531 if test `eval echo '${'$as_ac_var'}'` = yes; then
26532 cat >>confdefs.h <<_ACEOF
26533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26541 # This test must precede the ones for getmntent because Unicos-9 is
26542 # reported to have the getmntent function, but its support is incompatible
26543 # with other getmntent implementations.
26545 # NOTE: Normally, I wouldn't use a check for system type as I've done for
26546 # `CRAY' below since that goes against the whole autoconf philosophy. But
26547 # I think there is too great a chance that some non-Cray system has a
26548 # function named listmntent to risk the false positive.
26550 if test -z "$ac_list_mounted_fs"; then
26552 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
26553 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
26554 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 fu_cv_sys_mounted_cray_listmntent=no
26558 cat >conftest.$ac_ext <<_ACEOF
26561 cat confdefs.h >>conftest.$ac_ext
26562 cat >>conftest.$ac_ext <<_ACEOF
26563 /* end confdefs.h. */
26569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26570 $EGREP "yes" >/dev/null 2>&1; then
26571 test $ac_cv_func_listmntent = yes \
26572 && fu_cv_sys_mounted_cray_listmntent=yes
26581 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
26582 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
26583 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
26584 ac_list_mounted_fs=found
26586 cat >>confdefs.h <<\_ACEOF
26587 #define MOUNTED_LISTMNTENT 1
26593 if test -z "$ac_list_mounted_fs"; then
26595 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
26596 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
26597 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 cat >conftest.$ac_ext <<_ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26606 #include <fshelp.h>
26608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26611 grep -v '^ *+' conftest.er1 >conftest.err
26613 cat conftest.err >&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); } >/dev/null; then
26616 if test -s conftest.err; then
26617 ac_cpp_err=$ac_c_preproc_warn_flag
26618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26625 if test -z "$ac_cpp_err"; then
26626 fu_cv_sys_mounted_vmount=yes
26628 echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 fu_cv_sys_mounted_vmount=no
26633 rm -f conftest.err conftest.$ac_ext
26636 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
26637 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
26638 if test $fu_cv_sys_mounted_vmount = yes; then
26639 ac_list_mounted_fs=found
26641 cat >>confdefs.h <<\_ACEOF
26642 #define MOUNTED_VMOUNT 1
26648 if test $ac_cv_func_getmntent = yes; then
26650 # This system has the getmntent function.
26651 # Determine whether it's the one-argument variant or the two-argument one.
26653 if test -z "$ac_list_mounted_fs"; then
26654 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
26655 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
26656 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
26657 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
26658 echo $ECHO_N "(cached) $ECHO_C" >&6
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26667 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
26670 #include <mntent.h>
26671 #if !defined MOUNTED
26672 # if defined _PATH_MOUNTED /* GNU libc */
26673 # define MOUNTED _PATH_MOUNTED
26675 # if defined MNT_MNTTAB /* HP-UX. */
26676 # define MOUNTED MNT_MNTTAB
26678 # if defined MNTTABNAME /* Dynix. */
26679 # define MOUNTED MNTTABNAME
26686 struct mntent *mnt = 0; char *table = MOUNTED;
26691 rm -f conftest.$ac_objext
26692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26693 (eval $ac_compile) 2>conftest.er1
26695 grep -v '^ *+' conftest.er1 >conftest.err
26697 cat conftest.err >&5
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } &&
26700 { ac_try='test -z "$ac_c_werror_flag"
26701 || test ! -s conftest.err'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; } &&
26707 { ac_try='test -s conftest.$ac_objext'
26708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709 (eval $ac_try) 2>&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); }; }; then
26713 fu_cv_sys_mounted_getmntent1=yes
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 fu_cv_sys_mounted_getmntent1=no
26720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
26724 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
26725 if test $fu_cv_sys_mounted_getmntent1 = yes; then
26726 ac_list_mounted_fs=found
26728 cat >>confdefs.h <<\_ACEOF
26729 #define MOUNTED_GETMNTENT1 1
26735 if test -z "$ac_list_mounted_fs"; then
26737 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
26738 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
26739 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 #include <sys/mnttab.h>
26751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26752 $EGREP "getmntent" >/dev/null 2>&1; then
26753 fu_cv_sys_mounted_getmntent2=yes
26755 fu_cv_sys_mounted_getmntent2=no
26761 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
26762 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
26763 if test $fu_cv_sys_mounted_getmntent2 = yes; then
26764 ac_list_mounted_fs=found
26766 cat >>confdefs.h <<\_ACEOF
26767 #define MOUNTED_GETMNTENT2 1
26775 if test -z "$ac_list_mounted_fs"; then
26776 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
26777 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
26779 echo "$as_me:$LINENO: checking for getfsstat function" >&5
26780 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
26781 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26791 #include <sys/types.h>
26792 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
26793 # define FS_TYPE(Ent) ((Ent).f_fstypename)
26795 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
26797 $getfsstat_includes
26802 struct statfs *stats;
26803 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
26804 char *t = FS_TYPE (*stats);
26809 rm -f conftest.$ac_objext conftest$ac_exeext
26810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26811 (eval $ac_link) 2>conftest.er1
26813 grep -v '^ *+' conftest.er1 >conftest.err
26815 cat conftest.err >&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
26818 { ac_try='test -z "$ac_c_werror_flag"
26819 || test ! -s conftest.err'
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; } &&
26825 { ac_try='test -s conftest$ac_exeext'
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 fu_cv_sys_mounted_getfsstat=yes
26833 echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26836 fu_cv_sys_mounted_getfsstat=no
26838 rm -f conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
26842 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
26843 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
26844 if test $fu_cv_sys_mounted_getfsstat = yes; then
26845 ac_list_mounted_fs=found
26847 cat >>confdefs.h <<\_ACEOF
26848 #define MOUNTED_GETFSSTAT 1
26854 if test -z "$ac_list_mounted_fs"; then
26856 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
26857 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
26858 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h. */
26868 #include <sys/statfs.h>
26869 #include <sys/fstyp.h>
26870 #include <mnttab.h>
26872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26875 grep -v '^ *+' conftest.er1 >conftest.err
26877 cat conftest.err >&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); } >/dev/null; then
26880 if test -s conftest.err; then
26881 ac_cpp_err=$ac_c_preproc_warn_flag
26882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26889 if test -z "$ac_cpp_err"; then
26890 fu_cv_sys_mounted_fread_fstyp=yes
26892 echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26895 fu_cv_sys_mounted_fread_fstyp=no
26897 rm -f conftest.err conftest.$ac_ext
26900 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
26901 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
26902 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
26903 ac_list_mounted_fs=found
26905 cat >>confdefs.h <<\_ACEOF
26906 #define MOUNTED_FREAD_FSTYP 1
26912 if test -z "$ac_list_mounted_fs"; then
26913 # 4.4BSD and DEC OSF/1.
26914 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
26915 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
26916 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
26917 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 test "$ac_cv_func_getmntinfo" = yes \
26921 && fu_cv_sys_mounted_getmntinfo=yes \
26922 || fu_cv_sys_mounted_getmntinfo=no
26926 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
26927 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
26928 if test $fu_cv_sys_mounted_getmntinfo = yes; then
26929 ac_list_mounted_fs=found
26931 cat >>confdefs.h <<\_ACEOF
26932 #define MOUNTED_GETMNTINFO 1
26938 if test -z "$ac_list_mounted_fs"; then
26940 echo "$as_me:$LINENO: checking for getmnt function" >&5
26941 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
26942 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
26943 echo $ECHO_N "(cached) $ECHO_C" >&6
26945 cat >conftest.$ac_ext <<_ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h. */
26952 #include <sys/fs_types.h>
26953 #include <sys/mount.h>
26955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26958 grep -v '^ *+' conftest.er1 >conftest.err
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } >/dev/null; then
26963 if test -s conftest.err; then
26964 ac_cpp_err=$ac_c_preproc_warn_flag
26965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26972 if test -z "$ac_cpp_err"; then
26973 fu_cv_sys_mounted_getmnt=yes
26975 echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26978 fu_cv_sys_mounted_getmnt=no
26980 rm -f conftest.err conftest.$ac_ext
26983 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
26984 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
26985 if test $fu_cv_sys_mounted_getmnt = yes; then
26986 ac_list_mounted_fs=found
26988 cat >>confdefs.h <<\_ACEOF
26989 #define MOUNTED_GETMNT 1
26995 if test -z "$ac_list_mounted_fs"; then
26999 for ac_func in next_dev fs_stat_dev
27001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27002 echo "$as_me:$LINENO: checking for $ac_func" >&5
27003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27004 if eval "test \"\${$as_ac_var+set}\" = set"; then
27005 echo $ECHO_N "(cached) $ECHO_C" >&6
27007 cat >conftest.$ac_ext <<_ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27015 #define $ac_func innocuous_$ac_func
27017 /* System header to define __stub macros and hopefully few prototypes,
27018 which can conflict with char $ac_func (); below.
27019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27020 <limits.h> exists even on freestanding compilers. */
27023 # include <limits.h>
27025 # include <assert.h>
27030 /* Override any gcc2 internal prototype to avoid an error. */
27035 /* We use char because int might match the return type of a gcc2
27036 builtin and then its argument prototype would still apply. */
27038 /* The GNU C library defines this for functions which it implements
27039 to always fail with ENOSYS. Some functions are actually named
27040 something starting with __ and the normal name is an alias. */
27041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27044 char (*f) () = $ac_func;
27053 return f != $ac_func;
27058 rm -f conftest.$ac_objext conftest$ac_exeext
27059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27060 (eval $ac_link) 2>conftest.er1
27062 grep -v '^ *+' conftest.er1 >conftest.err
27064 cat conftest.err >&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); } &&
27067 { ac_try='test -z "$ac_c_werror_flag"
27068 || test ! -s conftest.err'
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; }; then
27080 eval "$as_ac_var=yes"
27082 echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27085 eval "$as_ac_var=no"
27087 rm -f conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
27090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27092 if test `eval echo '${'$as_ac_var'}'` = yes; then
27093 cat >>confdefs.h <<_ACEOF
27094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27101 for ac_header in fs_info.h
27103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27105 echo "$as_me:$LINENO: checking for $ac_header" >&5
27106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27113 # Is the header compilable?
27114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27116 cat >conftest.$ac_ext <<_ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h. */
27122 $ac_includes_default
27123 #include <$ac_header>
27125 rm -f conftest.$ac_objext
27126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27127 (eval $ac_compile) 2>conftest.er1
27129 grep -v '^ *+' conftest.er1 >conftest.err
27131 cat conftest.err >&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); } &&
27134 { ac_try='test -z "$ac_c_werror_flag"
27135 || test ! -s conftest.err'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; } &&
27141 { ac_try='test -s conftest.$ac_objext'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
27147 ac_header_compiler=yes
27149 echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27152 ac_header_compiler=no
27154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27156 echo "${ECHO_T}$ac_header_compiler" >&6
27158 # Is the header present?
27159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 #include <$ac_header>
27169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27172 grep -v '^ *+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } >/dev/null; then
27177 if test -s conftest.err; then
27178 ac_cpp_err=$ac_c_preproc_warn_flag
27179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27186 if test -z "$ac_cpp_err"; then
27187 ac_header_preproc=yes
27189 echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_header_preproc=no
27194 rm -f conftest.err conftest.$ac_ext
27195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27196 echo "${ECHO_T}$ac_header_preproc" >&6
27198 # So? What about this header?
27199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27205 ac_header_preproc=yes
27208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27222 ## ------------------------------------ ##
27223 ## Report this to bug-coreutils@gnu.org ##
27224 ## ------------------------------------ ##
27227 sed "s/^/$as_me: WARNING: /" >&2
27230 echo "$as_me:$LINENO: checking for $ac_header" >&5
27231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 eval "$as_ac_Header=\$ac_header_preproc"
27237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27242 cat >>confdefs.h <<_ACEOF
27243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
27251 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
27252 if test $ac_cv_header_fs_info_h = yes \
27253 && test $ac_cv_func_next_dev = yes \
27254 && test $ac_cv_func_fs_stat_dev = yes; then
27259 echo "$as_me:$LINENO: result: $fu_result" >&5
27260 echo "${ECHO_T}$fu_result" >&6
27261 if test $fu_result = yes; then
27262 ac_list_mounted_fs=found
27264 cat >>confdefs.h <<\_ACEOF
27265 #define MOUNTED_FS_STAT_DEV 1
27271 if test -z "$ac_list_mounted_fs"; then
27273 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
27274 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
27275 if test "${fu_cv_sys_mounted_fread+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284 #include <mnttab.h>
27286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } >/dev/null; then
27294 if test -s conftest.err; then
27295 ac_cpp_err=$ac_c_preproc_warn_flag
27296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27303 if test -z "$ac_cpp_err"; then
27304 fu_cv_sys_mounted_fread=yes
27306 echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27309 fu_cv_sys_mounted_fread=no
27311 rm -f conftest.err conftest.$ac_ext
27314 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
27315 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
27316 if test $fu_cv_sys_mounted_fread = yes; then
27317 ac_list_mounted_fs=found
27319 cat >>confdefs.h <<\_ACEOF
27320 #define MOUNTED_FREAD 1
27326 if test -z "$ac_list_mounted_fs"; then
27327 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
27328 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
27329 { (exit 1); exit 1; }; }
27330 # FIXME -- no need to abort building the whole package
27331 # Can't build mountlist.c or anything that needs its functions
27334 if test $ac_list_mounted_fs = found; then
27335 gl_cv_list_mounted_fs=yes
27337 gl_cv_list_mounted_fs=no
27342 if test $gl_cv_list_mounted_fs = yes; then
27344 "mountlist.$ac_objext" | \
27345 *" mountlist.$ac_objext" | \
27346 "mountlist.$ac_objext "* | \
27347 *" mountlist.$ac_objext "* ) ;;
27348 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext" ;;
27363 for ac_header in sys/mntent.h
27365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27367 echo "$as_me:$LINENO: checking for $ac_header" >&5
27368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27375 # Is the header compilable?
27376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27378 cat >conftest.$ac_ext <<_ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h. */
27384 $ac_includes_default
27385 #include <$ac_header>
27387 rm -f conftest.$ac_objext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27389 (eval $ac_compile) 2>conftest.er1
27391 grep -v '^ *+' conftest.er1 >conftest.err
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } &&
27396 { ac_try='test -z "$ac_c_werror_flag"
27397 || test ! -s conftest.err'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest.$ac_objext'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 ac_header_compiler=yes
27411 echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27414 ac_header_compiler=no
27416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27418 echo "${ECHO_T}$ac_header_compiler" >&6
27420 # Is the header present?
27421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27423 cat >conftest.$ac_ext <<_ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h. */
27429 #include <$ac_header>
27431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27434 grep -v '^ *+' conftest.er1 >conftest.err
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } >/dev/null; then
27439 if test -s conftest.err; then
27440 ac_cpp_err=$ac_c_preproc_warn_flag
27441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27448 if test -z "$ac_cpp_err"; then
27449 ac_header_preproc=yes
27451 echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27454 ac_header_preproc=no
27456 rm -f conftest.err conftest.$ac_ext
27457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27458 echo "${ECHO_T}$ac_header_preproc" >&6
27460 # So? What about this header?
27461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27467 ac_header_preproc=yes
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27484 ## ------------------------------------ ##
27485 ## Report this to bug-coreutils@gnu.org ##
27486 ## ------------------------------------ ##
27489 sed "s/^/$as_me: WARNING: /" >&2
27492 echo "$as_me:$LINENO: checking for $ac_header" >&5
27493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27497 eval "$as_ac_Header=\$ac_header_preproc"
27499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27504 cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27513 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
27514 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
27515 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27526 #include <sys/param.h>
27527 #include <sys/types.h>
27528 #include <sys/mount.h>
27533 struct statfs s; int i = sizeof s.f_fstypename;
27538 rm -f conftest.$ac_objext
27539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27540 (eval $ac_compile) 2>conftest.er1
27542 grep -v '^ *+' conftest.er1 >conftest.err
27544 cat conftest.err >&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); } &&
27547 { ac_try='test -z "$ac_c_werror_flag"
27548 || test ! -s conftest.err'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } &&
27554 { ac_try='test -s conftest.$ac_objext'
27555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556 (eval $ac_try) 2>&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); }; }; then
27560 fu_cv_sys_f_fstypename_in_statfs=yes
27562 echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27565 fu_cv_sys_f_fstypename_in_statfs=no
27568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27572 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
27573 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
27575 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
27577 cat >>confdefs.h <<\_ACEOF
27578 #define HAVE_F_FSTYPENAME_IN_STATFS 1
27588 echo "$as_me:$LINENO: checking for obstacks" >&5
27589 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
27590 if test "${ac_cv_func_obstack+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 #include "obstack.h"
27603 struct obstack *mem; obstack_free(mem,(char *) 0)
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27610 (eval $ac_link) 2>conftest.er1
27612 grep -v '^ *+' conftest.er1 >conftest.err
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest$ac_exeext'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_cv_func_obstack=yes
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_cv_func_obstack=no
27637 rm -f conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
27640 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
27641 echo "${ECHO_T}$ac_cv_func_obstack" >&6
27642 if test $ac_cv_func_obstack = yes; then
27644 cat >>confdefs.h <<\_ACEOF
27645 #define HAVE_OBSTACK 1
27650 "obstack.$ac_objext" | \
27651 *" obstack.$ac_objext" | \
27652 "obstack.$ac_objext "* | \
27653 *" obstack.$ac_objext "* ) ;;
27654 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
27659 if test $ac_cv_func_obstack = no; then
27677 for ac_func in mempcpy
27679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27680 echo "$as_me:$LINENO: checking for $ac_func" >&5
27681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27682 if eval "test \"\${$as_ac_var+set}\" = set"; then
27683 echo $ECHO_N "(cached) $ECHO_C" >&6
27685 cat >conftest.$ac_ext <<_ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h. */
27691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27693 #define $ac_func innocuous_$ac_func
27695 /* System header to define __stub macros and hopefully few prototypes,
27696 which can conflict with char $ac_func (); below.
27697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27698 <limits.h> exists even on freestanding compilers. */
27701 # include <limits.h>
27703 # include <assert.h>
27708 /* Override any gcc2 internal prototype to avoid an error. */
27713 /* We use char because int might match the return type of a gcc2
27714 builtin and then its argument prototype would still apply. */
27716 /* The GNU C library defines this for functions which it implements
27717 to always fail with ENOSYS. Some functions are actually named
27718 something starting with __ and the normal name is an alias. */
27719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27722 char (*f) () = $ac_func;
27731 return f != $ac_func;
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27738 (eval $ac_link) 2>conftest.er1
27740 grep -v '^ *+' conftest.er1 >conftest.err
27742 cat conftest.err >&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } &&
27745 { ac_try='test -z "$ac_c_werror_flag"
27746 || test ! -s conftest.err'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest$ac_exeext'
27753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754 (eval $ac_try) 2>&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); }; }; then
27758 eval "$as_ac_var=yes"
27760 echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27763 eval "$as_ac_var=no"
27765 rm -f conftest.err conftest.$ac_objext \
27766 conftest$ac_exeext conftest.$ac_ext
27768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27770 if test `eval echo '${'$as_ac_var'}'` = yes; then
27771 cat >>confdefs.h <<_ACEOF
27772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27796 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
27797 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
27798 if test "${gl_cv_var__system_configuration+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 cat >conftest.$ac_ext <<_ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27807 #include <sys/systemcfg.h>
27812 double x = _system_configuration.physmem;
27817 rm -f conftest.$ac_objext conftest$ac_exeext
27818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27819 (eval $ac_link) 2>conftest.er1
27821 grep -v '^ *+' conftest.er1 >conftest.err
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } &&
27826 { ac_try='test -z "$ac_c_werror_flag"
27827 || test ! -s conftest.err'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; } &&
27833 { ac_try='test -s conftest$ac_exeext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 gl_cv_var__system_configuration=yes
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27844 gl_cv_var__system_configuration=no
27846 rm -f conftest.err conftest.$ac_objext \
27847 conftest$ac_exeext conftest.$ac_ext
27849 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
27850 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
27852 if test $gl_cv_var__system_configuration = yes; then
27854 cat >>confdefs.h <<\_ACEOF
27855 #define HAVE__SYSTEM_CONFIGURATION 1
27862 # Prerequisites of lib/physmem.c.
27878 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
27879 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
27882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27883 echo "$as_me:$LINENO: checking for $ac_header" >&5
27884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27886 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 cat >conftest.$ac_ext <<_ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 $ac_includes_default
27896 #include <$ac_header>
27898 rm -f conftest.$ac_objext
27899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27900 (eval $ac_compile) 2>conftest.er1
27902 grep -v '^ *+' conftest.er1 >conftest.err
27904 cat conftest.err >&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } &&
27907 { ac_try='test -z "$ac_c_werror_flag"
27908 || test ! -s conftest.err'
27909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910 (eval $ac_try) 2>&5
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; } &&
27914 { ac_try='test -s conftest.$ac_objext'
27915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916 (eval $ac_try) 2>&5
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); }; }; then
27920 eval "$as_ac_Header=yes"
27922 echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27925 eval "$as_ac_Header=no"
27927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27932 cat >>confdefs.h <<_ACEOF
27933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27947 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
27949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27950 echo "$as_me:$LINENO: checking for $ac_func" >&5
27951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27952 if eval "test \"\${$as_ac_var+set}\" = set"; then
27953 echo $ECHO_N "(cached) $ECHO_C" >&6
27955 cat >conftest.$ac_ext <<_ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h. */
27961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27963 #define $ac_func innocuous_$ac_func
27965 /* System header to define __stub macros and hopefully few prototypes,
27966 which can conflict with char $ac_func (); below.
27967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968 <limits.h> exists even on freestanding compilers. */
27971 # include <limits.h>
27973 # include <assert.h>
27978 /* Override any gcc2 internal prototype to avoid an error. */
27983 /* We use char because int might match the return type of a gcc2
27984 builtin and then its argument prototype would still apply. */
27986 /* The GNU C library defines this for functions which it implements
27987 to always fail with ENOSYS. Some functions are actually named
27988 something starting with __ and the normal name is an alias. */
27989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27992 char (*f) () = $ac_func;
28001 return f != $ac_func;
28006 rm -f conftest.$ac_objext conftest$ac_exeext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28008 (eval $ac_link) 2>conftest.er1
28010 grep -v '^ *+' conftest.er1 >conftest.err
28012 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); } &&
28015 { ac_try='test -z "$ac_c_werror_flag"
28016 || test ! -s conftest.err'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; } &&
28022 { ac_try='test -s conftest$ac_exeext'
28023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28024 (eval $ac_try) 2>&5
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); }; }; then
28028 eval "$as_ac_var=yes"
28030 echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28033 eval "$as_ac_var=no"
28035 rm -f conftest.err conftest.$ac_objext \
28036 conftest$ac_exeext conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28040 if test `eval echo '${'$as_ac_var'}'` = yes; then
28041 cat >>confdefs.h <<_ACEOF
28042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28051 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28052 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
28053 if test "${ac_cv_struct_tm+set}" = set; then
28054 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28062 #include <sys/types.h>
28068 struct tm *tp; tp->tm_sec;
28073 rm -f conftest.$ac_objext
28074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28075 (eval $ac_compile) 2>conftest.er1
28077 grep -v '^ *+' conftest.er1 >conftest.err
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
28082 { ac_try='test -z "$ac_c_werror_flag"
28083 || test ! -s conftest.err'
28084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085 (eval $ac_try) 2>&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; } &&
28089 { ac_try='test -s conftest.$ac_objext'
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; }; then
28095 ac_cv_struct_tm=time.h
28097 echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28100 ac_cv_struct_tm=sys/time.h
28102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28104 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28105 echo "${ECHO_T}$ac_cv_struct_tm" >&6
28106 if test $ac_cv_struct_tm = sys/time.h; then
28108 cat >>confdefs.h <<\_ACEOF
28109 #define TM_IN_SYS_TIME 1
28146 echo "$as_me:$LINENO: checking for mbstate_t" >&5
28147 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
28148 if test "${ac_cv_type_mbstate_t+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 $ac_includes_default
28158 # include <wchar.h>
28162 mbstate_t x; return sizeof x;
28167 rm -f conftest.$ac_objext
28168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28169 (eval $ac_compile) 2>conftest.er1
28171 grep -v '^ *+' conftest.er1 >conftest.err
28173 cat conftest.err >&5
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); } &&
28176 { ac_try='test -z "$ac_c_werror_flag"
28177 || test ! -s conftest.err'
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; } &&
28183 { ac_try='test -s conftest.$ac_objext'
28184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185 (eval $ac_try) 2>&5
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; }; then
28189 ac_cv_type_mbstate_t=yes
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28194 ac_cv_type_mbstate_t=no
28196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28198 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
28199 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
28200 if test $ac_cv_type_mbstate_t = yes; then
28202 cat >>confdefs.h <<\_ACEOF
28203 #define HAVE_MBSTATE_T 1
28208 cat >>confdefs.h <<\_ACEOF
28209 #define mbstate_t int
28214 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
28215 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
28216 if test "${jm_cv_func_mbrtowc+set}" = set; then
28217 echo $ECHO_N "(cached) $ECHO_C" >&6
28219 cat >conftest.$ac_ext <<_ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h. */
28229 mbstate_t state; return ! (sizeof state && mbrtowc);
28234 rm -f conftest.$ac_objext conftest$ac_exeext
28235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28236 (eval $ac_link) 2>conftest.er1
28238 grep -v '^ *+' conftest.er1 >conftest.err
28240 cat conftest.err >&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } &&
28243 { ac_try='test -z "$ac_c_werror_flag"
28244 || test ! -s conftest.err'
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; } &&
28250 { ac_try='test -s conftest$ac_exeext'
28251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28252 (eval $ac_try) 2>&5
28254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 (exit $ac_status); }; }; then
28256 jm_cv_func_mbrtowc=yes
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 jm_cv_func_mbrtowc=no
28263 rm -f conftest.err conftest.$ac_objext \
28264 conftest$ac_exeext conftest.$ac_ext
28266 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
28267 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
28268 if test $jm_cv_func_mbrtowc = yes; then
28270 cat >>confdefs.h <<\_ACEOF
28271 #define HAVE_MBRTOWC 1
28292 for ac_header in utmp.h utmpx.h
28294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28296 echo "$as_me:$LINENO: checking for $ac_header" >&5
28297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28299 echo $ECHO_N "(cached) $ECHO_C" >&6
28301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28304 # Is the header compilable?
28305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28307 cat >conftest.$ac_ext <<_ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h. */
28313 $ac_includes_default
28314 #include <$ac_header>
28316 rm -f conftest.$ac_objext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28318 (eval $ac_compile) 2>conftest.er1
28320 grep -v '^ *+' conftest.er1 >conftest.err
28322 cat conftest.err >&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); } &&
28325 { ac_try='test -z "$ac_c_werror_flag"
28326 || test ! -s conftest.err'
28327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328 (eval $ac_try) 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest.$ac_objext'
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; }; then
28338 ac_header_compiler=yes
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28343 ac_header_compiler=no
28345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28347 echo "${ECHO_T}$ac_header_compiler" >&6
28349 # Is the header present?
28350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28352 cat >conftest.$ac_ext <<_ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28358 #include <$ac_header>
28360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28363 grep -v '^ *+' conftest.er1 >conftest.err
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } >/dev/null; then
28368 if test -s conftest.err; then
28369 ac_cpp_err=$ac_c_preproc_warn_flag
28370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28377 if test -z "$ac_cpp_err"; then
28378 ac_header_preproc=yes
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28383 ac_header_preproc=no
28385 rm -f conftest.err conftest.$ac_ext
28386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28387 echo "${ECHO_T}$ac_header_preproc" >&6
28389 # So? What about this header?
28390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28396 ac_header_preproc=yes
28399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28413 ## ------------------------------------ ##
28414 ## Report this to bug-coreutils@gnu.org ##
28415 ## ------------------------------------ ##
28418 sed "s/^/$as_me: WARNING: /" >&2
28421 echo "$as_me:$LINENO: checking for $ac_header" >&5
28422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28424 echo $ECHO_N "(cached) $ECHO_C" >&6
28426 eval "$as_ac_Header=\$ac_header_preproc"
28428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28433 cat >>confdefs.h <<_ACEOF
28434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28443 for ac_func in utmpname utmpxname
28445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28446 echo "$as_me:$LINENO: checking for $ac_func" >&5
28447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28448 if eval "test \"\${$as_ac_var+set}\" = set"; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28451 cat >conftest.$ac_ext <<_ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28459 #define $ac_func innocuous_$ac_func
28461 /* System header to define __stub macros and hopefully few prototypes,
28462 which can conflict with char $ac_func (); below.
28463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28464 <limits.h> exists even on freestanding compilers. */
28467 # include <limits.h>
28469 # include <assert.h>
28474 /* Override any gcc2 internal prototype to avoid an error. */
28479 /* We use char because int might match the return type of a gcc2
28480 builtin and then its argument prototype would still apply. */
28482 /* The GNU C library defines this for functions which it implements
28483 to always fail with ENOSYS. Some functions are actually named
28484 something starting with __ and the normal name is an alias. */
28485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28488 char (*f) () = $ac_func;
28497 return f != $ac_func;
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504 (eval $ac_link) 2>conftest.er1
28506 grep -v '^ *+' conftest.er1 >conftest.err
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } &&
28511 { ac_try='test -z "$ac_c_werror_flag"
28512 || test ! -s conftest.err'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; } &&
28518 { ac_try='test -s conftest$ac_exeext'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; }; then
28524 eval "$as_ac_var=yes"
28526 echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28529 eval "$as_ac_var=no"
28531 rm -f conftest.err conftest.$ac_objext \
28532 conftest$ac_exeext conftest.$ac_ext
28534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28536 if test `eval echo '${'$as_ac_var'}'` = yes; then
28537 cat >>confdefs.h <<_ACEOF
28538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28544 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
28545 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
28546 if test "${ac_cv_have_decl_getutent+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 cat >conftest.$ac_ext <<_ACEOF
28552 cat confdefs.h >>conftest.$ac_ext
28553 cat >>conftest.$ac_ext <<_ACEOF
28554 /* end confdefs.h. */
28565 char *p = (char *) getutent;
28572 rm -f conftest.$ac_objext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28574 (eval $ac_compile) 2>conftest.er1
28576 grep -v '^ *+' conftest.er1 >conftest.err
28578 cat conftest.err >&5
28579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 (exit $ac_status); } &&
28581 { ac_try='test -z "$ac_c_werror_flag"
28582 || test ! -s conftest.err'
28583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584 (eval $ac_try) 2>&5
28586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587 (exit $ac_status); }; } &&
28588 { ac_try='test -s conftest.$ac_objext'
28589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; }; then
28594 ac_cv_have_decl_getutent=yes
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28599 ac_cv_have_decl_getutent=no
28601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28603 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
28604 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
28605 if test $ac_cv_have_decl_getutent = yes; then
28607 cat >>confdefs.h <<_ACEOF
28608 #define HAVE_DECL_GETUTENT 1
28613 cat >>confdefs.h <<_ACEOF
28614 #define HAVE_DECL_GETUTENT 0
28621 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
28623 $ac_includes_default
28624 #ifdef HAVE_UTMPX_H
28625 # include <utmpx.h>
28631 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
28632 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
28633 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28636 cat >conftest.$ac_ext <<_ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h. */
28647 static struct utmpx ac_aggr;
28648 if (ac_aggr.ut_user)
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656 (eval $ac_compile) 2>conftest.er1
28658 grep -v '^ *+' conftest.er1 >conftest.err
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag"
28664 || test ! -s conftest.err'
28665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666 (eval $ac_try) 2>&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); }; } &&
28670 { ac_try='test -s conftest.$ac_objext'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; }; then
28676 ac_cv_member_struct_utmpx_ut_user=yes
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 cat >conftest.$ac_ext <<_ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h. */
28692 static struct utmpx ac_aggr;
28693 if (sizeof ac_aggr.ut_user)
28699 rm -f conftest.$ac_objext
28700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28701 (eval $ac_compile) 2>conftest.er1
28703 grep -v '^ *+' conftest.er1 >conftest.err
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
28708 { ac_try='test -z "$ac_c_werror_flag"
28709 || test ! -s conftest.err'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest.$ac_objext'
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; }; then
28721 ac_cv_member_struct_utmpx_ut_user=yes
28723 echo "$as_me: failed program was:" >&5
28724 sed 's/^/| /' conftest.$ac_ext >&5
28726 ac_cv_member_struct_utmpx_ut_user=no
28728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28732 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
28733 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
28734 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
28736 cat >>confdefs.h <<_ACEOF
28737 #define HAVE_STRUCT_UTMPX_UT_USER 1
28743 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
28744 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
28745 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
28746 echo $ECHO_N "(cached) $ECHO_C" >&6
28748 cat >conftest.$ac_ext <<_ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h. */
28759 static struct utmp ac_aggr;
28760 if (ac_aggr.ut_user)
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768 (eval $ac_compile) 2>conftest.er1
28770 grep -v '^ *+' conftest.er1 >conftest.err
28772 cat conftest.err >&5
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
28775 { ac_try='test -z "$ac_c_werror_flag"
28776 || test ! -s conftest.err'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28788 ac_cv_member_struct_utmp_ut_user=yes
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 cat >conftest.$ac_ext <<_ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h. */
28804 static struct utmp ac_aggr;
28805 if (sizeof ac_aggr.ut_user)
28811 rm -f conftest.$ac_objext
28812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28813 (eval $ac_compile) 2>conftest.er1
28815 grep -v '^ *+' conftest.er1 >conftest.err
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } &&
28820 { ac_try='test -z "$ac_c_werror_flag"
28821 || test ! -s conftest.err'
28822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; } &&
28827 { ac_try='test -s conftest.$ac_objext'
28828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 (eval $ac_try) 2>&5
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; }; then
28833 ac_cv_member_struct_utmp_ut_user=yes
28835 echo "$as_me: failed program was:" >&5
28836 sed 's/^/| /' conftest.$ac_ext >&5
28838 ac_cv_member_struct_utmp_ut_user=no
28840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
28845 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
28846 if test $ac_cv_member_struct_utmp_ut_user = yes; then
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_STRUCT_UTMP_UT_USER 1
28855 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
28856 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
28857 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
28858 echo $ECHO_N "(cached) $ECHO_C" >&6
28860 cat >conftest.$ac_ext <<_ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h. */
28871 static struct utmpx ac_aggr;
28872 if (ac_aggr.ut_name)
28878 rm -f conftest.$ac_objext
28879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28880 (eval $ac_compile) 2>conftest.er1
28882 grep -v '^ *+' conftest.er1 >conftest.err
28884 cat conftest.err >&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); } &&
28887 { ac_try='test -z "$ac_c_werror_flag"
28888 || test ! -s conftest.err'
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; } &&
28894 { ac_try='test -s conftest.$ac_objext'
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ac_cv_member_struct_utmpx_ut_name=yes
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28916 static struct utmpx ac_aggr;
28917 if (sizeof ac_aggr.ut_name)
28923 rm -f conftest.$ac_objext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28925 (eval $ac_compile) 2>conftest.er1
28927 grep -v '^ *+' conftest.er1 >conftest.err
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
28932 { ac_try='test -z "$ac_c_werror_flag"
28933 || test ! -s conftest.err'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest.$ac_objext'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_member_struct_utmpx_ut_name=yes
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ac_cv_member_struct_utmpx_ut_name=no
28952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
28957 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
28958 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
28960 cat >>confdefs.h <<_ACEOF
28961 #define HAVE_STRUCT_UTMPX_UT_NAME 1
28967 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
28968 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
28969 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
28970 echo $ECHO_N "(cached) $ECHO_C" >&6
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28983 static struct utmp ac_aggr;
28984 if (ac_aggr.ut_name)
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992 (eval $ac_compile) 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_c_werror_flag"
29000 || test ! -s conftest.err'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; } &&
29006 { ac_try='test -s conftest.$ac_objext'
29007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; }; then
29012 ac_cv_member_struct_utmp_ut_name=yes
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 cat >conftest.$ac_ext <<_ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h. */
29028 static struct utmp ac_aggr;
29029 if (sizeof ac_aggr.ut_name)
29035 rm -f conftest.$ac_objext
29036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29037 (eval $ac_compile) 2>conftest.er1
29039 grep -v '^ *+' conftest.er1 >conftest.err
29041 cat conftest.err >&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); } &&
29044 { ac_try='test -z "$ac_c_werror_flag"
29045 || test ! -s conftest.err'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; } &&
29051 { ac_try='test -s conftest.$ac_objext'
29052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053 (eval $ac_try) 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
29057 ac_cv_member_struct_utmp_ut_name=yes
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29062 ac_cv_member_struct_utmp_ut_name=no
29064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
29069 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
29070 if test $ac_cv_member_struct_utmp_ut_name = yes; then
29072 cat >>confdefs.h <<_ACEOF
29073 #define HAVE_STRUCT_UTMP_UT_NAME 1
29079 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
29080 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
29081 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29084 cat >conftest.$ac_ext <<_ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29095 static struct utmpx ac_aggr;
29096 if (ac_aggr.ut_type)
29102 rm -f conftest.$ac_objext
29103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29104 (eval $ac_compile) 2>conftest.er1
29106 grep -v '^ *+' conftest.er1 >conftest.err
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } &&
29111 { ac_try='test -z "$ac_c_werror_flag"
29112 || test ! -s conftest.err'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; } &&
29118 { ac_try='test -s conftest.$ac_objext'
29119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120 (eval $ac_try) 2>&5
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; }; then
29124 ac_cv_member_struct_utmpx_ut_type=yes
29126 echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29129 cat >conftest.$ac_ext <<_ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h. */
29140 static struct utmpx ac_aggr;
29141 if (sizeof ac_aggr.ut_type)
29147 rm -f conftest.$ac_objext
29148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29149 (eval $ac_compile) 2>conftest.er1
29151 grep -v '^ *+' conftest.er1 >conftest.err
29153 cat conftest.err >&5
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } &&
29156 { ac_try='test -z "$ac_c_werror_flag"
29157 || test ! -s conftest.err'
29158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159 (eval $ac_try) 2>&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; } &&
29163 { ac_try='test -s conftest.$ac_objext'
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 ac_cv_member_struct_utmpx_ut_type=yes
29171 echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29174 ac_cv_member_struct_utmpx_ut_type=no
29176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
29181 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
29182 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
29184 cat >>confdefs.h <<_ACEOF
29185 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
29191 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
29192 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
29193 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29196 cat >conftest.$ac_ext <<_ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h. */
29207 static struct utmp ac_aggr;
29208 if (ac_aggr.ut_type)
29214 rm -f conftest.$ac_objext
29215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29216 (eval $ac_compile) 2>conftest.er1
29218 grep -v '^ *+' conftest.er1 >conftest.err
29220 cat conftest.err >&5
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); } &&
29223 { ac_try='test -z "$ac_c_werror_flag"
29224 || test ! -s conftest.err'
29225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226 (eval $ac_try) 2>&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); }; } &&
29230 { ac_try='test -s conftest.$ac_objext'
29231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232 (eval $ac_try) 2>&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; }; then
29236 ac_cv_member_struct_utmp_ut_type=yes
29238 echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29241 cat >conftest.$ac_ext <<_ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29252 static struct utmp ac_aggr;
29253 if (sizeof ac_aggr.ut_type)
29259 rm -f conftest.$ac_objext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29261 (eval $ac_compile) 2>conftest.er1
29263 grep -v '^ *+' conftest.er1 >conftest.err
29265 cat conftest.err >&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } &&
29268 { ac_try='test -z "$ac_c_werror_flag"
29269 || test ! -s conftest.err'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; } &&
29275 { ac_try='test -s conftest.$ac_objext'
29276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277 (eval $ac_try) 2>&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; }; then
29281 ac_cv_member_struct_utmp_ut_type=yes
29283 echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29286 ac_cv_member_struct_utmp_ut_type=no
29288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
29293 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
29294 if test $ac_cv_member_struct_utmp_ut_type = yes; then
29296 cat >>confdefs.h <<_ACEOF
29297 #define HAVE_STRUCT_UTMP_UT_TYPE 1
29303 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
29304 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
29305 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 cat >conftest.$ac_ext <<_ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h. */
29319 static struct utmpx ac_aggr;
29320 if (ac_aggr.ut_pid)
29326 rm -f conftest.$ac_objext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29328 (eval $ac_compile) 2>conftest.er1
29330 grep -v '^ *+' conftest.er1 >conftest.err
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } &&
29335 { ac_try='test -z "$ac_c_werror_flag"
29336 || test ! -s conftest.err'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 ac_cv_member_struct_utmpx_ut_pid=yes
29350 echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29353 cat >conftest.$ac_ext <<_ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29364 static struct utmpx ac_aggr;
29365 if (sizeof ac_aggr.ut_pid)
29371 rm -f conftest.$ac_objext
29372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29373 (eval $ac_compile) 2>conftest.er1
29375 grep -v '^ *+' conftest.er1 >conftest.err
29377 cat conftest.err >&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
29380 { ac_try='test -z "$ac_c_werror_flag"
29381 || test ! -s conftest.err'
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; } &&
29387 { ac_try='test -s conftest.$ac_objext'
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; }; then
29393 ac_cv_member_struct_utmpx_ut_pid=yes
29395 echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29398 ac_cv_member_struct_utmpx_ut_pid=no
29400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
29405 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
29406 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
29408 cat >>confdefs.h <<_ACEOF
29409 #define HAVE_STRUCT_UTMPX_UT_PID 1
29415 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
29416 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
29417 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
29418 echo $ECHO_N "(cached) $ECHO_C" >&6
29420 cat >conftest.$ac_ext <<_ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h. */
29431 static struct utmp ac_aggr;
29432 if (ac_aggr.ut_pid)
29438 rm -f conftest.$ac_objext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440 (eval $ac_compile) 2>conftest.er1
29442 grep -v '^ *+' conftest.er1 >conftest.err
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
29447 { ac_try='test -z "$ac_c_werror_flag"
29448 || test ! -s conftest.err'
29449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450 (eval $ac_try) 2>&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; } &&
29454 { ac_try='test -s conftest.$ac_objext'
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 ac_cv_member_struct_utmp_ut_pid=yes
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 cat >conftest.$ac_ext <<_ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h. */
29476 static struct utmp ac_aggr;
29477 if (sizeof ac_aggr.ut_pid)
29483 rm -f conftest.$ac_objext
29484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29485 (eval $ac_compile) 2>conftest.er1
29487 grep -v '^ *+' conftest.er1 >conftest.err
29489 cat conftest.err >&5
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); } &&
29492 { ac_try='test -z "$ac_c_werror_flag"
29493 || test ! -s conftest.err'
29494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495 (eval $ac_try) 2>&5
29497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498 (exit $ac_status); }; } &&
29499 { ac_try='test -s conftest.$ac_objext'
29500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29501 (eval $ac_try) 2>&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); }; }; then
29505 ac_cv_member_struct_utmp_ut_pid=yes
29507 echo "$as_me: failed program was:" >&5
29508 sed 's/^/| /' conftest.$ac_ext >&5
29510 ac_cv_member_struct_utmp_ut_pid=no
29512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
29517 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
29518 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
29520 cat >>confdefs.h <<_ACEOF
29521 #define HAVE_STRUCT_UTMP_UT_PID 1
29527 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
29528 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
29529 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29532 cat >conftest.$ac_ext <<_ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h. */
29543 static struct utmpx ac_aggr;
29550 rm -f conftest.$ac_objext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29552 (eval $ac_compile) 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag"
29560 || test ! -s conftest.err'
29561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562 (eval $ac_try) 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568 (eval $ac_try) 2>&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; }; then
29572 ac_cv_member_struct_utmpx_ut_id=yes
29574 echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29577 cat >conftest.$ac_ext <<_ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29588 static struct utmpx ac_aggr;
29589 if (sizeof ac_aggr.ut_id)
29595 rm -f conftest.$ac_objext
29596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29597 (eval $ac_compile) 2>conftest.er1
29599 grep -v '^ *+' conftest.er1 >conftest.err
29601 cat conftest.err >&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
29604 { ac_try='test -z "$ac_c_werror_flag"
29605 || test ! -s conftest.err'
29606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607 (eval $ac_try) 2>&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; } &&
29611 { ac_try='test -s conftest.$ac_objext'
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617 ac_cv_member_struct_utmpx_ut_id=yes
29619 echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29622 ac_cv_member_struct_utmpx_ut_id=no
29624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
29629 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
29630 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
29632 cat >>confdefs.h <<_ACEOF
29633 #define HAVE_STRUCT_UTMPX_UT_ID 1
29639 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
29640 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
29641 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
29642 echo $ECHO_N "(cached) $ECHO_C" >&6
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29655 static struct utmp ac_aggr;
29662 rm -f conftest.$ac_objext
29663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29664 (eval $ac_compile) 2>conftest.er1
29666 grep -v '^ *+' conftest.er1 >conftest.err
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } &&
29671 { ac_try='test -z "$ac_c_werror_flag"
29672 || test ! -s conftest.err'
29673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674 (eval $ac_try) 2>&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); }; } &&
29678 { ac_try='test -s conftest.$ac_objext'
29679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680 (eval $ac_try) 2>&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; }; then
29684 ac_cv_member_struct_utmp_ut_id=yes
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 cat >conftest.$ac_ext <<_ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h. */
29700 static struct utmp ac_aggr;
29701 if (sizeof ac_aggr.ut_id)
29707 rm -f conftest.$ac_objext
29708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29709 (eval $ac_compile) 2>conftest.er1
29711 grep -v '^ *+' conftest.er1 >conftest.err
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } &&
29716 { ac_try='test -z "$ac_c_werror_flag"
29717 || test ! -s conftest.err'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; } &&
29723 { ac_try='test -s conftest.$ac_objext'
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_member_struct_utmp_ut_id=yes
29731 echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29734 ac_cv_member_struct_utmp_ut_id=no
29736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
29741 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
29742 if test $ac_cv_member_struct_utmp_ut_id = yes; then
29744 cat >>confdefs.h <<_ACEOF
29745 #define HAVE_STRUCT_UTMP_UT_ID 1
29751 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
29752 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
29753 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29756 cat >conftest.$ac_ext <<_ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29767 static struct utmpx ac_aggr;
29768 if (ac_aggr.ut_exit)
29774 rm -f conftest.$ac_objext
29775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29776 (eval $ac_compile) 2>conftest.er1
29778 grep -v '^ *+' conftest.er1 >conftest.err
29780 cat conftest.err >&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
29783 { ac_try='test -z "$ac_c_werror_flag"
29784 || test ! -s conftest.err'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; } &&
29790 { ac_try='test -s conftest.$ac_objext'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 ac_cv_member_struct_utmpx_ut_exit=yes
29798 echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29801 cat >conftest.$ac_ext <<_ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h. */
29812 static struct utmpx ac_aggr;
29813 if (sizeof ac_aggr.ut_exit)
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821 (eval $ac_compile) 2>conftest.er1
29823 grep -v '^ *+' conftest.er1 >conftest.err
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag"
29829 || test ! -s conftest.err'
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; } &&
29835 { ac_try='test -s conftest.$ac_objext'
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }; then
29841 ac_cv_member_struct_utmpx_ut_exit=yes
29843 echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29846 ac_cv_member_struct_utmpx_ut_exit=no
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
29853 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
29854 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
29856 cat >>confdefs.h <<_ACEOF
29857 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
29863 echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
29864 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
29865 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
29866 echo $ECHO_N "(cached) $ECHO_C" >&6
29868 cat >conftest.$ac_ext <<_ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29879 static struct utmp ac_aggr;
29880 if (ac_aggr.ut_exit)
29886 rm -f conftest.$ac_objext
29887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29888 (eval $ac_compile) 2>conftest.er1
29890 grep -v '^ *+' conftest.er1 >conftest.err
29892 cat conftest.err >&5
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); } &&
29895 { ac_try='test -z "$ac_c_werror_flag"
29896 || test ! -s conftest.err'
29897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898 (eval $ac_try) 2>&5
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); }; } &&
29902 { ac_try='test -s conftest.$ac_objext'
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_cv_member_struct_utmp_ut_exit=yes
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29913 cat >conftest.$ac_ext <<_ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h. */
29924 static struct utmp ac_aggr;
29925 if (sizeof ac_aggr.ut_exit)
29931 rm -f conftest.$ac_objext
29932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29933 (eval $ac_compile) 2>conftest.er1
29935 grep -v '^ *+' conftest.er1 >conftest.err
29937 cat conftest.err >&5
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } &&
29940 { ac_try='test -z "$ac_c_werror_flag"
29941 || test ! -s conftest.err'
29942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943 (eval $ac_try) 2>&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
29948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949 (eval $ac_try) 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; }; then
29953 ac_cv_member_struct_utmp_ut_exit=yes
29955 echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29958 ac_cv_member_struct_utmp_ut_exit=no
29960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
29965 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
29966 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
29968 cat >>confdefs.h <<_ACEOF
29969 #define HAVE_STRUCT_UTMP_UT_EXIT 1
29976 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
29977 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
29978 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 cat >conftest.$ac_ext <<_ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29992 static struct utmpx ac_aggr;
29993 if (ac_aggr.ut_exit.ut_exit)
29999 rm -f conftest.$ac_objext
30000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30001 (eval $ac_compile) 2>conftest.er1
30003 grep -v '^ *+' conftest.er1 >conftest.err
30005 cat conftest.err >&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } &&
30008 { ac_try='test -z "$ac_c_werror_flag"
30009 || test ! -s conftest.err'
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; } &&
30015 { ac_try='test -s conftest.$ac_objext'
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; }; then
30021 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
30023 echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30026 cat >conftest.$ac_ext <<_ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h. */
30037 static struct utmpx ac_aggr;
30038 if (sizeof ac_aggr.ut_exit.ut_exit)
30044 rm -f conftest.$ac_objext
30045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30046 (eval $ac_compile) 2>conftest.er1
30048 grep -v '^ *+' conftest.er1 >conftest.err
30050 cat conftest.err >&5
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
30053 { ac_try='test -z "$ac_c_werror_flag"
30054 || test ! -s conftest.err'
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest.$ac_objext'
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; }; then
30066 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
30068 echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30071 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
30073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30077 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
30078 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
30079 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
30081 cat >>confdefs.h <<_ACEOF
30082 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
30088 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
30089 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
30090 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 cat >conftest.$ac_ext <<_ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30104 static struct utmp ac_aggr;
30105 if (ac_aggr.ut_exit.ut_exit)
30111 rm -f conftest.$ac_objext
30112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30113 (eval $ac_compile) 2>conftest.er1
30115 grep -v '^ *+' conftest.er1 >conftest.err
30117 cat conftest.err >&5
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); } &&
30120 { ac_try='test -z "$ac_c_werror_flag"
30121 || test ! -s conftest.err'
30122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123 (eval $ac_try) 2>&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; } &&
30127 { ac_try='test -s conftest.$ac_objext'
30128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129 (eval $ac_try) 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
30133 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 cat >conftest.$ac_ext <<_ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h. */
30149 static struct utmp ac_aggr;
30150 if (sizeof ac_aggr.ut_exit.ut_exit)
30156 rm -f conftest.$ac_objext
30157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30158 (eval $ac_compile) 2>conftest.er1
30160 grep -v '^ *+' conftest.er1 >conftest.err
30162 cat conftest.err >&5
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); } &&
30165 { ac_try='test -z "$ac_c_werror_flag"
30166 || test ! -s conftest.err'
30167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168 (eval $ac_try) 2>&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; } &&
30172 { ac_try='test -s conftest.$ac_objext'
30173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174 (eval $ac_try) 2>&5
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); }; }; then
30178 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
30180 echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
30185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30189 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
30190 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
30191 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
30193 cat >>confdefs.h <<_ACEOF
30194 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
30200 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
30201 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
30202 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
30203 echo $ECHO_N "(cached) $ECHO_C" >&6
30205 cat >conftest.$ac_ext <<_ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h. */
30216 static struct utmpx ac_aggr;
30217 if (ac_aggr.ut_exit.e_exit)
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225 (eval $ac_compile) 2>conftest.er1
30227 grep -v '^ *+' conftest.er1 >conftest.err
30229 cat conftest.err >&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } &&
30232 { ac_try='test -z "$ac_c_werror_flag"
30233 || test ! -s conftest.err'
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); }; } &&
30239 { ac_try='test -s conftest.$ac_objext'
30240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241 (eval $ac_try) 2>&5
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; }; then
30245 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
30247 echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30250 cat >conftest.$ac_ext <<_ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h. */
30261 static struct utmpx ac_aggr;
30262 if (sizeof ac_aggr.ut_exit.e_exit)
30268 rm -f conftest.$ac_objext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30270 (eval $ac_compile) 2>conftest.er1
30272 grep -v '^ *+' conftest.er1 >conftest.err
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_c_werror_flag"
30278 || test ! -s conftest.err'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
30285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30295 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
30297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
30302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
30303 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
30305 cat >>confdefs.h <<_ACEOF
30306 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
30312 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
30313 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
30314 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
30315 echo $ECHO_N "(cached) $ECHO_C" >&6
30317 cat >conftest.$ac_ext <<_ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h. */
30328 static struct utmp ac_aggr;
30329 if (ac_aggr.ut_exit.e_exit)
30335 rm -f conftest.$ac_objext
30336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30337 (eval $ac_compile) 2>conftest.er1
30339 grep -v '^ *+' conftest.er1 >conftest.err
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } &&
30344 { ac_try='test -z "$ac_c_werror_flag"
30345 || test ! -s conftest.err'
30346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347 (eval $ac_try) 2>&5
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; } &&
30351 { ac_try='test -s conftest.$ac_objext'
30352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353 (eval $ac_try) 2>&5
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; }; then
30357 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
30359 echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30362 cat >conftest.$ac_ext <<_ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h. */
30373 static struct utmp ac_aggr;
30374 if (sizeof ac_aggr.ut_exit.e_exit)
30380 rm -f conftest.$ac_objext
30381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30382 (eval $ac_compile) 2>conftest.er1
30384 grep -v '^ *+' conftest.er1 >conftest.err
30386 cat conftest.err >&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } &&
30389 { ac_try='test -z "$ac_c_werror_flag"
30390 || test ! -s conftest.err'
30391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30392 (eval $ac_try) 2>&5
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); }; } &&
30396 { ac_try='test -s conftest.$ac_objext'
30397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398 (eval $ac_try) 2>&5
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); }; }; then
30402 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_cv_member_struct_utmp_ut_exit_e_exit=no
30409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
30414 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
30415 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
30417 cat >>confdefs.h <<_ACEOF
30418 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
30425 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
30426 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
30427 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
30428 echo $ECHO_N "(cached) $ECHO_C" >&6
30430 cat >conftest.$ac_ext <<_ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h. */
30441 static struct utmpx ac_aggr;
30442 if (ac_aggr.ut_exit.ut_termination)
30448 rm -f conftest.$ac_objext
30449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30450 (eval $ac_compile) 2>conftest.er1
30452 grep -v '^ *+' conftest.er1 >conftest.err
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } &&
30457 { ac_try='test -z "$ac_c_werror_flag"
30458 || test ! -s conftest.err'
30459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460 (eval $ac_try) 2>&5
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; } &&
30464 { ac_try='test -s conftest.$ac_objext'
30465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30466 (eval $ac_try) 2>&5
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; }; then
30470 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
30472 echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30475 cat >conftest.$ac_ext <<_ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h. */
30486 static struct utmpx ac_aggr;
30487 if (sizeof ac_aggr.ut_exit.ut_termination)
30493 rm -f conftest.$ac_objext
30494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30495 (eval $ac_compile) 2>conftest.er1
30497 grep -v '^ *+' conftest.er1 >conftest.err
30499 cat conftest.err >&5
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); } &&
30502 { ac_try='test -z "$ac_c_werror_flag"
30503 || test ! -s conftest.err'
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; } &&
30509 { ac_try='test -s conftest.$ac_objext'
30510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511 (eval $ac_try) 2>&5
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); }; }; then
30515 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
30517 echo "$as_me: failed program was:" >&5
30518 sed 's/^/| /' conftest.$ac_ext >&5
30520 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
30522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30526 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
30527 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
30528 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
30530 cat >>confdefs.h <<_ACEOF
30531 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
30537 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
30538 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
30539 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
30540 echo $ECHO_N "(cached) $ECHO_C" >&6
30542 cat >conftest.$ac_ext <<_ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h. */
30553 static struct utmp ac_aggr;
30554 if (ac_aggr.ut_exit.ut_termination)
30560 rm -f conftest.$ac_objext
30561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30562 (eval $ac_compile) 2>conftest.er1
30564 grep -v '^ *+' conftest.er1 >conftest.err
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } &&
30569 { ac_try='test -z "$ac_c_werror_flag"
30570 || test ! -s conftest.err'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest.$ac_objext'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; }; then
30582 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
30584 echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30587 cat >conftest.$ac_ext <<_ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h. */
30598 static struct utmp ac_aggr;
30599 if (sizeof ac_aggr.ut_exit.ut_termination)
30605 rm -f conftest.$ac_objext
30606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30607 (eval $ac_compile) 2>conftest.er1
30609 grep -v '^ *+' conftest.er1 >conftest.err
30611 cat conftest.err >&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } &&
30614 { ac_try='test -z "$ac_c_werror_flag"
30615 || test ! -s conftest.err'
30616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617 (eval $ac_try) 2>&5
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } &&
30621 { ac_try='test -s conftest.$ac_objext'
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; }; then
30627 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
30629 echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30632 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
30634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
30639 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
30640 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
30649 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
30650 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
30651 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 cat >conftest.$ac_ext <<_ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30665 static struct utmpx ac_aggr;
30666 if (ac_aggr.ut_exit.e_termination)
30672 rm -f conftest.$ac_objext
30673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30674 (eval $ac_compile) 2>conftest.er1
30676 grep -v '^ *+' conftest.er1 >conftest.err
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
30681 { ac_try='test -z "$ac_c_werror_flag"
30682 || test ! -s conftest.err'
30683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684 (eval $ac_try) 2>&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; } &&
30688 { ac_try='test -s conftest.$ac_objext'
30689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690 (eval $ac_try) 2>&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); }; }; then
30694 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
30696 echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30710 static struct utmpx ac_aggr;
30711 if (sizeof ac_aggr.ut_exit.e_termination)
30717 rm -f conftest.$ac_objext
30718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30719 (eval $ac_compile) 2>conftest.er1
30721 grep -v '^ *+' conftest.er1 >conftest.err
30723 cat conftest.err >&5
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); } &&
30726 { ac_try='test -z "$ac_c_werror_flag"
30727 || test ! -s conftest.err'
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; } &&
30733 { ac_try='test -s conftest.$ac_objext'
30734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735 (eval $ac_try) 2>&5
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; }; then
30739 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
30741 echo "$as_me: failed program was:" >&5
30742 sed 's/^/| /' conftest.$ac_ext >&5
30744 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
30746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30750 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
30751 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
30752 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
30754 cat >>confdefs.h <<_ACEOF
30755 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
30761 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
30762 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
30763 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
30764 echo $ECHO_N "(cached) $ECHO_C" >&6
30766 cat >conftest.$ac_ext <<_ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h. */
30777 static struct utmp ac_aggr;
30778 if (ac_aggr.ut_exit.e_termination)
30784 rm -f conftest.$ac_objext
30785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30786 (eval $ac_compile) 2>conftest.er1
30788 grep -v '^ *+' conftest.er1 >conftest.err
30790 cat conftest.err >&5
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); } &&
30793 { ac_try='test -z "$ac_c_werror_flag"
30794 || test ! -s conftest.err'
30795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30796 (eval $ac_try) 2>&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); }; } &&
30800 { ac_try='test -s conftest.$ac_objext'
30801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802 (eval $ac_try) 2>&5
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30811 cat >conftest.$ac_ext <<_ACEOF
30814 cat confdefs.h >>conftest.$ac_ext
30815 cat >>conftest.$ac_ext <<_ACEOF
30816 /* end confdefs.h. */
30822 static struct utmp ac_aggr;
30823 if (sizeof ac_aggr.ut_exit.e_termination)
30829 rm -f conftest.$ac_objext
30830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30831 (eval $ac_compile) 2>conftest.er1
30833 grep -v '^ *+' conftest.er1 >conftest.err
30835 cat conftest.err >&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
30838 { ac_try='test -z "$ac_c_werror_flag"
30839 || test ! -s conftest.err'
30840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30841 (eval $ac_try) 2>&5
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; } &&
30845 { ac_try='test -s conftest.$ac_objext'
30846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847 (eval $ac_try) 2>&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); }; }; then
30851 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
30853 echo "$as_me: failed program was:" >&5
30854 sed 's/^/| /' conftest.$ac_ext >&5
30856 ac_cv_member_struct_utmp_ut_exit_e_termination=no
30858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
30863 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
30864 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
30866 cat >>confdefs.h <<_ACEOF
30867 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
30875 "readutmp.$ac_objext" | \
30876 *" readutmp.$ac_objext" | \
30877 "readutmp.$ac_objext "* | \
30878 *" readutmp.$ac_objext "* ) ;;
30879 *) LIBOBJS="$LIBOBJS readutmp.$ac_objext" ;;
30887 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
30888 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
30889 if test "${gl_cv_c_restrict+set}" = set; then
30890 echo $ECHO_N "(cached) $ECHO_C" >&6
30892 gl_cv_c_restrict=no
30893 # Try the official restrict keyword, then gcc's __restrict, and
30894 # the less common variants.
30895 for ac_kw in restrict __restrict __restrict__ _Restrict; do
30896 cat >conftest.$ac_ext <<_ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30904 rm -f conftest.$ac_objext
30905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30906 (eval $ac_compile) 2>conftest.er1
30908 grep -v '^ *+' conftest.er1 >conftest.err
30910 cat conftest.err >&5
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); } &&
30913 { ac_try='test -z "$ac_c_werror_flag"
30914 || test ! -s conftest.err'
30915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30916 (eval $ac_try) 2>&5
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; } &&
30920 { ac_try='test -s conftest.$ac_objext'
30921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922 (eval $ac_try) 2>&5
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); }; }; then
30926 gl_cv_c_restrict=$ac_kw; break
30928 echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30936 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
30937 echo "${ECHO_T}$gl_cv_c_restrict" >&6
30938 case $gl_cv_c_restrict in
30941 cat >>confdefs.h <<\_ACEOF
30945 *) cat >>confdefs.h <<_ACEOF
30946 #define restrict $gl_cv_c_restrict
30954 # Assume we'll default to using the included regex.c.
30955 ac_use_included_regex=yes
30957 # However, if the system regex support is good enough that it passes the
30958 # the following run test, then default to *not* using the included regex.c.
30959 # If cross compiling, assume the test would fail and use the included
30960 # regex.c. The first failing regular expression is from `Spencer ere
30961 # test #75' in grep-2.3.
30962 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
30963 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
30964 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
30965 echo $ECHO_N "(cached) $ECHO_C" >&6
30967 if test "$cross_compiling" = yes; then
30968 jm_cv_func_working_re_compile_pattern=no
30970 cat >conftest.$ac_ext <<_ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30977 #include <string.h>
30982 static struct re_pattern_buffer regex;
30984 struct re_registers regs;
30985 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
30986 memset (®ex, 0, sizeof (regex));
30987 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
30988 /* This should fail with _Invalid character class name_ error. */
30992 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
30993 memset (®ex, 0, sizeof (regex));
30994 s = re_compile_pattern ("{1", 2, ®ex);
30999 /* The following example is derived from a problem report
31000 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
31001 memset (®ex, 0, sizeof (regex));
31002 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
31006 /* This should match, but doesn't for e.g. glibc-2.2.1. */
31007 if (re_match (®ex, "an", 2, 0, ®s) != 2)
31010 memset (®ex, 0, sizeof (regex));
31011 s = re_compile_pattern ("x", 1, ®ex);
31015 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
31016 work with a negative RANGE argument. */
31017 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
31024 rm -f conftest$ac_exeext
31025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026 (eval $ac_link) 2>&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31031 (eval $ac_try) 2>&5
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); }; }; then
31035 jm_cv_func_working_re_compile_pattern=yes
31037 echo "$as_me: program exited with status $ac_status" >&5
31038 echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31041 ( exit $ac_status )
31042 jm_cv_func_working_re_compile_pattern=no
31044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31047 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
31048 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
31049 if test $jm_cv_func_working_re_compile_pattern = yes; then
31050 ac_use_included_regex=no
31053 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
31054 echo "$as_me: error: missing argument" >&2;}
31055 { (exit 1); exit 1; }; }
31059 # Check whether --with-included-regex or --without-included-regex was given.
31060 if test "${with_included_regex+set}" = set; then
31061 withval="$with_included_regex"
31062 jm_with_regex=$withval
31064 jm_with_regex=$ac_use_included_regex
31066 if test "$jm_with_regex" = yes; then
31068 "regex.$ac_objext" | \
31069 *" regex.$ac_objext" | \
31070 "regex.$ac_objext "* | \
31071 *" regex.$ac_objext "* ) ;;
31072 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
31103 for ac_func in btowc
31105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31106 echo "$as_me:$LINENO: checking for $ac_func" >&5
31107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31108 if eval "test \"\${$as_ac_var+set}\" = set"; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31111 cat >conftest.$ac_ext <<_ACEOF
31114 cat confdefs.h >>conftest.$ac_ext
31115 cat >>conftest.$ac_ext <<_ACEOF
31116 /* end confdefs.h. */
31117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31119 #define $ac_func innocuous_$ac_func
31121 /* System header to define __stub macros and hopefully few prototypes,
31122 which can conflict with char $ac_func (); below.
31123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31124 <limits.h> exists even on freestanding compilers. */
31127 # include <limits.h>
31129 # include <assert.h>
31134 /* Override any gcc2 internal prototype to avoid an error. */
31139 /* We use char because int might match the return type of a gcc2
31140 builtin and then its argument prototype would still apply. */
31142 /* The GNU C library defines this for functions which it implements
31143 to always fail with ENOSYS. Some functions are actually named
31144 something starting with __ and the normal name is an alias. */
31145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31148 char (*f) () = $ac_func;
31157 return f != $ac_func;
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164 (eval $ac_link) 2>conftest.er1
31166 grep -v '^ *+' conftest.er1 >conftest.err
31168 cat conftest.err >&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } &&
31171 { ac_try='test -z "$ac_c_werror_flag"
31172 || test ! -s conftest.err'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; } &&
31178 { ac_try='test -s conftest$ac_exeext'
31179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180 (eval $ac_try) 2>&5
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 eval "$as_ac_var=yes"
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31189 eval "$as_ac_var=no"
31191 rm -f conftest.err conftest.$ac_objext \
31192 conftest$ac_exeext conftest.$ac_ext
31194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31196 if test `eval echo '${'$as_ac_var'}'` = yes; then
31197 cat >>confdefs.h <<_ACEOF
31198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245 for ac_func in pathconf
31247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31248 echo "$as_me:$LINENO: checking for $ac_func" >&5
31249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31250 if eval "test \"\${$as_ac_var+set}\" = set"; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31253 cat >conftest.$ac_ext <<_ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h. */
31259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31261 #define $ac_func innocuous_$ac_func
31263 /* System header to define __stub macros and hopefully few prototypes,
31264 which can conflict with char $ac_func (); below.
31265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266 <limits.h> exists even on freestanding compilers. */
31269 # include <limits.h>
31271 # include <assert.h>
31276 /* Override any gcc2 internal prototype to avoid an error. */
31281 /* We use char because int might match the return type of a gcc2
31282 builtin and then its argument prototype would still apply. */
31284 /* The GNU C library defines this for functions which it implements
31285 to always fail with ENOSYS. Some functions are actually named
31286 something starting with __ and the normal name is an alias. */
31287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31290 char (*f) () = $ac_func;
31299 return f != $ac_func;
31304 rm -f conftest.$ac_objext conftest$ac_exeext
31305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31306 (eval $ac_link) 2>conftest.er1
31308 grep -v '^ *+' conftest.er1 >conftest.err
31310 cat conftest.err >&5
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
31313 { ac_try='test -z "$ac_c_werror_flag"
31314 || test ! -s conftest.err'
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest$ac_exeext'
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
31326 eval "$as_ac_var=yes"
31328 echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31331 eval "$as_ac_var=no"
31333 rm -f conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
31336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31338 if test `eval echo '${'$as_ac_var'}'` = yes; then
31339 cat >>confdefs.h <<_ACEOF
31340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31363 for ac_func in fchdir
31365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31366 echo "$as_me:$LINENO: checking for $ac_func" >&5
31367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31368 if eval "test \"\${$as_ac_var+set}\" = set"; then
31369 echo $ECHO_N "(cached) $ECHO_C" >&6
31371 cat >conftest.$ac_ext <<_ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h. */
31377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31379 #define $ac_func innocuous_$ac_func
31381 /* System header to define __stub macros and hopefully few prototypes,
31382 which can conflict with char $ac_func (); below.
31383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31384 <limits.h> exists even on freestanding compilers. */
31387 # include <limits.h>
31389 # include <assert.h>
31394 /* Override any gcc2 internal prototype to avoid an error. */
31399 /* We use char because int might match the return type of a gcc2
31400 builtin and then its argument prototype would still apply. */
31402 /* The GNU C library defines this for functions which it implements
31403 to always fail with ENOSYS. Some functions are actually named
31404 something starting with __ and the normal name is an alias. */
31405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31408 char (*f) () = $ac_func;
31417 return f != $ac_func;
31422 rm -f conftest.$ac_objext conftest$ac_exeext
31423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31424 (eval $ac_link) 2>conftest.er1
31426 grep -v '^ *+' conftest.er1 >conftest.err
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } &&
31431 { ac_try='test -z "$ac_c_werror_flag"
31432 || test ! -s conftest.err'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest$ac_exeext'
31439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440 (eval $ac_try) 2>&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; }; then
31444 eval "$as_ac_var=yes"
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31449 eval "$as_ac_var=no"
31451 rm -f conftest.err conftest.$ac_objext \
31452 conftest$ac_exeext conftest.$ac_ext
31454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31456 if test `eval echo '${'$as_ac_var'}'` = yes; then
31457 cat >>confdefs.h <<_ACEOF
31458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31466 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
31467 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
31469 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
31470 # programs in the package would end up linked with that potentially-shared
31471 # library, inducing unnecessary run-time overhead.
31472 fetish_saved_libs=$LIBS
31473 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31474 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
31475 if test "${ac_cv_search_clock_gettime+set}" = set; then
31476 echo $ECHO_N "(cached) $ECHO_C" >&6
31478 ac_func_search_save_LIBS=$LIBS
31479 ac_cv_search_clock_gettime=no
31480 cat >conftest.$ac_ext <<_ACEOF
31483 cat confdefs.h >>conftest.$ac_ext
31484 cat >>conftest.$ac_ext <<_ACEOF
31485 /* end confdefs.h. */
31487 /* Override any gcc2 internal prototype to avoid an error. */
31491 /* We use char because int might match the return type of a gcc2
31492 builtin and then its argument prototype would still apply. */
31493 char clock_gettime ();
31502 rm -f conftest.$ac_objext conftest$ac_exeext
31503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31504 (eval $ac_link) 2>conftest.er1
31506 grep -v '^ *+' conftest.er1 >conftest.err
31508 cat conftest.err >&5
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); } &&
31511 { ac_try='test -z "$ac_c_werror_flag"
31512 || test ! -s conftest.err'
31513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514 (eval $ac_try) 2>&5
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest$ac_exeext'
31519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520 (eval $ac_try) 2>&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; }; then
31524 ac_cv_search_clock_gettime="none required"
31526 echo "$as_me: failed program was:" >&5
31527 sed 's/^/| /' conftest.$ac_ext >&5
31530 rm -f conftest.err conftest.$ac_objext \
31531 conftest$ac_exeext conftest.$ac_ext
31532 if test "$ac_cv_search_clock_gettime" = no; then
31533 for ac_lib in rt posix4; do
31534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31535 cat >conftest.$ac_ext <<_ACEOF
31538 cat confdefs.h >>conftest.$ac_ext
31539 cat >>conftest.$ac_ext <<_ACEOF
31540 /* end confdefs.h. */
31542 /* Override any gcc2 internal prototype to avoid an error. */
31546 /* We use char because int might match the return type of a gcc2
31547 builtin and then its argument prototype would still apply. */
31548 char clock_gettime ();
31557 rm -f conftest.$ac_objext conftest$ac_exeext
31558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31559 (eval $ac_link) 2>conftest.er1
31561 grep -v '^ *+' conftest.er1 >conftest.err
31563 cat conftest.err >&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
31566 { ac_try='test -z "$ac_c_werror_flag"
31567 || test ! -s conftest.err'
31568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31569 (eval $ac_try) 2>&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); }; } &&
31573 { ac_try='test -s conftest$ac_exeext'
31574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31575 (eval $ac_try) 2>&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); }; }; then
31579 ac_cv_search_clock_gettime="-l$ac_lib"
31582 echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31586 rm -f conftest.err conftest.$ac_objext \
31587 conftest$ac_exeext conftest.$ac_ext
31590 LIBS=$ac_func_search_save_LIBS
31592 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31593 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31594 if test "$ac_cv_search_clock_gettime" != no; then
31595 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
31596 test "$ac_cv_search_clock_gettime" = "none required" ||
31597 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
31603 for ac_func in clock_gettime clock_settime
31605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31606 echo "$as_me:$LINENO: checking for $ac_func" >&5
31607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31608 if eval "test \"\${$as_ac_var+set}\" = set"; then
31609 echo $ECHO_N "(cached) $ECHO_C" >&6
31611 cat >conftest.$ac_ext <<_ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h. */
31617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31619 #define $ac_func innocuous_$ac_func
31621 /* System header to define __stub macros and hopefully few prototypes,
31622 which can conflict with char $ac_func (); below.
31623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31624 <limits.h> exists even on freestanding compilers. */
31627 # include <limits.h>
31629 # include <assert.h>
31634 /* Override any gcc2 internal prototype to avoid an error. */
31639 /* We use char because int might match the return type of a gcc2
31640 builtin and then its argument prototype would still apply. */
31642 /* The GNU C library defines this for functions which it implements
31643 to always fail with ENOSYS. Some functions are actually named
31644 something starting with __ and the normal name is an alias. */
31645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31648 char (*f) () = $ac_func;
31657 return f != $ac_func;
31662 rm -f conftest.$ac_objext conftest$ac_exeext
31663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31664 (eval $ac_link) 2>conftest.er1
31666 grep -v '^ *+' conftest.er1 >conftest.err
31668 cat conftest.err >&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); } &&
31671 { ac_try='test -z "$ac_c_werror_flag"
31672 || test ! -s conftest.err'
31673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674 (eval $ac_try) 2>&5
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; } &&
31678 { ac_try='test -s conftest$ac_exeext'
31679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680 (eval $ac_try) 2>&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; }; then
31684 eval "$as_ac_var=yes"
31686 echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31689 eval "$as_ac_var=no"
31691 rm -f conftest.err conftest.$ac_objext \
31692 conftest$ac_exeext conftest.$ac_ext
31694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31696 if test `eval echo '${'$as_ac_var'}'` = yes; then
31697 cat >>confdefs.h <<_ACEOF
31698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31704 LIBS=$fetish_saved_libs
31707 # Need clock_settime.
31725 for ac_func in strcasecmp
31727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728 echo "$as_me:$LINENO: checking for $ac_func" >&5
31729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31730 if eval "test \"\${$as_ac_var+set}\" = set"; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 cat >conftest.$ac_ext <<_ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h. */
31739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31741 #define $ac_func innocuous_$ac_func
31743 /* System header to define __stub macros and hopefully few prototypes,
31744 which can conflict with char $ac_func (); below.
31745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746 <limits.h> exists even on freestanding compilers. */
31749 # include <limits.h>
31751 # include <assert.h>
31756 /* Override any gcc2 internal prototype to avoid an error. */
31761 /* We use char because int might match the return type of a gcc2
31762 builtin and then its argument prototype would still apply. */
31764 /* The GNU C library defines this for functions which it implements
31765 to always fail with ENOSYS. Some functions are actually named
31766 something starting with __ and the normal name is an alias. */
31767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31770 char (*f) () = $ac_func;
31779 return f != $ac_func;
31784 rm -f conftest.$ac_objext conftest$ac_exeext
31785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31786 (eval $ac_link) 2>conftest.er1
31788 grep -v '^ *+' conftest.er1 >conftest.err
31790 cat conftest.err >&5
31791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792 (exit $ac_status); } &&
31793 { ac_try='test -z "$ac_c_werror_flag"
31794 || test ! -s conftest.err'
31795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796 (eval $ac_try) 2>&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); }; } &&
31800 { ac_try='test -s conftest$ac_exeext'
31801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31802 (eval $ac_try) 2>&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); }; }; then
31806 eval "$as_ac_var=yes"
31808 echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31811 eval "$as_ac_var=no"
31813 rm -f conftest.err conftest.$ac_objext \
31814 conftest$ac_exeext conftest.$ac_ext
31816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31818 if test `eval echo '${'$as_ac_var'}'` = yes; then
31819 cat >>confdefs.h <<_ACEOF
31820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31825 "$ac_func.$ac_objext" | \
31826 *" $ac_func.$ac_objext" | \
31827 "$ac_func.$ac_objext "* | \
31828 *" $ac_func.$ac_objext "* ) ;;
31829 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31836 if test $ac_cv_func_strcasecmp = no; then
31844 for ac_func in strncasecmp
31846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31847 echo "$as_me:$LINENO: checking for $ac_func" >&5
31848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31849 if eval "test \"\${$as_ac_var+set}\" = set"; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 cat >conftest.$ac_ext <<_ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31860 #define $ac_func innocuous_$ac_func
31862 /* System header to define __stub macros and hopefully few prototypes,
31863 which can conflict with char $ac_func (); below.
31864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865 <limits.h> exists even on freestanding compilers. */
31868 # include <limits.h>
31870 # include <assert.h>
31875 /* Override any gcc2 internal prototype to avoid an error. */
31880 /* We use char because int might match the return type of a gcc2
31881 builtin and then its argument prototype would still apply. */
31883 /* The GNU C library defines this for functions which it implements
31884 to always fail with ENOSYS. Some functions are actually named
31885 something starting with __ and the normal name is an alias. */
31886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31889 char (*f) () = $ac_func;
31898 return f != $ac_func;
31903 rm -f conftest.$ac_objext conftest$ac_exeext
31904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31905 (eval $ac_link) 2>conftest.er1
31907 grep -v '^ *+' conftest.er1 >conftest.err
31909 cat conftest.err >&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); } &&
31912 { ac_try='test -z "$ac_c_werror_flag"
31913 || test ! -s conftest.err'
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; } &&
31919 { ac_try='test -s conftest$ac_exeext'
31920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921 (eval $ac_try) 2>&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
31925 eval "$as_ac_var=yes"
31927 echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31930 eval "$as_ac_var=no"
31932 rm -f conftest.err conftest.$ac_objext \
31933 conftest$ac_exeext conftest.$ac_ext
31935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31937 if test `eval echo '${'$as_ac_var'}'` = yes; then
31938 cat >>confdefs.h <<_ACEOF
31939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31944 "$ac_func.$ac_objext" | \
31945 *" $ac_func.$ac_objext" | \
31946 "$ac_func.$ac_objext "* | \
31947 *" $ac_func.$ac_objext "* ) ;;
31948 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31955 if test $ac_cv_func_strncasecmp = no; then
31982 echo "$as_me:$LINENO: checking for struct timespec" >&5
31983 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
31984 if test "${fu_cv_sys_struct_timespec+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31987 cat >conftest.$ac_ext <<_ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h. */
31994 # if TIME_WITH_SYS_TIME
31995 # include <sys/time.h>
31998 # if HAVE_SYS_TIME_H
31999 # include <sys/time.h>
32008 static struct timespec x; x.tv_sec = x.tv_nsec;
32013 rm -f conftest.$ac_objext
32014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32015 (eval $ac_compile) 2>conftest.er1
32017 grep -v '^ *+' conftest.er1 >conftest.err
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } &&
32022 { ac_try='test -z "$ac_c_werror_flag"
32023 || test ! -s conftest.err'
32024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025 (eval $ac_try) 2>&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest.$ac_objext'
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; }; then
32035 fu_cv_sys_struct_timespec=yes
32037 echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32040 fu_cv_sys_struct_timespec=no
32042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32045 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
32046 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
32048 if test $fu_cv_sys_struct_timespec = yes; then
32050 cat >>confdefs.h <<\_ACEOF
32051 #define HAVE_STRUCT_TIMESPEC 1
32056 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
32057 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
32058 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32061 ac_save_CPPFLAGS="$CPPFLAGS"
32062 ac_cv_struct_st_mtim_nsec=no
32063 # tv_nsec -- the usual case
32064 # _tv_nsec -- Solaris 2.6, if
32065 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
32066 # && !defined __EXTENSIONS__)
32067 # st__tim.tv_nsec -- UnixWare 2.1.2
32068 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
32069 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
32070 cat >conftest.$ac_ext <<_ACEOF
32073 cat confdefs.h >>conftest.$ac_ext
32074 cat >>conftest.$ac_ext <<_ACEOF
32075 /* end confdefs.h. */
32076 #include <sys/types.h>
32077 #include <sys/stat.h>
32081 struct stat s; s.st_mtim.ST_MTIM_NSEC;
32086 rm -f conftest.$ac_objext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32088 (eval $ac_compile) 2>conftest.er1
32090 grep -v '^ *+' conftest.er1 >conftest.err
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
32095 { ac_try='test -z "$ac_c_werror_flag"
32096 || test ! -s conftest.err'
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; } &&
32102 { ac_try='test -s conftest.$ac_objext'
32103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104 (eval $ac_try) 2>&5
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); }; }; then
32108 ac_cv_struct_st_mtim_nsec=$ac_val; break
32110 echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32116 CPPFLAGS="$ac_save_CPPFLAGS"
32118 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
32119 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
32121 if test $ac_cv_struct_st_mtim_nsec != no; then
32123 cat >>confdefs.h <<_ACEOF
32124 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
32133 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
32134 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
32135 if test "${ac_cv_have_decl_nanosleep+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. */
32150 char *p = (char *) nanosleep;
32157 rm -f conftest.$ac_objext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32159 (eval $ac_compile) 2>conftest.er1
32161 grep -v '^ *+' conftest.er1 >conftest.err
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } &&
32166 { ac_try='test -z "$ac_c_werror_flag"
32167 || test ! -s conftest.err'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest.$ac_objext'
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
32179 ac_cv_have_decl_nanosleep=yes
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32184 ac_cv_have_decl_nanosleep=no
32186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32188 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
32189 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
32190 if test $ac_cv_have_decl_nanosleep = yes; then
32192 cat >>confdefs.h <<_ACEOF
32193 #define HAVE_DECL_NANOSLEEP 1
32198 cat >>confdefs.h <<_ACEOF
32199 #define HAVE_DECL_NANOSLEEP 0
32238 echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
32239 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
32240 if test "${gl_cv_func_working_utimes+set}" = set; then
32241 echo $ECHO_N "(cached) $ECHO_C" >&6
32244 if test "$cross_compiling" = yes; then
32245 gl_cv_func_working_utimes=no
32247 cat >conftest.$ac_ext <<_ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32254 #include <sys/types.h>
32255 #include <sys/stat.h>
32256 #include <sys/time.h>
32257 #include <unistd.h>
32258 #include <stdlib.h>
32265 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
32267 char const *file = "conftest.utimes";
32270 exit ( ! ((f = fopen (file, "w"))
32272 && utimes (file, timeval) == 0
32273 && lstat (file, &sbuf) == 0
32274 && sbuf.st_atime == timeval[0].tv_sec
32275 && sbuf.st_mtime == timeval[1].tv_sec) );
32279 rm -f conftest$ac_exeext
32280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32281 (eval $ac_link) 2>&5
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286 (eval $ac_try) 2>&5
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; }; then
32290 gl_cv_func_working_utimes=yes
32292 echo "$as_me: program exited with status $ac_status" >&5
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32296 ( exit $ac_status )
32297 gl_cv_func_working_utimes=no
32299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32302 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
32303 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
32305 if test $gl_cv_func_working_utimes = yes; then
32307 cat >>confdefs.h <<\_ACEOF
32308 #define HAVE_WORKING_UTIMES 1
32320 for ac_header in stdlib.h
32322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32324 echo "$as_me:$LINENO: checking for $ac_header" >&5
32325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32332 # Is the header compilable?
32333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32335 cat >conftest.$ac_ext <<_ACEOF
32338 cat confdefs.h >>conftest.$ac_ext
32339 cat >>conftest.$ac_ext <<_ACEOF
32340 /* end confdefs.h. */
32341 $ac_includes_default
32342 #include <$ac_header>
32344 rm -f conftest.$ac_objext
32345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32346 (eval $ac_compile) 2>conftest.er1
32348 grep -v '^ *+' conftest.er1 >conftest.err
32350 cat conftest.err >&5
32351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } &&
32353 { ac_try='test -z "$ac_c_werror_flag"
32354 || test ! -s conftest.err'
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } &&
32360 { ac_try='test -s conftest.$ac_objext'
32361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32362 (eval $ac_try) 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
32366 ac_header_compiler=yes
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ac_header_compiler=no
32373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32375 echo "${ECHO_T}$ac_header_compiler" >&6
32377 # Is the header present?
32378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32380 cat >conftest.$ac_ext <<_ACEOF
32383 cat confdefs.h >>conftest.$ac_ext
32384 cat >>conftest.$ac_ext <<_ACEOF
32385 /* end confdefs.h. */
32386 #include <$ac_header>
32388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32391 grep -v '^ *+' conftest.er1 >conftest.err
32393 cat conftest.err >&5
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } >/dev/null; then
32396 if test -s conftest.err; then
32397 ac_cpp_err=$ac_c_preproc_warn_flag
32398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32405 if test -z "$ac_cpp_err"; then
32406 ac_header_preproc=yes
32408 echo "$as_me: failed program was:" >&5
32409 sed 's/^/| /' conftest.$ac_ext >&5
32411 ac_header_preproc=no
32413 rm -f conftest.err conftest.$ac_ext
32414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32415 echo "${ECHO_T}$ac_header_preproc" >&6
32417 # So? What about this header?
32418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32424 ac_header_preproc=yes
32427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32441 ## ------------------------------------ ##
32442 ## Report this to bug-coreutils@gnu.org ##
32443 ## ------------------------------------ ##
32446 sed "s/^/$as_me: WARNING: /" >&2
32449 echo "$as_me:$LINENO: checking for $ac_header" >&5
32450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32452 echo $ECHO_N "(cached) $ECHO_C" >&6
32454 eval "$as_ac_Header=\$ac_header_preproc"
32456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32461 cat >>confdefs.h <<_ACEOF
32462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32469 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
32470 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
32471 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
32472 echo $ECHO_N "(cached) $ECHO_C" >&6
32474 if test "$cross_compiling" = yes; then
32475 ac_cv_func_malloc_0_nonnull=no
32477 cat >conftest.$ac_ext <<_ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h. */
32483 #if STDC_HEADERS || HAVE_STDLIB_H
32484 # include <stdlib.h>
32492 exit (malloc (0) ? 0 : 1);
32497 rm -f conftest$ac_exeext
32498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32499 (eval $ac_link) 2>&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; }; then
32508 ac_cv_func_malloc_0_nonnull=yes
32510 echo "$as_me: program exited with status $ac_status" >&5
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32514 ( exit $ac_status )
32515 ac_cv_func_malloc_0_nonnull=no
32517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32520 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
32521 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
32522 if test $ac_cv_func_malloc_0_nonnull = yes; then
32524 cat >>confdefs.h <<\_ACEOF
32525 #define HAVE_MALLOC 1
32529 cat >>confdefs.h <<\_ACEOF
32530 #define HAVE_MALLOC 0
32534 "malloc.$ac_objext" | \
32535 *" malloc.$ac_objext" | \
32536 "malloc.$ac_objext "* | \
32537 *" malloc.$ac_objext "* ) ;;
32538 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
32542 cat >>confdefs.h <<\_ACEOF
32543 #define malloc rpl_malloc
32552 if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
32559 for ac_header in stdlib.h
32561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32563 echo "$as_me:$LINENO: checking for $ac_header" >&5
32564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32566 echo $ECHO_N "(cached) $ECHO_C" >&6
32568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32571 # Is the header compilable?
32572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32574 cat >conftest.$ac_ext <<_ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h. */
32580 $ac_includes_default
32581 #include <$ac_header>
32583 rm -f conftest.$ac_objext
32584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32585 (eval $ac_compile) 2>conftest.er1
32587 grep -v '^ *+' conftest.er1 >conftest.err
32589 cat conftest.err >&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } &&
32592 { ac_try='test -z "$ac_c_werror_flag"
32593 || test ! -s conftest.err'
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; } &&
32599 { ac_try='test -s conftest.$ac_objext'
32600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32601 (eval $ac_try) 2>&5
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; }; then
32605 ac_header_compiler=yes
32607 echo "$as_me: failed program was:" >&5
32608 sed 's/^/| /' conftest.$ac_ext >&5
32610 ac_header_compiler=no
32612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32614 echo "${ECHO_T}$ac_header_compiler" >&6
32616 # Is the header present?
32617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32619 cat >conftest.$ac_ext <<_ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32625 #include <$ac_header>
32627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32630 grep -v '^ *+' conftest.er1 >conftest.err
32632 cat conftest.err >&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } >/dev/null; then
32635 if test -s conftest.err; then
32636 ac_cpp_err=$ac_c_preproc_warn_flag
32637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32644 if test -z "$ac_cpp_err"; then
32645 ac_header_preproc=yes
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32650 ac_header_preproc=no
32652 rm -f conftest.err conftest.$ac_ext
32653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32654 echo "${ECHO_T}$ac_header_preproc" >&6
32656 # So? What about this header?
32657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32663 ac_header_preproc=yes
32666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32680 ## ------------------------------------ ##
32681 ## Report this to bug-coreutils@gnu.org ##
32682 ## ------------------------------------ ##
32685 sed "s/^/$as_me: WARNING: /" >&2
32688 echo "$as_me:$LINENO: checking for $ac_header" >&5
32689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32691 echo $ECHO_N "(cached) $ECHO_C" >&6
32693 eval "$as_ac_Header=\$ac_header_preproc"
32695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32700 cat >>confdefs.h <<_ACEOF
32701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32708 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
32709 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
32710 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
32711 echo $ECHO_N "(cached) $ECHO_C" >&6
32713 if test "$cross_compiling" = yes; then
32714 ac_cv_func_realloc_0_nonnull=no
32716 cat >conftest.$ac_ext <<_ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h. */
32722 #if STDC_HEADERS || HAVE_STDLIB_H
32723 # include <stdlib.h>
32731 exit (realloc (0, 0) ? 0 : 1);
32736 rm -f conftest$ac_exeext
32737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32738 (eval $ac_link) 2>&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743 (eval $ac_try) 2>&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; }; then
32747 ac_cv_func_realloc_0_nonnull=yes
32749 echo "$as_me: program exited with status $ac_status" >&5
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32753 ( exit $ac_status )
32754 ac_cv_func_realloc_0_nonnull=no
32756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32759 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
32760 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
32761 if test $ac_cv_func_realloc_0_nonnull = yes; then
32763 cat >>confdefs.h <<\_ACEOF
32764 #define HAVE_REALLOC 1
32768 cat >>confdefs.h <<\_ACEOF
32769 #define HAVE_REALLOC 0
32773 "realloc.$ac_objext" | \
32774 *" realloc.$ac_objext" | \
32775 "realloc.$ac_objext "* | \
32776 *" realloc.$ac_objext "* ) ;;
32777 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
32781 cat >>confdefs.h <<\_ACEOF
32782 #define realloc rpl_realloc
32791 if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
32820 for ac_func in getcwd
32822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32823 echo "$as_me:$LINENO: checking for $ac_func" >&5
32824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32825 if eval "test \"\${$as_ac_var+set}\" = set"; then
32826 echo $ECHO_N "(cached) $ECHO_C" >&6
32828 cat >conftest.$ac_ext <<_ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h. */
32834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32836 #define $ac_func innocuous_$ac_func
32838 /* System header to define __stub macros and hopefully few prototypes,
32839 which can conflict with char $ac_func (); below.
32840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32841 <limits.h> exists even on freestanding compilers. */
32844 # include <limits.h>
32846 # include <assert.h>
32851 /* Override any gcc2 internal prototype to avoid an error. */
32856 /* We use char because int might match the return type of a gcc2
32857 builtin and then its argument prototype would still apply. */
32859 /* The GNU C library defines this for functions which it implements
32860 to always fail with ENOSYS. Some functions are actually named
32861 something starting with __ and the normal name is an alias. */
32862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32865 char (*f) () = $ac_func;
32874 return f != $ac_func;
32879 rm -f conftest.$ac_objext conftest$ac_exeext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32881 (eval $ac_link) 2>conftest.er1
32883 grep -v '^ *+' conftest.er1 >conftest.err
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } &&
32888 { ac_try='test -z "$ac_c_werror_flag"
32889 || test ! -s conftest.err'
32890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891 (eval $ac_try) 2>&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest$ac_exeext'
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; }; then
32901 eval "$as_ac_var=yes"
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32906 eval "$as_ac_var=no"
32908 rm -f conftest.err conftest.$ac_objext \
32909 conftest$ac_exeext conftest.$ac_ext
32911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32913 if test `eval echo '${'$as_ac_var'}'` = yes; then
32914 cat >>confdefs.h <<_ACEOF
32915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32929 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
32930 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
32931 if test "${ac_cv_func_getcwd_null+set}" = set; then
32932 echo $ECHO_N "(cached) $ECHO_C" >&6
32934 if test "$cross_compiling" = yes; then
32935 ac_cv_func_getcwd_null=no
32937 cat >conftest.$ac_ext <<_ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h. */
32944 # include <stdlib.h>
32945 # ifdef HAVE_UNISTD_H
32946 # include <unistd.h>
32954 if (chdir ("/") != 0)
32958 char *f = getcwd (NULL, 0);
32959 exit (! (f && f[0] == '/' && !f[1]));
32963 rm -f conftest$ac_exeext
32964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32965 (eval $ac_link) 2>&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 ac_cv_func_getcwd_null=yes
32976 echo "$as_me: program exited with status $ac_status" >&5
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32980 ( exit $ac_status )
32981 ac_cv_func_getcwd_null=no
32983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32986 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
32987 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
32988 if test $ac_cv_func_getcwd_null = yes; then
32990 cat >>confdefs.h <<\_ACEOF
32991 #define HAVE_GETCWD_NULL 1
33023 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
33024 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
33025 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33034 $ac_includes_default
33039 char *p = (char *) strtoimax;
33046 rm -f conftest.$ac_objext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33048 (eval $ac_compile) 2>conftest.er1
33050 grep -v '^ *+' conftest.er1 >conftest.err
33052 cat conftest.err >&5
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); } &&
33055 { ac_try='test -z "$ac_c_werror_flag"
33056 || test ! -s conftest.err'
33057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33058 (eval $ac_try) 2>&5
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; } &&
33062 { ac_try='test -s conftest.$ac_objext'
33063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064 (eval $ac_try) 2>&5
33066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067 (exit $ac_status); }; }; then
33068 ac_cv_have_decl_strtoimax=yes
33070 echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33073 ac_cv_have_decl_strtoimax=no
33075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33077 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
33078 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
33079 if test $ac_cv_have_decl_strtoimax = yes; then
33081 cat >>confdefs.h <<_ACEOF
33082 #define HAVE_DECL_STRTOIMAX 1
33087 cat >>confdefs.h <<_ACEOF
33088 #define HAVE_DECL_STRTOIMAX 0
33093 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
33094 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
33095 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
33096 echo $ECHO_N "(cached) $ECHO_C" >&6
33098 cat >conftest.$ac_ext <<_ACEOF
33101 cat confdefs.h >>conftest.$ac_ext
33102 cat >>conftest.$ac_ext <<_ACEOF
33103 /* end confdefs.h. */
33104 $ac_includes_default
33109 char *p = (char *) strtoumax;
33116 rm -f conftest.$ac_objext
33117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33118 (eval $ac_compile) 2>conftest.er1
33120 grep -v '^ *+' conftest.er1 >conftest.err
33122 cat conftest.err >&5
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); } &&
33125 { ac_try='test -z "$ac_c_werror_flag"
33126 || test ! -s conftest.err'
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ac_cv_have_decl_strtoumax=yes
33140 echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33143 ac_cv_have_decl_strtoumax=no
33145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
33148 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
33149 if test $ac_cv_have_decl_strtoumax = yes; then
33151 cat >>confdefs.h <<_ACEOF
33152 #define HAVE_DECL_STRTOUMAX 1
33157 cat >>confdefs.h <<_ACEOF
33158 #define HAVE_DECL_STRTOUMAX 0
33177 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
33178 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
33179 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33182 cat >conftest.$ac_ext <<_ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h. */
33188 $ac_includes_default
33192 #ifndef clearerr_unlocked
33193 char *p = (char *) clearerr_unlocked;
33200 rm -f conftest.$ac_objext
33201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33202 (eval $ac_compile) 2>conftest.er1
33204 grep -v '^ *+' conftest.er1 >conftest.err
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_c_werror_flag"
33210 || test ! -s conftest.err'
33211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33212 (eval $ac_try) 2>&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; } &&
33216 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33222 ac_cv_have_decl_clearerr_unlocked=yes
33224 echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33227 ac_cv_have_decl_clearerr_unlocked=no
33229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
33232 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
33233 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
33235 cat >>confdefs.h <<_ACEOF
33236 #define HAVE_DECL_CLEARERR_UNLOCKED 1
33241 cat >>confdefs.h <<_ACEOF
33242 #define HAVE_DECL_CLEARERR_UNLOCKED 0
33251 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
33252 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
33253 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
33254 echo $ECHO_N "(cached) $ECHO_C" >&6
33256 cat >conftest.$ac_ext <<_ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h. */
33262 $ac_includes_default
33266 #ifndef feof_unlocked
33267 char *p = (char *) feof_unlocked;
33274 rm -f conftest.$ac_objext
33275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33276 (eval $ac_compile) 2>conftest.er1
33278 grep -v '^ *+' conftest.er1 >conftest.err
33280 cat conftest.err >&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } &&
33283 { ac_try='test -z "$ac_c_werror_flag"
33284 || test ! -s conftest.err'
33285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286 (eval $ac_try) 2>&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest.$ac_objext'
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; }; then
33296 ac_cv_have_decl_feof_unlocked=yes
33298 echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33301 ac_cv_have_decl_feof_unlocked=no
33303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
33306 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
33307 if test $ac_cv_have_decl_feof_unlocked = yes; then
33309 cat >>confdefs.h <<_ACEOF
33310 #define HAVE_DECL_FEOF_UNLOCKED 1
33315 cat >>confdefs.h <<_ACEOF
33316 #define HAVE_DECL_FEOF_UNLOCKED 0
33325 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
33326 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
33327 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33330 cat >conftest.$ac_ext <<_ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h. */
33336 $ac_includes_default
33340 #ifndef ferror_unlocked
33341 char *p = (char *) ferror_unlocked;
33348 rm -f conftest.$ac_objext
33349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33350 (eval $ac_compile) 2>conftest.er1
33352 grep -v '^ *+' conftest.er1 >conftest.err
33354 cat conftest.err >&5
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
33357 { ac_try='test -z "$ac_c_werror_flag"
33358 || test ! -s conftest.err'
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; } &&
33364 { ac_try='test -s conftest.$ac_objext'
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 ac_cv_have_decl_ferror_unlocked=yes
33372 echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33375 ac_cv_have_decl_ferror_unlocked=no
33377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
33380 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
33381 if test $ac_cv_have_decl_ferror_unlocked = yes; then
33383 cat >>confdefs.h <<_ACEOF
33384 #define HAVE_DECL_FERROR_UNLOCKED 1
33389 cat >>confdefs.h <<_ACEOF
33390 #define HAVE_DECL_FERROR_UNLOCKED 0
33399 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
33400 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
33401 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33404 cat >conftest.$ac_ext <<_ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h. */
33410 $ac_includes_default
33414 #ifndef fflush_unlocked
33415 char *p = (char *) fflush_unlocked;
33422 rm -f conftest.$ac_objext
33423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33424 (eval $ac_compile) 2>conftest.er1
33426 grep -v '^ *+' conftest.er1 >conftest.err
33428 cat conftest.err >&5
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
33431 { ac_try='test -z "$ac_c_werror_flag"
33432 || test ! -s conftest.err'
33433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434 (eval $ac_try) 2>&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); }; } &&
33438 { ac_try='test -s conftest.$ac_objext'
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; }; then
33444 ac_cv_have_decl_fflush_unlocked=yes
33446 echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33449 ac_cv_have_decl_fflush_unlocked=no
33451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
33454 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
33455 if test $ac_cv_have_decl_fflush_unlocked = yes; then
33457 cat >>confdefs.h <<_ACEOF
33458 #define HAVE_DECL_FFLUSH_UNLOCKED 1
33463 cat >>confdefs.h <<_ACEOF
33464 #define HAVE_DECL_FFLUSH_UNLOCKED 0
33473 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
33474 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
33475 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
33476 echo $ECHO_N "(cached) $ECHO_C" >&6
33478 cat >conftest.$ac_ext <<_ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h. */
33484 $ac_includes_default
33488 #ifndef fgets_unlocked
33489 char *p = (char *) fgets_unlocked;
33496 rm -f conftest.$ac_objext
33497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33498 (eval $ac_compile) 2>conftest.er1
33500 grep -v '^ *+' conftest.er1 >conftest.err
33502 cat conftest.err >&5
33503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 (exit $ac_status); } &&
33505 { ac_try='test -z "$ac_c_werror_flag"
33506 || test ! -s conftest.err'
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; } &&
33512 { ac_try='test -s conftest.$ac_objext'
33513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514 (eval $ac_try) 2>&5
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); }; }; then
33518 ac_cv_have_decl_fgets_unlocked=yes
33520 echo "$as_me: failed program was:" >&5
33521 sed 's/^/| /' conftest.$ac_ext >&5
33523 ac_cv_have_decl_fgets_unlocked=no
33525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
33528 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
33529 if test $ac_cv_have_decl_fgets_unlocked = yes; then
33531 cat >>confdefs.h <<_ACEOF
33532 #define HAVE_DECL_FGETS_UNLOCKED 1
33537 cat >>confdefs.h <<_ACEOF
33538 #define HAVE_DECL_FGETS_UNLOCKED 0
33547 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
33548 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
33549 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
33550 echo $ECHO_N "(cached) $ECHO_C" >&6
33552 cat >conftest.$ac_ext <<_ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33558 $ac_includes_default
33562 #ifndef fputc_unlocked
33563 char *p = (char *) fputc_unlocked;
33570 rm -f conftest.$ac_objext
33571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33572 (eval $ac_compile) 2>conftest.er1
33574 grep -v '^ *+' conftest.er1 >conftest.err
33576 cat conftest.err >&5
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); } &&
33579 { ac_try='test -z "$ac_c_werror_flag"
33580 || test ! -s conftest.err'
33581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582 (eval $ac_try) 2>&5
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; } &&
33586 { ac_try='test -s conftest.$ac_objext'
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; }; then
33592 ac_cv_have_decl_fputc_unlocked=yes
33594 echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33597 ac_cv_have_decl_fputc_unlocked=no
33599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
33602 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
33603 if test $ac_cv_have_decl_fputc_unlocked = yes; then
33605 cat >>confdefs.h <<_ACEOF
33606 #define HAVE_DECL_FPUTC_UNLOCKED 1
33611 cat >>confdefs.h <<_ACEOF
33612 #define HAVE_DECL_FPUTC_UNLOCKED 0
33621 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
33622 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
33623 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
33624 echo $ECHO_N "(cached) $ECHO_C" >&6
33626 cat >conftest.$ac_ext <<_ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h. */
33632 $ac_includes_default
33636 #ifndef fputs_unlocked
33637 char *p = (char *) fputs_unlocked;
33644 rm -f conftest.$ac_objext
33645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33646 (eval $ac_compile) 2>conftest.er1
33648 grep -v '^ *+' conftest.er1 >conftest.err
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_c_werror_flag"
33654 || test ! -s conftest.err'
33655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656 (eval $ac_try) 2>&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; } &&
33660 { ac_try='test -s conftest.$ac_objext'
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; }; then
33666 ac_cv_have_decl_fputs_unlocked=yes
33668 echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33671 ac_cv_have_decl_fputs_unlocked=no
33673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
33676 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
33677 if test $ac_cv_have_decl_fputs_unlocked = yes; then
33679 cat >>confdefs.h <<_ACEOF
33680 #define HAVE_DECL_FPUTS_UNLOCKED 1
33685 cat >>confdefs.h <<_ACEOF
33686 #define HAVE_DECL_FPUTS_UNLOCKED 0
33695 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
33696 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
33697 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33706 $ac_includes_default
33710 #ifndef fread_unlocked
33711 char *p = (char *) fread_unlocked;
33718 rm -f conftest.$ac_objext
33719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33720 (eval $ac_compile) 2>conftest.er1
33722 grep -v '^ *+' conftest.er1 >conftest.err
33724 cat conftest.err >&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } &&
33727 { ac_try='test -z "$ac_c_werror_flag"
33728 || test ! -s conftest.err'
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest.$ac_objext'
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_have_decl_fread_unlocked=yes
33742 echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33745 ac_cv_have_decl_fread_unlocked=no
33747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
33750 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
33751 if test $ac_cv_have_decl_fread_unlocked = yes; then
33753 cat >>confdefs.h <<_ACEOF
33754 #define HAVE_DECL_FREAD_UNLOCKED 1
33759 cat >>confdefs.h <<_ACEOF
33760 #define HAVE_DECL_FREAD_UNLOCKED 0
33769 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
33770 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
33771 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
33772 echo $ECHO_N "(cached) $ECHO_C" >&6
33774 cat >conftest.$ac_ext <<_ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h. */
33780 $ac_includes_default
33784 #ifndef fwrite_unlocked
33785 char *p = (char *) fwrite_unlocked;
33792 rm -f conftest.$ac_objext
33793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33794 (eval $ac_compile) 2>conftest.er1
33796 grep -v '^ *+' conftest.er1 >conftest.err
33798 cat conftest.err >&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); } &&
33801 { ac_try='test -z "$ac_c_werror_flag"
33802 || test ! -s conftest.err'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; } &&
33808 { ac_try='test -s conftest.$ac_objext'
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33814 ac_cv_have_decl_fwrite_unlocked=yes
33816 echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33819 ac_cv_have_decl_fwrite_unlocked=no
33821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
33824 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
33825 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
33827 cat >>confdefs.h <<_ACEOF
33828 #define HAVE_DECL_FWRITE_UNLOCKED 1
33833 cat >>confdefs.h <<_ACEOF
33834 #define HAVE_DECL_FWRITE_UNLOCKED 0
33843 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
33844 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
33845 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
33846 echo $ECHO_N "(cached) $ECHO_C" >&6
33848 cat >conftest.$ac_ext <<_ACEOF
33851 cat confdefs.h >>conftest.$ac_ext
33852 cat >>conftest.$ac_ext <<_ACEOF
33853 /* end confdefs.h. */
33854 $ac_includes_default
33858 #ifndef getc_unlocked
33859 char *p = (char *) getc_unlocked;
33866 rm -f conftest.$ac_objext
33867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33868 (eval $ac_compile) 2>conftest.er1
33870 grep -v '^ *+' conftest.er1 >conftest.err
33872 cat conftest.err >&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } &&
33875 { ac_try='test -z "$ac_c_werror_flag"
33876 || test ! -s conftest.err'
33877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878 (eval $ac_try) 2>&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); }; } &&
33882 { ac_try='test -s conftest.$ac_objext'
33883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884 (eval $ac_try) 2>&5
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
33888 ac_cv_have_decl_getc_unlocked=yes
33890 echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33893 ac_cv_have_decl_getc_unlocked=no
33895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
33898 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
33899 if test $ac_cv_have_decl_getc_unlocked = yes; then
33901 cat >>confdefs.h <<_ACEOF
33902 #define HAVE_DECL_GETC_UNLOCKED 1
33907 cat >>confdefs.h <<_ACEOF
33908 #define HAVE_DECL_GETC_UNLOCKED 0
33917 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
33918 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
33919 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
33920 echo $ECHO_N "(cached) $ECHO_C" >&6
33922 cat >conftest.$ac_ext <<_ACEOF
33925 cat confdefs.h >>conftest.$ac_ext
33926 cat >>conftest.$ac_ext <<_ACEOF
33927 /* end confdefs.h. */
33928 $ac_includes_default
33932 #ifndef getchar_unlocked
33933 char *p = (char *) getchar_unlocked;
33940 rm -f conftest.$ac_objext
33941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33942 (eval $ac_compile) 2>conftest.er1
33944 grep -v '^ *+' conftest.er1 >conftest.err
33946 cat conftest.err >&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } &&
33949 { ac_try='test -z "$ac_c_werror_flag"
33950 || test ! -s conftest.err'
33951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33952 (eval $ac_try) 2>&5
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); }; } &&
33956 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33962 ac_cv_have_decl_getchar_unlocked=yes
33964 echo "$as_me: failed program was:" >&5
33965 sed 's/^/| /' conftest.$ac_ext >&5
33967 ac_cv_have_decl_getchar_unlocked=no
33969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33971 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
33972 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
33973 if test $ac_cv_have_decl_getchar_unlocked = yes; then
33975 cat >>confdefs.h <<_ACEOF
33976 #define HAVE_DECL_GETCHAR_UNLOCKED 1
33981 cat >>confdefs.h <<_ACEOF
33982 #define HAVE_DECL_GETCHAR_UNLOCKED 0
33991 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
33992 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
33993 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33996 cat >conftest.$ac_ext <<_ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34002 $ac_includes_default
34006 #ifndef putc_unlocked
34007 char *p = (char *) putc_unlocked;
34014 rm -f conftest.$ac_objext
34015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34016 (eval $ac_compile) 2>conftest.er1
34018 grep -v '^ *+' conftest.er1 >conftest.err
34020 cat conftest.err >&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } &&
34023 { ac_try='test -z "$ac_c_werror_flag"
34024 || test ! -s conftest.err'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; } &&
34030 { ac_try='test -s conftest.$ac_objext'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 ac_cv_have_decl_putc_unlocked=yes
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34041 ac_cv_have_decl_putc_unlocked=no
34043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34045 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
34046 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
34047 if test $ac_cv_have_decl_putc_unlocked = yes; then
34049 cat >>confdefs.h <<_ACEOF
34050 #define HAVE_DECL_PUTC_UNLOCKED 1
34055 cat >>confdefs.h <<_ACEOF
34056 #define HAVE_DECL_PUTC_UNLOCKED 0
34065 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
34066 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
34067 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
34068 echo $ECHO_N "(cached) $ECHO_C" >&6
34070 cat >conftest.$ac_ext <<_ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h. */
34076 $ac_includes_default
34080 #ifndef putchar_unlocked
34081 char *p = (char *) putchar_unlocked;
34088 rm -f conftest.$ac_objext
34089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34090 (eval $ac_compile) 2>conftest.er1
34092 grep -v '^ *+' conftest.er1 >conftest.err
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_c_werror_flag"
34098 || test ! -s conftest.err'
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); }; } &&
34104 { ac_try='test -s conftest.$ac_objext'
34105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106 (eval $ac_try) 2>&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; }; then
34110 ac_cv_have_decl_putchar_unlocked=yes
34112 echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.$ac_ext >&5
34115 ac_cv_have_decl_putchar_unlocked=no
34117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
34120 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
34121 if test $ac_cv_have_decl_putchar_unlocked = yes; then
34123 cat >>confdefs.h <<_ACEOF
34124 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
34129 cat >>confdefs.h <<_ACEOF
34130 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
34187 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
34188 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
34189 if test "${gl_cv_func_tzset_clobber+set}" = set; then
34190 echo $ECHO_N "(cached) $ECHO_C" >&6
34193 if test "$cross_compiling" = yes; then
34194 gl_cv_func_tzset_clobber=yes
34196 cat >conftest.$ac_ext <<_ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34203 #if TIME_WITH_SYS_TIME
34204 # include <sys/time.h>
34207 # if HAVE_SYS_TIME_H
34208 # include <sys/time.h>
34213 #include <stdlib.h>
34218 time_t t1 = 853958121;
34220 putenv ("TZ=GMT0");
34221 p = localtime (&t1);
34223 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
34225 exit (p->tm_year != s.tm_year
34226 || p->tm_mon != s.tm_mon
34227 || p->tm_mday != s.tm_mday
34228 || p->tm_hour != s.tm_hour
34229 || p->tm_min != s.tm_min
34230 || p->tm_sec != s.tm_sec);
34234 rm -f conftest$ac_exeext
34235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34236 (eval $ac_link) 2>&5
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; }; then
34245 gl_cv_func_tzset_clobber=no
34247 echo "$as_me: program exited with status $ac_status" >&5
34248 echo "$as_me: failed program was:" >&5
34249 sed 's/^/| /' conftest.$ac_ext >&5
34251 ( exit $ac_status )
34252 gl_cv_func_tzset_clobber=yes
34254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34257 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
34258 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
34261 cat >>confdefs.h <<\_ACEOF
34262 #define HAVE_RUN_TZSET_TEST 1
34266 if test $gl_cv_func_tzset_clobber = yes; then
34269 "gettimeofday.$ac_objext" | \
34270 *" gettimeofday.$ac_objext" | \
34271 "gettimeofday.$ac_objext "* | \
34272 *" gettimeofday.$ac_objext "* ) ;;
34273 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34277 cat >>confdefs.h <<\_ACEOF
34278 #define gmtime rpl_gmtime
34282 cat >>confdefs.h <<\_ACEOF
34283 #define localtime rpl_localtime
34289 cat >>confdefs.h <<\_ACEOF
34290 #define tzset rpl_tzset
34294 cat >>confdefs.h <<\_ACEOF
34295 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
34303 for ac_func in strftime
34305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34306 echo "$as_me:$LINENO: checking for $ac_func" >&5
34307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34308 if eval "test \"\${$as_ac_var+set}\" = set"; then
34309 echo $ECHO_N "(cached) $ECHO_C" >&6
34311 cat >conftest.$ac_ext <<_ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h. */
34317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34319 #define $ac_func innocuous_$ac_func
34321 /* System header to define __stub macros and hopefully few prototypes,
34322 which can conflict with char $ac_func (); below.
34323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34324 <limits.h> exists even on freestanding compilers. */
34327 # include <limits.h>
34329 # include <assert.h>
34334 /* Override any gcc2 internal prototype to avoid an error. */
34339 /* We use char because int might match the return type of a gcc2
34340 builtin and then its argument prototype would still apply. */
34342 /* The GNU C library defines this for functions which it implements
34343 to always fail with ENOSYS. Some functions are actually named
34344 something starting with __ and the normal name is an alias. */
34345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34348 char (*f) () = $ac_func;
34357 return f != $ac_func;
34362 rm -f conftest.$ac_objext conftest$ac_exeext
34363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34364 (eval $ac_link) 2>conftest.er1
34366 grep -v '^ *+' conftest.er1 >conftest.err
34368 cat conftest.err >&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); } &&
34371 { ac_try='test -z "$ac_c_werror_flag"
34372 || test ! -s conftest.err'
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; } &&
34378 { ac_try='test -s conftest$ac_exeext'
34379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 (eval $ac_try) 2>&5
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; }; then
34384 eval "$as_ac_var=yes"
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34389 eval "$as_ac_var=no"
34391 rm -f conftest.err conftest.$ac_objext \
34392 conftest$ac_exeext conftest.$ac_ext
34394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34396 if test `eval echo '${'$as_ac_var'}'` = yes; then
34397 cat >>confdefs.h <<_ACEOF
34398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34402 # strftime is in -lintl on SCO UNIX.
34403 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
34404 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
34405 if test "${ac_cv_lib_intl_strftime+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34408 ac_check_lib_save_LIBS=$LIBS
34409 LIBS="-lintl $LIBS"
34410 cat >conftest.$ac_ext <<_ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h. */
34417 /* Override any gcc2 internal prototype to avoid an error. */
34421 /* We use char because int might match the return type of a gcc2
34422 builtin and then its argument prototype would still apply. */
34432 rm -f conftest.$ac_objext conftest$ac_exeext
34433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34434 (eval $ac_link) 2>conftest.er1
34436 grep -v '^ *+' conftest.er1 >conftest.err
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
34441 { ac_try='test -z "$ac_c_werror_flag"
34442 || test ! -s conftest.err'
34443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444 (eval $ac_try) 2>&5
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); }; } &&
34448 { ac_try='test -s conftest$ac_exeext'
34449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450 (eval $ac_try) 2>&5
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); }; }; then
34454 ac_cv_lib_intl_strftime=yes
34456 echo "$as_me: failed program was:" >&5
34457 sed 's/^/| /' conftest.$ac_ext >&5
34459 ac_cv_lib_intl_strftime=no
34461 rm -f conftest.err conftest.$ac_objext \
34462 conftest$ac_exeext conftest.$ac_ext
34463 LIBS=$ac_check_lib_save_LIBS
34465 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
34466 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
34467 if test $ac_cv_lib_intl_strftime = yes; then
34468 cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_STRFTIME 1
34472 LIBS="-lintl $LIBS"
34487 for ac_func in tzset
34489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34490 echo "$as_me:$LINENO: checking for $ac_func" >&5
34491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34492 if eval "test \"\${$as_ac_var+set}\" = set"; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34495 cat >conftest.$ac_ext <<_ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h. */
34501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34503 #define $ac_func innocuous_$ac_func
34505 /* System header to define __stub macros and hopefully few prototypes,
34506 which can conflict with char $ac_func (); below.
34507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34508 <limits.h> exists even on freestanding compilers. */
34511 # include <limits.h>
34513 # include <assert.h>
34518 /* Override any gcc2 internal prototype to avoid an error. */
34523 /* We use char because int might match the return type of a gcc2
34524 builtin and then its argument prototype would still apply. */
34526 /* The GNU C library defines this for functions which it implements
34527 to always fail with ENOSYS. Some functions are actually named
34528 something starting with __ and the normal name is an alias. */
34529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34532 char (*f) () = $ac_func;
34541 return f != $ac_func;
34546 rm -f conftest.$ac_objext conftest$ac_exeext
34547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34548 (eval $ac_link) 2>conftest.er1
34550 grep -v '^ *+' conftest.er1 >conftest.err
34552 cat conftest.err >&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } &&
34555 { ac_try='test -z "$ac_c_werror_flag"
34556 || test ! -s conftest.err'
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try='test -s conftest$ac_exeext'
34563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564 (eval $ac_try) 2>&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); }; }; then
34568 eval "$as_ac_var=yes"
34570 echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.$ac_ext >&5
34573 eval "$as_ac_var=no"
34575 rm -f conftest.err conftest.$ac_objext \
34576 conftest$ac_exeext conftest.$ac_ext
34578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34580 if test `eval echo '${'$as_ac_var'}'` = yes; then
34581 cat >>confdefs.h <<_ACEOF
34582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34589 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
34590 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
34591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
34592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34595 cat >conftest.$ac_ext <<_ACEOF
34598 cat confdefs.h >>conftest.$ac_ext
34599 cat >>conftest.$ac_ext <<_ACEOF
34600 /* end confdefs.h. */
34601 #include <sys/types.h>
34602 #include <$ac_cv_struct_tm>
34608 static struct tm ac_aggr;
34609 if (ac_aggr.tm_zone)
34615 rm -f conftest.$ac_objext
34616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34617 (eval $ac_compile) 2>conftest.er1
34619 grep -v '^ *+' conftest.er1 >conftest.err
34621 cat conftest.err >&5
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } &&
34624 { ac_try='test -z "$ac_c_werror_flag"
34625 || test ! -s conftest.err'
34626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627 (eval $ac_try) 2>&5
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); }; } &&
34631 { ac_try='test -s conftest.$ac_objext'
34632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633 (eval $ac_try) 2>&5
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); }; }; then
34637 ac_cv_member_struct_tm_tm_zone=yes
34639 echo "$as_me: failed program was:" >&5
34640 sed 's/^/| /' conftest.$ac_ext >&5
34642 cat >conftest.$ac_ext <<_ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h. */
34648 #include <sys/types.h>
34649 #include <$ac_cv_struct_tm>
34655 static struct tm ac_aggr;
34656 if (sizeof ac_aggr.tm_zone)
34662 rm -f conftest.$ac_objext
34663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34664 (eval $ac_compile) 2>conftest.er1
34666 grep -v '^ *+' conftest.er1 >conftest.err
34668 cat conftest.err >&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); } &&
34671 { ac_try='test -z "$ac_c_werror_flag"
34672 || test ! -s conftest.err'
34673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34674 (eval $ac_try) 2>&5
34676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677 (exit $ac_status); }; } &&
34678 { ac_try='test -s conftest.$ac_objext'
34679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680 (eval $ac_try) 2>&5
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); }; }; then
34684 ac_cv_member_struct_tm_tm_zone=yes
34686 echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34689 ac_cv_member_struct_tm_tm_zone=no
34691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
34696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
34697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
34699 cat >>confdefs.h <<_ACEOF
34700 #define HAVE_STRUCT_TM_TM_ZONE 1
34706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
34708 cat >>confdefs.h <<\_ACEOF
34709 #define HAVE_TM_ZONE 1
34713 echo "$as_me:$LINENO: checking for tzname" >&5
34714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
34715 if test "${ac_cv_var_tzname+set}" = set; then
34716 echo $ECHO_N "(cached) $ECHO_C" >&6
34718 cat >conftest.$ac_ext <<_ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h. */
34725 #ifndef tzname /* For SGI. */
34726 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739 (eval $ac_link) 2>conftest.er1
34741 grep -v '^ *+' conftest.er1 >conftest.err
34743 cat conftest.err >&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); } &&
34746 { ac_try='test -z "$ac_c_werror_flag"
34747 || test ! -s conftest.err'
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; } &&
34753 { ac_try='test -s conftest$ac_exeext'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 ac_cv_var_tzname=yes
34761 echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34764 ac_cv_var_tzname=no
34766 rm -f conftest.err conftest.$ac_objext \
34767 conftest$ac_exeext conftest.$ac_ext
34769 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
34770 echo "${ECHO_T}$ac_cv_var_tzname" >&6
34771 if test $ac_cv_var_tzname = yes; then
34773 cat >>confdefs.h <<\_ACEOF
34774 #define HAVE_TZNAME 1
34783 for ac_func in mblen mbrlen
34785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786 echo "$as_me:$LINENO: checking for $ac_func" >&5
34787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788 if eval "test \"\${$as_ac_var+set}\" = set"; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34791 cat >conftest.$ac_ext <<_ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h. */
34797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34799 #define $ac_func innocuous_$ac_func
34801 /* System header to define __stub macros and hopefully few prototypes,
34802 which can conflict with char $ac_func (); below.
34803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34804 <limits.h> exists even on freestanding compilers. */
34807 # include <limits.h>
34809 # include <assert.h>
34814 /* Override any gcc2 internal prototype to avoid an error. */
34819 /* We use char because int might match the return type of a gcc2
34820 builtin and then its argument prototype would still apply. */
34822 /* The GNU C library defines this for functions which it implements
34823 to always fail with ENOSYS. Some functions are actually named
34824 something starting with __ and the normal name is an alias. */
34825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34828 char (*f) () = $ac_func;
34837 return f != $ac_func;
34842 rm -f conftest.$ac_objext conftest$ac_exeext
34843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34844 (eval $ac_link) 2>conftest.er1
34846 grep -v '^ *+' conftest.er1 >conftest.err
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag"
34852 || test ! -s conftest.err'
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; } &&
34858 { ac_try='test -s conftest$ac_exeext'
34859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860 (eval $ac_try) 2>&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); }; }; then
34864 eval "$as_ac_var=yes"
34866 echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34869 eval "$as_ac_var=no"
34871 rm -f conftest.err conftest.$ac_objext \
34872 conftest$ac_exeext conftest.$ac_ext
34874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34876 if test `eval echo '${'$as_ac_var'}'` = yes; then
34877 cat >>confdefs.h <<_ACEOF
34878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34884 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34885 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34886 if test "${ac_cv_type_mbstate_t+set}" = set; then
34887 echo $ECHO_N "(cached) $ECHO_C" >&6
34889 cat >conftest.$ac_ext <<_ACEOF
34892 cat confdefs.h >>conftest.$ac_ext
34893 cat >>conftest.$ac_ext <<_ACEOF
34894 /* end confdefs.h. */
34895 $ac_includes_default
34896 # include <wchar.h>
34900 mbstate_t x; return sizeof x;
34905 rm -f conftest.$ac_objext
34906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34907 (eval $ac_compile) 2>conftest.er1
34909 grep -v '^ *+' conftest.er1 >conftest.err
34911 cat conftest.err >&5
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); } &&
34914 { ac_try='test -z "$ac_c_werror_flag"
34915 || test ! -s conftest.err'
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; } &&
34921 { ac_try='test -s conftest.$ac_objext'
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; }; then
34927 ac_cv_type_mbstate_t=yes
34929 echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.$ac_ext >&5
34932 ac_cv_type_mbstate_t=no
34934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34936 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34937 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34938 if test $ac_cv_type_mbstate_t = yes; then
34940 cat >>confdefs.h <<\_ACEOF
34941 #define HAVE_MBSTATE_T 1
34946 cat >>confdefs.h <<\_ACEOF
34947 #define mbstate_t int
34964 cat >>confdefs.h <<\_ACEOF
34965 #define my_strftime nstrftime
34969 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
34970 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
34971 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34974 rm -f conftest.sym conftest.file
34975 echo >conftest.file
34976 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
34977 if test "$cross_compiling" = yes; then
34978 ac_cv_func_lstat_dereferences_slashed_symlink=no
34980 cat >conftest.$ac_ext <<_ACEOF
34983 cat confdefs.h >>conftest.$ac_ext
34984 cat >>conftest.$ac_ext <<_ACEOF
34985 /* end confdefs.h. */
34986 $ac_includes_default
34991 /* Linux will dereference the symlink and fail.
34992 That is better in the sense that it means we will not
34993 have to compile and use the lstat wrapper. */
34994 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
34999 rm -f conftest$ac_exeext
35000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35001 (eval $ac_link) 2>&5
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; }; then
35010 ac_cv_func_lstat_dereferences_slashed_symlink=yes
35012 echo "$as_me: program exited with status $ac_status" >&5
35013 echo "$as_me: failed program was:" >&5
35014 sed 's/^/| /' conftest.$ac_ext >&5
35016 ( exit $ac_status )
35017 ac_cv_func_lstat_dereferences_slashed_symlink=no
35019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35022 # If the `ln -s' command failed, then we probably don't even
35023 # have an lstat function.
35024 ac_cv_func_lstat_dereferences_slashed_symlink=no
35026 rm -f conftest.sym conftest.file
35029 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
35030 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
35032 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
35034 cat >>confdefs.h <<_ACEOF
35035 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
35039 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
35041 "lstat.$ac_objext" | \
35042 *" lstat.$ac_objext" | \
35043 "lstat.$ac_objext "* | \
35044 *" lstat.$ac_objext "* ) ;;
35045 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35051 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
35052 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
35053 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35056 if test "$cross_compiling" = yes; then
35057 ac_cv_func_lstat_empty_string_bug=yes
35059 cat >conftest.$ac_ext <<_ACEOF
35062 cat confdefs.h >>conftest.$ac_ext
35063 cat >>conftest.$ac_ext <<_ACEOF
35064 /* end confdefs.h. */
35065 $ac_includes_default
35070 exit (lstat ("", &sbuf) ? 1 : 0);
35075 rm -f conftest$ac_exeext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35077 (eval $ac_link) 2>&5
35079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 (eval $ac_try) 2>&5
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); }; }; then
35086 ac_cv_func_lstat_empty_string_bug=yes
35088 echo "$as_me: program exited with status $ac_status" >&5
35089 echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35092 ( exit $ac_status )
35093 ac_cv_func_lstat_empty_string_bug=no
35095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35098 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
35099 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
35100 if test $ac_cv_func_lstat_empty_string_bug = yes; then
35102 "lstat.$ac_objext" | \
35103 *" lstat.$ac_objext" | \
35104 "lstat.$ac_objext "* | \
35105 *" lstat.$ac_objext "* ) ;;
35106 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35110 cat >>confdefs.h <<_ACEOF
35111 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
35116 if test $ac_cv_func_lstat_empty_string_bug = yes; then
35125 if test $ac_cv_func_memcmp_working = no; then
35127 cat >>confdefs.h <<\_ACEOF
35128 #define memcmp rpl_memcmp
35135 nanosleep_save_libs=$LIBS
35137 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
35138 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
35139 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
35140 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
35141 if test "${ac_cv_search_nanosleep+set}" = set; then
35142 echo $ECHO_N "(cached) $ECHO_C" >&6
35144 ac_func_search_save_LIBS=$LIBS
35145 ac_cv_search_nanosleep=no
35146 cat >conftest.$ac_ext <<_ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h. */
35153 /* Override any gcc2 internal prototype to avoid an error. */
35157 /* We use char because int might match the return type of a gcc2
35158 builtin and then its argument prototype would still apply. */
35168 rm -f conftest.$ac_objext conftest$ac_exeext
35169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35170 (eval $ac_link) 2>conftest.er1
35172 grep -v '^ *+' conftest.er1 >conftest.err
35174 cat conftest.err >&5
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); } &&
35177 { ac_try='test -z "$ac_c_werror_flag"
35178 || test ! -s conftest.err'
35179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35180 (eval $ac_try) 2>&5
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); }; } &&
35184 { ac_try='test -s conftest$ac_exeext'
35185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35186 (eval $ac_try) 2>&5
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); }; }; then
35190 ac_cv_search_nanosleep="none required"
35192 echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35196 rm -f conftest.err conftest.$ac_objext \
35197 conftest$ac_exeext conftest.$ac_ext
35198 if test "$ac_cv_search_nanosleep" = no; then
35199 for ac_lib in rt posix4; do
35200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35201 cat >conftest.$ac_ext <<_ACEOF
35204 cat confdefs.h >>conftest.$ac_ext
35205 cat >>conftest.$ac_ext <<_ACEOF
35206 /* end confdefs.h. */
35208 /* Override any gcc2 internal prototype to avoid an error. */
35212 /* We use char because int might match the return type of a gcc2
35213 builtin and then its argument prototype would still apply. */
35223 rm -f conftest.$ac_objext conftest$ac_exeext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35225 (eval $ac_link) 2>conftest.er1
35227 grep -v '^ *+' conftest.er1 >conftest.err
35229 cat conftest.err >&5
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
35232 { ac_try='test -z "$ac_c_werror_flag"
35233 || test ! -s conftest.err'
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest$ac_exeext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 ac_cv_search_nanosleep="-l$ac_lib"
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35252 rm -f conftest.err conftest.$ac_objext \
35253 conftest$ac_exeext conftest.$ac_ext
35256 LIBS=$ac_func_search_save_LIBS
35258 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
35259 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
35260 if test "$ac_cv_search_nanosleep" != no; then
35261 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
35262 test "$ac_cv_search_nanosleep" = "none required" ||
35263 LIB_NANOSLEEP=$ac_cv_search_nanosleep
35268 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
35269 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
35270 if test "${jm_cv_func_nanosleep_works+set}" = set; then
35271 echo $ECHO_N "(cached) $ECHO_C" >&6
35282 if test "$cross_compiling" = yes; then
35283 jm_cv_func_nanosleep_works=no
35285 cat >conftest.$ac_ext <<_ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h. */
35292 # if TIME_WITH_SYS_TIME
35293 # include <sys/time.h>
35296 # if HAVE_SYS_TIME_H
35297 # include <sys/time.h>
35306 struct timespec ts_sleep, ts_remaining;
35307 ts_sleep.tv_sec = 0;
35308 ts_sleep.tv_nsec = 1;
35309 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
35313 rm -f conftest$ac_exeext
35314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35315 (eval $ac_link) 2>&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320 (eval $ac_try) 2>&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); }; }; then
35324 jm_cv_func_nanosleep_works=yes
35326 echo "$as_me: program exited with status $ac_status" >&5
35327 echo "$as_me: failed program was:" >&5
35328 sed 's/^/| /' conftest.$ac_ext >&5
35330 ( exit $ac_status )
35331 jm_cv_func_nanosleep_works=no
35333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35337 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
35338 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
35339 if test $jm_cv_func_nanosleep_works = no; then
35341 "nanosleep.$ac_objext" | \
35342 *" nanosleep.$ac_objext" | \
35343 "nanosleep.$ac_objext "* | \
35344 *" nanosleep.$ac_objext "* ) ;;
35345 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
35349 cat >>confdefs.h <<\_ACEOF
35350 #define nanosleep rpl_nanosleep
35364 LIBS=$nanosleep_save_libs
35366 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
35367 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
35368 if test "${jm_cv_func_svid_putenv+set}" = set; then
35369 echo $ECHO_N "(cached) $ECHO_C" >&6
35371 if test "$cross_compiling" = yes; then
35372 jm_cv_func_svid_putenv=no
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35384 /* Put it in env. */
35385 if (putenv ("CONFTEST_putenv=val"))
35388 /* Try to remove it. */
35389 if (putenv ("CONFTEST_putenv"))
35392 /* Make sure it was deleted. */
35393 if (getenv ("CONFTEST_putenv") != 0)
35400 rm -f conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402 (eval $ac_link) 2>&5
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35407 (eval $ac_try) 2>&5
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); }; }; then
35411 jm_cv_func_svid_putenv=yes
35413 echo "$as_me: program exited with status $ac_status" >&5
35414 echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35417 ( exit $ac_status )
35418 jm_cv_func_svid_putenv=no
35420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35424 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
35425 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
35426 if test $jm_cv_func_svid_putenv = no; then
35428 "putenv.$ac_objext" | \
35429 *" putenv.$ac_objext" | \
35430 "putenv.$ac_objext "* | \
35431 *" putenv.$ac_objext "* ) ;;
35432 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35436 cat >>confdefs.h <<\_ACEOF
35437 #define putenv rpl_putenv
35452 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
35453 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
35454 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
35455 echo $ECHO_N "(cached) $ECHO_C" >&6
35457 if test "$cross_compiling" = yes; then
35458 ac_cv_func_stat_empty_string_bug=yes
35460 cat >conftest.$ac_ext <<_ACEOF
35463 cat confdefs.h >>conftest.$ac_ext
35464 cat >>conftest.$ac_ext <<_ACEOF
35465 /* end confdefs.h. */
35466 $ac_includes_default
35471 exit (stat ("", &sbuf) ? 1 : 0);
35476 rm -f conftest$ac_exeext
35477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478 (eval $ac_link) 2>&5
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487 ac_cv_func_stat_empty_string_bug=yes
35489 echo "$as_me: program exited with status $ac_status" >&5
35490 echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35493 ( exit $ac_status )
35494 ac_cv_func_stat_empty_string_bug=no
35496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35499 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
35500 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
35501 if test $ac_cv_func_stat_empty_string_bug = yes; then
35503 "stat.$ac_objext" | \
35504 *" stat.$ac_objext" | \
35505 "stat.$ac_objext "* | \
35506 *" stat.$ac_objext "* ) ;;
35507 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
35511 cat >>confdefs.h <<_ACEOF
35512 #define HAVE_STAT_EMPTY_STRING_BUG 1
35517 if test $ac_cv_func_stat_empty_string_bug = yes; then
35523 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
35524 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
35525 if test "${ac_cv_func_utime_null+set}" = set; then
35526 echo $ECHO_N "(cached) $ECHO_C" >&6
35528 rm -f conftest.data; >conftest.data
35529 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
35530 if test "$cross_compiling" = yes; then
35531 ac_cv_func_utime_null=no
35533 cat >conftest.$ac_ext <<_ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h. */
35539 $ac_includes_default
35544 exit (!(stat ("conftest.data", &s) == 0
35545 && utime ("conftest.data", (long *)0) == 0
35546 && stat ("conftest.data", &t) == 0
35547 && t.st_mtime >= s.st_mtime
35548 && t.st_mtime - s.st_mtime < 120));
35553 rm -f conftest$ac_exeext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555 (eval $ac_link) 2>&5
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560 (eval $ac_try) 2>&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); }; }; then
35564 ac_cv_func_utime_null=yes
35566 echo "$as_me: program exited with status $ac_status" >&5
35567 echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35570 ( exit $ac_status )
35571 ac_cv_func_utime_null=no
35573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35577 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
35578 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
35579 if test $ac_cv_func_utime_null = yes; then
35581 cat >>confdefs.h <<\_ACEOF
35582 #define HAVE_UTIME_NULL 1
35586 rm -f conftest.data
35590 if test $ac_cv_func_utime_null = no; then
35592 "utime.$ac_objext" | \
35593 *" utime.$ac_objext" | \
35594 "utime.$ac_objext "* | \
35595 *" utime.$ac_objext "* ) ;;
35596 *) LIBOBJS="$LIBOBJS utime.$ac_objext" ;;
35600 cat >>confdefs.h <<\_ACEOF
35601 #define utime rpl_utime
35613 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
35614 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
35615 if test "${ac_cv_func_utimes_null+set}" = set; then
35616 echo $ECHO_N "(cached) $ECHO_C" >&6
35618 rm -f conftest.data; > conftest.data
35619 if test "$cross_compiling" = yes; then
35620 ac_cv_func_utimes_null=no
35622 cat >conftest.$ac_ext <<_ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h. */
35629 /* In case stat has been defined to rpl_stat, undef it here. */
35631 #include <sys/types.h>
35632 #include <sys/stat.h>
35635 exit(!(stat ("conftest.data", &s) == 0
35636 && utimes("conftest.data", (long *)0) == 0
35637 && stat("conftest.data", &t) == 0
35638 && t.st_mtime >= s.st_mtime
35639 && t.st_mtime - s.st_mtime < 120));
35642 rm -f conftest$ac_exeext
35643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35644 (eval $ac_link) 2>&5
35646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649 (eval $ac_try) 2>&5
35651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652 (exit $ac_status); }; }; then
35653 ac_cv_func_utimes_null=yes
35655 echo "$as_me: program exited with status $ac_status" >&5
35656 echo "$as_me: failed program was:" >&5
35657 sed 's/^/| /' conftest.$ac_ext >&5
35659 ( exit $ac_status )
35660 ac_cv_func_utimes_null=no
35662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35664 rm -f core core.* *.core
35666 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
35667 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
35669 if test $ac_cv_func_utimes_null = yes; then
35671 cat >>confdefs.h <<\_ACEOF
35672 #define HAVE_UTIMES_NULL 1
35686 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
35688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35690 echo "$as_me:$LINENO: checking for $ac_header" >&5
35691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35693 echo $ECHO_N "(cached) $ECHO_C" >&6
35695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35698 # Is the header compilable?
35699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35701 cat >conftest.$ac_ext <<_ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h. */
35707 $ac_includes_default
35708 #include <$ac_header>
35710 rm -f conftest.$ac_objext
35711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35712 (eval $ac_compile) 2>conftest.er1
35714 grep -v '^ *+' conftest.er1 >conftest.err
35716 cat conftest.err >&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } &&
35719 { ac_try='test -z "$ac_c_werror_flag"
35720 || test ! -s conftest.err'
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; } &&
35726 { ac_try='test -s conftest.$ac_objext'
35727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728 (eval $ac_try) 2>&5
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); }; }; then
35732 ac_header_compiler=yes
35734 echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35737 ac_header_compiler=no
35739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35741 echo "${ECHO_T}$ac_header_compiler" >&6
35743 # Is the header present?
35744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35746 cat >conftest.$ac_ext <<_ACEOF
35749 cat confdefs.h >>conftest.$ac_ext
35750 cat >>conftest.$ac_ext <<_ACEOF
35751 /* end confdefs.h. */
35752 #include <$ac_header>
35754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35757 grep -v '^ *+' conftest.er1 >conftest.err
35759 cat conftest.err >&5
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); } >/dev/null; then
35762 if test -s conftest.err; then
35763 ac_cpp_err=$ac_c_preproc_warn_flag
35764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35771 if test -z "$ac_cpp_err"; then
35772 ac_header_preproc=yes
35774 echo "$as_me: failed program was:" >&5
35775 sed 's/^/| /' conftest.$ac_ext >&5
35777 ac_header_preproc=no
35779 rm -f conftest.err conftest.$ac_ext
35780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35781 echo "${ECHO_T}$ac_header_preproc" >&6
35783 # So? What about this header?
35784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35790 ac_header_preproc=yes
35793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35807 ## ------------------------------------ ##
35808 ## Report this to bug-coreutils@gnu.org ##
35809 ## ------------------------------------ ##
35812 sed "s/^/$as_me: WARNING: /" >&2
35815 echo "$as_me:$LINENO: checking for $ac_header" >&5
35816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35818 echo $ECHO_N "(cached) $ECHO_C" >&6
35820 eval "$as_ac_Header=\$ac_header_preproc"
35822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35827 cat >>confdefs.h <<_ACEOF
35828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35837 for ac_header in sys/param.h sys/mount.h
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35841 echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35849 # Is the header compilable?
35850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h. */
35858 $ac_includes_default
35859 #include <$ac_header>
35861 rm -f conftest.$ac_objext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35863 (eval $ac_compile) 2>conftest.er1
35865 grep -v '^ *+' conftest.er1 >conftest.err
35867 cat conftest.err >&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); } &&
35870 { ac_try='test -z "$ac_c_werror_flag"
35871 || test ! -s conftest.err'
35872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873 (eval $ac_try) 2>&5
35875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); }; } &&
35877 { ac_try='test -s conftest.$ac_objext'
35878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879 (eval $ac_try) 2>&5
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); }; }; then
35883 ac_header_compiler=yes
35885 echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 ac_header_compiler=no
35890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35892 echo "${ECHO_T}$ac_header_compiler" >&6
35894 # Is the header present?
35895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35897 cat >conftest.$ac_ext <<_ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h. */
35903 #include <$ac_header>
35905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35908 grep -v '^ *+' conftest.er1 >conftest.err
35910 cat conftest.err >&5
35911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912 (exit $ac_status); } >/dev/null; then
35913 if test -s conftest.err; then
35914 ac_cpp_err=$ac_c_preproc_warn_flag
35915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35922 if test -z "$ac_cpp_err"; then
35923 ac_header_preproc=yes
35925 echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35928 ac_header_preproc=no
35930 rm -f conftest.err conftest.$ac_ext
35931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35932 echo "${ECHO_T}$ac_header_preproc" >&6
35934 # So? What about this header?
35935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35941 ac_header_preproc=yes
35944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35958 ## ------------------------------------ ##
35959 ## Report this to bug-coreutils@gnu.org ##
35960 ## ------------------------------------ ##
35963 sed "s/^/$as_me: WARNING: /" >&2
35966 echo "$as_me:$LINENO: checking for $ac_header" >&5
35967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35969 echo $ECHO_N "(cached) $ECHO_C" >&6
35971 eval "$as_ac_Header=\$ac_header_preproc"
35973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978 cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35987 for ac_func in statvfs
35989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35990 echo "$as_me:$LINENO: checking for $ac_func" >&5
35991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_var+set}\" = set"; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35995 cat >conftest.$ac_ext <<_ACEOF
35998 cat confdefs.h >>conftest.$ac_ext
35999 cat >>conftest.$ac_ext <<_ACEOF
36000 /* end confdefs.h. */
36001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36003 #define $ac_func innocuous_$ac_func
36005 /* System header to define __stub macros and hopefully few prototypes,
36006 which can conflict with char $ac_func (); below.
36007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36008 <limits.h> exists even on freestanding compilers. */
36011 # include <limits.h>
36013 # include <assert.h>
36018 /* Override any gcc2 internal prototype to avoid an error. */
36023 /* We use char because int might match the return type of a gcc2
36024 builtin and then its argument prototype would still apply. */
36026 /* The GNU C library defines this for functions which it implements
36027 to always fail with ENOSYS. Some functions are actually named
36028 something starting with __ and the normal name is an alias. */
36029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36032 char (*f) () = $ac_func;
36041 return f != $ac_func;
36046 rm -f conftest.$ac_objext conftest$ac_exeext
36047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36048 (eval $ac_link) 2>conftest.er1
36050 grep -v '^ *+' conftest.er1 >conftest.err
36052 cat conftest.err >&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); } &&
36055 { ac_try='test -z "$ac_c_werror_flag"
36056 || test ! -s conftest.err'
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; } &&
36062 { ac_try='test -s conftest$ac_exeext'
36063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36064 (eval $ac_try) 2>&5
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); }; }; then
36068 eval "$as_ac_var=yes"
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36073 eval "$as_ac_var=no"
36075 rm -f conftest.err conftest.$ac_objext \
36076 conftest$ac_exeext conftest.$ac_ext
36078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36080 if test `eval echo '${'$as_ac_var'}'` = yes; then
36081 cat >>confdefs.h <<_ACEOF
36082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36089 # For `struct statfs' on Ultrix 4.4.
36093 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
36095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36096 echo "$as_me:$LINENO: checking for $ac_header" >&5
36097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36101 cat >conftest.$ac_ext <<_ACEOF
36104 cat confdefs.h >>conftest.$ac_ext
36105 cat >>conftest.$ac_ext <<_ACEOF
36106 /* end confdefs.h. */
36107 $ac_includes_default
36109 #include <$ac_header>
36111 rm -f conftest.$ac_objext
36112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36113 (eval $ac_compile) 2>conftest.er1
36115 grep -v '^ *+' conftest.er1 >conftest.err
36117 cat conftest.err >&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
36120 { ac_try='test -z "$ac_c_werror_flag"
36121 || test ! -s conftest.err'
36122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123 (eval $ac_try) 2>&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); }; } &&
36127 { ac_try='test -s conftest.$ac_objext'
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; }; then
36133 eval "$as_ac_Header=yes"
36135 echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36138 eval "$as_ac_Header=no"
36140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36145 cat >>confdefs.h <<_ACEOF
36146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36156 statxfs_includes="\
36157 $ac_includes_default
36158 #if HAVE_SYS_STATVFS_H
36159 # include <sys/statvfs.h>
36162 # include <sys/vfs.h>
36164 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
36165 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
36166 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
36167 # include <sys/param.h>
36168 # include <sys/mount.h>
36169 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
36170 /* Ultrix 4.4 needs these for the declaration of struct statfs. */
36171 # include <netinet/in.h>
36172 # include <nfs/nfs_clnt.h>
36173 # include <nfs/vfs.h>
36177 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
36178 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
36179 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
36180 echo $ECHO_N "(cached) $ECHO_C" >&6
36182 cat >conftest.$ac_ext <<_ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h. */
36193 static struct statfs ac_aggr;
36194 if (ac_aggr.f_basetype)
36200 rm -f conftest.$ac_objext
36201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36202 (eval $ac_compile) 2>conftest.er1
36204 grep -v '^ *+' conftest.er1 >conftest.err
36206 cat conftest.err >&5
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); } &&
36209 { ac_try='test -z "$ac_c_werror_flag"
36210 || test ! -s conftest.err'
36211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212 (eval $ac_try) 2>&5
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); }; } &&
36216 { ac_try='test -s conftest.$ac_objext'
36217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36218 (eval $ac_try) 2>&5
36220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221 (exit $ac_status); }; }; then
36222 ac_cv_member_struct_statfs_f_basetype=yes
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36227 cat >conftest.$ac_ext <<_ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h. */
36238 static struct statfs ac_aggr;
36239 if (sizeof ac_aggr.f_basetype)
36245 rm -f conftest.$ac_objext
36246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36247 (eval $ac_compile) 2>conftest.er1
36249 grep -v '^ *+' conftest.er1 >conftest.err
36251 cat conftest.err >&5
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); } &&
36254 { ac_try='test -z "$ac_c_werror_flag"
36255 || test ! -s conftest.err'
36256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257 (eval $ac_try) 2>&5
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); }; } &&
36261 { ac_try='test -s conftest.$ac_objext'
36262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36263 (eval $ac_try) 2>&5
36265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266 (exit $ac_status); }; }; then
36267 ac_cv_member_struct_statfs_f_basetype=yes
36269 echo "$as_me: failed program was:" >&5
36270 sed 's/^/| /' conftest.$ac_ext >&5
36272 ac_cv_member_struct_statfs_f_basetype=no
36274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
36279 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
36280 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
36282 cat >>confdefs.h <<_ACEOF
36283 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
36289 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
36290 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
36291 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
36292 echo $ECHO_N "(cached) $ECHO_C" >&6
36294 cat >conftest.$ac_ext <<_ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h. */
36305 static struct statvfs ac_aggr;
36306 if (ac_aggr.f_basetype)
36312 rm -f conftest.$ac_objext
36313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36314 (eval $ac_compile) 2>conftest.er1
36316 grep -v '^ *+' conftest.er1 >conftest.err
36318 cat conftest.err >&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); } &&
36321 { ac_try='test -z "$ac_c_werror_flag"
36322 || test ! -s conftest.err'
36323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324 (eval $ac_try) 2>&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); }; } &&
36328 { ac_try='test -s conftest.$ac_objext'
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; }; then
36334 ac_cv_member_struct_statvfs_f_basetype=yes
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 cat >conftest.$ac_ext <<_ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h. */
36350 static struct statvfs ac_aggr;
36351 if (sizeof ac_aggr.f_basetype)
36357 rm -f conftest.$ac_objext
36358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36359 (eval $ac_compile) 2>conftest.er1
36361 grep -v '^ *+' conftest.er1 >conftest.err
36363 cat conftest.err >&5
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); } &&
36366 { ac_try='test -z "$ac_c_werror_flag"
36367 || test ! -s conftest.err'
36368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36369 (eval $ac_try) 2>&5
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); }; } &&
36373 { ac_try='test -s conftest.$ac_objext'
36374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375 (eval $ac_try) 2>&5
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); }; }; then
36379 ac_cv_member_struct_statvfs_f_basetype=yes
36381 echo "$as_me: failed program was:" >&5
36382 sed 's/^/| /' conftest.$ac_ext >&5
36384 ac_cv_member_struct_statvfs_f_basetype=no
36386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
36391 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
36392 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
36394 cat >>confdefs.h <<_ACEOF
36395 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
36401 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
36402 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
36403 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36406 cat >conftest.$ac_ext <<_ACEOF
36409 cat confdefs.h >>conftest.$ac_ext
36410 cat >>conftest.$ac_ext <<_ACEOF
36411 /* end confdefs.h. */
36417 static struct statfs ac_aggr;
36418 if (ac_aggr.f_fstypename)
36424 rm -f conftest.$ac_objext
36425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36426 (eval $ac_compile) 2>conftest.er1
36428 grep -v '^ *+' conftest.er1 >conftest.err
36430 cat conftest.err >&5
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); } &&
36433 { ac_try='test -z "$ac_c_werror_flag"
36434 || test ! -s conftest.err'
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; } &&
36440 { ac_try='test -s conftest.$ac_objext'
36441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442 (eval $ac_try) 2>&5
36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445 (exit $ac_status); }; }; then
36446 ac_cv_member_struct_statfs_f_fstypename=yes
36448 echo "$as_me: failed program was:" >&5
36449 sed 's/^/| /' conftest.$ac_ext >&5
36451 cat >conftest.$ac_ext <<_ACEOF
36454 cat confdefs.h >>conftest.$ac_ext
36455 cat >>conftest.$ac_ext <<_ACEOF
36456 /* end confdefs.h. */
36462 static struct statfs ac_aggr;
36463 if (sizeof ac_aggr.f_fstypename)
36469 rm -f conftest.$ac_objext
36470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36471 (eval $ac_compile) 2>conftest.er1
36473 grep -v '^ *+' conftest.er1 >conftest.err
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); } &&
36478 { ac_try='test -z "$ac_c_werror_flag"
36479 || test ! -s conftest.err'
36480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481 (eval $ac_try) 2>&5
36483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484 (exit $ac_status); }; } &&
36485 { ac_try='test -s conftest.$ac_objext'
36486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487 (eval $ac_try) 2>&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); }; }; then
36491 ac_cv_member_struct_statfs_f_fstypename=yes
36493 echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36496 ac_cv_member_struct_statfs_f_fstypename=no
36498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36502 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
36503 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
36504 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
36506 cat >>confdefs.h <<_ACEOF
36507 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
36513 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
36514 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
36515 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
36516 echo $ECHO_N "(cached) $ECHO_C" >&6
36518 cat >conftest.$ac_ext <<_ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h. */
36529 static struct statfs ac_aggr;
36530 if (ac_aggr.f_type)
36536 rm -f conftest.$ac_objext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36538 (eval $ac_compile) 2>conftest.er1
36540 grep -v '^ *+' conftest.er1 >conftest.err
36542 cat conftest.err >&5
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); } &&
36545 { ac_try='test -z "$ac_c_werror_flag"
36546 || test ! -s conftest.err'
36547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548 (eval $ac_try) 2>&5
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); }; } &&
36552 { ac_try='test -s conftest.$ac_objext'
36553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554 (eval $ac_try) 2>&5
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); }; }; then
36558 ac_cv_member_struct_statfs_f_type=yes
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36563 cat >conftest.$ac_ext <<_ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h. */
36574 static struct statfs ac_aggr;
36575 if (sizeof ac_aggr.f_type)
36581 rm -f conftest.$ac_objext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36583 (eval $ac_compile) 2>conftest.er1
36585 grep -v '^ *+' conftest.er1 >conftest.err
36587 cat conftest.err >&5
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); } &&
36590 { ac_try='test -z "$ac_c_werror_flag"
36591 || test ! -s conftest.err'
36592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593 (eval $ac_try) 2>&5
36595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596 (exit $ac_status); }; } &&
36597 { ac_try='test -s conftest.$ac_objext'
36598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36599 (eval $ac_try) 2>&5
36601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602 (exit $ac_status); }; }; then
36603 ac_cv_member_struct_statfs_f_type=yes
36605 echo "$as_me: failed program was:" >&5
36606 sed 's/^/| /' conftest.$ac_ext >&5
36608 ac_cv_member_struct_statfs_f_type=no
36610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
36615 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
36616 if test $ac_cv_member_struct_statfs_f_type = yes; then
36618 cat >>confdefs.h <<_ACEOF
36619 #define HAVE_STRUCT_STATFS_F_TYPE 1
36625 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
36626 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
36627 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
36628 echo $ECHO_N "(cached) $ECHO_C" >&6
36630 cat >conftest.$ac_ext <<_ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h. */
36641 static struct statvfs ac_aggr;
36642 if (ac_aggr.f_type)
36648 rm -f conftest.$ac_objext
36649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36650 (eval $ac_compile) 2>conftest.er1
36652 grep -v '^ *+' conftest.er1 >conftest.err
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } &&
36657 { ac_try='test -z "$ac_c_werror_flag"
36658 || test ! -s conftest.err'
36659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 (eval $ac_try) 2>&5
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); }; } &&
36664 { ac_try='test -s conftest.$ac_objext'
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; }; then
36670 ac_cv_member_struct_statvfs_f_type=yes
36672 echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36675 cat >conftest.$ac_ext <<_ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h. */
36686 static struct statvfs ac_aggr;
36687 if (sizeof ac_aggr.f_type)
36693 rm -f conftest.$ac_objext
36694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36695 (eval $ac_compile) 2>conftest.er1
36697 grep -v '^ *+' conftest.er1 >conftest.err
36699 cat conftest.err >&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
36702 { ac_try='test -z "$ac_c_werror_flag"
36703 || test ! -s conftest.err'
36704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36705 (eval $ac_try) 2>&5
36707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708 (exit $ac_status); }; } &&
36709 { ac_try='test -s conftest.$ac_objext'
36710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711 (eval $ac_try) 2>&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); }; }; then
36715 ac_cv_member_struct_statvfs_f_type=yes
36717 echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36720 ac_cv_member_struct_statvfs_f_type=no
36722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
36727 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
36728 if test $ac_cv_member_struct_statvfs_f_type = yes; then
36730 cat >>confdefs.h <<_ACEOF
36731 #define HAVE_STRUCT_STATVFS_F_TYPE 1
36737 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
36738 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
36739 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
36740 echo $ECHO_N "(cached) $ECHO_C" >&6
36742 cat >conftest.$ac_ext <<_ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h. */
36753 static struct statfs ac_aggr;
36754 if (ac_aggr.f_fsid.__val)
36760 rm -f conftest.$ac_objext
36761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36762 (eval $ac_compile) 2>conftest.er1
36764 grep -v '^ *+' conftest.er1 >conftest.err
36766 cat conftest.err >&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); } &&
36769 { ac_try='test -z "$ac_c_werror_flag"
36770 || test ! -s conftest.err'
36771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36772 (eval $ac_try) 2>&5
36774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); }; } &&
36776 { ac_try='test -s conftest.$ac_objext'
36777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36778 (eval $ac_try) 2>&5
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); }; }; then
36782 ac_cv_member_struct_statfs_f_fsid___val=yes
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36787 cat >conftest.$ac_ext <<_ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36798 static struct statfs ac_aggr;
36799 if (sizeof ac_aggr.f_fsid.__val)
36805 rm -f conftest.$ac_objext
36806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36807 (eval $ac_compile) 2>conftest.er1
36809 grep -v '^ *+' conftest.er1 >conftest.err
36811 cat conftest.err >&5
36812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813 (exit $ac_status); } &&
36814 { ac_try='test -z "$ac_c_werror_flag"
36815 || test ! -s conftest.err'
36816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36817 (eval $ac_try) 2>&5
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); }; } &&
36821 { ac_try='test -s conftest.$ac_objext'
36822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823 (eval $ac_try) 2>&5
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; }; then
36827 ac_cv_member_struct_statfs_f_fsid___val=yes
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36832 ac_cv_member_struct_statfs_f_fsid___val=no
36834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36838 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
36839 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
36840 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
36842 cat >>confdefs.h <<_ACEOF
36843 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
36849 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
36850 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
36851 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
36852 echo $ECHO_N "(cached) $ECHO_C" >&6
36854 cat >conftest.$ac_ext <<_ACEOF
36857 cat confdefs.h >>conftest.$ac_ext
36858 cat >>conftest.$ac_ext <<_ACEOF
36859 /* end confdefs.h. */
36865 static struct statvfs ac_aggr;
36866 if (ac_aggr.f_fsid.__val)
36872 rm -f conftest.$ac_objext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36874 (eval $ac_compile) 2>conftest.er1
36876 grep -v '^ *+' conftest.er1 >conftest.err
36878 cat conftest.err >&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); } &&
36881 { ac_try='test -z "$ac_c_werror_flag"
36882 || test ! -s conftest.err'
36883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884 (eval $ac_try) 2>&5
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); }; } &&
36888 { ac_try='test -s conftest.$ac_objext'
36889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890 (eval $ac_try) 2>&5
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); }; }; then
36894 ac_cv_member_struct_statvfs_f_fsid___val=yes
36896 echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36899 cat >conftest.$ac_ext <<_ACEOF
36902 cat confdefs.h >>conftest.$ac_ext
36903 cat >>conftest.$ac_ext <<_ACEOF
36904 /* end confdefs.h. */
36910 static struct statvfs ac_aggr;
36911 if (sizeof ac_aggr.f_fsid.__val)
36917 rm -f conftest.$ac_objext
36918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36919 (eval $ac_compile) 2>conftest.er1
36921 grep -v '^ *+' conftest.er1 >conftest.err
36923 cat conftest.err >&5
36924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925 (exit $ac_status); } &&
36926 { ac_try='test -z "$ac_c_werror_flag"
36927 || test ! -s conftest.err'
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; } &&
36933 { ac_try='test -s conftest.$ac_objext'
36934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36935 (eval $ac_try) 2>&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); }; }; then
36939 ac_cv_member_struct_statvfs_f_fsid___val=yes
36941 echo "$as_me: failed program was:" >&5
36942 sed 's/^/| /' conftest.$ac_ext >&5
36944 ac_cv_member_struct_statvfs_f_fsid___val=no
36946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
36951 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
36952 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
36954 cat >>confdefs.h <<_ACEOF
36955 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
36961 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
36962 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
36963 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
36964 echo $ECHO_N "(cached) $ECHO_C" >&6
36966 cat >conftest.$ac_ext <<_ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h. */
36977 static struct statfs ac_aggr;
36978 if (ac_aggr.f_namemax)
36984 rm -f conftest.$ac_objext
36985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36986 (eval $ac_compile) 2>conftest.er1
36988 grep -v '^ *+' conftest.er1 >conftest.err
36990 cat conftest.err >&5
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); } &&
36993 { ac_try='test -z "$ac_c_werror_flag"
36994 || test ! -s conftest.err'
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; } &&
37000 { ac_try='test -s conftest.$ac_objext'
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; }; then
37006 ac_cv_member_struct_statfs_f_namemax=yes
37008 echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.$ac_ext >&5
37011 cat >conftest.$ac_ext <<_ACEOF
37014 cat confdefs.h >>conftest.$ac_ext
37015 cat >>conftest.$ac_ext <<_ACEOF
37016 /* end confdefs.h. */
37022 static struct statfs ac_aggr;
37023 if (sizeof ac_aggr.f_namemax)
37029 rm -f conftest.$ac_objext
37030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37031 (eval $ac_compile) 2>conftest.er1
37033 grep -v '^ *+' conftest.er1 >conftest.err
37035 cat conftest.err >&5
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); } &&
37038 { ac_try='test -z "$ac_c_werror_flag"
37039 || test ! -s conftest.err'
37040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041 (eval $ac_try) 2>&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; } &&
37045 { ac_try='test -s conftest.$ac_objext'
37046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047 (eval $ac_try) 2>&5
37049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050 (exit $ac_status); }; }; then
37051 ac_cv_member_struct_statfs_f_namemax=yes
37053 echo "$as_me: failed program was:" >&5
37054 sed 's/^/| /' conftest.$ac_ext >&5
37056 ac_cv_member_struct_statfs_f_namemax=no
37058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
37063 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
37064 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
37066 cat >>confdefs.h <<_ACEOF
37067 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
37073 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
37074 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
37075 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
37076 echo $ECHO_N "(cached) $ECHO_C" >&6
37078 cat >conftest.$ac_ext <<_ACEOF
37081 cat confdefs.h >>conftest.$ac_ext
37082 cat >>conftest.$ac_ext <<_ACEOF
37083 /* end confdefs.h. */
37089 static struct statvfs ac_aggr;
37090 if (ac_aggr.f_namemax)
37096 rm -f conftest.$ac_objext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37098 (eval $ac_compile) 2>conftest.er1
37100 grep -v '^ *+' conftest.er1 >conftest.err
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
37105 { ac_try='test -z "$ac_c_werror_flag"
37106 || test ! -s conftest.err'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; } &&
37112 { ac_try='test -s conftest.$ac_objext'
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; }; then
37118 ac_cv_member_struct_statvfs_f_namemax=yes
37120 echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37123 cat >conftest.$ac_ext <<_ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h. */
37134 static struct statvfs ac_aggr;
37135 if (sizeof ac_aggr.f_namemax)
37141 rm -f conftest.$ac_objext
37142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37143 (eval $ac_compile) 2>conftest.er1
37145 grep -v '^ *+' conftest.er1 >conftest.err
37147 cat conftest.err >&5
37148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); } &&
37150 { ac_try='test -z "$ac_c_werror_flag"
37151 || test ! -s conftest.err'
37152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153 (eval $ac_try) 2>&5
37155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156 (exit $ac_status); }; } &&
37157 { ac_try='test -s conftest.$ac_objext'
37158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37159 (eval $ac_try) 2>&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); }; }; then
37163 ac_cv_member_struct_statvfs_f_namemax=yes
37165 echo "$as_me: failed program was:" >&5
37166 sed 's/^/| /' conftest.$ac_ext >&5
37168 ac_cv_member_struct_statvfs_f_namemax=no
37170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37174 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
37175 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
37176 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
37178 cat >>confdefs.h <<_ACEOF
37179 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
37185 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
37186 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
37187 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
37188 echo $ECHO_N "(cached) $ECHO_C" >&6
37190 cat >conftest.$ac_ext <<_ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37201 static struct statfs ac_aggr;
37202 if (ac_aggr.f_namelen)
37208 rm -f conftest.$ac_objext
37209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37210 (eval $ac_compile) 2>conftest.er1
37212 grep -v '^ *+' conftest.er1 >conftest.err
37214 cat conftest.err >&5
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); } &&
37217 { ac_try='test -z "$ac_c_werror_flag"
37218 || test ! -s conftest.err'
37219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220 (eval $ac_try) 2>&5
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); }; } &&
37224 { ac_try='test -s conftest.$ac_objext'
37225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37226 (eval $ac_try) 2>&5
37228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229 (exit $ac_status); }; }; then
37230 ac_cv_member_struct_statfs_f_namelen=yes
37232 echo "$as_me: failed program was:" >&5
37233 sed 's/^/| /' conftest.$ac_ext >&5
37235 cat >conftest.$ac_ext <<_ACEOF
37238 cat confdefs.h >>conftest.$ac_ext
37239 cat >>conftest.$ac_ext <<_ACEOF
37240 /* end confdefs.h. */
37246 static struct statfs ac_aggr;
37247 if (sizeof ac_aggr.f_namelen)
37253 rm -f conftest.$ac_objext
37254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37255 (eval $ac_compile) 2>conftest.er1
37257 grep -v '^ *+' conftest.er1 >conftest.err
37259 cat conftest.err >&5
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); } &&
37262 { ac_try='test -z "$ac_c_werror_flag"
37263 || test ! -s conftest.err'
37264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265 (eval $ac_try) 2>&5
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); }; } &&
37269 { ac_try='test -s conftest.$ac_objext'
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; }; then
37275 ac_cv_member_struct_statfs_f_namelen=yes
37277 echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37280 ac_cv_member_struct_statfs_f_namelen=no
37282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
37287 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
37288 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
37290 cat >>confdefs.h <<_ACEOF
37291 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
37297 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
37298 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
37299 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
37300 echo $ECHO_N "(cached) $ECHO_C" >&6
37302 cat >conftest.$ac_ext <<_ACEOF
37305 cat confdefs.h >>conftest.$ac_ext
37306 cat >>conftest.$ac_ext <<_ACEOF
37307 /* end confdefs.h. */
37313 static struct statvfs ac_aggr;
37314 if (ac_aggr.f_namelen)
37320 rm -f conftest.$ac_objext
37321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37322 (eval $ac_compile) 2>conftest.er1
37324 grep -v '^ *+' conftest.er1 >conftest.err
37326 cat conftest.err >&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); } &&
37329 { ac_try='test -z "$ac_c_werror_flag"
37330 || test ! -s conftest.err'
37331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37332 (eval $ac_try) 2>&5
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); }; } &&
37336 { ac_try='test -s conftest.$ac_objext'
37337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338 (eval $ac_try) 2>&5
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); }; }; then
37342 ac_cv_member_struct_statvfs_f_namelen=yes
37344 echo "$as_me: failed program was:" >&5
37345 sed 's/^/| /' conftest.$ac_ext >&5
37347 cat >conftest.$ac_ext <<_ACEOF
37350 cat confdefs.h >>conftest.$ac_ext
37351 cat >>conftest.$ac_ext <<_ACEOF
37352 /* end confdefs.h. */
37358 static struct statvfs ac_aggr;
37359 if (sizeof ac_aggr.f_namelen)
37365 rm -f conftest.$ac_objext
37366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37367 (eval $ac_compile) 2>conftest.er1
37369 grep -v '^ *+' conftest.er1 >conftest.err
37371 cat conftest.err >&5
37372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373 (exit $ac_status); } &&
37374 { ac_try='test -z "$ac_c_werror_flag"
37375 || test ! -s conftest.err'
37376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377 (eval $ac_try) 2>&5
37379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380 (exit $ac_status); }; } &&
37381 { ac_try='test -s conftest.$ac_objext'
37382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383 (eval $ac_try) 2>&5
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); }; }; then
37387 ac_cv_member_struct_statvfs_f_namelen=yes
37389 echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37392 ac_cv_member_struct_statvfs_f_namelen=no
37394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37398 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
37399 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
37400 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
37402 cat >>confdefs.h <<_ACEOF
37403 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
37419 echo "$as_me:$LINENO: checking whether rename is broken" >&5
37420 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
37421 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
37422 echo $ECHO_N "(cached) $ECHO_C" >&6
37425 rm -rf conftest.d1 conftest.d2
37426 mkdir conftest.d1 ||
37427 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37428 echo "$as_me: error: cannot create temporary directory" >&2;}
37429 { (exit 1); exit 1; }; }
37430 if test "$cross_compiling" = yes; then
37431 vb_cv_func_rename_trailing_slash_bug=yes
37433 cat >conftest.$ac_ext <<_ACEOF
37436 cat confdefs.h >>conftest.$ac_ext
37437 cat >>conftest.$ac_ext <<_ACEOF
37438 /* end confdefs.h. */
37440 # include <stdio.h>
37444 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
37448 rm -f conftest$ac_exeext
37449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37450 (eval $ac_link) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; }; then
37459 vb_cv_func_rename_trailing_slash_bug=no
37461 echo "$as_me: program exited with status $ac_status" >&5
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37465 ( exit $ac_status )
37466 vb_cv_func_rename_trailing_slash_bug=yes
37468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37471 rm -rf conftest.d1 conftest.d2
37474 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
37475 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
37476 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
37478 "rename.$ac_objext" | \
37479 *" rename.$ac_objext" | \
37480 "rename.$ac_objext "* | \
37481 *" rename.$ac_objext "* ) ;;
37482 *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
37486 cat >>confdefs.h <<\_ACEOF
37487 #define rename rpl_rename
37491 cat >>confdefs.h <<\_ACEOF
37492 #define RENAME_TRAILING_SLASH_BUG 1
37499 # We don't yet use c-stack.c.
37500 # AC_REQUIRE([gl_C_STACK])
37624 ac_header_dirent=no
37625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37626 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37627 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
37629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37630 echo $ECHO_N "(cached) $ECHO_C" >&6
37632 cat >conftest.$ac_ext <<_ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h. */
37638 #include <sys/types.h>
37650 rm -f conftest.$ac_objext
37651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37652 (eval $ac_compile) 2>conftest.er1
37654 grep -v '^ *+' conftest.er1 >conftest.err
37656 cat conftest.err >&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); } &&
37659 { ac_try='test -z "$ac_c_werror_flag"
37660 || test ! -s conftest.err'
37661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662 (eval $ac_try) 2>&5
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); }; } &&
37666 { ac_try='test -s conftest.$ac_objext'
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; }; then
37672 eval "$as_ac_Header=yes"
37674 echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37677 eval "$as_ac_Header=no"
37679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37684 cat >>confdefs.h <<_ACEOF
37685 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37688 ac_header_dirent=$ac_hdr; break
37692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37693 if test $ac_header_dirent = dirent.h; then
37694 echo "$as_me:$LINENO: checking for library containing opendir" >&5
37695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
37696 if test "${ac_cv_search_opendir+set}" = set; then
37697 echo $ECHO_N "(cached) $ECHO_C" >&6
37699 ac_func_search_save_LIBS=$LIBS
37700 ac_cv_search_opendir=no
37701 cat >conftest.$ac_ext <<_ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h. */
37708 /* Override any gcc2 internal prototype to avoid an error. */
37712 /* We use char because int might match the return type of a gcc2
37713 builtin and then its argument prototype would still apply. */
37723 rm -f conftest.$ac_objext conftest$ac_exeext
37724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37725 (eval $ac_link) 2>conftest.er1
37727 grep -v '^ *+' conftest.er1 >conftest.err
37729 cat conftest.err >&5
37730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731 (exit $ac_status); } &&
37732 { ac_try='test -z "$ac_c_werror_flag"
37733 || test ! -s conftest.err'
37734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37735 (eval $ac_try) 2>&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); }; } &&
37739 { ac_try='test -s conftest$ac_exeext'
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; }; then
37745 ac_cv_search_opendir="none required"
37747 echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37751 rm -f conftest.err conftest.$ac_objext \
37752 conftest$ac_exeext conftest.$ac_ext
37753 if test "$ac_cv_search_opendir" = no; then
37754 for ac_lib in dir; do
37755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37756 cat >conftest.$ac_ext <<_ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h. */
37763 /* Override any gcc2 internal prototype to avoid an error. */
37767 /* We use char because int might match the return type of a gcc2
37768 builtin and then its argument prototype would still apply. */
37778 rm -f conftest.$ac_objext conftest$ac_exeext
37779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37780 (eval $ac_link) 2>conftest.er1
37782 grep -v '^ *+' conftest.er1 >conftest.err
37784 cat conftest.err >&5
37785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); } &&
37787 { ac_try='test -z "$ac_c_werror_flag"
37788 || test ! -s conftest.err'
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; } &&
37794 { ac_try='test -s conftest$ac_exeext'
37795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796 (eval $ac_try) 2>&5
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); }; }; then
37800 ac_cv_search_opendir="-l$ac_lib"
37803 echo "$as_me: failed program was:" >&5
37804 sed 's/^/| /' conftest.$ac_ext >&5
37807 rm -f conftest.err conftest.$ac_objext \
37808 conftest$ac_exeext conftest.$ac_ext
37811 LIBS=$ac_func_search_save_LIBS
37813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
37815 if test "$ac_cv_search_opendir" != no; then
37816 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
37821 echo "$as_me:$LINENO: checking for library containing opendir" >&5
37822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
37823 if test "${ac_cv_search_opendir+set}" = set; then
37824 echo $ECHO_N "(cached) $ECHO_C" >&6
37826 ac_func_search_save_LIBS=$LIBS
37827 ac_cv_search_opendir=no
37828 cat >conftest.$ac_ext <<_ACEOF
37831 cat confdefs.h >>conftest.$ac_ext
37832 cat >>conftest.$ac_ext <<_ACEOF
37833 /* end confdefs.h. */
37835 /* Override any gcc2 internal prototype to avoid an error. */
37839 /* We use char because int might match the return type of a gcc2
37840 builtin and then its argument prototype would still apply. */
37850 rm -f conftest.$ac_objext conftest$ac_exeext
37851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37852 (eval $ac_link) 2>conftest.er1
37854 grep -v '^ *+' conftest.er1 >conftest.err
37856 cat conftest.err >&5
37857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858 (exit $ac_status); } &&
37859 { ac_try='test -z "$ac_c_werror_flag"
37860 || test ! -s conftest.err'
37861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862 (eval $ac_try) 2>&5
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); }; } &&
37866 { ac_try='test -s conftest$ac_exeext'
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; }; then
37872 ac_cv_search_opendir="none required"
37874 echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37878 rm -f conftest.err conftest.$ac_objext \
37879 conftest$ac_exeext conftest.$ac_ext
37880 if test "$ac_cv_search_opendir" = no; then
37881 for ac_lib in x; do
37882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
37883 cat >conftest.$ac_ext <<_ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h. */
37890 /* Override any gcc2 internal prototype to avoid an error. */
37894 /* We use char because int might match the return type of a gcc2
37895 builtin and then its argument prototype would still apply. */
37905 rm -f conftest.$ac_objext conftest$ac_exeext
37906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37907 (eval $ac_link) 2>conftest.er1
37909 grep -v '^ *+' conftest.er1 >conftest.err
37911 cat conftest.err >&5
37912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913 (exit $ac_status); } &&
37914 { ac_try='test -z "$ac_c_werror_flag"
37915 || test ! -s conftest.err'
37916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917 (eval $ac_try) 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; } &&
37921 { ac_try='test -s conftest$ac_exeext'
37922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923 (eval $ac_try) 2>&5
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); }; }; then
37927 ac_cv_search_opendir="-l$ac_lib"
37930 echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37934 rm -f conftest.err conftest.$ac_objext \
37935 conftest$ac_exeext conftest.$ac_ext
37938 LIBS=$ac_func_search_save_LIBS
37940 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37941 echo "${ECHO_T}$ac_cv_search_opendir" >&6
37942 if test "$ac_cv_search_opendir" != no; then
37943 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
37951 # include <dirent.h>
37952 #else /* not HAVE_DIRENT_H */
37953 # define dirent direct
37954 # if HAVE_SYS_NDIR_H
37955 # include <sys/ndir.h>
37956 # endif /* HAVE_SYS_NDIR_H */
37957 # if HAVE_SYS_DIR_H
37958 # include <sys/dir.h>
37959 # endif /* HAVE_SYS_DIR_H */
37962 # endif /* HAVE_NDIR_H */
37963 #endif /* HAVE_DIRENT_H */
37966 for ac_func in dirfd
37968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37969 echo "$as_me:$LINENO: checking for $ac_func" >&5
37970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37971 if eval "test \"\${$as_ac_var+set}\" = set"; then
37972 echo $ECHO_N "(cached) $ECHO_C" >&6
37974 cat >conftest.$ac_ext <<_ACEOF
37977 cat confdefs.h >>conftest.$ac_ext
37978 cat >>conftest.$ac_ext <<_ACEOF
37979 /* end confdefs.h. */
37980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37982 #define $ac_func innocuous_$ac_func
37984 /* System header to define __stub macros and hopefully few prototypes,
37985 which can conflict with char $ac_func (); below.
37986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37987 <limits.h> exists even on freestanding compilers. */
37990 # include <limits.h>
37992 # include <assert.h>
37997 /* Override any gcc2 internal prototype to avoid an error. */
38002 /* We use char because int might match the return type of a gcc2
38003 builtin and then its argument prototype would still apply. */
38005 /* The GNU C library defines this for functions which it implements
38006 to always fail with ENOSYS. Some functions are actually named
38007 something starting with __ and the normal name is an alias. */
38008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38011 char (*f) () = $ac_func;
38020 return f != $ac_func;
38025 rm -f conftest.$ac_objext conftest$ac_exeext
38026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38027 (eval $ac_link) 2>conftest.er1
38029 grep -v '^ *+' conftest.er1 >conftest.err
38031 cat conftest.err >&5
38032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033 (exit $ac_status); } &&
38034 { ac_try='test -z "$ac_c_werror_flag"
38035 || test ! -s conftest.err'
38036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38037 (eval $ac_try) 2>&5
38039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040 (exit $ac_status); }; } &&
38041 { ac_try='test -s conftest$ac_exeext'
38042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38043 (eval $ac_try) 2>&5
38045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046 (exit $ac_status); }; }; then
38047 eval "$as_ac_var=yes"
38049 echo "$as_me: failed program was:" >&5
38050 sed 's/^/| /' conftest.$ac_ext >&5
38052 eval "$as_ac_var=no"
38054 rm -f conftest.err conftest.$ac_objext \
38055 conftest$ac_exeext conftest.$ac_ext
38057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38059 if test `eval echo '${'$as_ac_var'}'` = yes; then
38060 cat >>confdefs.h <<_ACEOF
38061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38067 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
38068 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
38069 if test "${ac_cv_have_decl_dirfd+set}" = set; then
38070 echo $ECHO_N "(cached) $ECHO_C" >&6
38072 cat >conftest.$ac_ext <<_ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h. */
38084 char *p = (char *) dirfd;
38091 rm -f conftest.$ac_objext
38092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38093 (eval $ac_compile) 2>conftest.er1
38095 grep -v '^ *+' conftest.er1 >conftest.err
38097 cat conftest.err >&5
38098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 (exit $ac_status); } &&
38100 { ac_try='test -z "$ac_c_werror_flag"
38101 || test ! -s conftest.err'
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103 (eval $ac_try) 2>&5
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; } &&
38107 { ac_try='test -s conftest.$ac_objext'
38108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109 (eval $ac_try) 2>&5
38111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112 (exit $ac_status); }; }; then
38113 ac_cv_have_decl_dirfd=yes
38115 echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38118 ac_cv_have_decl_dirfd=no
38120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
38123 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
38124 if test $ac_cv_have_decl_dirfd = yes; then
38126 cat >>confdefs.h <<_ACEOF
38127 #define HAVE_DECL_DIRFD 1
38132 cat >>confdefs.h <<_ACEOF
38133 #define HAVE_DECL_DIRFD 0
38141 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
38142 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
38143 if test "${jm_cv_func_dirfd_macro+set}" = set; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38146 cat >conftest.$ac_ext <<_ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h. */
38154 dirent_header_defines_dirfd
38157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38158 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
38159 jm_cv_func_dirfd_macro=yes
38161 jm_cv_func_dirfd_macro=no
38166 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
38167 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
38169 # Use the replacement only if we have no function, macro,
38170 # or declaration with that name.
38171 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
38174 for ac_func in dirfd
38176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38177 echo "$as_me:$LINENO: checking for $ac_func" >&5
38178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38179 if eval "test \"\${$as_ac_var+set}\" = set"; then
38180 echo $ECHO_N "(cached) $ECHO_C" >&6
38182 cat >conftest.$ac_ext <<_ACEOF
38185 cat confdefs.h >>conftest.$ac_ext
38186 cat >>conftest.$ac_ext <<_ACEOF
38187 /* end confdefs.h. */
38188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38190 #define $ac_func innocuous_$ac_func
38192 /* System header to define __stub macros and hopefully few prototypes,
38193 which can conflict with char $ac_func (); below.
38194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38195 <limits.h> exists even on freestanding compilers. */
38198 # include <limits.h>
38200 # include <assert.h>
38205 /* Override any gcc2 internal prototype to avoid an error. */
38210 /* We use char because int might match the return type of a gcc2
38211 builtin and then its argument prototype would still apply. */
38213 /* The GNU C library defines this for functions which it implements
38214 to always fail with ENOSYS. Some functions are actually named
38215 something starting with __ and the normal name is an alias. */
38216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38219 char (*f) () = $ac_func;
38228 return f != $ac_func;
38233 rm -f conftest.$ac_objext conftest$ac_exeext
38234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38235 (eval $ac_link) 2>conftest.er1
38237 grep -v '^ *+' conftest.er1 >conftest.err
38239 cat conftest.err >&5
38240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241 (exit $ac_status); } &&
38242 { ac_try='test -z "$ac_c_werror_flag"
38243 || test ! -s conftest.err'
38244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38245 (eval $ac_try) 2>&5
38247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248 (exit $ac_status); }; } &&
38249 { ac_try='test -s conftest$ac_exeext'
38250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38251 (eval $ac_try) 2>&5
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); }; }; then
38255 eval "$as_ac_var=yes"
38257 echo "$as_me: failed program was:" >&5
38258 sed 's/^/| /' conftest.$ac_ext >&5
38260 eval "$as_ac_var=no"
38262 rm -f conftest.err conftest.$ac_objext \
38263 conftest$ac_exeext conftest.$ac_ext
38265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38267 if test `eval echo '${'$as_ac_var'}'` = yes; then
38268 cat >>confdefs.h <<_ACEOF
38269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38274 "$ac_func.$ac_objext" | \
38275 *" $ac_func.$ac_objext" | \
38276 "$ac_func.$ac_objext "* | \
38277 *" $ac_func.$ac_objext "* ) ;;
38278 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38285 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
38286 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
38287 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
38288 echo $ECHO_N "(cached) $ECHO_C" >&6
38291 dirfd_save_CFLAGS=$CFLAGS
38292 for ac_expr in d_fd dd_fd; do
38294 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
38295 cat >conftest.$ac_ext <<_ACEOF
38298 cat confdefs.h >>conftest.$ac_ext
38299 cat >>conftest.$ac_ext <<_ACEOF
38300 /* end confdefs.h. */
38306 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
38311 rm -f conftest.$ac_objext
38312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38313 (eval $ac_compile) 2>conftest.er1
38315 grep -v '^ *+' conftest.er1 >conftest.err
38317 cat conftest.err >&5
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); } &&
38320 { ac_try='test -z "$ac_c_werror_flag"
38321 || test ! -s conftest.err'
38322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323 (eval $ac_try) 2>&5
38325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326 (exit $ac_status); }; } &&
38327 { ac_try='test -s conftest.$ac_objext'
38328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38329 (eval $ac_try) 2>&5
38331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332 (exit $ac_status); }; }; then
38336 echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38341 CFLAGS=$dirfd_save_CFLAGS
38342 test "$dir_fd_found" = yes && break
38344 test "$dir_fd_found" = yes || ac_expr=no_such_member
38346 gl_cv_sys_dir_fd_member_name=$ac_expr
38350 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
38351 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
38352 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
38354 cat >>confdefs.h <<_ACEOF
38355 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
38365 for ac_header in sys/acl.h
38367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38369 echo "$as_me:$LINENO: checking for $ac_header" >&5
38370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38372 echo $ECHO_N "(cached) $ECHO_C" >&6
38374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38377 # Is the header compilable?
38378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38380 cat >conftest.$ac_ext <<_ACEOF
38383 cat confdefs.h >>conftest.$ac_ext
38384 cat >>conftest.$ac_ext <<_ACEOF
38385 /* end confdefs.h. */
38386 $ac_includes_default
38387 #include <$ac_header>
38389 rm -f conftest.$ac_objext
38390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38391 (eval $ac_compile) 2>conftest.er1
38393 grep -v '^ *+' conftest.er1 >conftest.err
38395 cat conftest.err >&5
38396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397 (exit $ac_status); } &&
38398 { ac_try='test -z "$ac_c_werror_flag"
38399 || test ! -s conftest.err'
38400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401 (eval $ac_try) 2>&5
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); }; } &&
38405 { ac_try='test -s conftest.$ac_objext'
38406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38407 (eval $ac_try) 2>&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); }; }; then
38411 ac_header_compiler=yes
38413 echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38416 ac_header_compiler=no
38418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38420 echo "${ECHO_T}$ac_header_compiler" >&6
38422 # Is the header present?
38423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38425 cat >conftest.$ac_ext <<_ACEOF
38428 cat confdefs.h >>conftest.$ac_ext
38429 cat >>conftest.$ac_ext <<_ACEOF
38430 /* end confdefs.h. */
38431 #include <$ac_header>
38433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38434 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
38441 if test -s conftest.err; then
38442 ac_cpp_err=$ac_c_preproc_warn_flag
38443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38450 if test -z "$ac_cpp_err"; then
38451 ac_header_preproc=yes
38453 echo "$as_me: failed program was:" >&5
38454 sed 's/^/| /' conftest.$ac_ext >&5
38456 ac_header_preproc=no
38458 rm -f conftest.err conftest.$ac_ext
38459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38460 echo "${ECHO_T}$ac_header_preproc" >&6
38462 # So? What about this header?
38463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38469 ac_header_preproc=yes
38472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38486 ## ------------------------------------ ##
38487 ## Report this to bug-coreutils@gnu.org ##
38488 ## ------------------------------------ ##
38491 sed "s/^/$as_me: WARNING: /" >&2
38494 echo "$as_me:$LINENO: checking for $ac_header" >&5
38495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38497 echo $ECHO_N "(cached) $ECHO_C" >&6
38499 eval "$as_ac_Header=\$ac_header_preproc"
38501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38506 cat >>confdefs.h <<_ACEOF
38507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38518 echo "$as_me:$LINENO: checking for $ac_func" >&5
38519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38520 if eval "test \"\${$as_ac_var+set}\" = set"; then
38521 echo $ECHO_N "(cached) $ECHO_C" >&6
38523 cat >conftest.$ac_ext <<_ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h. */
38529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38531 #define $ac_func innocuous_$ac_func
38533 /* System header to define __stub macros and hopefully few prototypes,
38534 which can conflict with char $ac_func (); below.
38535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38536 <limits.h> exists even on freestanding compilers. */
38539 # include <limits.h>
38541 # include <assert.h>
38546 /* Override any gcc2 internal prototype to avoid an error. */
38551 /* We use char because int might match the return type of a gcc2
38552 builtin and then its argument prototype would still apply. */
38554 /* The GNU C library defines this for functions which it implements
38555 to always fail with ENOSYS. Some functions are actually named
38556 something starting with __ and the normal name is an alias. */
38557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38560 char (*f) () = $ac_func;
38569 return f != $ac_func;
38574 rm -f conftest.$ac_objext conftest$ac_exeext
38575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38576 (eval $ac_link) 2>conftest.er1
38578 grep -v '^ *+' conftest.er1 >conftest.err
38580 cat conftest.err >&5
38581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582 (exit $ac_status); } &&
38583 { ac_try='test -z "$ac_c_werror_flag"
38584 || test ! -s conftest.err'
38585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586 (eval $ac_try) 2>&5
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); }; } &&
38590 { ac_try='test -s conftest$ac_exeext'
38591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592 (eval $ac_try) 2>&5
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); }; }; then
38596 eval "$as_ac_var=yes"
38598 echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38601 eval "$as_ac_var=no"
38603 rm -f conftest.err conftest.$ac_objext \
38604 conftest$ac_exeext conftest.$ac_ext
38606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38608 if test `eval echo '${'$as_ac_var'}'` = yes; then
38609 cat >>confdefs.h <<_ACEOF
38610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38620 for ac_func in lchown
38622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38623 echo "$as_me:$LINENO: checking for $ac_func" >&5
38624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38625 if eval "test \"\${$as_ac_var+set}\" = set"; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38628 cat >conftest.$ac_ext <<_ACEOF
38631 cat confdefs.h >>conftest.$ac_ext
38632 cat >>conftest.$ac_ext <<_ACEOF
38633 /* end confdefs.h. */
38634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38636 #define $ac_func innocuous_$ac_func
38638 /* System header to define __stub macros and hopefully few prototypes,
38639 which can conflict with char $ac_func (); below.
38640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38641 <limits.h> exists even on freestanding compilers. */
38644 # include <limits.h>
38646 # include <assert.h>
38651 /* Override any gcc2 internal prototype to avoid an error. */
38656 /* We use char because int might match the return type of a gcc2
38657 builtin and then its argument prototype would still apply. */
38659 /* The GNU C library defines this for functions which it implements
38660 to always fail with ENOSYS. Some functions are actually named
38661 something starting with __ and the normal name is an alias. */
38662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38665 char (*f) () = $ac_func;
38674 return f != $ac_func;
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681 (eval $ac_link) 2>conftest.er1
38683 grep -v '^ *+' conftest.er1 >conftest.err
38685 cat conftest.err >&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); } &&
38688 { ac_try='test -z "$ac_c_werror_flag"
38689 || test ! -s conftest.err'
38690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691 (eval $ac_try) 2>&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); }; } &&
38695 { ac_try='test -s conftest$ac_exeext'
38696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697 (eval $ac_try) 2>&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); }; }; then
38701 eval "$as_ac_var=yes"
38703 echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38706 eval "$as_ac_var=no"
38708 rm -f conftest.err conftest.$ac_objext \
38709 conftest$ac_exeext conftest.$ac_ext
38711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714 cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38720 "$ac_func.$ac_objext" | \
38721 *" $ac_func.$ac_objext" | \
38722 "$ac_func.$ac_objext "* | \
38723 *" $ac_func.$ac_objext "* ) ;;
38724 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38731 if test $ac_cv_func_lchown = no; then
38738 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
38739 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
38740 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
38741 echo $ECHO_N "(cached) $ECHO_C" >&6
38744 # Arrange for deletion of the temporary directory this test creates.
38745 ac_clean_files="$ac_clean_files confdir2"
38746 mkdir confdir2; : > confdir2/file
38747 if test "$cross_compiling" = yes; then
38748 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
38751 cat >conftest.$ac_ext <<_ACEOF
38754 cat confdefs.h >>conftest.$ac_ext
38755 cat >>conftest.$ac_ext <<_ACEOF
38756 /* end confdefs.h. */
38767 rmdir ("confdir2");
38769 s = fopen ("confdir2/errno", "w");
38770 fprintf (s, "%d\n", val);
38775 rm -f conftest$ac_exeext
38776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38777 (eval $ac_link) 2>&5
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; }; then
38786 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
38788 echo "$as_me: program exited with status $ac_status" >&5
38789 echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38792 ( exit $ac_status )
38793 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
38795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38800 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
38801 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
38804 cat >>confdefs.h <<_ACEOF
38805 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
38810 for ac_header in unistd.h
38812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38814 echo "$as_me:$LINENO: checking for $ac_header" >&5
38815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38817 echo $ECHO_N "(cached) $ECHO_C" >&6
38819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38822 # Is the header compilable?
38823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38825 cat >conftest.$ac_ext <<_ACEOF
38828 cat confdefs.h >>conftest.$ac_ext
38829 cat >>conftest.$ac_ext <<_ACEOF
38830 /* end confdefs.h. */
38831 $ac_includes_default
38832 #include <$ac_header>
38834 rm -f conftest.$ac_objext
38835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38836 (eval $ac_compile) 2>conftest.er1
38838 grep -v '^ *+' conftest.er1 >conftest.err
38840 cat conftest.err >&5
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); } &&
38843 { ac_try='test -z "$ac_c_werror_flag"
38844 || test ! -s conftest.err'
38845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846 (eval $ac_try) 2>&5
38848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849 (exit $ac_status); }; } &&
38850 { ac_try='test -s conftest.$ac_objext'
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; }; then
38856 ac_header_compiler=yes
38858 echo "$as_me: failed program was:" >&5
38859 sed 's/^/| /' conftest.$ac_ext >&5
38861 ac_header_compiler=no
38863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38865 echo "${ECHO_T}$ac_header_compiler" >&6
38867 # Is the header present?
38868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38870 cat >conftest.$ac_ext <<_ACEOF
38873 cat confdefs.h >>conftest.$ac_ext
38874 cat >>conftest.$ac_ext <<_ACEOF
38875 /* end confdefs.h. */
38876 #include <$ac_header>
38878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38881 grep -v '^ *+' conftest.er1 >conftest.err
38883 cat conftest.err >&5
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); } >/dev/null; then
38886 if test -s conftest.err; then
38887 ac_cpp_err=$ac_c_preproc_warn_flag
38888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38895 if test -z "$ac_cpp_err"; then
38896 ac_header_preproc=yes
38898 echo "$as_me: failed program was:" >&5
38899 sed 's/^/| /' conftest.$ac_ext >&5
38901 ac_header_preproc=no
38903 rm -f conftest.err conftest.$ac_ext
38904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38905 echo "${ECHO_T}$ac_header_preproc" >&6
38907 # So? What about this header?
38908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38914 ac_header_preproc=yes
38917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38931 ## ------------------------------------ ##
38932 ## Report this to bug-coreutils@gnu.org ##
38933 ## ------------------------------------ ##
38936 sed "s/^/$as_me: WARNING: /" >&2
38939 echo "$as_me:$LINENO: checking for $ac_header" >&5
38940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38942 echo $ECHO_N "(cached) $ECHO_C" >&6
38944 eval "$as_ac_Header=\$ac_header_preproc"
38946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38951 cat >>confdefs.h <<_ACEOF
38952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38959 echo "$as_me:$LINENO: checking for working chown" >&5
38960 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
38961 if test "${ac_cv_func_chown_works+set}" = set; then
38962 echo $ECHO_N "(cached) $ECHO_C" >&6
38964 if test "$cross_compiling" = yes; then
38965 ac_cv_func_chown_works=no
38967 cat >conftest.$ac_ext <<_ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h. */
38973 $ac_includes_default
38979 char *f = "conftest.chown";
38980 struct stat before, after;
38982 if (creat (f, 0600) < 0)
38984 if (stat (f, &before) < 0)
38986 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
38988 if (stat (f, &after) < 0)
38990 exit ((before.st_uid == after.st_uid
38991 && before.st_gid == after.st_gid) ? 0 : 1);
38997 rm -f conftest$ac_exeext
38998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38999 (eval $ac_link) 2>&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004 (eval $ac_try) 2>&5
39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); }; }; then
39008 ac_cv_func_chown_works=yes
39010 echo "$as_me: program exited with status $ac_status" >&5
39011 echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39014 ( exit $ac_status )
39015 ac_cv_func_chown_works=no
39017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39019 rm -f conftest.chown
39022 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
39023 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
39024 if test $ac_cv_func_chown_works = yes; then
39026 cat >>confdefs.h <<\_ACEOF
39027 #define HAVE_CHOWN 1
39034 if test $ac_cv_func_chown_works = no; then
39036 "chown.$ac_objext" | \
39037 *" chown.$ac_objext" | \
39038 "chown.$ac_objext "* | \
39039 *" chown.$ac_objext "* ) ;;
39040 *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
39044 cat >>confdefs.h <<\_ACEOF
39045 #define chown rpl_chown
39062 echo "$as_me:$LINENO: checking for group_member" >&5
39063 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
39064 if test "${ac_cv_func_group_member+set}" = set; then
39065 echo $ECHO_N "(cached) $ECHO_C" >&6
39067 cat >conftest.$ac_ext <<_ACEOF
39070 cat confdefs.h >>conftest.$ac_ext
39071 cat >>conftest.$ac_ext <<_ACEOF
39072 /* end confdefs.h. */
39073 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
39074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39075 #define group_member innocuous_group_member
39077 /* System header to define __stub macros and hopefully few prototypes,
39078 which can conflict with char group_member (); below.
39079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39080 <limits.h> exists even on freestanding compilers. */
39083 # include <limits.h>
39085 # include <assert.h>
39088 #undef group_member
39090 /* Override any gcc2 internal prototype to avoid an error. */
39095 /* We use char because int might match the return type of a gcc2
39096 builtin and then its argument prototype would still apply. */
39097 char group_member ();
39098 /* The GNU C library defines this for functions which it implements
39099 to always fail with ENOSYS. Some functions are actually named
39100 something starting with __ and the normal name is an alias. */
39101 #if defined (__stub_group_member) || defined (__stub___group_member)
39104 char (*f) () = group_member;
39113 return f != group_member;
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39120 (eval $ac_link) 2>conftest.er1
39122 grep -v '^ *+' conftest.er1 >conftest.err
39124 cat conftest.err >&5
39125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126 (exit $ac_status); } &&
39127 { ac_try='test -z "$ac_c_werror_flag"
39128 || test ! -s conftest.err'
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; } &&
39134 { ac_try='test -s conftest$ac_exeext'
39135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39136 (eval $ac_try) 2>&5
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); }; }; then
39140 ac_cv_func_group_member=yes
39142 echo "$as_me: failed program was:" >&5
39143 sed 's/^/| /' conftest.$ac_ext >&5
39145 ac_cv_func_group_member=no
39147 rm -f conftest.err conftest.$ac_objext \
39148 conftest$ac_exeext conftest.$ac_ext
39150 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
39151 echo "${ECHO_T}$ac_cv_func_group_member" >&6
39152 if test $ac_cv_func_group_member = yes; then
39157 "group-member.$ac_objext" | \
39158 *" group-member.$ac_objext" | \
39159 "group-member.$ac_objext "* | \
39160 *" group-member.$ac_objext "* ) ;;
39161 *) LIBOBJS="$LIBOBJS group-member.$ac_objext" ;;
39178 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
39179 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
39180 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
39181 echo $ECHO_N "(cached) $ECHO_C" >&6
39184 test -z "$ac_cv_header_unistd_h" \
39186 for ac_header in unistd.h
39188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39190 echo "$as_me:$LINENO: checking for $ac_header" >&5
39191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39193 echo $ECHO_N "(cached) $ECHO_C" >&6
39195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39198 # Is the header compilable?
39199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39200 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
39208 #include <$ac_header>
39210 rm -f conftest.$ac_objext
39211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39212 (eval $ac_compile) 2>conftest.er1
39214 grep -v '^ *+' conftest.er1 >conftest.err
39216 cat conftest.err >&5
39217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218 (exit $ac_status); } &&
39219 { ac_try='test -z "$ac_c_werror_flag"
39220 || test ! -s conftest.err'
39221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222 (eval $ac_try) 2>&5
39224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225 (exit $ac_status); }; } &&
39226 { ac_try='test -s conftest.$ac_objext'
39227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228 (eval $ac_try) 2>&5
39230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231 (exit $ac_status); }; }; then
39232 ac_header_compiler=yes
39234 echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39237 ac_header_compiler=no
39239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39241 echo "${ECHO_T}$ac_header_compiler" >&6
39243 # Is the header present?
39244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39246 cat >conftest.$ac_ext <<_ACEOF
39249 cat confdefs.h >>conftest.$ac_ext
39250 cat >>conftest.$ac_ext <<_ACEOF
39251 /* end confdefs.h. */
39252 #include <$ac_header>
39254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39257 grep -v '^ *+' conftest.er1 >conftest.err
39259 cat conftest.err >&5
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } >/dev/null; then
39262 if test -s conftest.err; then
39263 ac_cpp_err=$ac_c_preproc_warn_flag
39264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39271 if test -z "$ac_cpp_err"; then
39272 ac_header_preproc=yes
39274 echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39277 ac_header_preproc=no
39279 rm -f conftest.err conftest.$ac_ext
39280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39281 echo "${ECHO_T}$ac_header_preproc" >&6
39283 # So? What about this header?
39284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39290 ac_header_preproc=yes
39293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39307 ## ------------------------------------ ##
39308 ## Report this to bug-coreutils@gnu.org ##
39309 ## ------------------------------------ ##
39312 sed "s/^/$as_me: WARNING: /" >&2
39315 echo "$as_me:$LINENO: checking for $ac_header" >&5
39316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39318 echo $ECHO_N "(cached) $ECHO_C" >&6
39320 eval "$as_ac_Header=\$ac_header_preproc"
39322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39327 cat >>confdefs.h <<_ACEOF
39328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39336 # Create a regular file.
39337 echo > conftest.file
39338 if test "$cross_compiling" = yes; then
39339 jm_ac_cv_func_link_follows_symlink=yes
39341 cat >conftest.$ac_ext <<_ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h. */
39348 # include <sys/types.h>
39349 # include <sys/stat.h>
39350 # ifdef HAVE_UNISTD_H
39351 # include <unistd.h>
39354 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
39355 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
39356 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
39361 const char *file = "conftest.file";
39362 const char *sym = "conftest.sym";
39363 const char *hard = "conftest.hard";
39364 struct stat sb_file, sb_hard;
39366 /* Create a symlink to the regular file. */
39367 if (symlink (file, sym))
39370 /* Create a hard link to that symlink. */
39371 if (link (sym, hard))
39374 if (lstat (hard, &sb_hard))
39376 if (lstat (file, &sb_file))
39379 /* If the dev/inode of hard and file are the same, then
39380 the link call followed the symlink. */
39381 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
39385 rm -f conftest$ac_exeext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39387 (eval $ac_link) 2>&5
39389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39392 (eval $ac_try) 2>&5
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); }; }; then
39396 jm_ac_cv_func_link_follows_symlink=yes
39398 echo "$as_me: program exited with status $ac_status" >&5
39399 echo "$as_me: failed program was:" >&5
39400 sed 's/^/| /' conftest.$ac_ext >&5
39402 ( exit $ac_status )
39403 jm_ac_cv_func_link_follows_symlink=no
39405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39409 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
39410 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
39411 if test $jm_ac_cv_func_link_follows_symlink = yes; then
39413 cat >>confdefs.h <<\_ACEOF
39414 #define LINK_FOLLOWS_SYMLINKS 1
39421 for ac_header in stdio_ext.h
39423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39425 echo "$as_me:$LINENO: checking for $ac_header" >&5
39426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39428 echo $ECHO_N "(cached) $ECHO_C" >&6
39430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39433 # Is the header compilable?
39434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39436 cat >conftest.$ac_ext <<_ACEOF
39439 cat confdefs.h >>conftest.$ac_ext
39440 cat >>conftest.$ac_ext <<_ACEOF
39441 /* end confdefs.h. */
39442 $ac_includes_default
39443 #include <$ac_header>
39445 rm -f conftest.$ac_objext
39446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39447 (eval $ac_compile) 2>conftest.er1
39449 grep -v '^ *+' conftest.er1 >conftest.err
39451 cat conftest.err >&5
39452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453 (exit $ac_status); } &&
39454 { ac_try='test -z "$ac_c_werror_flag"
39455 || test ! -s conftest.err'
39456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39457 (eval $ac_try) 2>&5
39459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460 (exit $ac_status); }; } &&
39461 { ac_try='test -s conftest.$ac_objext'
39462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39463 (eval $ac_try) 2>&5
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); }; }; then
39467 ac_header_compiler=yes
39469 echo "$as_me: failed program was:" >&5
39470 sed 's/^/| /' conftest.$ac_ext >&5
39472 ac_header_compiler=no
39474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39476 echo "${ECHO_T}$ac_header_compiler" >&6
39478 # Is the header present?
39479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39481 cat >conftest.$ac_ext <<_ACEOF
39484 cat confdefs.h >>conftest.$ac_ext
39485 cat >>conftest.$ac_ext <<_ACEOF
39486 /* end confdefs.h. */
39487 #include <$ac_header>
39489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39492 grep -v '^ *+' conftest.er1 >conftest.err
39494 cat conftest.err >&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); } >/dev/null; then
39497 if test -s conftest.err; then
39498 ac_cpp_err=$ac_c_preproc_warn_flag
39499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39506 if test -z "$ac_cpp_err"; then
39507 ac_header_preproc=yes
39509 echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39512 ac_header_preproc=no
39514 rm -f conftest.err conftest.$ac_ext
39515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39516 echo "${ECHO_T}$ac_header_preproc" >&6
39518 # So? What about this header?
39519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39525 ac_header_preproc=yes
39528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39542 ## ------------------------------------ ##
39543 ## Report this to bug-coreutils@gnu.org ##
39544 ## ------------------------------------ ##
39547 sed "s/^/$as_me: WARNING: /" >&2
39550 echo "$as_me:$LINENO: checking for $ac_header" >&5
39551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39553 echo $ECHO_N "(cached) $ECHO_C" >&6
39555 eval "$as_ac_Header=\$ac_header_preproc"
39557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39562 cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39571 for ac_func in __fpending
39573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39574 echo "$as_me:$LINENO: checking for $ac_func" >&5
39575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39576 if eval "test \"\${$as_ac_var+set}\" = set"; then
39577 echo $ECHO_N "(cached) $ECHO_C" >&6
39579 cat >conftest.$ac_ext <<_ACEOF
39582 cat confdefs.h >>conftest.$ac_ext
39583 cat >>conftest.$ac_ext <<_ACEOF
39584 /* end confdefs.h. */
39585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39587 #define $ac_func innocuous_$ac_func
39589 /* System header to define __stub macros and hopefully few prototypes,
39590 which can conflict with char $ac_func (); below.
39591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592 <limits.h> exists even on freestanding compilers. */
39595 # include <limits.h>
39597 # include <assert.h>
39602 /* Override any gcc2 internal prototype to avoid an error. */
39607 /* We use char because int might match the return type of a gcc2
39608 builtin and then its argument prototype would still apply. */
39610 /* The GNU C library defines this for functions which it implements
39611 to always fail with ENOSYS. Some functions are actually named
39612 something starting with __ and the normal name is an alias. */
39613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39616 char (*f) () = $ac_func;
39625 return f != $ac_func;
39630 rm -f conftest.$ac_objext conftest$ac_exeext
39631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39632 (eval $ac_link) 2>conftest.er1
39634 grep -v '^ *+' conftest.er1 >conftest.err
39636 cat conftest.err >&5
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); } &&
39639 { ac_try='test -z "$ac_c_werror_flag"
39640 || test ! -s conftest.err'
39641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39642 (eval $ac_try) 2>&5
39644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645 (exit $ac_status); }; } &&
39646 { ac_try='test -s conftest$ac_exeext'
39647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648 (eval $ac_try) 2>&5
39650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651 (exit $ac_status); }; }; then
39652 eval "$as_ac_var=yes"
39654 echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39657 eval "$as_ac_var=no"
39659 rm -f conftest.err conftest.$ac_objext \
39660 conftest$ac_exeext conftest.$ac_ext
39662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39664 if test `eval echo '${'$as_ac_var'}'` = yes; then
39665 cat >>confdefs.h <<_ACEOF
39666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39671 "$ac_func.$ac_objext" | \
39672 *" $ac_func.$ac_objext" | \
39673 "$ac_func.$ac_objext "* | \
39674 *" $ac_func.$ac_objext "* ) ;;
39675 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39683 # if HAVE_STDIO_EXT_H
39684 # include <stdio_ext.h>
39687 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
39688 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
39689 if test "${ac_cv_have_decl___fpending+set}" = set; then
39690 echo $ECHO_N "(cached) $ECHO_C" >&6
39692 cat >conftest.$ac_ext <<_ACEOF
39695 cat confdefs.h >>conftest.$ac_ext
39696 cat >>conftest.$ac_ext <<_ACEOF
39697 /* end confdefs.h. */
39704 char *p = (char *) __fpending;
39711 rm -f conftest.$ac_objext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39713 (eval $ac_compile) 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_objext'
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 ac_cv_have_decl___fpending=yes
39735 echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39738 ac_cv_have_decl___fpending=no
39740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39742 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
39743 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
39744 if test $ac_cv_have_decl___fpending = yes; then
39746 cat >>confdefs.h <<_ACEOF
39747 #define HAVE_DECL___FPENDING 1
39752 cat >>confdefs.h <<_ACEOF
39753 #define HAVE_DECL___FPENDING 0
39760 if test $ac_cv_func___fpending = no; then
39761 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
39762 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
39763 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
39764 echo $ECHO_N "(cached) $ECHO_C" >&6
39770 'fp->_IO_write_ptr - fp->_IO_write_base' \
39772 '# traditional Unix' \
39773 'fp->_ptr - fp->_base' \
39776 'fp->_p - fp->_bf._base' \
39778 '# SCO, Unixware' \
39779 'fp->__ptr - fp->__base' \
39782 'fp->__bufp - fp->__buffer' \
39784 '# old glibc iostream?' \
39785 'fp->_pptr - fp->_pbase' \
39788 '(*fp)->_ptr - (*fp)->_base' \
39790 '# e.g., DGUX R4.11; the info is not available' \
39794 # Skip each embedded comment.
39795 case "$ac_expr" in '#'*) continue;; esac
39797 cat >conftest.$ac_ext <<_ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39808 FILE *fp = stdin; (void) ($ac_expr);
39813 rm -f conftest.$ac_objext
39814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39815 (eval $ac_compile) 2>conftest.er1
39817 grep -v '^ *+' conftest.er1 >conftest.err
39819 cat conftest.err >&5
39820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821 (exit $ac_status); } &&
39822 { ac_try='test -z "$ac_c_werror_flag"
39823 || test ! -s conftest.err'
39824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39825 (eval $ac_try) 2>&5
39827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); }; } &&
39829 { ac_try='test -s conftest.$ac_objext'
39830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39831 (eval $ac_try) 2>&5
39833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); }; }; then
39838 echo "$as_me: failed program was:" >&5
39839 sed 's/^/| /' conftest.$ac_ext >&5
39842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39843 test "$fp_done" = yes && break
39846 ac_cv_sys_pending_output_n_bytes=$ac_expr
39850 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
39851 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
39853 cat >>confdefs.h <<_ACEOF
39854 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
39860 echo "$as_me:$LINENO: checking for inttypes.h" >&5
39861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
39862 if test "${gt_cv_header_inttypes_h+set}" = set; then
39863 echo $ECHO_N "(cached) $ECHO_C" >&6
39866 cat >conftest.$ac_ext <<_ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h. */
39872 #include <sys/types.h>
39873 #include <inttypes.h>
39882 rm -f conftest.$ac_objext
39883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39884 (eval $ac_compile) 2>conftest.er1
39886 grep -v '^ *+' conftest.er1 >conftest.err
39888 cat conftest.err >&5
39889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890 (exit $ac_status); } &&
39891 { ac_try='test -z "$ac_c_werror_flag"
39892 || test ! -s conftest.err'
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; } &&
39898 { ac_try='test -s conftest.$ac_objext'
39899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900 (eval $ac_try) 2>&5
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); }; }; then
39904 gt_cv_header_inttypes_h=yes
39906 echo "$as_me: failed program was:" >&5
39907 sed 's/^/| /' conftest.$ac_ext >&5
39909 gt_cv_header_inttypes_h=no
39911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39914 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
39915 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
39916 if test $gt_cv_header_inttypes_h = yes; then
39918 cat >>confdefs.h <<_ACEOF
39919 #define HAVE_INTTYPES_H 1
39926 if test $gt_cv_header_inttypes_h = yes; then
39927 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
39928 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
39929 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
39930 echo $ECHO_N "(cached) $ECHO_C" >&6
39933 cat >conftest.$ac_ext <<_ACEOF
39936 cat confdefs.h >>conftest.$ac_ext
39937 cat >>conftest.$ac_ext <<_ACEOF
39938 /* end confdefs.h. */
39939 #include <inttypes.h>
39952 rm -f conftest.$ac_objext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39954 (eval $ac_compile) 2>conftest.er1
39956 grep -v '^ *+' conftest.er1 >conftest.err
39958 cat conftest.err >&5
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); } &&
39961 { ac_try='test -z "$ac_c_werror_flag"
39962 || test ! -s conftest.err'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; } &&
39968 { ac_try='test -s conftest.$ac_objext'
39969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970 (eval $ac_try) 2>&5
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); }; }; then
39974 gt_cv_inttypes_pri_broken=no
39976 echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39979 gt_cv_inttypes_pri_broken=yes
39981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39984 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
39985 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
39987 if test "$gt_cv_inttypes_pri_broken" = yes; then
39989 cat >>confdefs.h <<_ACEOF
39990 #define PRI_MACROS_BROKEN 1
39997 if test $ac_cv_func_getgroups_works = no; then
39999 "getgroups.$ac_objext" | \
40000 *" getgroups.$ac_objext" | \
40001 "getgroups.$ac_objext "* | \
40002 *" getgroups.$ac_objext "* ) ;;
40003 *) LIBOBJS="$LIBOBJS getgroups.$ac_objext" ;;
40007 cat >>confdefs.h <<\_ACEOF
40008 #define getgroups rpl_getgroups
40015 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
40017 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
40018 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
40019 if test "${ac_cv_sys_largefile_source+set}" = set; then
40020 echo $ECHO_N "(cached) $ECHO_C" >&6
40023 ac_cv_sys_largefile_source=no
40024 cat >conftest.$ac_ext <<_ACEOF
40027 cat confdefs.h >>conftest.$ac_ext
40028 cat >>conftest.$ac_ext <<_ACEOF
40029 /* end confdefs.h. */
40039 rm -f conftest.$ac_objext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40041 (eval $ac_compile) 2>conftest.er1
40043 grep -v '^ *+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } &&
40048 { ac_try='test -z "$ac_c_werror_flag"
40049 || test ! -s conftest.err'
40050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051 (eval $ac_try) 2>&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); }; } &&
40055 { ac_try='test -s conftest.$ac_objext'
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; }; then
40063 echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40068 cat >conftest.$ac_ext <<_ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h. */
40074 #define _LARGEFILE_SOURCE 1
40084 rm -f conftest.$ac_objext
40085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40086 (eval $ac_compile) 2>conftest.er1
40088 grep -v '^ *+' conftest.er1 >conftest.err
40090 cat conftest.err >&5
40091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092 (exit $ac_status); } &&
40093 { ac_try='test -z "$ac_c_werror_flag"
40094 || test ! -s conftest.err'
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; } &&
40100 { ac_try='test -s conftest.$ac_objext'
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; }; then
40106 ac_cv_sys_largefile_source=1; break
40108 echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
40117 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
40118 if test "$ac_cv_sys_largefile_source" != no; then
40120 cat >>confdefs.h <<_ACEOF
40121 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
40127 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
40128 # in glibc 2.1.3, but that breaks too many other things.
40129 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
40130 echo "$as_me:$LINENO: checking for fseeko" >&5
40131 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
40132 if test "${ac_cv_func_fseeko+set}" = set; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40135 cat >conftest.$ac_ext <<_ACEOF
40138 cat confdefs.h >>conftest.$ac_ext
40139 cat >>conftest.$ac_ext <<_ACEOF
40140 /* end confdefs.h. */
40145 return fseeko && fseeko (stdin, 0, 0);
40150 rm -f conftest.$ac_objext conftest$ac_exeext
40151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40152 (eval $ac_link) 2>conftest.er1
40154 grep -v '^ *+' conftest.er1 >conftest.err
40156 cat conftest.err >&5
40157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); } &&
40159 { ac_try='test -z "$ac_c_werror_flag"
40160 || test ! -s conftest.err'
40161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40162 (eval $ac_try) 2>&5
40164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165 (exit $ac_status); }; } &&
40166 { ac_try='test -s conftest$ac_exeext'
40167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40168 (eval $ac_try) 2>&5
40170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171 (exit $ac_status); }; }; then
40172 ac_cv_func_fseeko=yes
40174 echo "$as_me: failed program was:" >&5
40175 sed 's/^/| /' conftest.$ac_ext >&5
40177 ac_cv_func_fseeko=no
40179 rm -f conftest.err conftest.$ac_objext \
40180 conftest$ac_exeext conftest.$ac_ext
40182 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
40183 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
40184 if test $ac_cv_func_fseeko = yes; then
40186 cat >>confdefs.h <<\_ACEOF
40187 #define HAVE_FSEEKO 1
40193 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
40194 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
40195 if test "${jm_cv_have_proc_uptime+set}" = set; then
40196 echo $ECHO_N "(cached) $ECHO_C" >&6
40198 jm_cv_have_proc_uptime=no
40199 test -f /proc/uptime \
40200 && test "$cross_compiling" = no \
40201 && cat < /proc/uptime >/dev/null 2>/dev/null \
40202 && jm_cv_have_proc_uptime=yes
40204 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
40205 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
40206 if test $jm_cv_have_proc_uptime = yes; then
40208 cat >>confdefs.h <<\_ACEOF
40209 #define HAVE_PROC_UPTIME 1
40216 for ac_func in ftruncate
40218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40219 echo "$as_me:$LINENO: checking for $ac_func" >&5
40220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40221 if eval "test \"\${$as_ac_var+set}\" = set"; then
40222 echo $ECHO_N "(cached) $ECHO_C" >&6
40224 cat >conftest.$ac_ext <<_ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h. */
40230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40232 #define $ac_func innocuous_$ac_func
40234 /* System header to define __stub macros and hopefully few prototypes,
40235 which can conflict with char $ac_func (); below.
40236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40237 <limits.h> exists even on freestanding compilers. */
40240 # include <limits.h>
40242 # include <assert.h>
40247 /* Override any gcc2 internal prototype to avoid an error. */
40252 /* We use char because int might match the return type of a gcc2
40253 builtin and then its argument prototype would still apply. */
40255 /* The GNU C library defines this for functions which it implements
40256 to always fail with ENOSYS. Some functions are actually named
40257 something starting with __ and the normal name is an alias. */
40258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40261 char (*f) () = $ac_func;
40270 return f != $ac_func;
40275 rm -f conftest.$ac_objext conftest$ac_exeext
40276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40277 (eval $ac_link) 2>conftest.er1
40279 grep -v '^ *+' conftest.er1 >conftest.err
40281 cat conftest.err >&5
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); } &&
40284 { ac_try='test -z "$ac_c_werror_flag"
40285 || test ! -s conftest.err'
40286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287 (eval $ac_try) 2>&5
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); }; } &&
40291 { ac_try='test -s conftest$ac_exeext'
40292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293 (eval $ac_try) 2>&5
40295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); }; }; then
40297 eval "$as_ac_var=yes"
40299 echo "$as_me: failed program was:" >&5
40300 sed 's/^/| /' conftest.$ac_ext >&5
40302 eval "$as_ac_var=no"
40304 rm -f conftest.err conftest.$ac_objext \
40305 conftest$ac_exeext conftest.$ac_ext
40307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40309 if test `eval echo '${'$as_ac_var'}'` = yes; then
40310 cat >>confdefs.h <<_ACEOF
40311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40316 "$ac_func.$ac_objext" | \
40317 *" $ac_func.$ac_objext" | \
40318 "$ac_func.$ac_objext "* | \
40319 *" $ac_func.$ac_objext "* ) ;;
40320 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40327 if test $ac_cv_func_ftruncate = no; then
40337 for ac_func in chsize
40339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40340 echo "$as_me:$LINENO: checking for $ac_func" >&5
40341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40342 if eval "test \"\${$as_ac_var+set}\" = set"; then
40343 echo $ECHO_N "(cached) $ECHO_C" >&6
40345 cat >conftest.$ac_ext <<_ACEOF
40348 cat confdefs.h >>conftest.$ac_ext
40349 cat >>conftest.$ac_ext <<_ACEOF
40350 /* end confdefs.h. */
40351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40353 #define $ac_func innocuous_$ac_func
40355 /* System header to define __stub macros and hopefully few prototypes,
40356 which can conflict with char $ac_func (); below.
40357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40358 <limits.h> exists even on freestanding compilers. */
40361 # include <limits.h>
40363 # include <assert.h>
40368 /* Override any gcc2 internal prototype to avoid an error. */
40373 /* We use char because int might match the return type of a gcc2
40374 builtin and then its argument prototype would still apply. */
40376 /* The GNU C library defines this for functions which it implements
40377 to always fail with ENOSYS. Some functions are actually named
40378 something starting with __ and the normal name is an alias. */
40379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40382 char (*f) () = $ac_func;
40391 return f != $ac_func;
40396 rm -f conftest.$ac_objext conftest$ac_exeext
40397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40398 (eval $ac_link) 2>conftest.er1
40400 grep -v '^ *+' conftest.er1 >conftest.err
40402 cat conftest.err >&5
40403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); } &&
40405 { ac_try='test -z "$ac_c_werror_flag"
40406 || test ! -s conftest.err'
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; } &&
40412 { ac_try='test -s conftest$ac_exeext'
40413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414 (eval $ac_try) 2>&5
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); }; }; then
40418 eval "$as_ac_var=yes"
40420 echo "$as_me: failed program was:" >&5
40421 sed 's/^/| /' conftest.$ac_ext >&5
40423 eval "$as_ac_var=no"
40425 rm -f conftest.err conftest.$ac_objext \
40426 conftest$ac_exeext conftest.$ac_ext
40428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40430 if test `eval echo '${'$as_ac_var'}'` = yes; then
40431 cat >>confdefs.h <<_ACEOF
40432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40442 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
40443 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
40444 if test "${ac_cv_have_decl_getcwd+set}" = set; then
40445 echo $ECHO_N "(cached) $ECHO_C" >&6
40447 cat >conftest.$ac_ext <<_ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h. */
40453 $ac_includes_default
40458 char *p = (char *) getcwd;
40465 rm -f conftest.$ac_objext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40467 (eval $ac_compile) 2>conftest.er1
40469 grep -v '^ *+' conftest.er1 >conftest.err
40471 cat conftest.err >&5
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); } &&
40474 { ac_try='test -z "$ac_c_werror_flag"
40475 || test ! -s conftest.err'
40476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40477 (eval $ac_try) 2>&5
40479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480 (exit $ac_status); }; } &&
40481 { ac_try='test -s conftest.$ac_objext'
40482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40483 (eval $ac_try) 2>&5
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); }; }; then
40487 ac_cv_have_decl_getcwd=yes
40489 echo "$as_me: failed program was:" >&5
40490 sed 's/^/| /' conftest.$ac_ext >&5
40492 ac_cv_have_decl_getcwd=no
40494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40496 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
40497 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
40498 if test $ac_cv_have_decl_getcwd = yes; then
40500 cat >>confdefs.h <<_ACEOF
40501 #define HAVE_DECL_GETCWD 1
40506 cat >>confdefs.h <<_ACEOF
40507 #define HAVE_DECL_GETCWD 0
40514 echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
40515 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
40516 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
40517 echo $ECHO_N "(cached) $ECHO_C" >&6
40520 # Arrange for deletion of the temporary directory this test creates.
40521 ac_clean_files="$ac_clean_files confdir3"
40522 if test "$cross_compiling" = yes; then
40523 gl_cv_func_getcwd_vs_path_max=no
40525 cat >conftest.$ac_ext <<_ACEOF
40528 cat confdefs.h >>conftest.$ac_ext
40529 cat >>conftest.$ac_ext <<_ACEOF
40530 /* end confdefs.h. */
40532 #include <stdlib.h>
40533 #include <unistd.h>
40534 #include <string.h>
40535 #include <limits.h>
40536 #include <sys/stat.h>
40537 #include <sys/types.h>
40539 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
40543 # define CHAR_BIT 8
40546 /* The extra casts work around common compiler bugs. */
40547 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
40548 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
40549 It is necessary at least when t == time_t. */
40550 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
40551 ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
40552 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
40555 # define INT_MAX TYPE_MAXIMUM (int)
40558 /* The length of this name must be 8. */
40559 #define DIR_NAME "confdir3"
40565 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
40566 at least not on a local file system. And if we were to start worrying
40567 about remote file systems, we'd have to enable the wrapper function
40568 all of the time, just to be safe. That's not worth the cost. */
40570 #elif INT_MAX - 9 <= PATH_MAX
40571 /* The '9', above, comes from strlen (DIR_NAME) + 1. */
40572 /* FIXME: Assuming there's a system for which this is true,
40573 this should be done in a compile test. */
40576 char buf[PATH_MAX + 20];
40577 char *cwd = getcwd (buf, PATH_MAX);
40580 size_t n_chdirs = 0;
40585 cwd_len = strlen (cwd);
40592 cwd_len += 1 + strlen (DIR_NAME);
40593 /* If mkdir or chdir fails, be pessimistic and consider that
40594 as a failure, too. */
40595 if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
40600 if ((c = getcwd (buf, PATH_MAX)) == NULL)
40602 /* This allows any failure to indicate there is no bug.
40603 FIXME: check errno? */
40606 if ((len = strlen (c)) != cwd_len)
40612 if (PATH_MAX < len)
40616 /* Leaving behind such a deep directory is not polite.
40617 So clean up here, right away, even though the driving
40618 shell script would also clean up. */
40622 /* Unlink first, in case the chdir failed. */
40624 for (i = 0; i <= n_chdirs; i++)
40626 if (chdir ("..") < 0)
40637 rm -f conftest$ac_exeext
40638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40639 (eval $ac_link) 2>&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40644 (eval $ac_try) 2>&5
40646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647 (exit $ac_status); }; }; then
40648 gl_cv_func_getcwd_vs_path_max=yes
40650 echo "$as_me: program exited with status $ac_status" >&5
40651 echo "$as_me: failed program was:" >&5
40652 sed 's/^/| /' conftest.$ac_ext >&5
40654 ( exit $ac_status )
40655 gl_cv_func_getcwd_vs_path_max=no
40657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40660 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
40661 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
40663 if test $gl_cv_func_getcwd_vs_path_max = yes; then
40665 "getcwd.$ac_objext" | \
40666 *" getcwd.$ac_objext" | \
40667 "getcwd.$ac_objext "* | \
40668 *" getcwd.$ac_objext "* ) ;;
40669 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
40673 cat >>confdefs.h <<\_ACEOF
40674 #define getcwd rpl_getcwd
40680 echo "$as_me:$LINENO: checking for working readdir" >&5
40681 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
40682 if test "${gl_cv_func_working_readdir+set}" = set; then
40683 echo $ECHO_N "(cached) $ECHO_C" >&6
40685 # Arrange for deletion of the temporary directory this test creates, in
40686 # case the test itself fails to delete everything -- as happens on Sunos.
40687 ac_clean_files="$ac_clean_files conf-dir"
40689 if test "$cross_compiling" = yes; then
40690 gl_cv_func_working_readdir=no
40692 cat >conftest.$ac_ext <<_ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h. */
40698 # include <stdio.h>
40699 # include <sys/types.h>
40700 # include <string.h>
40702 # ifdef HAVE_DIRENT_H
40703 # include <dirent.h>
40704 # define NLENGTH(direct) (strlen((direct)->d_name))
40705 # else /* not HAVE_DIRENT_H */
40706 # define dirent direct
40707 # define NLENGTH(direct) ((direct)->d_namlen)
40708 # ifdef HAVE_SYS_NDIR_H
40709 # include <sys/ndir.h>
40710 # endif /* HAVE_SYS_NDIR_H */
40711 # ifdef HAVE_SYS_DIR_H
40712 # include <sys/dir.h>
40713 # endif /* HAVE_SYS_DIR_H */
40714 # ifdef HAVE_NDIR_H
40716 # endif /* HAVE_NDIR_H */
40717 # endif /* HAVE_DIRENT_H */
40719 # define DOT_OR_DOTDOT(Basename) \
40720 (Basename[0] == '.' && (Basename[1] == '\0' \
40721 || (Basename[1] == '.' && Basename[2] == '\0')))
40723 /* Don't try to use replacement mkdir; it wouldn't resolve at link time. */
40727 create_N_file_dir (const char *dir, size_t n_files)
40731 if (mkdir (dir, 0700))
40736 for (i = 0; i < n_files; i++)
40741 sprintf (file_name, "%03d", i);
40742 out = fopen (file_name, "w");
40745 if (fclose (out) == EOF)
40754 remove_dir (const char *dir)
40761 dirp = opendir (".");
40767 struct dirent *dp = readdir (dirp);
40771 if (DOT_OR_DOTDOT (dp->d_name))
40774 if (unlink (dp->d_name))
40789 const char *dir = "conf-dir";
40790 create_N_file_dir (dir, 500);
40795 rm -f conftest$ac_exeext
40796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40797 (eval $ac_link) 2>&5
40799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802 (eval $ac_try) 2>&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); }; }; then
40806 gl_cv_func_working_readdir=yes
40808 echo "$as_me: program exited with status $ac_status" >&5
40809 echo "$as_me: failed program was:" >&5
40810 sed 's/^/| /' conftest.$ac_ext >&5
40812 ( exit $ac_status )
40813 gl_cv_func_working_readdir=no
40815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40818 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
40819 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
40821 if test $gl_cv_func_working_readdir = yes; then
40823 cat >>confdefs.h <<\_ACEOF
40824 #define HAVE_WORKING_READDIR 1
40830 if test "X$prefix" = "XNONE"; then
40831 acl_final_prefix="$ac_default_prefix"
40833 acl_final_prefix="$prefix"
40835 if test "X$exec_prefix" = "XNONE"; then
40836 acl_final_exec_prefix='${prefix}'
40838 acl_final_exec_prefix="$exec_prefix"
40840 acl_save_prefix="$prefix"
40841 prefix="$acl_final_prefix"
40842 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
40843 prefix="$acl_save_prefix"
40846 # Check whether --with-gnu-ld or --without-gnu-ld was given.
40847 if test "${with_gnu_ld+set}" = set; then
40848 withval="$with_gnu_ld"
40849 test "$withval" = no || with_gnu_ld=yes
40853 # Prepare PATH_SEPARATOR.
40854 # The user is always right.
40855 if test "${PATH_SEPARATOR+set}" != set; then
40856 echo "#! /bin/sh" >conf$$.sh
40857 echo "exit 0" >>conf$$.sh
40859 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40867 if test "$GCC" = yes; then
40868 # Check if gcc -print-prog-name=ld gives a path.
40869 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
40870 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
40873 # gcc leaves a trailing carriage return which upsets mingw
40874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
40876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
40879 # Accept absolute paths.
40880 [\\/]* | [A-Za-z]:[\\/]*)
40881 re_direlt='/[^/][^/]*/\.\./'
40882 # Canonicalize the path of ld
40883 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
40884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
40885 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
40887 test -z "$LD" && LD="$ac_prog"
40890 # If it fails, then pretend we aren't using GCC.
40894 # If it is relative, then search for the first ld in PATH.
40895 with_gnu_ld=unknown
40898 elif test "$with_gnu_ld" = yes; then
40899 echo "$as_me:$LINENO: checking for GNU ld" >&5
40900 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
40902 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
40903 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
40905 if test "${acl_cv_path_LD+set}" = set; then
40906 echo $ECHO_N "(cached) $ECHO_C" >&6
40908 if test -z "$LD"; then
40909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
40910 for ac_dir in $PATH; do
40911 test -z "$ac_dir" && ac_dir=.
40912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
40913 acl_cv_path_LD="$ac_dir/$ac_prog"
40914 # Check to see if the program is GNU ld. I'd rather use --version,
40915 # but apparently some GNU ld's only accept -v.
40916 # Break only if it was the GNU/non-GNU ld that we prefer.
40917 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
40918 *GNU* | *'with BFD'*)
40919 test "$with_gnu_ld" != no && break ;;
40921 test "$with_gnu_ld" != yes && break ;;
40927 acl_cv_path_LD="$LD" # Let the user override the test with a path.
40931 LD="$acl_cv_path_LD"
40932 if test -n "$LD"; then
40933 echo "$as_me:$LINENO: result: $LD" >&5
40934 echo "${ECHO_T}$LD" >&6
40936 echo "$as_me:$LINENO: result: no" >&5
40937 echo "${ECHO_T}no" >&6
40939 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
40940 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
40941 { (exit 1); exit 1; }; }
40942 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
40943 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
40944 if test "${acl_cv_prog_gnu_ld+set}" = set; then
40945 echo $ECHO_N "(cached) $ECHO_C" >&6
40947 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
40948 case `$LD -v 2>&1 </dev/null` in
40949 *GNU* | *'with BFD'*)
40950 acl_cv_prog_gnu_ld=yes ;;
40952 acl_cv_prog_gnu_ld=no ;;
40955 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
40956 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
40957 with_gnu_ld=$acl_cv_prog_gnu_ld
40961 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
40962 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
40963 if test "${acl_cv_rpath+set}" = set; then
40964 echo $ECHO_N "(cached) $ECHO_C" >&6
40967 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
40968 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
40970 rm -f ./conftest.sh
40974 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
40975 echo "${ECHO_T}$acl_cv_rpath" >&6
40977 libext="$acl_cv_libext"
40978 shlibext="$acl_cv_shlibext"
40979 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
40980 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
40981 hardcode_direct="$acl_cv_hardcode_direct"
40982 hardcode_minus_L="$acl_cv_hardcode_minus_L"
40983 # Check whether --enable-rpath or --disable-rpath was given.
40984 if test "${enable_rpath+set}" = set; then
40985 enableval="$enable_rpath"
40999 acl_save_prefix="$prefix"
41000 prefix="$acl_final_prefix"
41001 acl_save_exec_prefix="$exec_prefix"
41002 exec_prefix="$acl_final_exec_prefix"
41004 eval additional_includedir=\"$includedir\"
41005 eval additional_libdir=\"$libdir\"
41007 exec_prefix="$acl_save_exec_prefix"
41008 prefix="$acl_save_prefix"
41011 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
41012 if test "${with_libiconv_prefix+set}" = set; then
41013 withval="$with_libiconv_prefix"
41015 if test "X$withval" = "Xno"; then
41018 if test "X$withval" = "X"; then
41020 acl_save_prefix="$prefix"
41021 prefix="$acl_final_prefix"
41022 acl_save_exec_prefix="$exec_prefix"
41023 exec_prefix="$acl_final_exec_prefix"
41025 eval additional_includedir=\"$includedir\"
41026 eval additional_libdir=\"$libdir\"
41028 exec_prefix="$acl_save_exec_prefix"
41029 prefix="$acl_save_prefix"
41032 additional_includedir="$withval/include"
41033 additional_libdir="$withval/lib"
41043 names_already_handled=
41044 names_next_round='iconv '
41045 while test -n "$names_next_round"; do
41046 names_this_round="$names_next_round"
41048 for name in $names_this_round; do
41050 for n in $names_already_handled; do
41051 if test "$n" = "$name"; then
41052 already_handled=yes
41056 if test -z "$already_handled"; then
41057 names_already_handled="$names_already_handled $name"
41058 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
41059 eval value=\"\$HAVE_LIB$uppername\"
41060 if test -n "$value"; then
41061 if test "$value" = yes; then
41062 eval value=\"\$LIB$uppername\"
41063 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
41064 eval value=\"\$LTLIB$uppername\"
41065 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
41074 if test $use_additional = yes; then
41075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
41076 found_dir="$additional_libdir"
41077 found_so="$additional_libdir/lib$name.$shlibext"
41078 if test -f "$additional_libdir/lib$name.la"; then
41079 found_la="$additional_libdir/lib$name.la"
41082 if test -f "$additional_libdir/lib$name.$libext"; then
41083 found_dir="$additional_libdir"
41084 found_a="$additional_libdir/lib$name.$libext"
41085 if test -f "$additional_libdir/lib$name.la"; then
41086 found_la="$additional_libdir/lib$name.la"
41091 if test "X$found_dir" = "X"; then
41092 for x in $LDFLAGS $LTLIBICONV; do
41094 acl_save_prefix="$prefix"
41095 prefix="$acl_final_prefix"
41096 acl_save_exec_prefix="$exec_prefix"
41097 exec_prefix="$acl_final_exec_prefix"
41099 exec_prefix="$acl_save_exec_prefix"
41100 prefix="$acl_save_prefix"
41104 dir=`echo "X$x" | sed -e 's/^X-L//'`
41105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
41107 found_so="$dir/lib$name.$shlibext"
41108 if test -f "$dir/lib$name.la"; then
41109 found_la="$dir/lib$name.la"
41112 if test -f "$dir/lib$name.$libext"; then
41114 found_a="$dir/lib$name.$libext"
41115 if test -f "$dir/lib$name.la"; then
41116 found_la="$dir/lib$name.la"
41122 if test "X$found_dir" != "X"; then
41127 if test "X$found_dir" != "X"; then
41128 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
41129 if test "X$found_so" != "X"; then
41130 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
41131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41134 for x in $ltrpathdirs; do
41135 if test "X$x" = "X$found_dir"; then
41140 if test -z "$haveit"; then
41141 ltrpathdirs="$ltrpathdirs $found_dir"
41143 if test "$hardcode_direct" = yes; then
41144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41146 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
41147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41149 for x in $rpathdirs; do
41150 if test "X$x" = "X$found_dir"; then
41155 if test -z "$haveit"; then
41156 rpathdirs="$rpathdirs $found_dir"
41160 for x in $LDFLAGS $LIBICONV; do
41162 acl_save_prefix="$prefix"
41163 prefix="$acl_final_prefix"
41164 acl_save_exec_prefix="$exec_prefix"
41165 exec_prefix="$acl_final_exec_prefix"
41167 exec_prefix="$acl_save_exec_prefix"
41168 prefix="$acl_save_prefix"
41170 if test "X$x" = "X-L$found_dir"; then
41175 if test -z "$haveit"; then
41176 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
41178 if test "$hardcode_minus_L" != no; then
41179 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41181 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
41187 if test "X$found_a" != "X"; then
41188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
41190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
41193 additional_includedir=
41194 case "$found_dir" in
41196 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
41197 additional_includedir="$basedir/include"
41200 if test "X$additional_includedir" != "X"; then
41201 if test "X$additional_includedir" != "X/usr/include"; then
41203 if test "X$additional_includedir" = "X/usr/local/include"; then
41204 if test -n "$GCC"; then
41206 linux*) haveit=yes;;
41210 if test -z "$haveit"; then
41211 for x in $CPPFLAGS $INCICONV; do
41213 acl_save_prefix="$prefix"
41214 prefix="$acl_final_prefix"
41215 acl_save_exec_prefix="$exec_prefix"
41216 exec_prefix="$acl_final_exec_prefix"
41218 exec_prefix="$acl_save_exec_prefix"
41219 prefix="$acl_save_prefix"
41221 if test "X$x" = "X-I$additional_includedir"; then
41226 if test -z "$haveit"; then
41227 if test -d "$additional_includedir"; then
41228 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
41234 if test -n "$found_la"; then
41235 save_libdir="$libdir"
41236 case "$found_la" in
41237 */* | *\\*) . "$found_la" ;;
41238 *) . "./$found_la" ;;
41240 libdir="$save_libdir"
41241 for dep in $dependency_libs; do
41244 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
41245 if test "X$additional_libdir" != "X/usr/lib"; then
41247 if test "X$additional_libdir" = "X/usr/local/lib"; then
41248 if test -n "$GCC"; then
41250 linux*) haveit=yes;;
41254 if test -z "$haveit"; then
41256 for x in $LDFLAGS $LIBICONV; do
41258 acl_save_prefix="$prefix"
41259 prefix="$acl_final_prefix"
41260 acl_save_exec_prefix="$exec_prefix"
41261 exec_prefix="$acl_final_exec_prefix"
41263 exec_prefix="$acl_save_exec_prefix"
41264 prefix="$acl_save_prefix"
41266 if test "X$x" = "X-L$additional_libdir"; then
41271 if test -z "$haveit"; then
41272 if test -d "$additional_libdir"; then
41273 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
41277 for x in $LDFLAGS $LTLIBICONV; do
41279 acl_save_prefix="$prefix"
41280 prefix="$acl_final_prefix"
41281 acl_save_exec_prefix="$exec_prefix"
41282 exec_prefix="$acl_final_exec_prefix"
41284 exec_prefix="$acl_save_exec_prefix"
41285 prefix="$acl_save_prefix"
41287 if test "X$x" = "X-L$additional_libdir"; then
41292 if test -z "$haveit"; then
41293 if test -d "$additional_libdir"; then
41294 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
41301 dir=`echo "X$dep" | sed -e 's/^X-R//'`
41302 if test "$enable_rpath" != no; then
41304 for x in $rpathdirs; do
41305 if test "X$x" = "X$dir"; then
41310 if test -z "$haveit"; then
41311 rpathdirs="$rpathdirs $dir"
41314 for x in $ltrpathdirs; do
41315 if test "X$x" = "X$dir"; then
41320 if test -z "$haveit"; then
41321 ltrpathdirs="$ltrpathdirs $dir"
41326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
41329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
41332 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
41333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
41339 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
41340 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
41346 if test "X$rpathdirs" != "X"; then
41347 if test -n "$hardcode_libdir_separator"; then
41349 for found_dir in $rpathdirs; do
41350 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
41352 acl_save_libdir="$libdir"
41354 eval flag=\"$hardcode_libdir_flag_spec\"
41355 libdir="$acl_save_libdir"
41356 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
41358 for found_dir in $rpathdirs; do
41359 acl_save_libdir="$libdir"
41360 libdir="$found_dir"
41361 eval flag=\"$hardcode_libdir_flag_spec\"
41362 libdir="$acl_save_libdir"
41363 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
41367 if test "X$ltrpathdirs" != "X"; then
41368 for found_dir in $ltrpathdirs; do
41369 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
41379 for ac_header in string.h sys/param.h stddef.h
41381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41383 echo "$as_me:$LINENO: checking for $ac_header" >&5
41384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41386 echo $ECHO_N "(cached) $ECHO_C" >&6
41388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41391 # Is the header compilable?
41392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41394 cat >conftest.$ac_ext <<_ACEOF
41397 cat confdefs.h >>conftest.$ac_ext
41398 cat >>conftest.$ac_ext <<_ACEOF
41399 /* end confdefs.h. */
41400 $ac_includes_default
41401 #include <$ac_header>
41403 rm -f conftest.$ac_objext
41404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41405 (eval $ac_compile) 2>conftest.er1
41407 grep -v '^ *+' conftest.er1 >conftest.err
41409 cat conftest.err >&5
41410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411 (exit $ac_status); } &&
41412 { ac_try='test -z "$ac_c_werror_flag"
41413 || test ! -s conftest.err'
41414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41415 (eval $ac_try) 2>&5
41417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418 (exit $ac_status); }; } &&
41419 { ac_try='test -s conftest.$ac_objext'
41420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41421 (eval $ac_try) 2>&5
41423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424 (exit $ac_status); }; }; then
41425 ac_header_compiler=yes
41427 echo "$as_me: failed program was:" >&5
41428 sed 's/^/| /' conftest.$ac_ext >&5
41430 ac_header_compiler=no
41432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41434 echo "${ECHO_T}$ac_header_compiler" >&6
41436 # Is the header present?
41437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41439 cat >conftest.$ac_ext <<_ACEOF
41442 cat confdefs.h >>conftest.$ac_ext
41443 cat >>conftest.$ac_ext <<_ACEOF
41444 /* end confdefs.h. */
41445 #include <$ac_header>
41447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41450 grep -v '^ *+' conftest.er1 >conftest.err
41452 cat conftest.err >&5
41453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454 (exit $ac_status); } >/dev/null; then
41455 if test -s conftest.err; then
41456 ac_cpp_err=$ac_c_preproc_warn_flag
41457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41464 if test -z "$ac_cpp_err"; then
41465 ac_header_preproc=yes
41467 echo "$as_me: failed program was:" >&5
41468 sed 's/^/| /' conftest.$ac_ext >&5
41470 ac_header_preproc=no
41472 rm -f conftest.err conftest.$ac_ext
41473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41474 echo "${ECHO_T}$ac_header_preproc" >&6
41476 # So? What about this header?
41477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41483 ac_header_preproc=yes
41486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41500 ## ------------------------------------ ##
41501 ## Report this to bug-coreutils@gnu.org ##
41502 ## ------------------------------------ ##
41505 sed "s/^/$as_me: WARNING: /" >&2
41508 echo "$as_me:$LINENO: checking for $ac_header" >&5
41509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41511 echo $ECHO_N "(cached) $ECHO_C" >&6
41513 eval "$as_ac_Header=\$ac_header_preproc"
41515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41520 cat >>confdefs.h <<_ACEOF
41521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41529 for ac_func in resolvepath
41531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41532 echo "$as_me:$LINENO: checking for $ac_func" >&5
41533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41534 if eval "test \"\${$as_ac_var+set}\" = set"; then
41535 echo $ECHO_N "(cached) $ECHO_C" >&6
41537 cat >conftest.$ac_ext <<_ACEOF
41540 cat confdefs.h >>conftest.$ac_ext
41541 cat >>conftest.$ac_ext <<_ACEOF
41542 /* end confdefs.h. */
41543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41545 #define $ac_func innocuous_$ac_func
41547 /* System header to define __stub macros and hopefully few prototypes,
41548 which can conflict with char $ac_func (); below.
41549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41550 <limits.h> exists even on freestanding compilers. */
41553 # include <limits.h>
41555 # include <assert.h>
41560 /* Override any gcc2 internal prototype to avoid an error. */
41565 /* We use char because int might match the return type of a gcc2
41566 builtin and then its argument prototype would still apply. */
41568 /* The GNU C library defines this for functions which it implements
41569 to always fail with ENOSYS. Some functions are actually named
41570 something starting with __ and the normal name is an alias. */
41571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41574 char (*f) () = $ac_func;
41583 return f != $ac_func;
41588 rm -f conftest.$ac_objext conftest$ac_exeext
41589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41590 (eval $ac_link) 2>conftest.er1
41592 grep -v '^ *+' conftest.er1 >conftest.err
41594 cat conftest.err >&5
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); } &&
41597 { ac_try='test -z "$ac_c_werror_flag"
41598 || test ! -s conftest.err'
41599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41600 (eval $ac_try) 2>&5
41602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603 (exit $ac_status); }; } &&
41604 { ac_try='test -s conftest$ac_exeext'
41605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41606 (eval $ac_try) 2>&5
41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609 (exit $ac_status); }; }; then
41610 eval "$as_ac_var=yes"
41612 echo "$as_me: failed program was:" >&5
41613 sed 's/^/| /' conftest.$ac_ext >&5
41615 eval "$as_ac_var=no"
41617 rm -f conftest.err conftest.$ac_objext \
41618 conftest$ac_exeext conftest.$ac_ext
41620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41622 if test `eval echo '${'$as_ac_var'}'` = yes; then
41623 cat >>confdefs.h <<_ACEOF
41624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41632 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
41633 # if the function name weren't so long. Besides, I would rather
41634 # not have underscores in file names.
41635 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
41636 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
41637 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
41638 echo $ECHO_N "(cached) $ECHO_C" >&6
41640 cat >conftest.$ac_ext <<_ACEOF
41643 cat confdefs.h >>conftest.$ac_ext
41644 cat >>conftest.$ac_ext <<_ACEOF
41645 /* end confdefs.h. */
41646 /* Define canonicalize_file_name to an innocuous variant, in case <limits.h> declares canonicalize_file_name.
41647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41648 #define canonicalize_file_name innocuous_canonicalize_file_name
41650 /* System header to define __stub macros and hopefully few prototypes,
41651 which can conflict with char canonicalize_file_name (); below.
41652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41653 <limits.h> exists even on freestanding compilers. */
41656 # include <limits.h>
41658 # include <assert.h>
41661 #undef canonicalize_file_name
41663 /* Override any gcc2 internal prototype to avoid an error. */
41668 /* We use char because int might match the return type of a gcc2
41669 builtin and then its argument prototype would still apply. */
41670 char canonicalize_file_name ();
41671 /* The GNU C library defines this for functions which it implements
41672 to always fail with ENOSYS. Some functions are actually named
41673 something starting with __ and the normal name is an alias. */
41674 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
41677 char (*f) () = canonicalize_file_name;
41686 return f != canonicalize_file_name;
41691 rm -f conftest.$ac_objext conftest$ac_exeext
41692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41693 (eval $ac_link) 2>conftest.er1
41695 grep -v '^ *+' conftest.er1 >conftest.err
41697 cat conftest.err >&5
41698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699 (exit $ac_status); } &&
41700 { ac_try='test -z "$ac_c_werror_flag"
41701 || test ! -s conftest.err'
41702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41703 (eval $ac_try) 2>&5
41705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706 (exit $ac_status); }; } &&
41707 { ac_try='test -s conftest$ac_exeext'
41708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709 (eval $ac_try) 2>&5
41711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712 (exit $ac_status); }; }; then
41713 ac_cv_func_canonicalize_file_name=yes
41715 echo "$as_me: failed program was:" >&5
41716 sed 's/^/| /' conftest.$ac_ext >&5
41718 ac_cv_func_canonicalize_file_name=no
41720 rm -f conftest.err conftest.$ac_objext \
41721 conftest$ac_exeext conftest.$ac_ext
41723 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
41724 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
41725 if test $ac_cv_func_canonicalize_file_name = yes; then
41729 "canonicalize.$ac_objext" | \
41730 *" canonicalize.$ac_objext" | \
41731 "canonicalize.$ac_objext "* | \
41732 *" canonicalize.$ac_objext "* ) ;;
41733 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
41747 echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
41748 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6
41749 if test "${gl_cv_func_free+set}" = set; then
41750 echo $ECHO_N "(cached) $ECHO_C" >&6
41752 cat >conftest.$ac_ext <<_ACEOF
41755 cat confdefs.h >>conftest.$ac_ext
41756 cat >>conftest.$ac_ext <<_ACEOF
41757 /* end confdefs.h. */
41759 #include <unistd.h>
41764 #if _POSIX_VERSION < 199009L && \
41765 (defined unix || defined _unix || defined _unix_ \
41766 || defined __unix || defined __unix__)
41767 #error "'free (NULL)' is not known to work"
41773 rm -f conftest.$ac_objext
41774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41775 (eval $ac_compile) 2>conftest.er1
41777 grep -v '^ *+' conftest.er1 >conftest.err
41779 cat conftest.err >&5
41780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781 (exit $ac_status); } &&
41782 { ac_try='test -z "$ac_c_werror_flag"
41783 || test ! -s conftest.err'
41784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41785 (eval $ac_try) 2>&5
41787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41788 (exit $ac_status); }; } &&
41789 { ac_try='test -s conftest.$ac_objext'
41790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41791 (eval $ac_try) 2>&5
41793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794 (exit $ac_status); }; }; then
41795 gl_cv_func_free=yes
41797 echo "$as_me: failed program was:" >&5
41798 sed 's/^/| /' conftest.$ac_ext >&5
41802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41804 echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
41805 echo "${ECHO_T}$gl_cv_func_free" >&6
41807 if test $gl_cv_func_free = yes; then
41809 "free.$ac_objext" | \
41810 *" free.$ac_objext" | \
41811 "free.$ac_objext "* | \
41812 *" free.$ac_objext "* ) ;;
41813 *) LIBOBJS="$LIBOBJS free.$ac_objext" ;;
41817 cat >>confdefs.h <<\_ACEOF
41818 #define free rpl_free
41826 GNU_PACKAGE="GNU $PACKAGE"
41828 cat >>confdefs.h <<_ACEOF
41829 #define GNU_PACKAGE "$GNU_PACKAGE"
41835 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
41856 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
41857 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
41858 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
41859 echo $ECHO_N "(cached) $ECHO_C" >&6
41861 cat >conftest.$ac_ext <<_ACEOF
41864 cat confdefs.h >>conftest.$ac_ext
41865 cat >>conftest.$ac_ext <<_ACEOF
41866 /* end confdefs.h. */
41867 $ac_includes_default
41868 #include <sys/stat.h>
41874 static struct stat ac_aggr;
41875 if (ac_aggr.st_author)
41881 rm -f conftest.$ac_objext
41882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41883 (eval $ac_compile) 2>conftest.er1
41885 grep -v '^ *+' conftest.er1 >conftest.err
41887 cat conftest.err >&5
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } &&
41890 { ac_try='test -z "$ac_c_werror_flag"
41891 || test ! -s conftest.err'
41892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893 (eval $ac_try) 2>&5
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); }; } &&
41897 { ac_try='test -s conftest.$ac_objext'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; }; then
41903 ac_cv_member_struct_stat_st_author=yes
41905 echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41908 cat >conftest.$ac_ext <<_ACEOF
41911 cat confdefs.h >>conftest.$ac_ext
41912 cat >>conftest.$ac_ext <<_ACEOF
41913 /* end confdefs.h. */
41914 $ac_includes_default
41915 #include <sys/stat.h>
41921 static struct stat ac_aggr;
41922 if (sizeof ac_aggr.st_author)
41928 rm -f conftest.$ac_objext
41929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41930 (eval $ac_compile) 2>conftest.er1
41932 grep -v '^ *+' conftest.er1 >conftest.err
41934 cat conftest.err >&5
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); } &&
41937 { ac_try='test -z "$ac_c_werror_flag"
41938 || test ! -s conftest.err'
41939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41940 (eval $ac_try) 2>&5
41942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943 (exit $ac_status); }; } &&
41944 { ac_try='test -s conftest.$ac_objext'
41945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41946 (eval $ac_try) 2>&5
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); }; }; then
41950 ac_cv_member_struct_stat_st_author=yes
41952 echo "$as_me: failed program was:" >&5
41953 sed 's/^/| /' conftest.$ac_ext >&5
41955 ac_cv_member_struct_stat_st_author=no
41957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
41962 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
41963 if test $ac_cv_member_struct_stat_st_author = yes; then
41965 cat >>confdefs.h <<_ACEOF
41966 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
41971 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
41972 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
41973 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
41974 echo $ECHO_N "(cached) $ECHO_C" >&6
41976 cat >conftest.$ac_ext <<_ACEOF
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h. */
41982 $ac_includes_default
41983 #include <sys/stat.h>
41989 static struct stat ac_aggr;
41990 if (ac_aggr.st_blksize)
41996 rm -f conftest.$ac_objext
41997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41998 (eval $ac_compile) 2>conftest.er1
42000 grep -v '^ *+' conftest.er1 >conftest.err
42002 cat conftest.err >&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); } &&
42005 { ac_try='test -z "$ac_c_werror_flag"
42006 || test ! -s conftest.err'
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; } &&
42012 { ac_try='test -s conftest.$ac_objext'
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; }; then
42018 ac_cv_member_struct_stat_st_blksize=yes
42020 echo "$as_me: failed program was:" >&5
42021 sed 's/^/| /' conftest.$ac_ext >&5
42023 cat >conftest.$ac_ext <<_ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h. */
42029 $ac_includes_default
42030 #include <sys/stat.h>
42036 static struct stat ac_aggr;
42037 if (sizeof ac_aggr.st_blksize)
42043 rm -f conftest.$ac_objext
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045 (eval $ac_compile) 2>conftest.er1
42047 grep -v '^ *+' conftest.er1 >conftest.err
42049 cat conftest.err >&5
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); } &&
42052 { ac_try='test -z "$ac_c_werror_flag"
42053 || test ! -s conftest.err'
42054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42055 (eval $ac_try) 2>&5
42057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058 (exit $ac_status); }; } &&
42059 { ac_try='test -s conftest.$ac_objext'
42060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061 (eval $ac_try) 2>&5
42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064 (exit $ac_status); }; }; then
42065 ac_cv_member_struct_stat_st_blksize=yes
42067 echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42070 ac_cv_member_struct_stat_st_blksize=no
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
42077 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
42078 if test $ac_cv_member_struct_stat_st_blksize = yes; then
42080 cat >>confdefs.h <<_ACEOF
42081 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
42100 echo "$as_me:$LINENO: checking for ino_t" >&5
42101 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
42102 if test "${ac_cv_type_ino_t+set}" = set; then
42103 echo $ECHO_N "(cached) $ECHO_C" >&6
42105 cat >conftest.$ac_ext <<_ACEOF
42108 cat confdefs.h >>conftest.$ac_ext
42109 cat >>conftest.$ac_ext <<_ACEOF
42110 /* end confdefs.h. */
42111 $ac_includes_default
42117 if (sizeof (ino_t))
42123 rm -f conftest.$ac_objext
42124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42125 (eval $ac_compile) 2>conftest.er1
42127 grep -v '^ *+' conftest.er1 >conftest.err
42129 cat conftest.err >&5
42130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131 (exit $ac_status); } &&
42132 { ac_try='test -z "$ac_c_werror_flag"
42133 || test ! -s conftest.err'
42134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42135 (eval $ac_try) 2>&5
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); }; } &&
42139 { ac_try='test -s conftest.$ac_objext'
42140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42141 (eval $ac_try) 2>&5
42143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42144 (exit $ac_status); }; }; then
42145 ac_cv_type_ino_t=yes
42147 echo "$as_me: failed program was:" >&5
42148 sed 's/^/| /' conftest.$ac_ext >&5
42150 ac_cv_type_ino_t=no
42152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42154 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
42155 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
42156 if test $ac_cv_type_ino_t = yes; then
42160 cat >>confdefs.h <<_ACEOF
42161 #define ino_t unsigned long int
42166 echo "$as_me:$LINENO: checking for uintptr_t" >&5
42167 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
42168 if test "${ac_cv_type_uintptr_t+set}" = set; then
42169 echo $ECHO_N "(cached) $ECHO_C" >&6
42171 cat >conftest.$ac_ext <<_ACEOF
42174 cat confdefs.h >>conftest.$ac_ext
42175 cat >>conftest.$ac_ext <<_ACEOF
42176 /* end confdefs.h. */
42177 $ac_includes_default
42181 if ((uintptr_t *) 0)
42183 if (sizeof (uintptr_t))
42189 rm -f conftest.$ac_objext
42190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42191 (eval $ac_compile) 2>conftest.er1
42193 grep -v '^ *+' conftest.er1 >conftest.err
42195 cat conftest.err >&5
42196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197 (exit $ac_status); } &&
42198 { ac_try='test -z "$ac_c_werror_flag"
42199 || test ! -s conftest.err'
42200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42201 (eval $ac_try) 2>&5
42203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204 (exit $ac_status); }; } &&
42205 { ac_try='test -s conftest.$ac_objext'
42206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42207 (eval $ac_try) 2>&5
42209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42210 (exit $ac_status); }; }; then
42211 ac_cv_type_uintptr_t=yes
42213 echo "$as_me: failed program was:" >&5
42214 sed 's/^/| /' conftest.$ac_ext >&5
42216 ac_cv_type_uintptr_t=no
42218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42220 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
42221 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
42222 if test $ac_cv_type_uintptr_t = yes; then
42226 cat >>confdefs.h <<_ACEOF
42227 #define uintptr_t size_t
42234 echo "$as_me:$LINENO: checking for ssize_t" >&5
42235 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
42236 if test "${gt_cv_ssize_t+set}" = set; then
42237 echo $ECHO_N "(cached) $ECHO_C" >&6
42239 cat >conftest.$ac_ext <<_ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h. */
42245 #include <sys/types.h>
42249 int x = sizeof (ssize_t *) + sizeof (ssize_t);
42254 rm -f conftest.$ac_objext
42255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42256 (eval $ac_compile) 2>conftest.er1
42258 grep -v '^ *+' conftest.er1 >conftest.err
42260 cat conftest.err >&5
42261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262 (exit $ac_status); } &&
42263 { ac_try='test -z "$ac_c_werror_flag"
42264 || test ! -s conftest.err'
42265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42266 (eval $ac_try) 2>&5
42268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); }; } &&
42270 { ac_try='test -s conftest.$ac_objext'
42271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272 (eval $ac_try) 2>&5
42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275 (exit $ac_status); }; }; then
42278 echo "$as_me: failed program was:" >&5
42279 sed 's/^/| /' conftest.$ac_ext >&5
42283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42285 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
42286 echo "${ECHO_T}$gt_cv_ssize_t" >&6
42287 if test $gt_cv_ssize_t = no; then
42289 cat >>confdefs.h <<\_ACEOF
42290 #define ssize_t int
42296 echo "$as_me:$LINENO: checking for major_t" >&5
42297 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
42298 if test "${ac_cv_type_major_t+set}" = set; then
42299 echo $ECHO_N "(cached) $ECHO_C" >&6
42301 cat >conftest.$ac_ext <<_ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h. */
42307 $ac_includes_default
42313 if (sizeof (major_t))
42319 rm -f conftest.$ac_objext
42320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42321 (eval $ac_compile) 2>conftest.er1
42323 grep -v '^ *+' conftest.er1 >conftest.err
42325 cat conftest.err >&5
42326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327 (exit $ac_status); } &&
42328 { ac_try='test -z "$ac_c_werror_flag"
42329 || test ! -s conftest.err'
42330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 (eval $ac_try) 2>&5
42333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 (exit $ac_status); }; } &&
42335 { ac_try='test -s conftest.$ac_objext'
42336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42337 (eval $ac_try) 2>&5
42339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340 (exit $ac_status); }; }; then
42341 ac_cv_type_major_t=yes
42343 echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42346 ac_cv_type_major_t=no
42348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42350 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
42351 echo "${ECHO_T}$ac_cv_type_major_t" >&6
42352 if test $ac_cv_type_major_t = yes; then
42356 cat >>confdefs.h <<_ACEOF
42357 #define major_t unsigned int
42362 echo "$as_me:$LINENO: checking for minor_t" >&5
42363 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
42364 if test "${ac_cv_type_minor_t+set}" = set; then
42365 echo $ECHO_N "(cached) $ECHO_C" >&6
42367 cat >conftest.$ac_ext <<_ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h. */
42373 $ac_includes_default
42379 if (sizeof (minor_t))
42385 rm -f conftest.$ac_objext
42386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42387 (eval $ac_compile) 2>conftest.er1
42389 grep -v '^ *+' conftest.er1 >conftest.err
42391 cat conftest.err >&5
42392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393 (exit $ac_status); } &&
42394 { ac_try='test -z "$ac_c_werror_flag"
42395 || test ! -s conftest.err'
42396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42397 (eval $ac_try) 2>&5
42399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400 (exit $ac_status); }; } &&
42401 { ac_try='test -s conftest.$ac_objext'
42402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42403 (eval $ac_try) 2>&5
42405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42406 (exit $ac_status); }; }; then
42407 ac_cv_type_minor_t=yes
42409 echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42412 ac_cv_type_minor_t=no
42414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42416 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
42417 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
42418 if test $ac_cv_type_minor_t = yes; then
42422 cat >>confdefs.h <<_ACEOF
42423 #define minor_t unsigned int
42458 # This is for od and stat, and any other program that
42459 # uses the PRI.MAX macros from inttypes.h.
42468 ac_have_func=no # yes means we've found a way to get the load average.
42470 # Make sure getloadavg.c is where it belongs, at configure-time.
42471 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
42472 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
42473 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
42474 { (exit 1); exit 1; }; }
42478 # Check for getloadavg, but be sure not to touch the cache variable.
42479 (echo "$as_me:$LINENO: checking for getloadavg" >&5
42480 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
42481 if test "${ac_cv_func_getloadavg+set}" = set; then
42482 echo $ECHO_N "(cached) $ECHO_C" >&6
42484 cat >conftest.$ac_ext <<_ACEOF
42487 cat confdefs.h >>conftest.$ac_ext
42488 cat >>conftest.$ac_ext <<_ACEOF
42489 /* end confdefs.h. */
42490 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
42491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42492 #define getloadavg innocuous_getloadavg
42494 /* System header to define __stub macros and hopefully few prototypes,
42495 which can conflict with char getloadavg (); below.
42496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42497 <limits.h> exists even on freestanding compilers. */
42500 # include <limits.h>
42502 # include <assert.h>
42507 /* Override any gcc2 internal prototype to avoid an error. */
42512 /* We use char because int might match the return type of a gcc2
42513 builtin and then its argument prototype would still apply. */
42514 char getloadavg ();
42515 /* The GNU C library defines this for functions which it implements
42516 to always fail with ENOSYS. Some functions are actually named
42517 something starting with __ and the normal name is an alias. */
42518 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
42521 char (*f) () = getloadavg;
42530 return f != getloadavg;
42535 rm -f conftest.$ac_objext conftest$ac_exeext
42536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42537 (eval $ac_link) 2>conftest.er1
42539 grep -v '^ *+' conftest.er1 >conftest.err
42541 cat conftest.err >&5
42542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543 (exit $ac_status); } &&
42544 { ac_try='test -z "$ac_c_werror_flag"
42545 || test ! -s conftest.err'
42546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42547 (eval $ac_try) 2>&5
42549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550 (exit $ac_status); }; } &&
42551 { ac_try='test -s conftest$ac_exeext'
42552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553 (eval $ac_try) 2>&5
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); }; }; then
42557 ac_cv_func_getloadavg=yes
42559 echo "$as_me: failed program was:" >&5
42560 sed 's/^/| /' conftest.$ac_ext >&5
42562 ac_cv_func_getloadavg=no
42564 rm -f conftest.err conftest.$ac_objext \
42565 conftest$ac_exeext conftest.$ac_ext
42567 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
42568 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
42569 if test $ac_cv_func_getloadavg = yes; then
42574 ) && ac_have_func=yes
42576 # On HPUX9, an unprivileged user can get load averages through this function.
42578 for ac_func in pstat_getdynamic
42580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42581 echo "$as_me:$LINENO: checking for $ac_func" >&5
42582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42583 if eval "test \"\${$as_ac_var+set}\" = set"; then
42584 echo $ECHO_N "(cached) $ECHO_C" >&6
42586 cat >conftest.$ac_ext <<_ACEOF
42589 cat confdefs.h >>conftest.$ac_ext
42590 cat >>conftest.$ac_ext <<_ACEOF
42591 /* end confdefs.h. */
42592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42594 #define $ac_func innocuous_$ac_func
42596 /* System header to define __stub macros and hopefully few prototypes,
42597 which can conflict with char $ac_func (); below.
42598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42599 <limits.h> exists even on freestanding compilers. */
42602 # include <limits.h>
42604 # include <assert.h>
42609 /* Override any gcc2 internal prototype to avoid an error. */
42614 /* We use char because int might match the return type of a gcc2
42615 builtin and then its argument prototype would still apply. */
42617 /* The GNU C library defines this for functions which it implements
42618 to always fail with ENOSYS. Some functions are actually named
42619 something starting with __ and the normal name is an alias. */
42620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42623 char (*f) () = $ac_func;
42632 return f != $ac_func;
42637 rm -f conftest.$ac_objext conftest$ac_exeext
42638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42639 (eval $ac_link) 2>conftest.er1
42641 grep -v '^ *+' conftest.er1 >conftest.err
42643 cat conftest.err >&5
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); } &&
42646 { ac_try='test -z "$ac_c_werror_flag"
42647 || test ! -s conftest.err'
42648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42649 (eval $ac_try) 2>&5
42651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652 (exit $ac_status); }; } &&
42653 { ac_try='test -s conftest$ac_exeext'
42654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42655 (eval $ac_try) 2>&5
42657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658 (exit $ac_status); }; }; then
42659 eval "$as_ac_var=yes"
42661 echo "$as_me: failed program was:" >&5
42662 sed 's/^/| /' conftest.$ac_ext >&5
42664 eval "$as_ac_var=no"
42666 rm -f conftest.err conftest.$ac_objext \
42667 conftest$ac_exeext conftest.$ac_ext
42669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42671 if test `eval echo '${'$as_ac_var'}'` = yes; then
42672 cat >>confdefs.h <<_ACEOF
42673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42680 # Solaris has libkstat which does not require root.
42682 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
42683 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
42684 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
42685 echo $ECHO_N "(cached) $ECHO_C" >&6
42687 ac_check_lib_save_LIBS=$LIBS
42688 LIBS="-lkstat $LIBS"
42689 cat >conftest.$ac_ext <<_ACEOF
42692 cat confdefs.h >>conftest.$ac_ext
42693 cat >>conftest.$ac_ext <<_ACEOF
42694 /* end confdefs.h. */
42696 /* Override any gcc2 internal prototype to avoid an error. */
42700 /* We use char because int might match the return type of a gcc2
42701 builtin and then its argument prototype would still apply. */
42702 char kstat_open ();
42711 rm -f conftest.$ac_objext conftest$ac_exeext
42712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42713 (eval $ac_link) 2>conftest.er1
42715 grep -v '^ *+' conftest.er1 >conftest.err
42717 cat conftest.err >&5
42718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719 (exit $ac_status); } &&
42720 { ac_try='test -z "$ac_c_werror_flag"
42721 || test ! -s conftest.err'
42722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42723 (eval $ac_try) 2>&5
42725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42726 (exit $ac_status); }; } &&
42727 { ac_try='test -s conftest$ac_exeext'
42728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42729 (eval $ac_try) 2>&5
42731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732 (exit $ac_status); }; }; then
42733 ac_cv_lib_kstat_kstat_open=yes
42735 echo "$as_me: failed program was:" >&5
42736 sed 's/^/| /' conftest.$ac_ext >&5
42738 ac_cv_lib_kstat_kstat_open=no
42740 rm -f conftest.err conftest.$ac_objext \
42741 conftest$ac_exeext conftest.$ac_ext
42742 LIBS=$ac_check_lib_save_LIBS
42744 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
42745 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
42746 if test $ac_cv_lib_kstat_kstat_open = yes; then
42747 cat >>confdefs.h <<_ACEOF
42748 #define HAVE_LIBKSTAT 1
42751 LIBS="-lkstat $LIBS"
42755 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
42757 # Some systems with -lutil have (and need) -lkvm as well, some do not.
42758 # On Solaris, -lkvm requires nlist from -lelf, so check that first
42759 # to get the right answer into the cache.
42760 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
42761 if test $ac_have_func = no; then
42762 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
42763 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
42764 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
42765 echo $ECHO_N "(cached) $ECHO_C" >&6
42767 ac_check_lib_save_LIBS=$LIBS
42769 cat >conftest.$ac_ext <<_ACEOF
42772 cat confdefs.h >>conftest.$ac_ext
42773 cat >>conftest.$ac_ext <<_ACEOF
42774 /* end confdefs.h. */
42776 /* Override any gcc2 internal prototype to avoid an error. */
42780 /* We use char because int might match the return type of a gcc2
42781 builtin and then its argument prototype would still apply. */
42791 rm -f conftest.$ac_objext conftest$ac_exeext
42792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42793 (eval $ac_link) 2>conftest.er1
42795 grep -v '^ *+' conftest.er1 >conftest.err
42797 cat conftest.err >&5
42798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799 (exit $ac_status); } &&
42800 { ac_try='test -z "$ac_c_werror_flag"
42801 || test ! -s conftest.err'
42802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42803 (eval $ac_try) 2>&5
42805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806 (exit $ac_status); }; } &&
42807 { ac_try='test -s conftest$ac_exeext'
42808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809 (eval $ac_try) 2>&5
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); }; }; then
42813 ac_cv_lib_elf_elf_begin=yes
42815 echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42818 ac_cv_lib_elf_elf_begin=no
42820 rm -f conftest.err conftest.$ac_objext \
42821 conftest$ac_exeext conftest.$ac_ext
42822 LIBS=$ac_check_lib_save_LIBS
42824 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
42825 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
42826 if test $ac_cv_lib_elf_elf_begin = yes; then
42831 if test $ac_have_func = no; then
42832 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
42833 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
42834 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
42835 echo $ECHO_N "(cached) $ECHO_C" >&6
42837 ac_check_lib_save_LIBS=$LIBS
42839 cat >conftest.$ac_ext <<_ACEOF
42842 cat confdefs.h >>conftest.$ac_ext
42843 cat >>conftest.$ac_ext <<_ACEOF
42844 /* end confdefs.h. */
42846 /* Override any gcc2 internal prototype to avoid an error. */
42850 /* We use char because int might match the return type of a gcc2
42851 builtin and then its argument prototype would still apply. */
42861 rm -f conftest.$ac_objext conftest$ac_exeext
42862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42863 (eval $ac_link) 2>conftest.er1
42865 grep -v '^ *+' conftest.er1 >conftest.err
42867 cat conftest.err >&5
42868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869 (exit $ac_status); } &&
42870 { ac_try='test -z "$ac_c_werror_flag"
42871 || test ! -s conftest.err'
42872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42873 (eval $ac_try) 2>&5
42875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876 (exit $ac_status); }; } &&
42877 { ac_try='test -s conftest$ac_exeext'
42878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42879 (eval $ac_try) 2>&5
42881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882 (exit $ac_status); }; }; then
42883 ac_cv_lib_kvm_kvm_open=yes
42885 echo "$as_me: failed program was:" >&5
42886 sed 's/^/| /' conftest.$ac_ext >&5
42888 ac_cv_lib_kvm_kvm_open=no
42890 rm -f conftest.err conftest.$ac_objext \
42891 conftest$ac_exeext conftest.$ac_ext
42892 LIBS=$ac_check_lib_save_LIBS
42894 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
42895 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
42896 if test $ac_cv_lib_kvm_kvm_open = yes; then
42900 # Check for the 4.4BSD definition of getloadavg.
42901 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
42902 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
42903 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
42904 echo $ECHO_N "(cached) $ECHO_C" >&6
42906 ac_check_lib_save_LIBS=$LIBS
42907 LIBS="-lutil $LIBS"
42908 cat >conftest.$ac_ext <<_ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h. */
42915 /* Override any gcc2 internal prototype to avoid an error. */
42919 /* We use char because int might match the return type of a gcc2
42920 builtin and then its argument prototype would still apply. */
42921 char getloadavg ();
42930 rm -f conftest.$ac_objext conftest$ac_exeext
42931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42932 (eval $ac_link) 2>conftest.er1
42934 grep -v '^ *+' conftest.er1 >conftest.err
42936 cat conftest.err >&5
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); } &&
42939 { ac_try='test -z "$ac_c_werror_flag"
42940 || test ! -s conftest.err'
42941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42942 (eval $ac_try) 2>&5
42944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945 (exit $ac_status); }; } &&
42946 { ac_try='test -s conftest$ac_exeext'
42947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948 (eval $ac_try) 2>&5
42950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951 (exit $ac_status); }; }; then
42952 ac_cv_lib_util_getloadavg=yes
42954 echo "$as_me: failed program was:" >&5
42955 sed 's/^/| /' conftest.$ac_ext >&5
42957 ac_cv_lib_util_getloadavg=no
42959 rm -f conftest.err conftest.$ac_objext \
42960 conftest$ac_exeext conftest.$ac_ext
42961 LIBS=$ac_check_lib_save_LIBS
42963 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
42964 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
42965 if test $ac_cv_lib_util_getloadavg = yes; then
42966 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
42971 if test $ac_have_func = no; then
42972 # There is a commonly available library for RS/6000 AIX.
42973 # Since it is not a standard part of AIX, it might be installed locally.
42974 ac_getloadavg_LIBS=$LIBS
42975 LIBS="-L/usr/local/lib $LIBS"
42976 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
42977 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
42978 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
42979 echo $ECHO_N "(cached) $ECHO_C" >&6
42981 ac_check_lib_save_LIBS=$LIBS
42982 LIBS="-lgetloadavg $LIBS"
42983 cat >conftest.$ac_ext <<_ACEOF
42986 cat confdefs.h >>conftest.$ac_ext
42987 cat >>conftest.$ac_ext <<_ACEOF
42988 /* end confdefs.h. */
42990 /* Override any gcc2 internal prototype to avoid an error. */
42994 /* We use char because int might match the return type of a gcc2
42995 builtin and then its argument prototype would still apply. */
42996 char getloadavg ();
43005 rm -f conftest.$ac_objext conftest$ac_exeext
43006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43007 (eval $ac_link) 2>conftest.er1
43009 grep -v '^ *+' conftest.er1 >conftest.err
43011 cat conftest.err >&5
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); } &&
43014 { ac_try='test -z "$ac_c_werror_flag"
43015 || test ! -s conftest.err'
43016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43017 (eval $ac_try) 2>&5
43019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020 (exit $ac_status); }; } &&
43021 { ac_try='test -s conftest$ac_exeext'
43022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43023 (eval $ac_try) 2>&5
43025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43026 (exit $ac_status); }; }; then
43027 ac_cv_lib_getloadavg_getloadavg=yes
43029 echo "$as_me: failed program was:" >&5
43030 sed 's/^/| /' conftest.$ac_ext >&5
43032 ac_cv_lib_getloadavg_getloadavg=no
43034 rm -f conftest.err conftest.$ac_objext \
43035 conftest$ac_exeext conftest.$ac_ext
43036 LIBS=$ac_check_lib_save_LIBS
43038 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
43039 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
43040 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
43041 LIBS="-lgetloadavg $LIBS"
43043 LIBS=$ac_getloadavg_LIBS
43048 # Make sure it is really in the library, if we think we found it,
43049 # otherwise set up the replacement function.
43051 for ac_func in getloadavg
43053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43054 echo "$as_me:$LINENO: checking for $ac_func" >&5
43055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43056 if eval "test \"\${$as_ac_var+set}\" = set"; then
43057 echo $ECHO_N "(cached) $ECHO_C" >&6
43059 cat >conftest.$ac_ext <<_ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h. */
43065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43067 #define $ac_func innocuous_$ac_func
43069 /* System header to define __stub macros and hopefully few prototypes,
43070 which can conflict with char $ac_func (); below.
43071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43072 <limits.h> exists even on freestanding compilers. */
43075 # include <limits.h>
43077 # include <assert.h>
43082 /* Override any gcc2 internal prototype to avoid an error. */
43087 /* We use char because int might match the return type of a gcc2
43088 builtin and then its argument prototype would still apply. */
43090 /* The GNU C library defines this for functions which it implements
43091 to always fail with ENOSYS. Some functions are actually named
43092 something starting with __ and the normal name is an alias. */
43093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43096 char (*f) () = $ac_func;
43105 return f != $ac_func;
43110 rm -f conftest.$ac_objext conftest$ac_exeext
43111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43112 (eval $ac_link) 2>conftest.er1
43114 grep -v '^ *+' conftest.er1 >conftest.err
43116 cat conftest.err >&5
43117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118 (exit $ac_status); } &&
43119 { ac_try='test -z "$ac_c_werror_flag"
43120 || test ! -s conftest.err'
43121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122 (eval $ac_try) 2>&5
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); }; } &&
43126 { ac_try='test -s conftest$ac_exeext'
43127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43128 (eval $ac_try) 2>&5
43130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131 (exit $ac_status); }; }; then
43132 eval "$as_ac_var=yes"
43134 echo "$as_me: failed program was:" >&5
43135 sed 's/^/| /' conftest.$ac_ext >&5
43137 eval "$as_ac_var=no"
43139 rm -f conftest.err conftest.$ac_objext \
43140 conftest$ac_exeext conftest.$ac_ext
43142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43144 if test `eval echo '${'$as_ac_var'}'` = yes; then
43145 cat >>confdefs.h <<_ACEOF
43146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43151 "getloadavg.$ac_objext" | \
43152 *" getloadavg.$ac_objext" | \
43153 "getloadavg.$ac_objext "* | \
43154 *" getloadavg.$ac_objext "* ) ;;
43155 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
43159 cat >>confdefs.h <<\_ACEOF
43160 #define C_GETLOADAVG 1
43163 # Figure out what our getloadavg.c needs.
43165 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43166 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
43167 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
43168 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43169 echo $ECHO_N "(cached) $ECHO_C" >&6
43171 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
43172 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
43174 # Is the header compilable?
43175 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
43176 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
43177 cat >conftest.$ac_ext <<_ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h. */
43183 $ac_includes_default
43184 #include <sys/dg_sys_info.h>
43186 rm -f conftest.$ac_objext
43187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43188 (eval $ac_compile) 2>conftest.er1
43190 grep -v '^ *+' conftest.er1 >conftest.err
43192 cat conftest.err >&5
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); } &&
43195 { ac_try='test -z "$ac_c_werror_flag"
43196 || test ! -s conftest.err'
43197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43198 (eval $ac_try) 2>&5
43200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43201 (exit $ac_status); }; } &&
43202 { ac_try='test -s conftest.$ac_objext'
43203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43204 (eval $ac_try) 2>&5
43206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43207 (exit $ac_status); }; }; then
43208 ac_header_compiler=yes
43210 echo "$as_me: failed program was:" >&5
43211 sed 's/^/| /' conftest.$ac_ext >&5
43213 ac_header_compiler=no
43215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43217 echo "${ECHO_T}$ac_header_compiler" >&6
43219 # Is the header present?
43220 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
43221 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
43222 cat >conftest.$ac_ext <<_ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h. */
43228 #include <sys/dg_sys_info.h>
43230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43233 grep -v '^ *+' conftest.er1 >conftest.err
43235 cat conftest.err >&5
43236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43237 (exit $ac_status); } >/dev/null; then
43238 if test -s conftest.err; then
43239 ac_cpp_err=$ac_c_preproc_warn_flag
43240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43247 if test -z "$ac_cpp_err"; then
43248 ac_header_preproc=yes
43250 echo "$as_me: failed program was:" >&5
43251 sed 's/^/| /' conftest.$ac_ext >&5
43253 ac_header_preproc=no
43255 rm -f conftest.err conftest.$ac_ext
43256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43257 echo "${ECHO_T}$ac_header_preproc" >&6
43259 # So? What about this header?
43260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43262 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
43263 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43264 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
43265 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
43266 ac_header_preproc=yes
43269 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
43270 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
43271 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
43272 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
43273 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
43274 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
43275 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
43276 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
43277 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
43278 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
43279 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
43280 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
43283 ## ------------------------------------ ##
43284 ## Report this to bug-coreutils@gnu.org ##
43285 ## ------------------------------------ ##
43288 sed "s/^/$as_me: WARNING: /" >&2
43291 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
43292 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
43293 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43294 echo $ECHO_N "(cached) $ECHO_C" >&6
43296 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
43298 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
43299 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
43302 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
43305 cat >>confdefs.h <<\_ACEOF
43310 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
43311 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
43312 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
43313 echo $ECHO_N "(cached) $ECHO_C" >&6
43315 ac_check_lib_save_LIBS=$LIBS
43317 cat >conftest.$ac_ext <<_ACEOF
43320 cat confdefs.h >>conftest.$ac_ext
43321 cat >>conftest.$ac_ext <<_ACEOF
43322 /* end confdefs.h. */
43324 /* Override any gcc2 internal prototype to avoid an error. */
43328 /* We use char because int might match the return type of a gcc2
43329 builtin and then its argument prototype would still apply. */
43330 char dg_sys_info ();
43339 rm -f conftest.$ac_objext conftest$ac_exeext
43340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43341 (eval $ac_link) 2>conftest.er1
43343 grep -v '^ *+' conftest.er1 >conftest.err
43345 cat conftest.err >&5
43346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43347 (exit $ac_status); } &&
43348 { ac_try='test -z "$ac_c_werror_flag"
43349 || test ! -s conftest.err'
43350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351 (eval $ac_try) 2>&5
43353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354 (exit $ac_status); }; } &&
43355 { ac_try='test -s conftest$ac_exeext'
43356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43357 (eval $ac_try) 2>&5
43359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43360 (exit $ac_status); }; }; then
43361 ac_cv_lib_dgc_dg_sys_info=yes
43363 echo "$as_me: failed program was:" >&5
43364 sed 's/^/| /' conftest.$ac_ext >&5
43366 ac_cv_lib_dgc_dg_sys_info=no
43368 rm -f conftest.err conftest.$ac_objext \
43369 conftest$ac_exeext conftest.$ac_ext
43370 LIBS=$ac_check_lib_save_LIBS
43372 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
43373 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
43374 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
43375 cat >>confdefs.h <<_ACEOF
43376 #define HAVE_LIBDGC 1
43387 if test "${ac_cv_header_locale_h+set}" = set; then
43388 echo "$as_me:$LINENO: checking for locale.h" >&5
43389 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
43390 if test "${ac_cv_header_locale_h+set}" = set; then
43391 echo $ECHO_N "(cached) $ECHO_C" >&6
43393 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
43394 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
43396 # Is the header compilable?
43397 echo "$as_me:$LINENO: checking locale.h usability" >&5
43398 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
43399 cat >conftest.$ac_ext <<_ACEOF
43402 cat confdefs.h >>conftest.$ac_ext
43403 cat >>conftest.$ac_ext <<_ACEOF
43404 /* end confdefs.h. */
43405 $ac_includes_default
43406 #include <locale.h>
43408 rm -f conftest.$ac_objext
43409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43410 (eval $ac_compile) 2>conftest.er1
43412 grep -v '^ *+' conftest.er1 >conftest.err
43414 cat conftest.err >&5
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); } &&
43417 { ac_try='test -z "$ac_c_werror_flag"
43418 || test ! -s conftest.err'
43419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43420 (eval $ac_try) 2>&5
43422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423 (exit $ac_status); }; } &&
43424 { ac_try='test -s conftest.$ac_objext'
43425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43426 (eval $ac_try) 2>&5
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); }; }; then
43430 ac_header_compiler=yes
43432 echo "$as_me: failed program was:" >&5
43433 sed 's/^/| /' conftest.$ac_ext >&5
43435 ac_header_compiler=no
43437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43439 echo "${ECHO_T}$ac_header_compiler" >&6
43441 # Is the header present?
43442 echo "$as_me:$LINENO: checking locale.h presence" >&5
43443 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
43444 cat >conftest.$ac_ext <<_ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h. */
43450 #include <locale.h>
43452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43455 grep -v '^ *+' conftest.er1 >conftest.err
43457 cat conftest.err >&5
43458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459 (exit $ac_status); } >/dev/null; then
43460 if test -s conftest.err; then
43461 ac_cpp_err=$ac_c_preproc_warn_flag
43462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43469 if test -z "$ac_cpp_err"; then
43470 ac_header_preproc=yes
43472 echo "$as_me: failed program was:" >&5
43473 sed 's/^/| /' conftest.$ac_ext >&5
43475 ac_header_preproc=no
43477 rm -f conftest.err conftest.$ac_ext
43478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43479 echo "${ECHO_T}$ac_header_preproc" >&6
43481 # So? What about this header?
43482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43484 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
43485 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43486 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
43487 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
43488 ac_header_preproc=yes
43491 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
43492 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
43493 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
43494 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
43495 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
43496 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
43497 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
43498 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
43499 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
43500 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
43501 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
43502 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
43505 ## ------------------------------------ ##
43506 ## Report this to bug-coreutils@gnu.org ##
43507 ## ------------------------------------ ##
43510 sed "s/^/$as_me: WARNING: /" >&2
43513 echo "$as_me:$LINENO: checking for locale.h" >&5
43514 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
43515 if test "${ac_cv_header_locale_h+set}" = set; then
43516 echo $ECHO_N "(cached) $ECHO_C" >&6
43518 ac_cv_header_locale_h=$ac_header_preproc
43520 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
43521 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
43527 for ac_func in setlocale
43529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43530 echo "$as_me:$LINENO: checking for $ac_func" >&5
43531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43532 if eval "test \"\${$as_ac_var+set}\" = set"; then
43533 echo $ECHO_N "(cached) $ECHO_C" >&6
43535 cat >conftest.$ac_ext <<_ACEOF
43538 cat confdefs.h >>conftest.$ac_ext
43539 cat >>conftest.$ac_ext <<_ACEOF
43540 /* end confdefs.h. */
43541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43543 #define $ac_func innocuous_$ac_func
43545 /* System header to define __stub macros and hopefully few prototypes,
43546 which can conflict with char $ac_func (); below.
43547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43548 <limits.h> exists even on freestanding compilers. */
43551 # include <limits.h>
43553 # include <assert.h>
43558 /* Override any gcc2 internal prototype to avoid an error. */
43563 /* We use char because int might match the return type of a gcc2
43564 builtin and then its argument prototype would still apply. */
43566 /* The GNU C library defines this for functions which it implements
43567 to always fail with ENOSYS. Some functions are actually named
43568 something starting with __ and the normal name is an alias. */
43569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43572 char (*f) () = $ac_func;
43581 return f != $ac_func;
43586 rm -f conftest.$ac_objext conftest$ac_exeext
43587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43588 (eval $ac_link) 2>conftest.er1
43590 grep -v '^ *+' conftest.er1 >conftest.err
43592 cat conftest.err >&5
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); } &&
43595 { ac_try='test -z "$ac_c_werror_flag"
43596 || test ! -s conftest.err'
43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598 (eval $ac_try) 2>&5
43600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; } &&
43602 { ac_try='test -s conftest$ac_exeext'
43603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604 (eval $ac_try) 2>&5
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); }; }; then
43608 eval "$as_ac_var=yes"
43610 echo "$as_me: failed program was:" >&5
43611 sed 's/^/| /' conftest.$ac_ext >&5
43613 eval "$as_ac_var=no"
43615 rm -f conftest.err conftest.$ac_objext \
43616 conftest$ac_exeext conftest.$ac_ext
43618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43620 if test `eval echo '${'$as_ac_var'}'` = yes; then
43621 cat >>confdefs.h <<_ACEOF
43622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43629 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
43630 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
43631 # Irix 4.0.5F has the header but not the library.
43632 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
43635 cat >>confdefs.h <<\_ACEOF
43641 if test $ac_have_func = no; then
43642 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43643 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
43644 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
43645 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43646 echo $ECHO_N "(cached) $ECHO_C" >&6
43648 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
43649 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
43651 # Is the header compilable?
43652 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
43653 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
43654 cat >conftest.$ac_ext <<_ACEOF
43657 cat confdefs.h >>conftest.$ac_ext
43658 cat >>conftest.$ac_ext <<_ACEOF
43659 /* end confdefs.h. */
43660 $ac_includes_default
43661 #include <inq_stats/cpustats.h>
43663 rm -f conftest.$ac_objext
43664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43665 (eval $ac_compile) 2>conftest.er1
43667 grep -v '^ *+' conftest.er1 >conftest.err
43669 cat conftest.err >&5
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); } &&
43672 { ac_try='test -z "$ac_c_werror_flag"
43673 || test ! -s conftest.err'
43674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675 (eval $ac_try) 2>&5
43677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678 (exit $ac_status); }; } &&
43679 { ac_try='test -s conftest.$ac_objext'
43680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43681 (eval $ac_try) 2>&5
43683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684 (exit $ac_status); }; }; then
43685 ac_header_compiler=yes
43687 echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43690 ac_header_compiler=no
43692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43694 echo "${ECHO_T}$ac_header_compiler" >&6
43696 # Is the header present?
43697 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
43698 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
43699 cat >conftest.$ac_ext <<_ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h. */
43705 #include <inq_stats/cpustats.h>
43707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43710 grep -v '^ *+' conftest.er1 >conftest.err
43712 cat conftest.err >&5
43713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43714 (exit $ac_status); } >/dev/null; then
43715 if test -s conftest.err; then
43716 ac_cpp_err=$ac_c_preproc_warn_flag
43717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43724 if test -z "$ac_cpp_err"; then
43725 ac_header_preproc=yes
43727 echo "$as_me: failed program was:" >&5
43728 sed 's/^/| /' conftest.$ac_ext >&5
43730 ac_header_preproc=no
43732 rm -f conftest.err conftest.$ac_ext
43733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43734 echo "${ECHO_T}$ac_header_preproc" >&6
43736 # So? What about this header?
43737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43739 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
43740 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43741 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
43742 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
43743 ac_header_preproc=yes
43746 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
43747 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
43748 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
43749 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
43750 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
43751 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
43752 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
43753 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
43754 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
43755 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
43756 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
43757 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
43760 ## ------------------------------------ ##
43761 ## Report this to bug-coreutils@gnu.org ##
43762 ## ------------------------------------ ##
43765 sed "s/^/$as_me: WARNING: /" >&2
43768 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
43769 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
43770 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43771 echo $ECHO_N "(cached) $ECHO_C" >&6
43773 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
43775 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
43776 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
43779 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
43782 cat >>confdefs.h <<\_ACEOF
43787 cat >>confdefs.h <<\_ACEOF
43796 if test $ac_have_func = no; then
43797 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43798 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
43799 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
43800 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43801 echo $ECHO_N "(cached) $ECHO_C" >&6
43803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
43804 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
43806 # Is the header compilable?
43807 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
43808 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
43809 cat >conftest.$ac_ext <<_ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h. */
43815 $ac_includes_default
43816 #include <sys/cpustats.h>
43818 rm -f conftest.$ac_objext
43819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43820 (eval $ac_compile) 2>conftest.er1
43822 grep -v '^ *+' conftest.er1 >conftest.err
43824 cat conftest.err >&5
43825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43826 (exit $ac_status); } &&
43827 { ac_try='test -z "$ac_c_werror_flag"
43828 || test ! -s conftest.err'
43829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43830 (eval $ac_try) 2>&5
43832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); }; } &&
43834 { ac_try='test -s conftest.$ac_objext'
43835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43836 (eval $ac_try) 2>&5
43838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43839 (exit $ac_status); }; }; then
43840 ac_header_compiler=yes
43842 echo "$as_me: failed program was:" >&5
43843 sed 's/^/| /' conftest.$ac_ext >&5
43845 ac_header_compiler=no
43847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43849 echo "${ECHO_T}$ac_header_compiler" >&6
43851 # Is the header present?
43852 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
43853 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
43854 cat >conftest.$ac_ext <<_ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h. */
43860 #include <sys/cpustats.h>
43862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43865 grep -v '^ *+' conftest.er1 >conftest.err
43867 cat conftest.err >&5
43868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43869 (exit $ac_status); } >/dev/null; then
43870 if test -s conftest.err; then
43871 ac_cpp_err=$ac_c_preproc_warn_flag
43872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43879 if test -z "$ac_cpp_err"; then
43880 ac_header_preproc=yes
43882 echo "$as_me: failed program was:" >&5
43883 sed 's/^/| /' conftest.$ac_ext >&5
43885 ac_header_preproc=no
43887 rm -f conftest.err conftest.$ac_ext
43888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43889 echo "${ECHO_T}$ac_header_preproc" >&6
43891 # So? What about this header?
43892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43894 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
43895 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43896 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
43897 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
43898 ac_header_preproc=yes
43901 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
43902 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
43903 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
43904 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
43905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
43906 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
43907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
43908 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
43909 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
43910 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
43911 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
43912 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
43915 ## ------------------------------------ ##
43916 ## Report this to bug-coreutils@gnu.org ##
43917 ## ------------------------------------ ##
43920 sed "s/^/$as_me: WARNING: /" >&2
43923 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
43924 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
43925 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43926 echo $ECHO_N "(cached) $ECHO_C" >&6
43928 ac_cv_header_sys_cpustats_h=$ac_header_preproc
43930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
43931 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
43934 if test $ac_cv_header_sys_cpustats_h = yes; then
43935 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
43944 if test $ac_have_func = no; then
43946 for ac_header in mach/mach.h
43948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43950 echo "$as_me:$LINENO: checking for $ac_header" >&5
43951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43953 echo $ECHO_N "(cached) $ECHO_C" >&6
43955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43958 # Is the header compilable?
43959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43961 cat >conftest.$ac_ext <<_ACEOF
43964 cat confdefs.h >>conftest.$ac_ext
43965 cat >>conftest.$ac_ext <<_ACEOF
43966 /* end confdefs.h. */
43967 $ac_includes_default
43968 #include <$ac_header>
43970 rm -f conftest.$ac_objext
43971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43972 (eval $ac_compile) 2>conftest.er1
43974 grep -v '^ *+' conftest.er1 >conftest.err
43976 cat conftest.err >&5
43977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978 (exit $ac_status); } &&
43979 { ac_try='test -z "$ac_c_werror_flag"
43980 || test ! -s conftest.err'
43981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982 (eval $ac_try) 2>&5
43984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; } &&
43986 { ac_try='test -s conftest.$ac_objext'
43987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43988 (eval $ac_try) 2>&5
43990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43991 (exit $ac_status); }; }; then
43992 ac_header_compiler=yes
43994 echo "$as_me: failed program was:" >&5
43995 sed 's/^/| /' conftest.$ac_ext >&5
43997 ac_header_compiler=no
43999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44001 echo "${ECHO_T}$ac_header_compiler" >&6
44003 # Is the header present?
44004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44006 cat >conftest.$ac_ext <<_ACEOF
44009 cat confdefs.h >>conftest.$ac_ext
44010 cat >>conftest.$ac_ext <<_ACEOF
44011 /* end confdefs.h. */
44012 #include <$ac_header>
44014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44017 grep -v '^ *+' conftest.er1 >conftest.err
44019 cat conftest.err >&5
44020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021 (exit $ac_status); } >/dev/null; then
44022 if test -s conftest.err; then
44023 ac_cpp_err=$ac_c_preproc_warn_flag
44024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44031 if test -z "$ac_cpp_err"; then
44032 ac_header_preproc=yes
44034 echo "$as_me: failed program was:" >&5
44035 sed 's/^/| /' conftest.$ac_ext >&5
44037 ac_header_preproc=no
44039 rm -f conftest.err conftest.$ac_ext
44040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44041 echo "${ECHO_T}$ac_header_preproc" >&6
44043 # So? What about this header?
44044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44050 ac_header_preproc=yes
44053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44067 ## ------------------------------------ ##
44068 ## Report this to bug-coreutils@gnu.org ##
44069 ## ------------------------------------ ##
44072 sed "s/^/$as_me: WARNING: /" >&2
44075 echo "$as_me:$LINENO: checking for $ac_header" >&5
44076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44078 echo $ECHO_N "(cached) $ECHO_C" >&6
44080 eval "$as_ac_Header=\$ac_header_preproc"
44082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44087 cat >>confdefs.h <<_ACEOF
44088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44098 for ac_header in nlist.h
44100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44102 echo "$as_me:$LINENO: checking for $ac_header" >&5
44103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44105 echo $ECHO_N "(cached) $ECHO_C" >&6
44107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44110 # Is the header compilable?
44111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44113 cat >conftest.$ac_ext <<_ACEOF
44116 cat confdefs.h >>conftest.$ac_ext
44117 cat >>conftest.$ac_ext <<_ACEOF
44118 /* end confdefs.h. */
44119 $ac_includes_default
44120 #include <$ac_header>
44122 rm -f conftest.$ac_objext
44123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44124 (eval $ac_compile) 2>conftest.er1
44126 grep -v '^ *+' conftest.er1 >conftest.err
44128 cat conftest.err >&5
44129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44130 (exit $ac_status); } &&
44131 { ac_try='test -z "$ac_c_werror_flag"
44132 || test ! -s conftest.err'
44133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44134 (eval $ac_try) 2>&5
44136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44137 (exit $ac_status); }; } &&
44138 { ac_try='test -s conftest.$ac_objext'
44139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44140 (eval $ac_try) 2>&5
44142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44143 (exit $ac_status); }; }; then
44144 ac_header_compiler=yes
44146 echo "$as_me: failed program was:" >&5
44147 sed 's/^/| /' conftest.$ac_ext >&5
44149 ac_header_compiler=no
44151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44153 echo "${ECHO_T}$ac_header_compiler" >&6
44155 # Is the header present?
44156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44158 cat >conftest.$ac_ext <<_ACEOF
44161 cat confdefs.h >>conftest.$ac_ext
44162 cat >>conftest.$ac_ext <<_ACEOF
44163 /* end confdefs.h. */
44164 #include <$ac_header>
44166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44169 grep -v '^ *+' conftest.er1 >conftest.err
44171 cat conftest.err >&5
44172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173 (exit $ac_status); } >/dev/null; then
44174 if test -s conftest.err; then
44175 ac_cpp_err=$ac_c_preproc_warn_flag
44176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44183 if test -z "$ac_cpp_err"; then
44184 ac_header_preproc=yes
44186 echo "$as_me: failed program was:" >&5
44187 sed 's/^/| /' conftest.$ac_ext >&5
44189 ac_header_preproc=no
44191 rm -f conftest.err conftest.$ac_ext
44192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44193 echo "${ECHO_T}$ac_header_preproc" >&6
44195 # So? What about this header?
44196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44202 ac_header_preproc=yes
44205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44219 ## ------------------------------------ ##
44220 ## Report this to bug-coreutils@gnu.org ##
44221 ## ------------------------------------ ##
44224 sed "s/^/$as_me: WARNING: /" >&2
44227 echo "$as_me:$LINENO: checking for $ac_header" >&5
44228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44230 echo $ECHO_N "(cached) $ECHO_C" >&6
44232 eval "$as_ac_Header=\$ac_header_preproc"
44234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44239 cat >>confdefs.h <<_ACEOF
44240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44242 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
44243 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
44244 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
44245 echo $ECHO_N "(cached) $ECHO_C" >&6
44247 cat >conftest.$ac_ext <<_ACEOF
44250 cat confdefs.h >>conftest.$ac_ext
44251 cat >>conftest.$ac_ext <<_ACEOF
44252 /* end confdefs.h. */
44258 static struct nlist ac_aggr;
44259 if (ac_aggr.n_un.n_name)
44265 rm -f conftest.$ac_objext
44266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44267 (eval $ac_compile) 2>conftest.er1
44269 grep -v '^ *+' conftest.er1 >conftest.err
44271 cat conftest.err >&5
44272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273 (exit $ac_status); } &&
44274 { ac_try='test -z "$ac_c_werror_flag"
44275 || test ! -s conftest.err'
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); }; } &&
44281 { ac_try='test -s conftest.$ac_objext'
44282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283 (eval $ac_try) 2>&5
44285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286 (exit $ac_status); }; }; then
44287 ac_cv_member_struct_nlist_n_un_n_name=yes
44289 echo "$as_me: failed program was:" >&5
44290 sed 's/^/| /' conftest.$ac_ext >&5
44292 cat >conftest.$ac_ext <<_ACEOF
44295 cat confdefs.h >>conftest.$ac_ext
44296 cat >>conftest.$ac_ext <<_ACEOF
44297 /* end confdefs.h. */
44303 static struct nlist ac_aggr;
44304 if (sizeof ac_aggr.n_un.n_name)
44310 rm -f conftest.$ac_objext
44311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44312 (eval $ac_compile) 2>conftest.er1
44314 grep -v '^ *+' conftest.er1 >conftest.err
44316 cat conftest.err >&5
44317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44318 (exit $ac_status); } &&
44319 { ac_try='test -z "$ac_c_werror_flag"
44320 || test ! -s conftest.err'
44321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44322 (eval $ac_try) 2>&5
44324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44325 (exit $ac_status); }; } &&
44326 { ac_try='test -s conftest.$ac_objext'
44327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44328 (eval $ac_try) 2>&5
44330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44331 (exit $ac_status); }; }; then
44332 ac_cv_member_struct_nlist_n_un_n_name=yes
44334 echo "$as_me: failed program was:" >&5
44335 sed 's/^/| /' conftest.$ac_ext >&5
44337 ac_cv_member_struct_nlist_n_un_n_name=no
44339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
44344 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
44345 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
44347 cat >>confdefs.h <<_ACEOF
44348 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
44352 cat >>confdefs.h <<\_ACEOF
44353 #define NLIST_NAME_UNION 1
44367 # Some definitions of getloadavg require that the program be installed setgid.
44368 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
44369 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
44370 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
44371 echo $ECHO_N "(cached) $ECHO_C" >&6
44373 cat >conftest.$ac_ext <<_ACEOF
44376 cat confdefs.h >>conftest.$ac_ext
44377 cat >>conftest.$ac_ext <<_ACEOF
44378 /* end confdefs.h. */
44379 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
44380 #ifdef LDAV_PRIVILEGED
44381 Yowza Am I SETGID yet
44384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44385 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
44386 ac_cv_func_getloadavg_setgid=yes
44388 ac_cv_func_getloadavg_setgid=no
44393 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
44394 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
44395 if test $ac_cv_func_getloadavg_setgid = yes; then
44398 cat >>confdefs.h <<\_ACEOF
44399 #define GETLOADAVG_PRIVILEGED 1
44406 if test $ac_cv_func_getloadavg_setgid = yes; then
44407 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
44408 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
44409 if test "${ac_cv_group_kmem+set}" = set; then
44410 echo $ECHO_N "(cached) $ECHO_C" >&6
44412 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
44413 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
44414 # If we got an error (system does not support symlinks), try without -L.
44415 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
44416 ac_cv_group_kmem=`echo $ac_ls_output \
44417 | sed -ne 's/[ ][ ]*/ /g;
44418 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
44422 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
44423 echo "${ECHO_T}$ac_cv_group_kmem" >&6
44424 KMEM_GROUP=$ac_cv_group_kmem
44426 if test "x$ac_save_LIBS" = x; then
44427 GETLOADAVG_LIBS=$LIBS
44429 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
44438 # raise is used by at least sort and ls.
44440 for ac_func in raise
44442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44443 echo "$as_me:$LINENO: checking for $ac_func" >&5
44444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44445 if eval "test \"\${$as_ac_var+set}\" = set"; then
44446 echo $ECHO_N "(cached) $ECHO_C" >&6
44448 cat >conftest.$ac_ext <<_ACEOF
44451 cat confdefs.h >>conftest.$ac_ext
44452 cat >>conftest.$ac_ext <<_ACEOF
44453 /* end confdefs.h. */
44454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44456 #define $ac_func innocuous_$ac_func
44458 /* System header to define __stub macros and hopefully few prototypes,
44459 which can conflict with char $ac_func (); below.
44460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44461 <limits.h> exists even on freestanding compilers. */
44464 # include <limits.h>
44466 # include <assert.h>
44471 /* Override any gcc2 internal prototype to avoid an error. */
44476 /* We use char because int might match the return type of a gcc2
44477 builtin and then its argument prototype would still apply. */
44479 /* The GNU C library defines this for functions which it implements
44480 to always fail with ENOSYS. Some functions are actually named
44481 something starting with __ and the normal name is an alias. */
44482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44485 char (*f) () = $ac_func;
44494 return f != $ac_func;
44499 rm -f conftest.$ac_objext conftest$ac_exeext
44500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44501 (eval $ac_link) 2>conftest.er1
44503 grep -v '^ *+' conftest.er1 >conftest.err
44505 cat conftest.err >&5
44506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507 (exit $ac_status); } &&
44508 { ac_try='test -z "$ac_c_werror_flag"
44509 || test ! -s conftest.err'
44510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511 (eval $ac_try) 2>&5
44513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514 (exit $ac_status); }; } &&
44515 { ac_try='test -s conftest$ac_exeext'
44516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44517 (eval $ac_try) 2>&5
44519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44520 (exit $ac_status); }; }; then
44521 eval "$as_ac_var=yes"
44523 echo "$as_me: failed program was:" >&5
44524 sed 's/^/| /' conftest.$ac_ext >&5
44526 eval "$as_ac_var=no"
44528 rm -f conftest.err conftest.$ac_objext \
44529 conftest$ac_exeext conftest.$ac_ext
44531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44533 if test `eval echo '${'$as_ac_var'}'` = yes; then
44534 cat >>confdefs.h <<_ACEOF
44535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44540 "$ac_func.$ac_objext" | \
44541 *" $ac_func.$ac_objext" | \
44542 "$ac_func.$ac_objext "* | \
44543 *" $ac_func.$ac_objext "* ) ;;
44544 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44552 # By default, argmatch should fail calling usage (1).
44554 cat >>confdefs.h <<\_ACEOF
44555 #define ARGMATCH_DIE usage (1)
44559 cat >>confdefs.h <<\_ACEOF
44560 #define ARGMATCH_DIE_DECL extern void usage ()
44564 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
44565 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
44566 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
44567 echo $ECHO_N "(cached) $ECHO_C" >&6
44569 ac_cv_func_setvbuf_reversed=no
44570 cat >conftest.$ac_ext <<_ACEOF
44573 cat confdefs.h >>conftest.$ac_ext
44574 cat >>conftest.$ac_ext <<_ACEOF
44575 /* end confdefs.h. */
44578 int (setvbuf) (FILE *, int, char *, size_t);
44583 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
44588 rm -f conftest.$ac_objext conftest$ac_exeext
44589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44590 (eval $ac_link) 2>conftest.er1
44592 grep -v '^ *+' conftest.er1 >conftest.err
44594 cat conftest.err >&5
44595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44596 (exit $ac_status); } &&
44597 { ac_try='test -z "$ac_c_werror_flag"
44598 || test ! -s conftest.err'
44599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600 (eval $ac_try) 2>&5
44602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603 (exit $ac_status); }; } &&
44604 { ac_try='test -s conftest$ac_exeext'
44605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44606 (eval $ac_try) 2>&5
44608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609 (exit $ac_status); }; }; then
44610 cat >conftest.$ac_ext <<_ACEOF
44613 cat confdefs.h >>conftest.$ac_ext
44614 cat >>conftest.$ac_ext <<_ACEOF
44615 /* end confdefs.h. */
44618 int (setvbuf) (FILE *, int, char *, size_t);
44623 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
44628 rm -f conftest.$ac_objext conftest$ac_exeext
44629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44630 (eval $ac_link) 2>conftest.er1
44632 grep -v '^ *+' conftest.er1 >conftest.err
44634 cat conftest.err >&5
44635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44636 (exit $ac_status); } &&
44637 { ac_try='test -z "$ac_c_werror_flag"
44638 || test ! -s conftest.err'
44639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44640 (eval $ac_try) 2>&5
44642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44643 (exit $ac_status); }; } &&
44644 { ac_try='test -s conftest$ac_exeext'
44645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44646 (eval $ac_try) 2>&5
44648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649 (exit $ac_status); }; }; then
44650 # It compiles and links either way, so it must not be declared
44651 # with a prototype and most likely this is a K&R C compiler.
44653 if test "$cross_compiling" = yes; then
44654 : # Assume setvbuf is not reversed when cross-compiling.
44656 cat >conftest.$ac_ext <<_ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h. */
44666 /* This call has the arguments reversed.
44667 A reversed system may check and see that the address of buf
44668 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
44670 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
44673 exit (0); /* Non-reversed systems SEGV here. */
44678 rm -f conftest$ac_exeext
44679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44680 (eval $ac_link) 2>&5
44682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44685 (eval $ac_try) 2>&5
44687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688 (exit $ac_status); }; }; then
44689 ac_cv_func_setvbuf_reversed=yes
44691 echo "$as_me: program exited with status $ac_status" >&5
44692 echo "$as_me: failed program was:" >&5
44693 sed 's/^/| /' conftest.$ac_ext >&5
44695 ( exit $ac_status )
44698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44700 ac_cv_func_setvbuf_reversed=yes
44702 echo "$as_me: failed program was:" >&5
44703 sed 's/^/| /' conftest.$ac_ext >&5
44706 rm -f conftest.err conftest.$ac_objext \
44707 conftest$ac_exeext conftest.$ac_ext
44709 echo "$as_me: failed program was:" >&5
44710 sed 's/^/| /' conftest.$ac_ext >&5
44713 rm -f conftest.err conftest.$ac_objext \
44714 conftest$ac_exeext conftest.$ac_ext
44716 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
44717 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
44718 if test $ac_cv_func_setvbuf_reversed = yes; then
44720 cat >>confdefs.h <<\_ACEOF
44721 #define SETVBUF_REVERSED 1
44727 # used by sleep and shred
44730 for ac_func in gettimeofday
44732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44733 echo "$as_me:$LINENO: checking for $ac_func" >&5
44734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44735 if eval "test \"\${$as_ac_var+set}\" = set"; then
44736 echo $ECHO_N "(cached) $ECHO_C" >&6
44738 cat >conftest.$ac_ext <<_ACEOF
44741 cat confdefs.h >>conftest.$ac_ext
44742 cat >>conftest.$ac_ext <<_ACEOF
44743 /* end confdefs.h. */
44744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44746 #define $ac_func innocuous_$ac_func
44748 /* System header to define __stub macros and hopefully few prototypes,
44749 which can conflict with char $ac_func (); below.
44750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44751 <limits.h> exists even on freestanding compilers. */
44754 # include <limits.h>
44756 # include <assert.h>
44761 /* Override any gcc2 internal prototype to avoid an error. */
44766 /* We use char because int might match the return type of a gcc2
44767 builtin and then its argument prototype would still apply. */
44769 /* The GNU C library defines this for functions which it implements
44770 to always fail with ENOSYS. Some functions are actually named
44771 something starting with __ and the normal name is an alias. */
44772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44775 char (*f) () = $ac_func;
44784 return f != $ac_func;
44789 rm -f conftest.$ac_objext conftest$ac_exeext
44790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44791 (eval $ac_link) 2>conftest.er1
44793 grep -v '^ *+' conftest.er1 >conftest.err
44795 cat conftest.err >&5
44796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44797 (exit $ac_status); } &&
44798 { ac_try='test -z "$ac_c_werror_flag"
44799 || test ! -s conftest.err'
44800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44801 (eval $ac_try) 2>&5
44803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44804 (exit $ac_status); }; } &&
44805 { ac_try='test -s conftest$ac_exeext'
44806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44807 (eval $ac_try) 2>&5
44809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44810 (exit $ac_status); }; }; then
44811 eval "$as_ac_var=yes"
44813 echo "$as_me: failed program was:" >&5
44814 sed 's/^/| /' conftest.$ac_ext >&5
44816 eval "$as_ac_var=no"
44818 rm -f conftest.err conftest.$ac_objext \
44819 conftest$ac_exeext conftest.$ac_ext
44821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44823 if test `eval echo '${'$as_ac_var'}'` = yes; then
44824 cat >>confdefs.h <<_ACEOF
44825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44833 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
44834 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
44835 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
44836 echo $ECHO_N "(cached) $ECHO_C" >&6
44838 if test "$cross_compiling" = yes; then
44839 jm_cv_func_gettimeofday_clobber=yes
44841 cat >conftest.$ac_ext <<_ACEOF
44844 cat confdefs.h >>conftest.$ac_ext
44845 cat >>conftest.$ac_ext <<_ACEOF
44846 /* end confdefs.h. */
44849 #include <string.h>
44851 #if TIME_WITH_SYS_TIME
44852 # include <sys/time.h>
44855 # if HAVE_SYS_TIME_H
44856 # include <sys/time.h>
44862 #include <stdlib.h>
44869 struct tm saved_lt;
44871 lt = localtime (&t);
44873 gettimeofday (&tv, NULL);
44874 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
44881 rm -f conftest$ac_exeext
44882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44883 (eval $ac_link) 2>&5
44885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44888 (eval $ac_try) 2>&5
44890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44891 (exit $ac_status); }; }; then
44892 jm_cv_func_gettimeofday_clobber=no
44894 echo "$as_me: program exited with status $ac_status" >&5
44895 echo "$as_me: failed program was:" >&5
44896 sed 's/^/| /' conftest.$ac_ext >&5
44898 ( exit $ac_status )
44899 jm_cv_func_gettimeofday_clobber=yes
44901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44905 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
44906 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
44907 if test $jm_cv_func_gettimeofday_clobber = yes; then
44910 "gettimeofday.$ac_objext" | \
44911 *" gettimeofday.$ac_objext" | \
44912 "gettimeofday.$ac_objext "* | \
44913 *" gettimeofday.$ac_objext "* ) ;;
44914 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
44918 cat >>confdefs.h <<\_ACEOF
44919 #define gmtime rpl_gmtime
44923 cat >>confdefs.h <<\_ACEOF
44924 #define localtime rpl_localtime
44930 cat >>confdefs.h <<\_ACEOF
44931 #define gettimeofday rpl_gettimeofday
44935 cat >>confdefs.h <<\_ACEOF
44936 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
44996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44997 echo "$as_me:$LINENO: checking for $ac_func" >&5
44998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44999 if eval "test \"\${$as_ac_var+set}\" = set"; then
45000 echo $ECHO_N "(cached) $ECHO_C" >&6
45002 cat >conftest.$ac_ext <<_ACEOF
45005 cat confdefs.h >>conftest.$ac_ext
45006 cat >>conftest.$ac_ext <<_ACEOF
45007 /* end confdefs.h. */
45008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45010 #define $ac_func innocuous_$ac_func
45012 /* System header to define __stub macros and hopefully few prototypes,
45013 which can conflict with char $ac_func (); below.
45014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45015 <limits.h> exists even on freestanding compilers. */
45018 # include <limits.h>
45020 # include <assert.h>
45025 /* Override any gcc2 internal prototype to avoid an error. */
45030 /* We use char because int might match the return type of a gcc2
45031 builtin and then its argument prototype would still apply. */
45033 /* The GNU C library defines this for functions which it implements
45034 to always fail with ENOSYS. Some functions are actually named
45035 something starting with __ and the normal name is an alias. */
45036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45039 char (*f) () = $ac_func;
45048 return f != $ac_func;
45053 rm -f conftest.$ac_objext conftest$ac_exeext
45054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45055 (eval $ac_link) 2>conftest.er1
45057 grep -v '^ *+' conftest.er1 >conftest.err
45059 cat conftest.err >&5
45060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45061 (exit $ac_status); } &&
45062 { ac_try='test -z "$ac_c_werror_flag"
45063 || test ! -s conftest.err'
45064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45065 (eval $ac_try) 2>&5
45067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45068 (exit $ac_status); }; } &&
45069 { ac_try='test -s conftest$ac_exeext'
45070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45071 (eval $ac_try) 2>&5
45073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45074 (exit $ac_status); }; }; then
45075 eval "$as_ac_var=yes"
45077 echo "$as_me: failed program was:" >&5
45078 sed 's/^/| /' conftest.$ac_ext >&5
45080 eval "$as_ac_var=no"
45082 rm -f conftest.err conftest.$ac_objext \
45083 conftest$ac_exeext conftest.$ac_ext
45085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45087 if test `eval echo '${'$as_ac_var'}'` = yes; then
45088 cat >>confdefs.h <<_ACEOF
45089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45099 for ac_func in setreuid setregid
45101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45102 echo "$as_me:$LINENO: checking for $ac_func" >&5
45103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45104 if eval "test \"\${$as_ac_var+set}\" = set"; then
45105 echo $ECHO_N "(cached) $ECHO_C" >&6
45107 cat >conftest.$ac_ext <<_ACEOF
45110 cat confdefs.h >>conftest.$ac_ext
45111 cat >>conftest.$ac_ext <<_ACEOF
45112 /* end confdefs.h. */
45113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45115 #define $ac_func innocuous_$ac_func
45117 /* System header to define __stub macros and hopefully few prototypes,
45118 which can conflict with char $ac_func (); below.
45119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45120 <limits.h> exists even on freestanding compilers. */
45123 # include <limits.h>
45125 # include <assert.h>
45130 /* Override any gcc2 internal prototype to avoid an error. */
45135 /* We use char because int might match the return type of a gcc2
45136 builtin and then its argument prototype would still apply. */
45138 /* The GNU C library defines this for functions which it implements
45139 to always fail with ENOSYS. Some functions are actually named
45140 something starting with __ and the normal name is an alias. */
45141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45144 char (*f) () = $ac_func;
45153 return f != $ac_func;
45158 rm -f conftest.$ac_objext conftest$ac_exeext
45159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45160 (eval $ac_link) 2>conftest.er1
45162 grep -v '^ *+' conftest.er1 >conftest.err
45164 cat conftest.err >&5
45165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45166 (exit $ac_status); } &&
45167 { ac_try='test -z "$ac_c_werror_flag"
45168 || test ! -s conftest.err'
45169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45170 (eval $ac_try) 2>&5
45172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45173 (exit $ac_status); }; } &&
45174 { ac_try='test -s conftest$ac_exeext'
45175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45176 (eval $ac_try) 2>&5
45178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179 (exit $ac_status); }; }; then
45180 eval "$as_ac_var=yes"
45182 echo "$as_me: failed program was:" >&5
45183 sed 's/^/| /' conftest.$ac_ext >&5
45185 eval "$as_ac_var=no"
45187 rm -f conftest.err conftest.$ac_objext \
45188 conftest$ac_exeext conftest.$ac_ext
45190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45192 if test `eval echo '${'$as_ac_var'}'` = yes; then
45193 cat >>confdefs.h <<_ACEOF
45194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45201 echo "$as_me:$LINENO: checking for working strtod" >&5
45202 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
45203 if test "${ac_cv_func_strtod+set}" = set; then
45204 echo $ECHO_N "(cached) $ECHO_C" >&6
45206 if test "$cross_compiling" = yes; then
45207 ac_cv_func_strtod=no
45209 cat >conftest.$ac_ext <<_ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h. */
45221 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
45222 char *string = " +69";
45225 value = strtod (string, &term);
45226 if (value != 69 || term != (string + 4))
45231 /* Under Solaris 2.4, strtod returns the wrong value for the
45232 terminating character under some conditions. */
45233 char *string = "NaN";
45235 strtod (string, &term);
45236 if (term != string && *(term - 1) == 0)
45243 rm -f conftest$ac_exeext
45244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45245 (eval $ac_link) 2>&5
45247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248 (exit $ac_status); } && { ac_try='./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_strtod=yes
45256 echo "$as_me: program exited with status $ac_status" >&5
45257 echo "$as_me: failed program was:" >&5
45258 sed 's/^/| /' conftest.$ac_ext >&5
45260 ( exit $ac_status )
45261 ac_cv_func_strtod=no
45263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45266 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
45267 echo "${ECHO_T}$ac_cv_func_strtod" >&6
45268 if test $ac_cv_func_strtod = no; then
45270 "strtod.$ac_objext" | \
45271 *" strtod.$ac_objext" | \
45272 "strtod.$ac_objext "* | \
45273 *" strtod.$ac_objext "* ) ;;
45274 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
45277 echo "$as_me:$LINENO: checking for pow" >&5
45278 echo $ECHO_N "checking for pow... $ECHO_C" >&6
45279 if test "${ac_cv_func_pow+set}" = set; then
45280 echo $ECHO_N "(cached) $ECHO_C" >&6
45282 cat >conftest.$ac_ext <<_ACEOF
45285 cat confdefs.h >>conftest.$ac_ext
45286 cat >>conftest.$ac_ext <<_ACEOF
45287 /* end confdefs.h. */
45288 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
45289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45290 #define pow innocuous_pow
45292 /* System header to define __stub macros and hopefully few prototypes,
45293 which can conflict with char pow (); below.
45294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45295 <limits.h> exists even on freestanding compilers. */
45298 # include <limits.h>
45300 # include <assert.h>
45305 /* Override any gcc2 internal prototype to avoid an error. */
45310 /* We use char because int might match the return type of a gcc2
45311 builtin and then its argument prototype would still apply. */
45313 /* The GNU C library defines this for functions which it implements
45314 to always fail with ENOSYS. Some functions are actually named
45315 something starting with __ and the normal name is an alias. */
45316 #if defined (__stub_pow) || defined (__stub___pow)
45319 char (*f) () = pow;
45333 rm -f conftest.$ac_objext conftest$ac_exeext
45334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45335 (eval $ac_link) 2>conftest.er1
45337 grep -v '^ *+' conftest.er1 >conftest.err
45339 cat conftest.err >&5
45340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341 (exit $ac_status); } &&
45342 { ac_try='test -z "$ac_c_werror_flag"
45343 || test ! -s conftest.err'
45344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45345 (eval $ac_try) 2>&5
45347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45348 (exit $ac_status); }; } &&
45349 { ac_try='test -s conftest$ac_exeext'
45350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45351 (eval $ac_try) 2>&5
45353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45354 (exit $ac_status); }; }; then
45357 echo "$as_me: failed program was:" >&5
45358 sed 's/^/| /' conftest.$ac_ext >&5
45362 rm -f conftest.err conftest.$ac_objext \
45363 conftest$ac_exeext conftest.$ac_ext
45365 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
45366 echo "${ECHO_T}$ac_cv_func_pow" >&6
45368 if test $ac_cv_func_pow = no; then
45369 echo "$as_me:$LINENO: checking for pow in -lm" >&5
45370 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
45371 if test "${ac_cv_lib_m_pow+set}" = set; then
45372 echo $ECHO_N "(cached) $ECHO_C" >&6
45374 ac_check_lib_save_LIBS=$LIBS
45376 cat >conftest.$ac_ext <<_ACEOF
45379 cat confdefs.h >>conftest.$ac_ext
45380 cat >>conftest.$ac_ext <<_ACEOF
45381 /* end confdefs.h. */
45383 /* Override any gcc2 internal prototype to avoid an error. */
45387 /* We use char because int might match the return type of a gcc2
45388 builtin and then its argument prototype would still apply. */
45398 rm -f conftest.$ac_objext conftest$ac_exeext
45399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45400 (eval $ac_link) 2>conftest.er1
45402 grep -v '^ *+' conftest.er1 >conftest.err
45404 cat conftest.err >&5
45405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45406 (exit $ac_status); } &&
45407 { ac_try='test -z "$ac_c_werror_flag"
45408 || test ! -s conftest.err'
45409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45410 (eval $ac_try) 2>&5
45412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413 (exit $ac_status); }; } &&
45414 { ac_try='test -s conftest$ac_exeext'
45415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45416 (eval $ac_try) 2>&5
45418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45419 (exit $ac_status); }; }; then
45420 ac_cv_lib_m_pow=yes
45422 echo "$as_me: failed program was:" >&5
45423 sed 's/^/| /' conftest.$ac_ext >&5
45427 rm -f conftest.err conftest.$ac_objext \
45428 conftest$ac_exeext conftest.$ac_ext
45429 LIBS=$ac_check_lib_save_LIBS
45431 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
45432 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
45433 if test $ac_cv_lib_m_pow = yes; then
45436 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
45437 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
45447 # See if linking `seq' requires -lm.
45448 # It does on nearly every system. The single exception (so far) is
45449 # BeOS which has all the math functions in the normal runtime library
45450 # and doesn't have a separate math library.
45454 static double x, y;
45458 cat >conftest.$ac_ext <<_ACEOF
45461 cat confdefs.h >>conftest.$ac_ext
45462 cat >>conftest.$ac_ext <<_ACEOF
45463 /* end confdefs.h. */
45473 rm -f conftest.$ac_objext conftest$ac_exeext
45474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45475 (eval $ac_link) 2>conftest.er1
45477 grep -v '^ *+' conftest.er1 >conftest.err
45479 cat conftest.err >&5
45480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45481 (exit $ac_status); } &&
45482 { ac_try='test -z "$ac_c_werror_flag"
45483 || test ! -s conftest.err'
45484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45485 (eval $ac_try) 2>&5
45487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488 (exit $ac_status); }; } &&
45489 { ac_try='test -s conftest$ac_exeext'
45490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45491 (eval $ac_try) 2>&5
45493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); }; }; then
45497 echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45500 ac_seq_save_LIBS="$LIBS"
45502 cat >conftest.$ac_ext <<_ACEOF
45505 cat confdefs.h >>conftest.$ac_ext
45506 cat >>conftest.$ac_ext <<_ACEOF
45507 /* end confdefs.h. */
45517 rm -f conftest.$ac_objext conftest$ac_exeext
45518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45519 (eval $ac_link) 2>conftest.er1
45521 grep -v '^ *+' conftest.er1 >conftest.err
45523 cat conftest.err >&5
45524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45525 (exit $ac_status); } &&
45526 { ac_try='test -z "$ac_c_werror_flag"
45527 || test ! -s conftest.err'
45528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45529 (eval $ac_try) 2>&5
45531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45532 (exit $ac_status); }; } &&
45533 { ac_try='test -s conftest$ac_exeext'
45534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45535 (eval $ac_try) 2>&5
45537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538 (exit $ac_status); }; }; then
45541 echo "$as_me: failed program was:" >&5
45542 sed 's/^/| /' conftest.$ac_ext >&5
45545 rm -f conftest.err conftest.$ac_objext \
45546 conftest$ac_exeext conftest.$ac_ext
45547 LIBS="$ac_seq_save_LIBS"
45550 rm -f conftest.err conftest.$ac_objext \
45551 conftest$ac_exeext conftest.$ac_ext
45554 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
45555 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
45556 if test "${am_cv_langinfo_codeset+set}" = set; then
45557 echo $ECHO_N "(cached) $ECHO_C" >&6
45559 cat >conftest.$ac_ext <<_ACEOF
45562 cat confdefs.h >>conftest.$ac_ext
45563 cat >>conftest.$ac_ext <<_ACEOF
45564 /* end confdefs.h. */
45565 #include <langinfo.h>
45569 char* cs = nl_langinfo(CODESET);
45574 rm -f conftest.$ac_objext conftest$ac_exeext
45575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45576 (eval $ac_link) 2>conftest.er1
45578 grep -v '^ *+' conftest.er1 >conftest.err
45580 cat conftest.err >&5
45581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582 (exit $ac_status); } &&
45583 { ac_try='test -z "$ac_c_werror_flag"
45584 || test ! -s conftest.err'
45585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45586 (eval $ac_try) 2>&5
45588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589 (exit $ac_status); }; } &&
45590 { ac_try='test -s conftest$ac_exeext'
45591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45592 (eval $ac_try) 2>&5
45594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45595 (exit $ac_status); }; }; then
45596 am_cv_langinfo_codeset=yes
45598 echo "$as_me: failed program was:" >&5
45599 sed 's/^/| /' conftest.$ac_ext >&5
45601 am_cv_langinfo_codeset=no
45603 rm -f conftest.err conftest.$ac_objext \
45604 conftest$ac_exeext conftest.$ac_ext
45607 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
45608 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
45609 if test $am_cv_langinfo_codeset = yes; then
45611 cat >>confdefs.h <<\_ACEOF
45612 #define HAVE_LANGINFO_CODESET 1
45618 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
45619 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
45620 if test "${ac_cv_gnu_library_2_1+set}" = set; then
45621 echo $ECHO_N "(cached) $ECHO_C" >&6
45623 cat >conftest.$ac_ext <<_ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h. */
45630 #include <features.h>
45631 #ifdef __GNU_LIBRARY__
45632 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
45638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45639 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
45640 ac_cv_gnu_library_2_1=yes
45642 ac_cv_gnu_library_2_1=no
45649 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
45650 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
45652 GLIBC21="$ac_cv_gnu_library_2_1"
45660 am_save_CPPFLAGS="$CPPFLAGS"
45662 for element in $INCICONV; do
45664 for x in $CPPFLAGS; do
45666 acl_save_prefix="$prefix"
45667 prefix="$acl_final_prefix"
45668 acl_save_exec_prefix="$exec_prefix"
45669 exec_prefix="$acl_final_exec_prefix"
45671 exec_prefix="$acl_save_exec_prefix"
45672 prefix="$acl_save_prefix"
45674 if test "X$x" = "X$element"; then
45679 if test -z "$haveit"; then
45680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45685 echo "$as_me:$LINENO: checking for iconv" >&5
45686 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
45687 if test "${am_cv_func_iconv+set}" = set; then
45688 echo $ECHO_N "(cached) $ECHO_C" >&6
45691 am_cv_func_iconv="no, consider installing GNU libiconv"
45693 cat >conftest.$ac_ext <<_ACEOF
45696 cat confdefs.h >>conftest.$ac_ext
45697 cat >>conftest.$ac_ext <<_ACEOF
45698 /* end confdefs.h. */
45699 #include <stdlib.h>
45704 iconv_t cd = iconv_open("","");
45705 iconv(cd,NULL,NULL,NULL,NULL);
45711 rm -f conftest.$ac_objext conftest$ac_exeext
45712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45713 (eval $ac_link) 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); } &&
45720 { ac_try='test -z "$ac_c_werror_flag"
45721 || test ! -s conftest.err'
45722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45723 (eval $ac_try) 2>&5
45725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45726 (exit $ac_status); }; } &&
45727 { ac_try='test -s conftest$ac_exeext'
45728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45729 (eval $ac_try) 2>&5
45731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732 (exit $ac_status); }; }; then
45733 am_cv_func_iconv=yes
45735 echo "$as_me: failed program was:" >&5
45736 sed 's/^/| /' conftest.$ac_ext >&5
45739 rm -f conftest.err conftest.$ac_objext \
45740 conftest$ac_exeext conftest.$ac_ext
45741 if test "$am_cv_func_iconv" != yes; then
45742 am_save_LIBS="$LIBS"
45743 LIBS="$LIBS $LIBICONV"
45744 cat >conftest.$ac_ext <<_ACEOF
45747 cat confdefs.h >>conftest.$ac_ext
45748 cat >>conftest.$ac_ext <<_ACEOF
45749 /* end confdefs.h. */
45750 #include <stdlib.h>
45755 iconv_t cd = iconv_open("","");
45756 iconv(cd,NULL,NULL,NULL,NULL);
45762 rm -f conftest.$ac_objext conftest$ac_exeext
45763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45764 (eval $ac_link) 2>conftest.er1
45766 grep -v '^ *+' conftest.er1 >conftest.err
45768 cat conftest.err >&5
45769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45770 (exit $ac_status); } &&
45771 { ac_try='test -z "$ac_c_werror_flag"
45772 || test ! -s conftest.err'
45773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45774 (eval $ac_try) 2>&5
45776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45777 (exit $ac_status); }; } &&
45778 { ac_try='test -s conftest$ac_exeext'
45779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45780 (eval $ac_try) 2>&5
45782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45783 (exit $ac_status); }; }; then
45784 am_cv_lib_iconv=yes
45785 am_cv_func_iconv=yes
45787 echo "$as_me: failed program was:" >&5
45788 sed 's/^/| /' conftest.$ac_ext >&5
45791 rm -f conftest.err conftest.$ac_objext \
45792 conftest$ac_exeext conftest.$ac_ext
45793 LIBS="$am_save_LIBS"
45797 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
45798 echo "${ECHO_T}$am_cv_func_iconv" >&6
45799 if test "$am_cv_func_iconv" = yes; then
45801 cat >>confdefs.h <<\_ACEOF
45802 #define HAVE_ICONV 1
45806 if test "$am_cv_lib_iconv" = yes; then
45807 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
45808 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
45809 echo "$as_me:$LINENO: result: $LIBICONV" >&5
45810 echo "${ECHO_T}$LIBICONV" >&6
45812 CPPFLAGS="$am_save_CPPFLAGS"
45819 if test "$am_cv_func_iconv" = yes; then
45820 echo "$as_me:$LINENO: checking for iconv declaration" >&5
45821 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
45822 if test "${am_cv_proto_iconv+set}" = set; then
45823 echo $ECHO_N "(cached) $ECHO_C" >&6
45826 cat >conftest.$ac_ext <<_ACEOF
45829 cat confdefs.h >>conftest.$ac_ext
45830 cat >>conftest.$ac_ext <<_ACEOF
45831 /* end confdefs.h. */
45833 #include <stdlib.h>
45839 #if defined(__STDC__) || defined(__cplusplus)
45840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
45853 rm -f conftest.$ac_objext
45854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45855 (eval $ac_compile) 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_objext'
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 am_cv_proto_iconv_arg1=""
45877 echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45880 am_cv_proto_iconv_arg1="const"
45882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45883 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);"
45886 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
45887 echo "$as_me:$LINENO: result: ${ac_t:-
45888 }$am_cv_proto_iconv" >&5
45889 echo "${ECHO_T}${ac_t:-
45890 }$am_cv_proto_iconv" >&6
45892 cat >>confdefs.h <<_ACEOF
45893 #define ICONV_CONST $am_cv_proto_iconv_arg1
45898 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
45899 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
45900 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
45901 echo $ECHO_N "(cached) $ECHO_C" >&6
45904 if test "$cross_compiling" = yes; then
45905 jm_cv_func_unlink_busy_text=no
45908 cat >conftest.$ac_ext <<_ACEOF
45911 cat confdefs.h >>conftest.$ac_ext
45912 cat >>conftest.$ac_ext <<_ACEOF
45913 /* end confdefs.h. */
45921 exit (unlink (argv[0]));
45925 rm -f conftest$ac_exeext
45926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45927 (eval $ac_link) 2>&5
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45932 (eval $ac_try) 2>&5
45934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45935 (exit $ac_status); }; }; then
45936 jm_cv_func_unlink_busy_text=yes
45938 echo "$as_me: program exited with status $ac_status" >&5
45939 echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45942 ( exit $ac_status )
45943 jm_cv_func_unlink_busy_text=no
45945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45950 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
45951 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
45953 if test $jm_cv_func_unlink_busy_text = no; then
45954 INSTALL=$ac_install_sh
45958 # These tests are for df.
45961 if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
45962 DF_PROG='df$(EXEEXT)'
45967 # If any of these functions don't exist (e.g. DJGPP 2.03),
45968 # use the corresponding stub.
45969 echo "$as_me:$LINENO: checking for fchdir" >&5
45970 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
45971 if test "${ac_cv_func_fchdir+set}" = set; then
45972 echo $ECHO_N "(cached) $ECHO_C" >&6
45974 cat >conftest.$ac_ext <<_ACEOF
45977 cat confdefs.h >>conftest.$ac_ext
45978 cat >>conftest.$ac_ext <<_ACEOF
45979 /* end confdefs.h. */
45980 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
45981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45982 #define fchdir innocuous_fchdir
45984 /* System header to define __stub macros and hopefully few prototypes,
45985 which can conflict with char fchdir (); below.
45986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45987 <limits.h> exists even on freestanding compilers. */
45990 # include <limits.h>
45992 # include <assert.h>
45997 /* Override any gcc2 internal prototype to avoid an error. */
46002 /* We use char because int might match the return type of a gcc2
46003 builtin and then its argument prototype would still apply. */
46005 /* The GNU C library defines this for functions which it implements
46006 to always fail with ENOSYS. Some functions are actually named
46007 something starting with __ and the normal name is an alias. */
46008 #if defined (__stub_fchdir) || defined (__stub___fchdir)
46011 char (*f) () = fchdir;
46020 return f != fchdir;
46025 rm -f conftest.$ac_objext conftest$ac_exeext
46026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46027 (eval $ac_link) 2>conftest.er1
46029 grep -v '^ *+' conftest.er1 >conftest.err
46031 cat conftest.err >&5
46032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033 (exit $ac_status); } &&
46034 { ac_try='test -z "$ac_c_werror_flag"
46035 || test ! -s conftest.err'
46036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46037 (eval $ac_try) 2>&5
46039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040 (exit $ac_status); }; } &&
46041 { ac_try='test -s conftest$ac_exeext'
46042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043 (eval $ac_try) 2>&5
46045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046 (exit $ac_status); }; }; then
46047 ac_cv_func_fchdir=yes
46049 echo "$as_me: failed program was:" >&5
46050 sed 's/^/| /' conftest.$ac_ext >&5
46052 ac_cv_func_fchdir=no
46054 rm -f conftest.err conftest.$ac_objext \
46055 conftest$ac_exeext conftest.$ac_ext
46057 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
46058 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
46059 if test $ac_cv_func_fchdir = yes; then
46063 "fchdir-stub.$ac_objext" | \
46064 *" fchdir-stub.$ac_objext" | \
46065 "fchdir-stub.$ac_objext "* | \
46066 *" fchdir-stub.$ac_objext "* ) ;;
46067 *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext" ;;
46072 echo "$as_me:$LINENO: checking for fchown" >&5
46073 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
46074 if test "${ac_cv_func_fchown+set}" = set; then
46075 echo $ECHO_N "(cached) $ECHO_C" >&6
46077 cat >conftest.$ac_ext <<_ACEOF
46080 cat confdefs.h >>conftest.$ac_ext
46081 cat >>conftest.$ac_ext <<_ACEOF
46082 /* end confdefs.h. */
46083 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
46084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46085 #define fchown innocuous_fchown
46087 /* System header to define __stub macros and hopefully few prototypes,
46088 which can conflict with char fchown (); below.
46089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46090 <limits.h> exists even on freestanding compilers. */
46093 # include <limits.h>
46095 # include <assert.h>
46100 /* Override any gcc2 internal prototype to avoid an error. */
46105 /* We use char because int might match the return type of a gcc2
46106 builtin and then its argument prototype would still apply. */
46108 /* The GNU C library defines this for functions which it implements
46109 to always fail with ENOSYS. Some functions are actually named
46110 something starting with __ and the normal name is an alias. */
46111 #if defined (__stub_fchown) || defined (__stub___fchown)
46114 char (*f) () = fchown;
46123 return f != fchown;
46128 rm -f conftest.$ac_objext conftest$ac_exeext
46129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46130 (eval $ac_link) 2>conftest.er1
46132 grep -v '^ *+' conftest.er1 >conftest.err
46134 cat conftest.err >&5
46135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46136 (exit $ac_status); } &&
46137 { ac_try='test -z "$ac_c_werror_flag"
46138 || test ! -s conftest.err'
46139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46140 (eval $ac_try) 2>&5
46142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143 (exit $ac_status); }; } &&
46144 { ac_try='test -s conftest$ac_exeext'
46145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46146 (eval $ac_try) 2>&5
46148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46149 (exit $ac_status); }; }; then
46150 ac_cv_func_fchown=yes
46152 echo "$as_me: failed program was:" >&5
46153 sed 's/^/| /' conftest.$ac_ext >&5
46155 ac_cv_func_fchown=no
46157 rm -f conftest.err conftest.$ac_objext \
46158 conftest$ac_exeext conftest.$ac_ext
46160 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
46161 echo "${ECHO_T}$ac_cv_func_fchown" >&6
46162 if test $ac_cv_func_fchown = yes; then
46166 "fchown-stub.$ac_objext" | \
46167 *" fchown-stub.$ac_objext" | \
46168 "fchown-stub.$ac_objext "* | \
46169 *" fchown-stub.$ac_objext "* ) ;;
46170 *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext" ;;
46179 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
46180 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
46181 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
46182 echo $ECHO_N "(cached) $ECHO_C" >&6
46184 cat >conftest.$ac_ext <<_ACEOF
46187 cat confdefs.h >>conftest.$ac_ext
46188 cat >>conftest.$ac_ext <<_ACEOF
46189 /* end confdefs.h. */
46190 #include <sys/types.h>
46191 #include <termios.h>
46197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46198 $EGREP "yes" >/dev/null 2>&1; then
46199 ac_cv_sys_tiocgwinsz_in_termios_h=yes
46201 ac_cv_sys_tiocgwinsz_in_termios_h=no
46206 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
46207 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
46209 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
46210 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
46211 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
46212 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
46213 echo $ECHO_N "(cached) $ECHO_C" >&6
46215 cat >conftest.$ac_ext <<_ACEOF
46218 cat confdefs.h >>conftest.$ac_ext
46219 cat >>conftest.$ac_ext <<_ACEOF
46220 /* end confdefs.h. */
46221 #include <sys/types.h>
46222 #include <sys/ioctl.h>
46228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46229 $EGREP "yes" >/dev/null 2>&1; then
46230 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
46232 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
46237 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
46238 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
46240 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
46242 cat >>confdefs.h <<\_ACEOF
46243 #define GWINSZ_IN_SYS_IOCTL 1
46249 echo "$as_me:$LINENO: checking POSIX termios" >&5
46250 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
46251 if test "${ac_cv_sys_posix_termios+set}" = set; then
46252 echo $ECHO_N "(cached) $ECHO_C" >&6
46254 cat >conftest.$ac_ext <<_ACEOF
46257 cat confdefs.h >>conftest.$ac_ext
46258 cat >>conftest.$ac_ext <<_ACEOF
46259 /* end confdefs.h. */
46260 #include <sys/types.h>
46261 #include <unistd.h>
46262 #include <termios.h>
46267 /* SunOS 4.0.3 has termios.h but not the library calls. */
46273 rm -f conftest.$ac_objext conftest$ac_exeext
46274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46275 (eval $ac_link) 2>conftest.er1
46277 grep -v '^ *+' conftest.er1 >conftest.err
46279 cat conftest.err >&5
46280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281 (exit $ac_status); } &&
46282 { ac_try='test -z "$ac_c_werror_flag"
46283 || test ! -s conftest.err'
46284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46285 (eval $ac_try) 2>&5
46287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46288 (exit $ac_status); }; } &&
46289 { ac_try='test -s conftest$ac_exeext'
46290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46291 (eval $ac_try) 2>&5
46293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294 (exit $ac_status); }; }; then
46295 ac_cv_sys_posix_termios=yes
46297 echo "$as_me: failed program was:" >&5
46298 sed 's/^/| /' conftest.$ac_ext >&5
46300 ac_cv_sys_posix_termios=no
46302 rm -f conftest.err conftest.$ac_objext \
46303 conftest$ac_exeext conftest.$ac_ext
46305 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
46306 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
46309 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
46310 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
46311 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
46312 echo $ECHO_N "(cached) $ECHO_C" >&6
46314 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
46315 if test $ac_cv_sys_posix_termios = yes; then
46316 cat >conftest.$ac_ext <<_ACEOF
46319 cat confdefs.h >>conftest.$ac_ext
46320 cat >>conftest.$ac_ext <<_ACEOF
46321 /* end confdefs.h. */
46322 #include <termios.h>
46327 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
46332 rm -f conftest.$ac_objext
46333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46334 (eval $ac_compile) 2>conftest.er1
46336 grep -v '^ *+' conftest.er1 >conftest.err
46338 cat conftest.err >&5
46339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340 (exit $ac_status); } &&
46341 { ac_try='test -z "$ac_c_werror_flag"
46342 || test ! -s conftest.err'
46343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46344 (eval $ac_try) 2>&5
46346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46347 (exit $ac_status); }; } &&
46348 { ac_try='test -s conftest.$ac_objext'
46349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46350 (eval $ac_try) 2>&5
46352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46353 (exit $ac_status); }; }; then
46356 echo "$as_me: failed program was:" >&5
46357 sed 's/^/| /' conftest.$ac_ext >&5
46360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46362 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
46363 cat >conftest.$ac_ext <<_ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h. */
46369 #include <sys/ptem.h>
46378 rm -f conftest.$ac_objext
46379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46380 (eval $ac_compile) 2>conftest.er1
46382 grep -v '^ *+' conftest.er1 >conftest.err
46384 cat conftest.err >&5
46385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46386 (exit $ac_status); } &&
46387 { ac_try='test -z "$ac_c_werror_flag"
46388 || test ! -s conftest.err'
46389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46390 (eval $ac_try) 2>&5
46392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46393 (exit $ac_status); }; } &&
46394 { ac_try='test -s conftest.$ac_objext'
46395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46396 (eval $ac_try) 2>&5
46398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399 (exit $ac_status); }; }; then
46402 echo "$as_me: failed program was:" >&5
46403 sed 's/^/| /' conftest.$ac_ext >&5
46405 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
46407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46410 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
46411 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
46412 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
46414 cat >>confdefs.h <<\_ACEOF
46415 #define WINSIZE_IN_PTEM 1
46420 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
46421 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
46422 if test "${utils_cv_localtime_cache+set}" = set; then
46423 echo $ECHO_N "(cached) $ECHO_C" >&6
46425 if test x$ac_cv_func_tzset = xyes; then
46426 if test "$cross_compiling" = yes; then
46427 # If we have tzset, assume the worst when cross-compiling.
46428 utils_cv_localtime_cache=yes
46430 cat >conftest.$ac_ext <<_ACEOF
46433 cat confdefs.h >>conftest.$ac_ext
46434 cat >>conftest.$ac_ext <<_ACEOF
46435 /* end confdefs.h. */
46438 # include <stdlib.h>
46440 extern char **environ;
46444 for (to = from = environ; (*to = *from); from++)
46445 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
46450 time_t now = time ((time_t *) 0);
46451 int hour_GMT0, hour_unset;
46452 if (putenv ("TZ=GMT0") != 0)
46454 hour_GMT0 = localtime (&now)->tm_hour;
46456 hour_unset = localtime (&now)->tm_hour;
46457 if (putenv ("TZ=PST8") != 0)
46459 if (localtime (&now)->tm_hour == hour_GMT0)
46462 if (localtime (&now)->tm_hour != hour_unset)
46467 rm -f conftest$ac_exeext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46469 (eval $ac_link) 2>&5
46471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46474 (eval $ac_try) 2>&5
46476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477 (exit $ac_status); }; }; then
46478 utils_cv_localtime_cache=no
46480 echo "$as_me: program exited with status $ac_status" >&5
46481 echo "$as_me: failed program was:" >&5
46482 sed 's/^/| /' conftest.$ac_ext >&5
46484 ( exit $ac_status )
46485 utils_cv_localtime_cache=yes
46487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46490 # If we lack tzset, report that localtime does not cache TZ,
46491 # since we can't invalidate the cache if we don't have tzset.
46492 utils_cv_localtime_cache=no
46495 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
46496 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
46497 if test $utils_cv_localtime_cache = yes; then
46499 cat >>confdefs.h <<\_ACEOF
46500 #define LOCALTIME_CACHE 1
46505 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
46507 for ac_func in initgroups
46509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46510 echo "$as_me:$LINENO: checking for $ac_func" >&5
46511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46512 if eval "test \"\${$as_ac_var+set}\" = set"; then
46513 echo $ECHO_N "(cached) $ECHO_C" >&6
46515 cat >conftest.$ac_ext <<_ACEOF
46518 cat confdefs.h >>conftest.$ac_ext
46519 cat >>conftest.$ac_ext <<_ACEOF
46520 /* end confdefs.h. */
46521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46523 #define $ac_func innocuous_$ac_func
46525 /* System header to define __stub macros and hopefully few prototypes,
46526 which can conflict with char $ac_func (); below.
46527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46528 <limits.h> exists even on freestanding compilers. */
46531 # include <limits.h>
46533 # include <assert.h>
46538 /* Override any gcc2 internal prototype to avoid an error. */
46543 /* We use char because int might match the return type of a gcc2
46544 builtin and then its argument prototype would still apply. */
46546 /* The GNU C library defines this for functions which it implements
46547 to always fail with ENOSYS. Some functions are actually named
46548 something starting with __ and the normal name is an alias. */
46549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46552 char (*f) () = $ac_func;
46561 return f != $ac_func;
46566 rm -f conftest.$ac_objext conftest$ac_exeext
46567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46568 (eval $ac_link) 2>conftest.er1
46570 grep -v '^ *+' conftest.er1 >conftest.err
46572 cat conftest.err >&5
46573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46574 (exit $ac_status); } &&
46575 { ac_try='test -z "$ac_c_werror_flag"
46576 || test ! -s conftest.err'
46577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46578 (eval $ac_try) 2>&5
46580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46581 (exit $ac_status); }; } &&
46582 { ac_try='test -s conftest$ac_exeext'
46583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46584 (eval $ac_try) 2>&5
46586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46587 (exit $ac_status); }; }; then
46588 eval "$as_ac_var=yes"
46590 echo "$as_me: failed program was:" >&5
46591 sed 's/^/| /' conftest.$ac_ext >&5
46593 eval "$as_ac_var=no"
46595 rm -f conftest.err conftest.$ac_objext \
46596 conftest$ac_exeext conftest.$ac_ext
46598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46600 if test `eval echo '${'$as_ac_var'}'` = yes; then
46601 cat >>confdefs.h <<_ACEOF
46602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46608 if test $ac_cv_func_initgroups = no; then
46610 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
46611 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
46612 if test "${ac_cv_lib_os_initgroups+set}" = set; then
46613 echo $ECHO_N "(cached) $ECHO_C" >&6
46615 ac_check_lib_save_LIBS=$LIBS
46617 cat >conftest.$ac_ext <<_ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h. */
46624 /* Override any gcc2 internal prototype to avoid an error. */
46628 /* We use char because int might match the return type of a gcc2
46629 builtin and then its argument prototype would still apply. */
46630 char initgroups ();
46639 rm -f conftest.$ac_objext conftest$ac_exeext
46640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46641 (eval $ac_link) 2>conftest.er1
46643 grep -v '^ *+' conftest.er1 >conftest.err
46645 cat conftest.err >&5
46646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647 (exit $ac_status); } &&
46648 { ac_try='test -z "$ac_c_werror_flag"
46649 || test ! -s conftest.err'
46650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46651 (eval $ac_try) 2>&5
46653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46654 (exit $ac_status); }; } &&
46655 { ac_try='test -s conftest$ac_exeext'
46656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657 (eval $ac_try) 2>&5
46659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660 (exit $ac_status); }; }; then
46661 ac_cv_lib_os_initgroups=yes
46663 echo "$as_me: failed program was:" >&5
46664 sed 's/^/| /' conftest.$ac_ext >&5
46666 ac_cv_lib_os_initgroups=no
46668 rm -f conftest.err conftest.$ac_objext \
46669 conftest$ac_exeext conftest.$ac_ext
46670 LIBS=$ac_check_lib_save_LIBS
46672 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
46673 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
46674 if test $ac_cv_lib_os_initgroups = yes; then
46675 cat >>confdefs.h <<_ACEOF
46676 #define HAVE_LIBOS 1
46686 for ac_func in syslog
46688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46689 echo "$as_me:$LINENO: checking for $ac_func" >&5
46690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46691 if eval "test \"\${$as_ac_var+set}\" = set"; then
46692 echo $ECHO_N "(cached) $ECHO_C" >&6
46694 cat >conftest.$ac_ext <<_ACEOF
46697 cat confdefs.h >>conftest.$ac_ext
46698 cat >>conftest.$ac_ext <<_ACEOF
46699 /* end confdefs.h. */
46700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46702 #define $ac_func innocuous_$ac_func
46704 /* System header to define __stub macros and hopefully few prototypes,
46705 which can conflict with char $ac_func (); below.
46706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46707 <limits.h> exists even on freestanding compilers. */
46710 # include <limits.h>
46712 # include <assert.h>
46717 /* Override any gcc2 internal prototype to avoid an error. */
46722 /* We use char because int might match the return type of a gcc2
46723 builtin and then its argument prototype would still apply. */
46725 /* The GNU C library defines this for functions which it implements
46726 to always fail with ENOSYS. Some functions are actually named
46727 something starting with __ and the normal name is an alias. */
46728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46731 char (*f) () = $ac_func;
46740 return f != $ac_func;
46745 rm -f conftest.$ac_objext conftest$ac_exeext
46746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46747 (eval $ac_link) 2>conftest.er1
46749 grep -v '^ *+' conftest.er1 >conftest.err
46751 cat conftest.err >&5
46752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46753 (exit $ac_status); } &&
46754 { ac_try='test -z "$ac_c_werror_flag"
46755 || test ! -s conftest.err'
46756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46757 (eval $ac_try) 2>&5
46759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760 (exit $ac_status); }; } &&
46761 { ac_try='test -s conftest$ac_exeext'
46762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46763 (eval $ac_try) 2>&5
46765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46766 (exit $ac_status); }; }; then
46767 eval "$as_ac_var=yes"
46769 echo "$as_me: failed program was:" >&5
46770 sed 's/^/| /' conftest.$ac_ext >&5
46772 eval "$as_ac_var=no"
46774 rm -f conftest.err conftest.$ac_objext \
46775 conftest$ac_exeext conftest.$ac_ext
46777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46779 if test `eval echo '${'$as_ac_var'}'` = yes; then
46780 cat >>confdefs.h <<_ACEOF
46781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46787 if test $ac_cv_func_syslog = no; then
46788 # syslog is not in the default libraries. See if it's in some other.
46789 for lib in bsd socket inet; do
46790 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
46791 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
46792 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
46793 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
46794 echo $ECHO_N "(cached) $ECHO_C" >&6
46796 ac_check_lib_save_LIBS=$LIBS
46797 LIBS="-l$lib $LIBS"
46798 cat >conftest.$ac_ext <<_ACEOF
46801 cat confdefs.h >>conftest.$ac_ext
46802 cat >>conftest.$ac_ext <<_ACEOF
46803 /* end confdefs.h. */
46805 /* Override any gcc2 internal prototype to avoid an error. */
46809 /* We use char because int might match the return type of a gcc2
46810 builtin and then its argument prototype would still apply. */
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_Lib=yes"
46844 echo "$as_me: failed program was:" >&5
46845 sed 's/^/| /' conftest.$ac_ext >&5
46847 eval "$as_ac_Lib=no"
46849 rm -f conftest.err conftest.$ac_objext \
46850 conftest$ac_exeext conftest.$ac_ext
46851 LIBS=$ac_check_lib_save_LIBS
46853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
46854 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
46855 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46857 cat >>confdefs.h <<\_ACEOF
46858 #define HAVE_SYSLOG 1
46861 LIBS="$LIBS -l$lib"; break
46867 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
46868 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
46869 if test "${utils_cv_func_setpriority+set}" = set; then
46870 echo $ECHO_N "(cached) $ECHO_C" >&6
46872 cat >conftest.$ac_ext <<_ACEOF
46875 cat confdefs.h >>conftest.$ac_ext
46876 cat >>conftest.$ac_ext <<_ACEOF
46877 /* end confdefs.h. */
46878 #include <sys/time.h>
46879 #include <sys/resource.h>
46883 setpriority(0, 0, 0);
46888 rm -f conftest.$ac_objext conftest$ac_exeext
46889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46890 (eval $ac_link) 2>conftest.er1
46892 grep -v '^ *+' conftest.er1 >conftest.err
46894 cat conftest.err >&5
46895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46896 (exit $ac_status); } &&
46897 { ac_try='test -z "$ac_c_werror_flag"
46898 || test ! -s conftest.err'
46899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46900 (eval $ac_try) 2>&5
46902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46903 (exit $ac_status); }; } &&
46904 { ac_try='test -s conftest$ac_exeext'
46905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46906 (eval $ac_try) 2>&5
46908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46909 (exit $ac_status); }; }; then
46910 utils_cv_func_setpriority=yes
46912 echo "$as_me: failed program was:" >&5
46913 sed 's/^/| /' conftest.$ac_ext >&5
46915 utils_cv_func_setpriority=no
46917 rm -f conftest.err conftest.$ac_objext \
46918 conftest$ac_exeext conftest.$ac_ext
46921 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
46922 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
46923 if test $utils_cv_func_setpriority = yes; then
46924 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
46927 echo "$as_me:$LINENO: checking for nice function" >&5
46928 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
46929 if test "${utils_cv_func_nice+set}" = set; then
46930 echo $ECHO_N "(cached) $ECHO_C" >&6
46932 cat >conftest.$ac_ext <<_ACEOF
46935 cat confdefs.h >>conftest.$ac_ext
46936 cat >>conftest.$ac_ext <<_ACEOF
46937 /* end confdefs.h. */
46947 rm -f conftest.$ac_objext conftest$ac_exeext
46948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46949 (eval $ac_link) 2>conftest.er1
46951 grep -v '^ *+' conftest.er1 >conftest.err
46953 cat conftest.err >&5
46954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955 (exit $ac_status); } &&
46956 { ac_try='test -z "$ac_c_werror_flag"
46957 || test ! -s conftest.err'
46958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46959 (eval $ac_try) 2>&5
46961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46962 (exit $ac_status); }; } &&
46963 { ac_try='test -s conftest$ac_exeext'
46964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46965 (eval $ac_try) 2>&5
46967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968 (exit $ac_status); }; }; then
46969 utils_cv_func_nice=yes
46971 echo "$as_me: failed program was:" >&5
46972 sed 's/^/| /' conftest.$ac_ext >&5
46974 utils_cv_func_nice=no
46976 rm -f conftest.err conftest.$ac_objext \
46977 conftest$ac_exeext conftest.$ac_ext
46980 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
46981 echo "${ECHO_T}$utils_cv_func_nice" >&6
46982 if test $utils_cv_func_nice = yes; then
46984 cat >>confdefs.h <<\_ACEOF
46985 #define NICE_PRIORITY 1
46988 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
46996 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
46997 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
46998 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
46999 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
47000 MAN="$MAN pinky.1 users.1 who.1"
47004 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
47005 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
47006 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
47007 echo $ECHO_N "(cached) $ECHO_C" >&6
47009 cat >conftest.$ac_ext <<_ACEOF
47012 cat confdefs.h >>conftest.$ac_ext
47013 cat >>conftest.$ac_ext <<_ACEOF
47014 /* end confdefs.h. */
47015 #include <sys/types.h>
47020 struct utmp ut; ut.ut_host;
47025 rm -f conftest.$ac_objext conftest$ac_exeext
47026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47027 (eval $ac_link) 2>conftest.er1
47029 grep -v '^ *+' conftest.er1 >conftest.err
47031 cat conftest.err >&5
47032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47033 (exit $ac_status); } &&
47034 { ac_try='test -z "$ac_c_werror_flag"
47035 || test ! -s conftest.err'
47036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47037 (eval $ac_try) 2>&5
47039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040 (exit $ac_status); }; } &&
47041 { ac_try='test -s conftest$ac_exeext'
47042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47043 (eval $ac_try) 2>&5
47045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47046 (exit $ac_status); }; }; then
47047 su_cv_func_ut_host_in_utmp=yes
47049 echo "$as_me: failed program was:" >&5
47050 sed 's/^/| /' conftest.$ac_ext >&5
47052 su_cv_func_ut_host_in_utmp=no
47054 rm -f conftest.err conftest.$ac_objext \
47055 conftest$ac_exeext conftest.$ac_ext
47058 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
47059 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
47060 if test $su_cv_func_ut_host_in_utmp = yes; then
47063 cat >>confdefs.h <<\_ACEOF
47064 #define HAVE_UT_HOST 1
47069 if test -z "$have_ut_host"; then
47070 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
47071 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
47072 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
47073 echo $ECHO_N "(cached) $ECHO_C" >&6
47075 cat >conftest.$ac_ext <<_ACEOF
47078 cat confdefs.h >>conftest.$ac_ext
47079 cat >>conftest.$ac_ext <<_ACEOF
47080 /* end confdefs.h. */
47081 #include <sys/types.h>
47086 struct utmpx ut; ut.ut_host;
47091 rm -f conftest.$ac_objext conftest$ac_exeext
47092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47093 (eval $ac_link) 2>conftest.er1
47095 grep -v '^ *+' conftest.er1 >conftest.err
47097 cat conftest.err >&5
47098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099 (exit $ac_status); } &&
47100 { ac_try='test -z "$ac_c_werror_flag"
47101 || test ! -s conftest.err'
47102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47103 (eval $ac_try) 2>&5
47105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47106 (exit $ac_status); }; } &&
47107 { ac_try='test -s conftest$ac_exeext'
47108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47109 (eval $ac_try) 2>&5
47111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47112 (exit $ac_status); }; }; then
47113 su_cv_func_ut_host_in_utmpx=yes
47115 echo "$as_me: failed program was:" >&5
47116 sed 's/^/| /' conftest.$ac_ext >&5
47118 su_cv_func_ut_host_in_utmpx=no
47120 rm -f conftest.err conftest.$ac_objext \
47121 conftest$ac_exeext conftest.$ac_ext
47124 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
47125 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
47126 if test $su_cv_func_ut_host_in_utmpx = yes; then
47128 cat >>confdefs.h <<\_ACEOF
47129 #define HAVE_UTMPX_H 1
47133 cat >>confdefs.h <<\_ACEOF
47134 #define HAVE_UT_HOST 1
47142 for ac_func in sysctl
47144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47145 echo "$as_me:$LINENO: checking for $ac_func" >&5
47146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47147 if eval "test \"\${$as_ac_var+set}\" = set"; then
47148 echo $ECHO_N "(cached) $ECHO_C" >&6
47150 cat >conftest.$ac_ext <<_ACEOF
47153 cat confdefs.h >>conftest.$ac_ext
47154 cat >>conftest.$ac_ext <<_ACEOF
47155 /* end confdefs.h. */
47156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47158 #define $ac_func innocuous_$ac_func
47160 /* System header to define __stub macros and hopefully few prototypes,
47161 which can conflict with char $ac_func (); below.
47162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47163 <limits.h> exists even on freestanding compilers. */
47166 # include <limits.h>
47168 # include <assert.h>
47173 /* Override any gcc2 internal prototype to avoid an error. */
47178 /* We use char because int might match the return type of a gcc2
47179 builtin and then its argument prototype would still apply. */
47181 /* The GNU C library defines this for functions which it implements
47182 to always fail with ENOSYS. Some functions are actually named
47183 something starting with __ and the normal name is an alias. */
47184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47187 char (*f) () = $ac_func;
47196 return f != $ac_func;
47201 rm -f conftest.$ac_objext conftest$ac_exeext
47202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47203 (eval $ac_link) 2>conftest.er1
47205 grep -v '^ *+' conftest.er1 >conftest.err
47207 cat conftest.err >&5
47208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209 (exit $ac_status); } &&
47210 { ac_try='test -z "$ac_c_werror_flag"
47211 || test ! -s conftest.err'
47212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47213 (eval $ac_try) 2>&5
47215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47216 (exit $ac_status); }; } &&
47217 { ac_try='test -s conftest$ac_exeext'
47218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47219 (eval $ac_try) 2>&5
47221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47222 (exit $ac_status); }; }; then
47223 eval "$as_ac_var=yes"
47225 echo "$as_me: failed program was:" >&5
47226 sed 's/^/| /' conftest.$ac_ext >&5
47228 eval "$as_ac_var=no"
47230 rm -f conftest.err conftest.$ac_objext \
47231 conftest$ac_exeext conftest.$ac_ext
47233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47235 if test `eval echo '${'$as_ac_var'}'` = yes; then
47236 cat >>confdefs.h <<_ACEOF
47237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47244 for ac_header in sys/sysctl.h
47246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47248 echo "$as_me:$LINENO: checking for $ac_header" >&5
47249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47251 echo $ECHO_N "(cached) $ECHO_C" >&6
47253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47256 # Is the header compilable?
47257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47259 cat >conftest.$ac_ext <<_ACEOF
47262 cat confdefs.h >>conftest.$ac_ext
47263 cat >>conftest.$ac_ext <<_ACEOF
47264 /* end confdefs.h. */
47265 $ac_includes_default
47266 #include <$ac_header>
47268 rm -f conftest.$ac_objext
47269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47270 (eval $ac_compile) 2>conftest.er1
47272 grep -v '^ *+' conftest.er1 >conftest.err
47274 cat conftest.err >&5
47275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47276 (exit $ac_status); } &&
47277 { ac_try='test -z "$ac_c_werror_flag"
47278 || test ! -s conftest.err'
47279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47280 (eval $ac_try) 2>&5
47282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47283 (exit $ac_status); }; } &&
47284 { ac_try='test -s conftest.$ac_objext'
47285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47286 (eval $ac_try) 2>&5
47288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47289 (exit $ac_status); }; }; then
47290 ac_header_compiler=yes
47292 echo "$as_me: failed program was:" >&5
47293 sed 's/^/| /' conftest.$ac_ext >&5
47295 ac_header_compiler=no
47297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47299 echo "${ECHO_T}$ac_header_compiler" >&6
47301 # Is the header present?
47302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47304 cat >conftest.$ac_ext <<_ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h. */
47310 #include <$ac_header>
47312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47315 grep -v '^ *+' conftest.er1 >conftest.err
47317 cat conftest.err >&5
47318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47319 (exit $ac_status); } >/dev/null; then
47320 if test -s conftest.err; then
47321 ac_cpp_err=$ac_c_preproc_warn_flag
47322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47329 if test -z "$ac_cpp_err"; then
47330 ac_header_preproc=yes
47332 echo "$as_me: failed program was:" >&5
47333 sed 's/^/| /' conftest.$ac_ext >&5
47335 ac_header_preproc=no
47337 rm -f conftest.err conftest.$ac_ext
47338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47339 echo "${ECHO_T}$ac_header_preproc" >&6
47341 # So? What about this header?
47342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47348 ac_header_preproc=yes
47351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47365 ## ------------------------------------ ##
47366 ## Report this to bug-coreutils@gnu.org ##
47367 ## ------------------------------------ ##
47370 sed "s/^/$as_me: WARNING: /" >&2
47373 echo "$as_me:$LINENO: checking for $ac_header" >&5
47374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47376 echo $ECHO_N "(cached) $ECHO_C" >&6
47378 eval "$as_ac_Header=\$ac_header_preproc"
47380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47385 cat >>confdefs.h <<_ACEOF
47386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47393 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
47394 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
47395 if test "${gnulib_cv_have_boot_time+set}" = set; then
47396 echo $ECHO_N "(cached) $ECHO_C" >&6
47399 cat >conftest.$ac_ext <<_ACEOF
47402 cat confdefs.h >>conftest.$ac_ext
47403 cat >>conftest.$ac_ext <<_ACEOF
47404 /* end confdefs.h. */
47405 $ac_includes_default
47406 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
47407 # include <sys/param.h> /* needed for OpenBSD 3.0 */
47408 # include <sys/sysctl.h>
47410 #ifdef HAVE_UTMPX_H
47411 # include <utmpx.h>
47420 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
47421 /* your system *does* have the infrastructure to determine boot time */
47423 please_tell_us_how_to_determine_boot_time_on_your_system
47430 rm -f conftest.$ac_objext
47431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47432 (eval $ac_compile) 2>conftest.er1
47434 grep -v '^ *+' conftest.er1 >conftest.err
47436 cat conftest.err >&5
47437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47438 (exit $ac_status); } &&
47439 { ac_try='test -z "$ac_c_werror_flag"
47440 || test ! -s conftest.err'
47441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47442 (eval $ac_try) 2>&5
47444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47445 (exit $ac_status); }; } &&
47446 { ac_try='test -s conftest.$ac_objext'
47447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47448 (eval $ac_try) 2>&5
47450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47451 (exit $ac_status); }; }; then
47452 gnulib_cv_have_boot_time=yes
47454 echo "$as_me: failed program was:" >&5
47455 sed 's/^/| /' conftest.$ac_ext >&5
47457 gnulib_cv_have_boot_time=no
47459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47462 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
47463 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
47464 if test $gnulib_cv_have_boot_time = yes; then
47465 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
47466 MAN="$MAN uptime.1"
47471 echo "$as_me:$LINENO: checking POSIX termios" >&5
47472 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
47473 if test "${ac_cv_sys_posix_termios+set}" = set; then
47474 echo $ECHO_N "(cached) $ECHO_C" >&6
47476 cat >conftest.$ac_ext <<_ACEOF
47479 cat confdefs.h >>conftest.$ac_ext
47480 cat >>conftest.$ac_ext <<_ACEOF
47481 /* end confdefs.h. */
47482 #include <sys/types.h>
47483 #include <unistd.h>
47484 #include <termios.h>
47489 /* SunOS 4.0.3 has termios.h but not the library calls. */
47495 rm -f conftest.$ac_objext conftest$ac_exeext
47496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47497 (eval $ac_link) 2>conftest.er1
47499 grep -v '^ *+' conftest.er1 >conftest.err
47501 cat conftest.err >&5
47502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503 (exit $ac_status); } &&
47504 { ac_try='test -z "$ac_c_werror_flag"
47505 || test ! -s conftest.err'
47506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47507 (eval $ac_try) 2>&5
47509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510 (exit $ac_status); }; } &&
47511 { ac_try='test -s conftest$ac_exeext'
47512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47513 (eval $ac_try) 2>&5
47515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47516 (exit $ac_status); }; }; then
47517 ac_cv_sys_posix_termios=yes
47519 echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47522 ac_cv_sys_posix_termios=no
47524 rm -f conftest.err conftest.$ac_objext \
47525 conftest$ac_exeext conftest.$ac_ext
47527 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
47528 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
47531 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
47532 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
47533 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
47534 echo $ECHO_N "(cached) $ECHO_C" >&6
47536 jm_cv_sys_tiocgwinsz_needs_termios_h=no
47538 if test $ac_cv_sys_posix_termios = yes; then
47539 cat >conftest.$ac_ext <<_ACEOF
47542 cat confdefs.h >>conftest.$ac_ext
47543 cat >>conftest.$ac_ext <<_ACEOF
47544 /* end confdefs.h. */
47545 #include <sys/types.h>
47546 # include <termios.h>
47552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47553 $EGREP "yes" >/dev/null 2>&1; then
47554 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
47561 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
47562 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
47565 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
47566 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
47567 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
47568 echo $ECHO_N "(cached) $ECHO_C" >&6
47570 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
47572 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
47573 cat >conftest.$ac_ext <<_ACEOF
47576 cat confdefs.h >>conftest.$ac_ext
47577 cat >>conftest.$ac_ext <<_ACEOF
47578 /* end confdefs.h. */
47579 #include <sys/types.h>
47580 # include <sys/ioctl.h>
47586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47587 $EGREP "yes" >/dev/null 2>&1; then
47588 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
47595 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
47596 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
47597 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
47599 cat >>confdefs.h <<\_ACEOF
47600 #define GWINSZ_IN_SYS_IOCTL 1
47606 if test $ac_cv_sys_posix_termios = yes; then
47607 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
47609 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
47610 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
47611 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
47612 echo $ECHO_N "(cached) $ECHO_C" >&6
47614 cat >conftest.$ac_ext <<_ACEOF
47617 cat confdefs.h >>conftest.$ac_ext
47618 cat >>conftest.$ac_ext <<_ACEOF
47619 /* end confdefs.h. */
47620 #include <termios.h>
47625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47626 $EGREP "yes" >/dev/null 2>&1; then
47627 su_cv_sys_termios_needs_xopen_source=no
47629 cat >conftest.$ac_ext <<_ACEOF
47632 cat confdefs.h >>conftest.$ac_ext
47633 cat >>conftest.$ac_ext <<_ACEOF
47634 /* end confdefs.h. */
47635 #define _XOPEN_SOURCE
47636 #include <termios.h>
47641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47642 $EGREP "yes" >/dev/null 2>&1; then
47643 su_cv_sys_termios_needs_xopen_source=yes
47645 su_cv_sys_termios_needs_xopen_source=no
47654 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
47655 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
47656 test $su_cv_sys_termios_needs_xopen_source = yes &&
47658 cat >>confdefs.h <<\_ACEOF
47659 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
47663 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
47664 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
47665 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
47666 echo $ECHO_N "(cached) $ECHO_C" >&6
47668 cat >conftest.$ac_ext <<_ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h. */
47674 #if TERMIOS_NEEDS_XOPEN_SOURCE
47675 #define _XOPEN_SOURCE
47677 #include <sys/types.h>
47678 #include <termios.h>
47682 struct termios t; t.c_line;
47687 rm -f conftest.$ac_objext conftest$ac_exeext
47688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47689 (eval $ac_link) 2>conftest.er1
47691 grep -v '^ *+' conftest.er1 >conftest.err
47693 cat conftest.err >&5
47694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695 (exit $ac_status); } &&
47696 { ac_try='test -z "$ac_c_werror_flag"
47697 || test ! -s conftest.err'
47698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47699 (eval $ac_try) 2>&5
47701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47702 (exit $ac_status); }; } &&
47703 { ac_try='test -s conftest$ac_exeext'
47704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47705 (eval $ac_try) 2>&5
47707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708 (exit $ac_status); }; }; then
47709 su_cv_sys_c_line_in_termios=yes
47711 echo "$as_me: failed program was:" >&5
47712 sed 's/^/| /' conftest.$ac_ext >&5
47714 su_cv_sys_c_line_in_termios=no
47716 rm -f conftest.err conftest.$ac_objext \
47717 conftest$ac_exeext conftest.$ac_ext
47720 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
47721 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
47722 test $su_cv_sys_c_line_in_termios = yes \
47724 cat >>confdefs.h <<\_ACEOF
47725 #define HAVE_C_LINE 1
47730 # FIXME: note that this macro appears above, too.
47731 # I'm leaving it here for now. This whole thing needs to be modernized...
47733 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
47734 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
47735 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
47736 echo $ECHO_N "(cached) $ECHO_C" >&6
47738 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
47739 if test $ac_cv_sys_posix_termios = yes; then
47740 cat >conftest.$ac_ext <<_ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h. */
47746 #include <termios.h>
47751 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
47756 rm -f conftest.$ac_objext
47757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47758 (eval $ac_compile) 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_objext'
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
47780 echo "$as_me: failed program was:" >&5
47781 sed 's/^/| /' conftest.$ac_ext >&5
47784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47786 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
47787 cat >conftest.$ac_ext <<_ACEOF
47790 cat confdefs.h >>conftest.$ac_ext
47791 cat >>conftest.$ac_ext <<_ACEOF
47792 /* end confdefs.h. */
47793 #include <sys/ptem.h>
47802 rm -f conftest.$ac_objext
47803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47804 (eval $ac_compile) 2>conftest.er1
47806 grep -v '^ *+' conftest.er1 >conftest.err
47808 cat conftest.err >&5
47809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47810 (exit $ac_status); } &&
47811 { ac_try='test -z "$ac_c_werror_flag"
47812 || test ! -s conftest.err'
47813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47814 (eval $ac_try) 2>&5
47816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47817 (exit $ac_status); }; } &&
47818 { ac_try='test -s conftest.$ac_objext'
47819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47820 (eval $ac_try) 2>&5
47822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47823 (exit $ac_status); }; }; then
47826 echo "$as_me: failed program was:" >&5
47827 sed 's/^/| /' conftest.$ac_ext >&5
47829 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
47831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47834 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
47835 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
47836 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
47838 cat >>confdefs.h <<\_ACEOF
47839 #define WINSIZE_IN_PTEM 1
47845 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
47846 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
47847 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
47848 echo $ECHO_N "(cached) $ECHO_C" >&6
47850 jm_cv_sys_tiocgwinsz_needs_termios_h=no
47852 if test $ac_cv_sys_posix_termios = yes; then
47853 cat >conftest.$ac_ext <<_ACEOF
47856 cat confdefs.h >>conftest.$ac_ext
47857 cat >>conftest.$ac_ext <<_ACEOF
47858 /* end confdefs.h. */
47859 #include <sys/types.h>
47860 # include <termios.h>
47866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47867 $EGREP "yes" >/dev/null 2>&1; then
47868 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
47875 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
47876 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
47879 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
47880 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
47881 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
47882 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
47883 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
47884 echo $ECHO_N "(cached) $ECHO_C" >&6
47886 cat >conftest.$ac_ext <<_ACEOF
47889 cat confdefs.h >>conftest.$ac_ext
47890 cat >>conftest.$ac_ext <<_ACEOF
47891 /* end confdefs.h. */
47892 #include <sys/types.h>
47893 #ifdef WINSIZE_IN_PTEM
47894 # include <sys/stream.h>
47895 # include <sys/ptem.h>
47897 #include <sys/ioctl.h>
47898 #include <sys/tty.h>
47899 #include <sys/pty.h>
47903 int x = TIOCGWINSZ;
47908 rm -f conftest.$ac_objext conftest$ac_exeext
47909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47910 (eval $ac_link) 2>conftest.er1
47912 grep -v '^ *+' conftest.er1 >conftest.err
47914 cat conftest.err >&5
47915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47916 (exit $ac_status); } &&
47917 { ac_try='test -z "$ac_c_werror_flag"
47918 || test ! -s conftest.err'
47919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47920 (eval $ac_try) 2>&5
47922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47923 (exit $ac_status); }; } &&
47924 { ac_try='test -s conftest$ac_exeext'
47925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47926 (eval $ac_try) 2>&5
47928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47929 (exit $ac_status); }; }; then
47930 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
47932 echo "$as_me: failed program was:" >&5
47933 sed 's/^/| /' conftest.$ac_ext >&5
47935 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
47937 rm -f conftest.err conftest.$ac_objext \
47938 conftest$ac_exeext conftest.$ac_ext
47941 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
47942 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
47944 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
47946 cat >>confdefs.h <<\_ACEOF
47947 #define GWINSZ_IN_SYS_PTY 1
47953 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
47954 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
47955 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
47956 echo $ECHO_N "(cached) $ECHO_C" >&6
47958 cat >conftest.$ac_ext <<_ACEOF
47961 cat confdefs.h >>conftest.$ac_ext
47962 cat >>conftest.$ac_ext <<_ACEOF
47963 /* end confdefs.h. */
47964 $ac_includes_default
47969 char *p = (char *) strtoimax;
47976 rm -f conftest.$ac_objext
47977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47978 (eval $ac_compile) 2>conftest.er1
47980 grep -v '^ *+' conftest.er1 >conftest.err
47982 cat conftest.err >&5
47983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47984 (exit $ac_status); } &&
47985 { ac_try='test -z "$ac_c_werror_flag"
47986 || test ! -s conftest.err'
47987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47988 (eval $ac_try) 2>&5
47990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47991 (exit $ac_status); }; } &&
47992 { ac_try='test -s conftest.$ac_objext'
47993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47994 (eval $ac_try) 2>&5
47996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47997 (exit $ac_status); }; }; then
47998 ac_cv_have_decl_strtoimax=yes
48000 echo "$as_me: failed program was:" >&5
48001 sed 's/^/| /' conftest.$ac_ext >&5
48003 ac_cv_have_decl_strtoimax=no
48005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48007 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
48008 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
48009 if test $ac_cv_have_decl_strtoimax = yes; then
48011 cat >>confdefs.h <<_ACEOF
48012 #define HAVE_DECL_STRTOIMAX 1
48017 cat >>confdefs.h <<_ACEOF
48018 #define HAVE_DECL_STRTOIMAX 0
48025 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
48026 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
48027 if test "${ac_cv_have_decl_strsignal+set}" = set; then
48028 echo $ECHO_N "(cached) $ECHO_C" >&6
48030 cat >conftest.$ac_ext <<_ACEOF
48033 cat confdefs.h >>conftest.$ac_ext
48034 cat >>conftest.$ac_ext <<_ACEOF
48035 /* end confdefs.h. */
48036 $ac_includes_default
48037 #include <signal.h>
48043 char *p = (char *) strsignal;
48050 rm -f conftest.$ac_objext
48051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48052 (eval $ac_compile) 2>conftest.er1
48054 grep -v '^ *+' conftest.er1 >conftest.err
48056 cat conftest.err >&5
48057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058 (exit $ac_status); } &&
48059 { ac_try='test -z "$ac_c_werror_flag"
48060 || test ! -s conftest.err'
48061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48062 (eval $ac_try) 2>&5
48064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48065 (exit $ac_status); }; } &&
48066 { ac_try='test -s conftest.$ac_objext'
48067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48068 (eval $ac_try) 2>&5
48070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48071 (exit $ac_status); }; }; then
48072 ac_cv_have_decl_strsignal=yes
48074 echo "$as_me: failed program was:" >&5
48075 sed 's/^/| /' conftest.$ac_ext >&5
48077 ac_cv_have_decl_strsignal=no
48079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48081 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
48082 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
48083 if test $ac_cv_have_decl_strsignal = yes; then
48085 cat >>confdefs.h <<_ACEOF
48086 #define HAVE_DECL_STRSIGNAL 1
48091 cat >>confdefs.h <<_ACEOF
48092 #define HAVE_DECL_STRSIGNAL 0
48097 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
48098 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
48099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
48100 echo $ECHO_N "(cached) $ECHO_C" >&6
48102 cat >conftest.$ac_ext <<_ACEOF
48105 cat confdefs.h >>conftest.$ac_ext
48106 cat >>conftest.$ac_ext <<_ACEOF
48107 /* end confdefs.h. */
48108 $ac_includes_default
48109 #include <signal.h>
48114 #ifndef sys_siglist
48115 char *p = (char *) sys_siglist;
48122 rm -f conftest.$ac_objext
48123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48124 (eval $ac_compile) 2>conftest.er1
48126 grep -v '^ *+' conftest.er1 >conftest.err
48128 cat conftest.err >&5
48129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130 (exit $ac_status); } &&
48131 { ac_try='test -z "$ac_c_werror_flag"
48132 || test ! -s conftest.err'
48133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48134 (eval $ac_try) 2>&5
48136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137 (exit $ac_status); }; } &&
48138 { ac_try='test -s conftest.$ac_objext'
48139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48140 (eval $ac_try) 2>&5
48142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48143 (exit $ac_status); }; }; then
48144 ac_cv_have_decl_sys_siglist=yes
48146 echo "$as_me: failed program was:" >&5
48147 sed 's/^/| /' conftest.$ac_ext >&5
48149 ac_cv_have_decl_sys_siglist=no
48151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48153 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
48154 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
48155 if test $ac_cv_have_decl_sys_siglist = yes; then
48157 cat >>confdefs.h <<_ACEOF
48158 #define HAVE_DECL_SYS_SIGLIST 1
48163 cat >>confdefs.h <<_ACEOF
48164 #define HAVE_DECL_SYS_SIGLIST 0
48169 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
48170 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
48171 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
48172 echo $ECHO_N "(cached) $ECHO_C" >&6
48174 cat >conftest.$ac_ext <<_ACEOF
48177 cat confdefs.h >>conftest.$ac_ext
48178 cat >>conftest.$ac_ext <<_ACEOF
48179 /* end confdefs.h. */
48180 $ac_includes_default
48181 #include <signal.h>
48186 #ifndef _sys_siglist
48187 char *p = (char *) _sys_siglist;
48194 rm -f conftest.$ac_objext
48195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48196 (eval $ac_compile) 2>conftest.er1
48198 grep -v '^ *+' conftest.er1 >conftest.err
48200 cat conftest.err >&5
48201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48202 (exit $ac_status); } &&
48203 { ac_try='test -z "$ac_c_werror_flag"
48204 || test ! -s conftest.err'
48205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48206 (eval $ac_try) 2>&5
48208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48209 (exit $ac_status); }; } &&
48210 { ac_try='test -s conftest.$ac_objext'
48211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48212 (eval $ac_try) 2>&5
48214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48215 (exit $ac_status); }; }; then
48216 ac_cv_have_decl__sys_siglist=yes
48218 echo "$as_me: failed program was:" >&5
48219 sed 's/^/| /' conftest.$ac_ext >&5
48221 ac_cv_have_decl__sys_siglist=no
48223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48225 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
48226 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
48227 if test $ac_cv_have_decl__sys_siglist = yes; then
48229 cat >>confdefs.h <<_ACEOF
48230 #define HAVE_DECL__SYS_SIGLIST 1
48235 cat >>confdefs.h <<_ACEOF
48236 #define HAVE_DECL__SYS_SIGLIST 0
48241 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
48242 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
48243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
48244 echo $ECHO_N "(cached) $ECHO_C" >&6
48246 cat >conftest.$ac_ext <<_ACEOF
48249 cat confdefs.h >>conftest.$ac_ext
48250 cat >>conftest.$ac_ext <<_ACEOF
48251 /* end confdefs.h. */
48252 $ac_includes_default
48253 #include <signal.h>
48258 #ifndef __sys_siglist
48259 char *p = (char *) __sys_siglist;
48266 rm -f conftest.$ac_objext
48267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48268 (eval $ac_compile) 2>conftest.er1
48270 grep -v '^ *+' conftest.er1 >conftest.err
48272 cat conftest.err >&5
48273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274 (exit $ac_status); } &&
48275 { ac_try='test -z "$ac_c_werror_flag"
48276 || test ! -s conftest.err'
48277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48278 (eval $ac_try) 2>&5
48280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); }; } &&
48282 { ac_try='test -s conftest.$ac_objext'
48283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48284 (eval $ac_try) 2>&5
48286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48287 (exit $ac_status); }; }; then
48288 ac_cv_have_decl___sys_siglist=yes
48290 echo "$as_me: failed program was:" >&5
48291 sed 's/^/| /' conftest.$ac_ext >&5
48293 ac_cv_have_decl___sys_siglist=no
48295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48297 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
48298 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
48299 if test $ac_cv_have_decl___sys_siglist = yes; then
48301 cat >>confdefs.h <<_ACEOF
48302 #define HAVE_DECL___SYS_SIGLIST 1
48307 cat >>confdefs.h <<_ACEOF
48308 #define HAVE_DECL___SYS_SIGLIST 0
48318 # Check for libypsec.a on Dolphin M88K machines.
48320 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
48321 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
48322 if test "${ac_cv_lib_ypsec_main+set}" = set; then
48323 echo $ECHO_N "(cached) $ECHO_C" >&6
48325 ac_check_lib_save_LIBS=$LIBS
48326 LIBS="-lypsec $LIBS"
48327 cat >conftest.$ac_ext <<_ACEOF
48330 cat confdefs.h >>conftest.$ac_ext
48331 cat >>conftest.$ac_ext <<_ACEOF
48332 /* end confdefs.h. */
48343 rm -f conftest.$ac_objext conftest$ac_exeext
48344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48345 (eval $ac_link) 2>conftest.er1
48347 grep -v '^ *+' conftest.er1 >conftest.err
48349 cat conftest.err >&5
48350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48351 (exit $ac_status); } &&
48352 { ac_try='test -z "$ac_c_werror_flag"
48353 || test ! -s conftest.err'
48354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48355 (eval $ac_try) 2>&5
48357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358 (exit $ac_status); }; } &&
48359 { ac_try='test -s conftest$ac_exeext'
48360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48361 (eval $ac_try) 2>&5
48363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48364 (exit $ac_status); }; }; then
48365 ac_cv_lib_ypsec_main=yes
48367 echo "$as_me: failed program was:" >&5
48368 sed 's/^/| /' conftest.$ac_ext >&5
48370 ac_cv_lib_ypsec_main=no
48372 rm -f conftest.err conftest.$ac_objext \
48373 conftest$ac_exeext conftest.$ac_ext
48374 LIBS=$ac_check_lib_save_LIBS
48376 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
48377 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
48378 if test $ac_cv_lib_ypsec_main = yes; then
48379 cat >>confdefs.h <<_ACEOF
48380 #define HAVE_LIBYPSEC 1
48383 LIBS="-lypsec $LIBS"
48388 # m88k running dgux 5.4 needs this
48390 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
48391 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
48392 if test "${ac_cv_lib_ldgc_main+set}" = set; then
48393 echo $ECHO_N "(cached) $ECHO_C" >&6
48395 ac_check_lib_save_LIBS=$LIBS
48396 LIBS="-lldgc $LIBS"
48397 cat >conftest.$ac_ext <<_ACEOF
48400 cat confdefs.h >>conftest.$ac_ext
48401 cat >>conftest.$ac_ext <<_ACEOF
48402 /* end confdefs.h. */
48413 rm -f conftest.$ac_objext conftest$ac_exeext
48414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48415 (eval $ac_link) 2>conftest.er1
48417 grep -v '^ *+' conftest.er1 >conftest.err
48419 cat conftest.err >&5
48420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421 (exit $ac_status); } &&
48422 { ac_try='test -z "$ac_c_werror_flag"
48423 || test ! -s conftest.err'
48424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48425 (eval $ac_try) 2>&5
48427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428 (exit $ac_status); }; } &&
48429 { ac_try='test -s conftest$ac_exeext'
48430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48431 (eval $ac_try) 2>&5
48433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434 (exit $ac_status); }; }; then
48435 ac_cv_lib_ldgc_main=yes
48437 echo "$as_me: failed program was:" >&5
48438 sed 's/^/| /' conftest.$ac_ext >&5
48440 ac_cv_lib_ldgc_main=no
48442 rm -f conftest.err conftest.$ac_objext \
48443 conftest$ac_exeext conftest.$ac_ext
48444 LIBS=$ac_check_lib_save_LIBS
48446 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
48447 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
48448 if test $ac_cv_lib_ldgc_main = yes; then
48449 cat >>confdefs.h <<_ACEOF
48450 #define HAVE_LIBLDGC 1
48453 LIBS="-lldgc $LIBS"
48458 # Some programs need to link with -lm. printf does if it uses
48459 # lib/strtod.c which uses pow. And seq uses the math functions,
48460 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
48462 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
48463 # Check for these math functions used by seq.
48464 ac_su_saved_lib="$LIBS"
48469 for ac_func in floor modf rint
48471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48472 echo "$as_me:$LINENO: checking for $ac_func" >&5
48473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48474 if eval "test \"\${$as_ac_var+set}\" = set"; then
48475 echo $ECHO_N "(cached) $ECHO_C" >&6
48477 cat >conftest.$ac_ext <<_ACEOF
48480 cat confdefs.h >>conftest.$ac_ext
48481 cat >>conftest.$ac_ext <<_ACEOF
48482 /* end confdefs.h. */
48483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48485 #define $ac_func innocuous_$ac_func
48487 /* System header to define __stub macros and hopefully few prototypes,
48488 which can conflict with char $ac_func (); below.
48489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48490 <limits.h> exists even on freestanding compilers. */
48493 # include <limits.h>
48495 # include <assert.h>
48500 /* Override any gcc2 internal prototype to avoid an error. */
48505 /* We use char because int might match the return type of a gcc2
48506 builtin and then its argument prototype would still apply. */
48508 /* The GNU C library defines this for functions which it implements
48509 to always fail with ENOSYS. Some functions are actually named
48510 something starting with __ and the normal name is an alias. */
48511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48514 char (*f) () = $ac_func;
48523 return f != $ac_func;
48528 rm -f conftest.$ac_objext conftest$ac_exeext
48529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48530 (eval $ac_link) 2>conftest.er1
48532 grep -v '^ *+' conftest.er1 >conftest.err
48534 cat conftest.err >&5
48535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536 (exit $ac_status); } &&
48537 { ac_try='test -z "$ac_c_werror_flag"
48538 || test ! -s conftest.err'
48539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48540 (eval $ac_try) 2>&5
48542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48543 (exit $ac_status); }; } &&
48544 { ac_try='test -s conftest$ac_exeext'
48545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48546 (eval $ac_try) 2>&5
48548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48549 (exit $ac_status); }; }; then
48550 eval "$as_ac_var=yes"
48552 echo "$as_me: failed program was:" >&5
48553 sed 's/^/| /' conftest.$ac_ext >&5
48555 eval "$as_ac_var=no"
48557 rm -f conftest.err conftest.$ac_objext \
48558 conftest$ac_exeext conftest.$ac_ext
48560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48562 if test `eval echo '${'$as_ac_var'}'` = yes; then
48563 cat >>confdefs.h <<_ACEOF
48564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48570 LIBS="$ac_su_saved_lib"
48574 for ac_func in sqrt
48576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48577 echo "$as_me:$LINENO: checking for $ac_func" >&5
48578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48579 if eval "test \"\${$as_ac_var+set}\" = set"; then
48580 echo $ECHO_N "(cached) $ECHO_C" >&6
48582 cat >conftest.$ac_ext <<_ACEOF
48585 cat confdefs.h >>conftest.$ac_ext
48586 cat >>conftest.$ac_ext <<_ACEOF
48587 /* end confdefs.h. */
48588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48590 #define $ac_func innocuous_$ac_func
48592 /* System header to define __stub macros and hopefully few prototypes,
48593 which can conflict with char $ac_func (); below.
48594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48595 <limits.h> exists even on freestanding compilers. */
48598 # include <limits.h>
48600 # include <assert.h>
48605 /* Override any gcc2 internal prototype to avoid an error. */
48610 /* We use char because int might match the return type of a gcc2
48611 builtin and then its argument prototype would still apply. */
48613 /* The GNU C library defines this for functions which it implements
48614 to always fail with ENOSYS. Some functions are actually named
48615 something starting with __ and the normal name is an alias. */
48616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48619 char (*f) () = $ac_func;
48628 return f != $ac_func;
48633 rm -f conftest.$ac_objext conftest$ac_exeext
48634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48635 (eval $ac_link) 2>conftest.er1
48637 grep -v '^ *+' conftest.er1 >conftest.err
48639 cat conftest.err >&5
48640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641 (exit $ac_status); } &&
48642 { ac_try='test -z "$ac_c_werror_flag"
48643 || test ! -s conftest.err'
48644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48645 (eval $ac_try) 2>&5
48647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48648 (exit $ac_status); }; } &&
48649 { ac_try='test -s conftest$ac_exeext'
48650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48651 (eval $ac_try) 2>&5
48653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48654 (exit $ac_status); }; }; then
48655 eval "$as_ac_var=yes"
48657 echo "$as_me: failed program was:" >&5
48658 sed 's/^/| /' conftest.$ac_ext >&5
48660 eval "$as_ac_var=no"
48662 rm -f conftest.err conftest.$ac_objext \
48663 conftest$ac_exeext conftest.$ac_ext
48665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48667 if test `eval echo '${'$as_ac_var'}'` = yes; then
48668 cat >>confdefs.h <<_ACEOF
48669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48675 if test $ac_cv_func_sqrt = no; then
48676 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
48677 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
48678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
48679 echo $ECHO_N "(cached) $ECHO_C" >&6
48681 ac_check_lib_save_LIBS=$LIBS
48683 cat >conftest.$ac_ext <<_ACEOF
48686 cat confdefs.h >>conftest.$ac_ext
48687 cat >>conftest.$ac_ext <<_ACEOF
48688 /* end confdefs.h. */
48690 /* Override any gcc2 internal prototype to avoid an error. */
48694 /* We use char because int might match the return type of a gcc2
48695 builtin and then its argument prototype would still apply. */
48705 rm -f conftest.$ac_objext conftest$ac_exeext
48706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48707 (eval $ac_link) 2>conftest.er1
48709 grep -v '^ *+' conftest.er1 >conftest.err
48711 cat conftest.err >&5
48712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713 (exit $ac_status); } &&
48714 { ac_try='test -z "$ac_c_werror_flag"
48715 || test ! -s conftest.err'
48716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48717 (eval $ac_try) 2>&5
48719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48720 (exit $ac_status); }; } &&
48721 { ac_try='test -s conftest$ac_exeext'
48722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48723 (eval $ac_try) 2>&5
48725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48726 (exit $ac_status); }; }; then
48727 ac_cv_lib_m_sqrt=yes
48729 echo "$as_me: failed program was:" >&5
48730 sed 's/^/| /' conftest.$ac_ext >&5
48732 ac_cv_lib_m_sqrt=no
48734 rm -f conftest.err conftest.$ac_objext \
48735 conftest$ac_exeext conftest.$ac_ext
48736 LIBS=$ac_check_lib_save_LIBS
48738 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
48739 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
48740 if test $ac_cv_lib_m_sqrt = yes; then
48748 for ac_func in fesetround
48750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48751 echo "$as_me:$LINENO: checking for $ac_func" >&5
48752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48753 if eval "test \"\${$as_ac_var+set}\" = set"; then
48754 echo $ECHO_N "(cached) $ECHO_C" >&6
48756 cat >conftest.$ac_ext <<_ACEOF
48759 cat confdefs.h >>conftest.$ac_ext
48760 cat >>conftest.$ac_ext <<_ACEOF
48761 /* end confdefs.h. */
48762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48764 #define $ac_func innocuous_$ac_func
48766 /* System header to define __stub macros and hopefully few prototypes,
48767 which can conflict with char $ac_func (); below.
48768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48769 <limits.h> exists even on freestanding compilers. */
48772 # include <limits.h>
48774 # include <assert.h>
48779 /* Override any gcc2 internal prototype to avoid an error. */
48784 /* We use char because int might match the return type of a gcc2
48785 builtin and then its argument prototype would still apply. */
48787 /* The GNU C library defines this for functions which it implements
48788 to always fail with ENOSYS. Some functions are actually named
48789 something starting with __ and the normal name is an alias. */
48790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48793 char (*f) () = $ac_func;
48802 return f != $ac_func;
48807 rm -f conftest.$ac_objext conftest$ac_exeext
48808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48809 (eval $ac_link) 2>conftest.er1
48811 grep -v '^ *+' conftest.er1 >conftest.err
48813 cat conftest.err >&5
48814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48815 (exit $ac_status); } &&
48816 { ac_try='test -z "$ac_c_werror_flag"
48817 || test ! -s conftest.err'
48818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48819 (eval $ac_try) 2>&5
48821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48822 (exit $ac_status); }; } &&
48823 { ac_try='test -s conftest$ac_exeext'
48824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48825 (eval $ac_try) 2>&5
48827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828 (exit $ac_status); }; }; then
48829 eval "$as_ac_var=yes"
48831 echo "$as_me: failed program was:" >&5
48832 sed 's/^/| /' conftest.$ac_ext >&5
48834 eval "$as_ac_var=no"
48836 rm -f conftest.err conftest.$ac_objext \
48837 conftest$ac_exeext conftest.$ac_ext
48839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48841 if test `eval echo '${'$as_ac_var'}'` = yes; then
48842 cat >>confdefs.h <<_ACEOF
48843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48849 if test $ac_cv_func_fesetround = no; then
48850 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
48851 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
48852 if test "${ac_cv_lib_m_fesetround+set}" = set; then
48853 echo $ECHO_N "(cached) $ECHO_C" >&6
48855 ac_check_lib_save_LIBS=$LIBS
48857 cat >conftest.$ac_ext <<_ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h. */
48864 /* Override any gcc2 internal prototype to avoid an error. */
48868 /* We use char because int might match the return type of a gcc2
48869 builtin and then its argument prototype would still apply. */
48870 char fesetround ();
48879 rm -f conftest.$ac_objext conftest$ac_exeext
48880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48881 (eval $ac_link) 2>conftest.er1
48883 grep -v '^ *+' conftest.er1 >conftest.err
48885 cat conftest.err >&5
48886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887 (exit $ac_status); } &&
48888 { ac_try='test -z "$ac_c_werror_flag"
48889 || test ! -s conftest.err'
48890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48891 (eval $ac_try) 2>&5
48893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894 (exit $ac_status); }; } &&
48895 { ac_try='test -s conftest$ac_exeext'
48896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897 (eval $ac_try) 2>&5
48899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900 (exit $ac_status); }; }; then
48901 ac_cv_lib_m_fesetround=yes
48903 echo "$as_me: failed program was:" >&5
48904 sed 's/^/| /' conftest.$ac_ext >&5
48906 ac_cv_lib_m_fesetround=no
48908 rm -f conftest.err conftest.$ac_objext \
48909 conftest$ac_exeext conftest.$ac_ext
48910 LIBS=$ac_check_lib_save_LIBS
48912 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
48913 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
48914 if test $ac_cv_lib_m_fesetround = yes; then
48915 FESETROUND_LIBM=-lm
48920 # The -lsun library is required for YP support on Irix-4.0.5 systems.
48921 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
48922 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
48923 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
48924 if test "${ac_cv_search_yp_match+set}" = set; then
48925 echo $ECHO_N "(cached) $ECHO_C" >&6
48927 ac_func_search_save_LIBS=$LIBS
48928 ac_cv_search_yp_match=no
48929 cat >conftest.$ac_ext <<_ACEOF
48932 cat confdefs.h >>conftest.$ac_ext
48933 cat >>conftest.$ac_ext <<_ACEOF
48934 /* end confdefs.h. */
48936 /* Override any gcc2 internal prototype to avoid an error. */
48940 /* We use char because int might match the return type of a gcc2
48941 builtin and then its argument prototype would still apply. */
48951 rm -f conftest.$ac_objext conftest$ac_exeext
48952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48953 (eval $ac_link) 2>conftest.er1
48955 grep -v '^ *+' conftest.er1 >conftest.err
48957 cat conftest.err >&5
48958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48959 (exit $ac_status); } &&
48960 { ac_try='test -z "$ac_c_werror_flag"
48961 || test ! -s conftest.err'
48962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48963 (eval $ac_try) 2>&5
48965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48966 (exit $ac_status); }; } &&
48967 { ac_try='test -s conftest$ac_exeext'
48968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48969 (eval $ac_try) 2>&5
48971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48972 (exit $ac_status); }; }; then
48973 ac_cv_search_yp_match="none required"
48975 echo "$as_me: failed program was:" >&5
48976 sed 's/^/| /' conftest.$ac_ext >&5
48979 rm -f conftest.err conftest.$ac_objext \
48980 conftest$ac_exeext conftest.$ac_ext
48981 if test "$ac_cv_search_yp_match" = no; then
48982 for ac_lib in sun ypsec; do
48983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
48984 cat >conftest.$ac_ext <<_ACEOF
48987 cat confdefs.h >>conftest.$ac_ext
48988 cat >>conftest.$ac_ext <<_ACEOF
48989 /* end confdefs.h. */
48991 /* Override any gcc2 internal prototype to avoid an error. */
48995 /* We use char because int might match the return type of a gcc2
48996 builtin and then its argument prototype would still apply. */
49006 rm -f conftest.$ac_objext conftest$ac_exeext
49007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49008 (eval $ac_link) 2>conftest.er1
49010 grep -v '^ *+' conftest.er1 >conftest.err
49012 cat conftest.err >&5
49013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014 (exit $ac_status); } &&
49015 { ac_try='test -z "$ac_c_werror_flag"
49016 || test ! -s conftest.err'
49017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49018 (eval $ac_try) 2>&5
49020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49021 (exit $ac_status); }; } &&
49022 { ac_try='test -s conftest$ac_exeext'
49023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49024 (eval $ac_try) 2>&5
49026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027 (exit $ac_status); }; }; then
49028 ac_cv_search_yp_match="-l$ac_lib"
49031 echo "$as_me: failed program was:" >&5
49032 sed 's/^/| /' conftest.$ac_ext >&5
49035 rm -f conftest.err conftest.$ac_objext \
49036 conftest$ac_exeext conftest.$ac_ext
49039 LIBS=$ac_func_search_save_LIBS
49041 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
49042 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
49043 if test "$ac_cv_search_yp_match" != no; then
49044 test "$ac_cv_search_yp_match" = "none required" || LIBS="$ac_cv_search_yp_match $LIBS"
49049 # SysV needs -lsec, older versions of Linux need -lshadow for
49050 # shadow passwords. UnixWare 7 needs -lgen.
49051 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
49052 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
49053 if test "${ac_cv_search_getspnam+set}" = set; then
49054 echo $ECHO_N "(cached) $ECHO_C" >&6
49056 ac_func_search_save_LIBS=$LIBS
49057 ac_cv_search_getspnam=no
49058 cat >conftest.$ac_ext <<_ACEOF
49061 cat confdefs.h >>conftest.$ac_ext
49062 cat >>conftest.$ac_ext <<_ACEOF
49063 /* end confdefs.h. */
49065 /* Override any gcc2 internal prototype to avoid an error. */
49069 /* We use char because int might match the return type of a gcc2
49070 builtin and then its argument prototype would still apply. */
49080 rm -f conftest.$ac_objext conftest$ac_exeext
49081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49082 (eval $ac_link) 2>conftest.er1
49084 grep -v '^ *+' conftest.er1 >conftest.err
49086 cat conftest.err >&5
49087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49088 (exit $ac_status); } &&
49089 { ac_try='test -z "$ac_c_werror_flag"
49090 || test ! -s conftest.err'
49091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49092 (eval $ac_try) 2>&5
49094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49095 (exit $ac_status); }; } &&
49096 { ac_try='test -s conftest$ac_exeext'
49097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49098 (eval $ac_try) 2>&5
49100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49101 (exit $ac_status); }; }; then
49102 ac_cv_search_getspnam="none required"
49104 echo "$as_me: failed program was:" >&5
49105 sed 's/^/| /' conftest.$ac_ext >&5
49108 rm -f conftest.err conftest.$ac_objext \
49109 conftest$ac_exeext conftest.$ac_ext
49110 if test "$ac_cv_search_getspnam" = no; then
49111 for ac_lib in shadow sec gen; do
49112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49113 cat >conftest.$ac_ext <<_ACEOF
49116 cat confdefs.h >>conftest.$ac_ext
49117 cat >>conftest.$ac_ext <<_ACEOF
49118 /* end confdefs.h. */
49120 /* Override any gcc2 internal prototype to avoid an error. */
49124 /* We use char because int might match the return type of a gcc2
49125 builtin and then its argument prototype would still apply. */
49135 rm -f conftest.$ac_objext conftest$ac_exeext
49136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49137 (eval $ac_link) 2>conftest.er1
49139 grep -v '^ *+' conftest.er1 >conftest.err
49141 cat conftest.err >&5
49142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49143 (exit $ac_status); } &&
49144 { ac_try='test -z "$ac_c_werror_flag"
49145 || test ! -s conftest.err'
49146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49147 (eval $ac_try) 2>&5
49149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49150 (exit $ac_status); }; } &&
49151 { ac_try='test -s conftest$ac_exeext'
49152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49153 (eval $ac_try) 2>&5
49155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49156 (exit $ac_status); }; }; then
49157 ac_cv_search_getspnam="-l$ac_lib"
49160 echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49164 rm -f conftest.err conftest.$ac_objext \
49165 conftest$ac_exeext conftest.$ac_ext
49168 LIBS=$ac_func_search_save_LIBS
49170 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
49171 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
49172 if test "$ac_cv_search_getspnam" != no; then
49173 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
49179 for ac_header in shadow.h
49181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49183 echo "$as_me:$LINENO: checking for $ac_header" >&5
49184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49186 echo $ECHO_N "(cached) $ECHO_C" >&6
49188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49191 # Is the header compilable?
49192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49194 cat >conftest.$ac_ext <<_ACEOF
49197 cat confdefs.h >>conftest.$ac_ext
49198 cat >>conftest.$ac_ext <<_ACEOF
49199 /* end confdefs.h. */
49200 $ac_includes_default
49201 #include <$ac_header>
49203 rm -f conftest.$ac_objext
49204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49205 (eval $ac_compile) 2>conftest.er1
49207 grep -v '^ *+' conftest.er1 >conftest.err
49209 cat conftest.err >&5
49210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49211 (exit $ac_status); } &&
49212 { ac_try='test -z "$ac_c_werror_flag"
49213 || test ! -s conftest.err'
49214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49215 (eval $ac_try) 2>&5
49217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49218 (exit $ac_status); }; } &&
49219 { ac_try='test -s conftest.$ac_objext'
49220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49221 (eval $ac_try) 2>&5
49223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224 (exit $ac_status); }; }; then
49225 ac_header_compiler=yes
49227 echo "$as_me: failed program was:" >&5
49228 sed 's/^/| /' conftest.$ac_ext >&5
49230 ac_header_compiler=no
49232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49234 echo "${ECHO_T}$ac_header_compiler" >&6
49236 # Is the header present?
49237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49239 cat >conftest.$ac_ext <<_ACEOF
49242 cat confdefs.h >>conftest.$ac_ext
49243 cat >>conftest.$ac_ext <<_ACEOF
49244 /* end confdefs.h. */
49245 #include <$ac_header>
49247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49250 grep -v '^ *+' conftest.er1 >conftest.err
49252 cat conftest.err >&5
49253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254 (exit $ac_status); } >/dev/null; then
49255 if test -s conftest.err; then
49256 ac_cpp_err=$ac_c_preproc_warn_flag
49257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49264 if test -z "$ac_cpp_err"; then
49265 ac_header_preproc=yes
49267 echo "$as_me: failed program was:" >&5
49268 sed 's/^/| /' conftest.$ac_ext >&5
49270 ac_header_preproc=no
49272 rm -f conftest.err conftest.$ac_ext
49273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49274 echo "${ECHO_T}$ac_header_preproc" >&6
49276 # So? What about this header?
49277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49283 ac_header_preproc=yes
49286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49300 ## ------------------------------------ ##
49301 ## Report this to bug-coreutils@gnu.org ##
49302 ## ------------------------------------ ##
49305 sed "s/^/$as_me: WARNING: /" >&2
49308 echo "$as_me:$LINENO: checking for $ac_header" >&5
49309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49311 echo $ECHO_N "(cached) $ECHO_C" >&6
49313 eval "$as_ac_Header=\$ac_header_preproc"
49315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49320 cat >>confdefs.h <<_ACEOF
49321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49329 # Requirements for su.c.
49331 $ac_includes_default
49333 # include <shadow.h>
49336 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
49337 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
49338 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
49339 echo $ECHO_N "(cached) $ECHO_C" >&6
49341 cat >conftest.$ac_ext <<_ACEOF
49344 cat confdefs.h >>conftest.$ac_ext
49345 cat >>conftest.$ac_ext <<_ACEOF
49346 /* end confdefs.h. */
49352 static struct spwd ac_aggr;
49353 if (ac_aggr.sp_pwdp)
49359 rm -f conftest.$ac_objext
49360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49361 (eval $ac_compile) 2>conftest.er1
49363 grep -v '^ *+' conftest.er1 >conftest.err
49365 cat conftest.err >&5
49366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49367 (exit $ac_status); } &&
49368 { ac_try='test -z "$ac_c_werror_flag"
49369 || test ! -s conftest.err'
49370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49371 (eval $ac_try) 2>&5
49373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49374 (exit $ac_status); }; } &&
49375 { ac_try='test -s conftest.$ac_objext'
49376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49377 (eval $ac_try) 2>&5
49379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49380 (exit $ac_status); }; }; then
49381 ac_cv_member_struct_spwd_sp_pwdp=yes
49383 echo "$as_me: failed program was:" >&5
49384 sed 's/^/| /' conftest.$ac_ext >&5
49386 cat >conftest.$ac_ext <<_ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h. */
49397 static struct spwd ac_aggr;
49398 if (sizeof ac_aggr.sp_pwdp)
49404 rm -f conftest.$ac_objext
49405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49406 (eval $ac_compile) 2>conftest.er1
49408 grep -v '^ *+' conftest.er1 >conftest.err
49410 cat conftest.err >&5
49411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49412 (exit $ac_status); } &&
49413 { ac_try='test -z "$ac_c_werror_flag"
49414 || test ! -s conftest.err'
49415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416 (eval $ac_try) 2>&5
49418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419 (exit $ac_status); }; } &&
49420 { ac_try='test -s conftest.$ac_objext'
49421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49422 (eval $ac_try) 2>&5
49424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49425 (exit $ac_status); }; }; then
49426 ac_cv_member_struct_spwd_sp_pwdp=yes
49428 echo "$as_me: failed program was:" >&5
49429 sed 's/^/| /' conftest.$ac_ext >&5
49431 ac_cv_member_struct_spwd_sp_pwdp=no
49433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
49438 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
49439 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
49441 cat >>confdefs.h <<_ACEOF
49442 #define HAVE_STRUCT_SPWD_SP_PWDP 1
49449 for ac_func in getspnam
49451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49452 echo "$as_me:$LINENO: checking for $ac_func" >&5
49453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49454 if eval "test \"\${$as_ac_var+set}\" = set"; then
49455 echo $ECHO_N "(cached) $ECHO_C" >&6
49457 cat >conftest.$ac_ext <<_ACEOF
49460 cat confdefs.h >>conftest.$ac_ext
49461 cat >>conftest.$ac_ext <<_ACEOF
49462 /* end confdefs.h. */
49463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49465 #define $ac_func innocuous_$ac_func
49467 /* System header to define __stub macros and hopefully few prototypes,
49468 which can conflict with char $ac_func (); below.
49469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49470 <limits.h> exists even on freestanding compilers. */
49473 # include <limits.h>
49475 # include <assert.h>
49480 /* Override any gcc2 internal prototype to avoid an error. */
49485 /* We use char because int might match the return type of a gcc2
49486 builtin and then its argument prototype would still apply. */
49488 /* The GNU C library defines this for functions which it implements
49489 to always fail with ENOSYS. Some functions are actually named
49490 something starting with __ and the normal name is an alias. */
49491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49494 char (*f) () = $ac_func;
49503 return f != $ac_func;
49508 rm -f conftest.$ac_objext conftest$ac_exeext
49509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49510 (eval $ac_link) 2>conftest.er1
49512 grep -v '^ *+' conftest.er1 >conftest.err
49514 cat conftest.err >&5
49515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516 (exit $ac_status); } &&
49517 { ac_try='test -z "$ac_c_werror_flag"
49518 || test ! -s conftest.err'
49519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520 (eval $ac_try) 2>&5
49522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523 (exit $ac_status); }; } &&
49524 { ac_try='test -s conftest$ac_exeext'
49525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49526 (eval $ac_try) 2>&5
49528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49529 (exit $ac_status); }; }; then
49530 eval "$as_ac_var=yes"
49532 echo "$as_me: failed program was:" >&5
49533 sed 's/^/| /' conftest.$ac_ext >&5
49535 eval "$as_ac_var=no"
49537 rm -f conftest.err conftest.$ac_objext \
49538 conftest$ac_exeext conftest.$ac_ext
49540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49542 if test `eval echo '${'$as_ac_var'}'` = yes; then
49543 cat >>confdefs.h <<_ACEOF
49544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49551 # SCO-ODT-3.0 is reported to need -lufc for crypt.
49552 # NetBSD needs -lcrypt for crypt.
49553 ac_su_saved_lib="$LIBS"
49554 echo "$as_me:$LINENO: checking for library containing crypt" >&5
49555 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
49556 if test "${ac_cv_search_crypt+set}" = set; then
49557 echo $ECHO_N "(cached) $ECHO_C" >&6
49559 ac_func_search_save_LIBS=$LIBS
49560 ac_cv_search_crypt=no
49561 cat >conftest.$ac_ext <<_ACEOF
49564 cat confdefs.h >>conftest.$ac_ext
49565 cat >>conftest.$ac_ext <<_ACEOF
49566 /* end confdefs.h. */
49568 /* Override any gcc2 internal prototype to avoid an error. */
49572 /* We use char because int might match the return type of a gcc2
49573 builtin and then its argument prototype would still apply. */
49583 rm -f conftest.$ac_objext conftest$ac_exeext
49584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49585 (eval $ac_link) 2>conftest.er1
49587 grep -v '^ *+' conftest.er1 >conftest.err
49589 cat conftest.err >&5
49590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591 (exit $ac_status); } &&
49592 { ac_try='test -z "$ac_c_werror_flag"
49593 || test ! -s conftest.err'
49594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49595 (eval $ac_try) 2>&5
49597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49598 (exit $ac_status); }; } &&
49599 { ac_try='test -s conftest$ac_exeext'
49600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49601 (eval $ac_try) 2>&5
49603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49604 (exit $ac_status); }; }; then
49605 ac_cv_search_crypt="none required"
49607 echo "$as_me: failed program was:" >&5
49608 sed 's/^/| /' conftest.$ac_ext >&5
49611 rm -f conftest.err conftest.$ac_objext \
49612 conftest$ac_exeext conftest.$ac_ext
49613 if test "$ac_cv_search_crypt" = no; then
49614 for ac_lib in ufc crypt; do
49615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
49616 cat >conftest.$ac_ext <<_ACEOF
49619 cat confdefs.h >>conftest.$ac_ext
49620 cat >>conftest.$ac_ext <<_ACEOF
49621 /* end confdefs.h. */
49623 /* Override any gcc2 internal prototype to avoid an error. */
49627 /* We use char because int might match the return type of a gcc2
49628 builtin and then its argument prototype would still apply. */
49638 rm -f conftest.$ac_objext conftest$ac_exeext
49639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49640 (eval $ac_link) 2>conftest.er1
49642 grep -v '^ *+' conftest.er1 >conftest.err
49644 cat conftest.err >&5
49645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49646 (exit $ac_status); } &&
49647 { ac_try='test -z "$ac_c_werror_flag"
49648 || test ! -s conftest.err'
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); }; } &&
49654 { ac_try='test -s conftest$ac_exeext'
49655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49656 (eval $ac_try) 2>&5
49658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49659 (exit $ac_status); }; }; then
49660 ac_cv_search_crypt="-l$ac_lib"
49663 echo "$as_me: failed program was:" >&5
49664 sed 's/^/| /' conftest.$ac_ext >&5
49667 rm -f conftest.err conftest.$ac_objext \
49668 conftest$ac_exeext conftest.$ac_ext
49671 LIBS=$ac_func_search_save_LIBS
49673 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
49674 echo "${ECHO_T}$ac_cv_search_crypt" >&6
49675 if test "$ac_cv_search_crypt" != no; then
49676 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
49677 test "$ac_cv_search_crypt" = "none required" ||
49678 LIB_CRYPT="$ac_cv_search_crypt"
49681 LIBS="$ac_su_saved_lib"
49687 if test -n "$ac_aux_dir"; then
49688 case "$ac_aux_dir" in
49689 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
49690 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
49693 if test -z "$MKINSTALLDIRS"; then
49694 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
49699 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
49700 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
49701 # Check whether --enable-nls or --disable-nls was given.
49702 if test "${enable_nls+set}" = set; then
49703 enableval="$enable_nls"
49708 echo "$as_me:$LINENO: result: $USE_NLS" >&5
49709 echo "${ECHO_T}$USE_NLS" >&6
49716 # Prepare PATH_SEPARATOR.
49717 # The user is always right.
49718 if test "${PATH_SEPARATOR+set}" != set; then
49719 echo "#! /bin/sh" >conf$$.sh
49720 echo "exit 0" >>conf$$.sh
49722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49730 # Find out how to test for executable files. Don't use a zero-byte file,
49731 # as systems may use methods other than mode bits to determine executability.
49732 cat >conf$$.file <<_ASEOF
49736 chmod +x conf$$.file
49737 if test -x conf$$.file >/dev/null 2>&1; then
49738 ac_executable_p="test -x"
49740 ac_executable_p="test -f"
49744 # Extract the first word of "msgfmt", so it can be a program name with args.
49745 set dummy msgfmt; ac_word=$2
49746 echo "$as_me:$LINENO: checking for $ac_word" >&5
49747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49748 if test "${ac_cv_path_MSGFMT+set}" = set; then
49749 echo $ECHO_N "(cached) $ECHO_C" >&6
49753 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
49756 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49757 for ac_dir in $PATH; do
49759 test -z "$ac_dir" && ac_dir=.
49760 for ac_exec_ext in '' $ac_executable_extensions; do
49761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49762 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
49763 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49764 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
49771 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
49775 MSGFMT="$ac_cv_path_MSGFMT"
49776 if test "$MSGFMT" != ":"; then
49777 echo "$as_me:$LINENO: result: $MSGFMT" >&5
49778 echo "${ECHO_T}$MSGFMT" >&6
49780 echo "$as_me:$LINENO: result: no" >&5
49781 echo "${ECHO_T}no" >&6
49784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
49785 set dummy gmsgfmt; ac_word=$2
49786 echo "$as_me:$LINENO: checking for $ac_word" >&5
49787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49788 if test "${ac_cv_path_GMSGFMT+set}" = set; then
49789 echo $ECHO_N "(cached) $ECHO_C" >&6
49793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
49796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49797 for as_dir in $PATH
49800 test -z "$as_dir" && as_dir=.
49801 for ac_exec_ext in '' $ac_executable_extensions; do
49802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49803 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
49804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49810 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
49814 GMSGFMT=$ac_cv_path_GMSGFMT
49816 if test -n "$GMSGFMT"; then
49817 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
49818 echo "${ECHO_T}$GMSGFMT" >&6
49820 echo "$as_me:$LINENO: result: no" >&5
49821 echo "${ECHO_T}no" >&6
49826 # Prepare PATH_SEPARATOR.
49827 # The user is always right.
49828 if test "${PATH_SEPARATOR+set}" != set; then
49829 echo "#! /bin/sh" >conf$$.sh
49830 echo "exit 0" >>conf$$.sh
49832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49840 # Find out how to test for executable files. Don't use a zero-byte file,
49841 # as systems may use methods other than mode bits to determine executability.
49842 cat >conf$$.file <<_ASEOF
49846 chmod +x conf$$.file
49847 if test -x conf$$.file >/dev/null 2>&1; then
49848 ac_executable_p="test -x"
49850 ac_executable_p="test -f"
49854 # Extract the first word of "xgettext", so it can be a program name with args.
49855 set dummy xgettext; ac_word=$2
49856 echo "$as_me:$LINENO: checking for $ac_word" >&5
49857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49858 if test "${ac_cv_path_XGETTEXT+set}" = set; then
49859 echo $ECHO_N "(cached) $ECHO_C" >&6
49861 case "$XGETTEXT" in
49863 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
49866 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49867 for ac_dir in $PATH; do
49869 test -z "$ac_dir" && ac_dir=.
49870 for ac_exec_ext in '' $ac_executable_extensions; do
49871 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49872 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
49873 (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
49874 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
49881 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
49885 XGETTEXT="$ac_cv_path_XGETTEXT"
49886 if test "$XGETTEXT" != ":"; then
49887 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
49888 echo "${ECHO_T}$XGETTEXT" >&6
49890 echo "$as_me:$LINENO: result: no" >&5
49891 echo "${ECHO_T}no" >&6
49897 # Prepare PATH_SEPARATOR.
49898 # The user is always right.
49899 if test "${PATH_SEPARATOR+set}" != set; then
49900 echo "#! /bin/sh" >conf$$.sh
49901 echo "exit 0" >>conf$$.sh
49903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49911 # Find out how to test for executable files. Don't use a zero-byte file,
49912 # as systems may use methods other than mode bits to determine executability.
49913 cat >conf$$.file <<_ASEOF
49917 chmod +x conf$$.file
49918 if test -x conf$$.file >/dev/null 2>&1; then
49919 ac_executable_p="test -x"
49921 ac_executable_p="test -f"
49925 # Extract the first word of "msgmerge", so it can be a program name with args.
49926 set dummy msgmerge; ac_word=$2
49927 echo "$as_me:$LINENO: checking for $ac_word" >&5
49928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49929 if test "${ac_cv_path_MSGMERGE+set}" = set; then
49930 echo $ECHO_N "(cached) $ECHO_C" >&6
49932 case "$MSGMERGE" in
49934 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
49937 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49938 for ac_dir in $PATH; do
49940 test -z "$ac_dir" && ac_dir=.
49941 for ac_exec_ext in '' $ac_executable_extensions; do
49942 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49943 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
49944 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
49951 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
49955 MSGMERGE="$ac_cv_path_MSGMERGE"
49956 if test "$MSGMERGE" != ":"; then
49957 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
49958 echo "${ECHO_T}$MSGMERGE" >&6
49960 echo "$as_me:$LINENO: result: no" >&5
49961 echo "${ECHO_T}no" >&6
49965 if test "$GMSGFMT" != ":"; then
49966 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
49967 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49970 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
49971 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
49972 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
49977 if test "$XGETTEXT" != ":"; then
49978 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
49979 (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
49982 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
49983 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
49989 ac_config_commands="$ac_config_commands default-1"
50008 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
50009 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
50010 # Check whether --enable-nls or --disable-nls was given.
50011 if test "${enable_nls+set}" = set; then
50012 enableval="$enable_nls"
50017 echo "$as_me:$LINENO: result: $USE_NLS" >&5
50018 echo "${ECHO_T}$USE_NLS" >&6
50027 if test "$USE_NLS" = "yes"; then
50028 gt_use_preinstalled_gnugettext=no
50035 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
50036 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
50037 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
50038 echo $ECHO_N "(cached) $ECHO_C" >&6
50040 cat >conftest.$ac_ext <<_ACEOF
50043 cat confdefs.h >>conftest.$ac_ext
50044 cat >>conftest.$ac_ext <<_ACEOF
50045 /* end confdefs.h. */
50046 #include <libintl.h>
50047 extern int _nl_msg_cat_cntr;
50048 extern int *_nl_domain_bindings;
50052 bindtextdomain ("", "");
50053 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
50058 rm -f conftest.$ac_objext conftest$ac_exeext
50059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50060 (eval $ac_link) 2>conftest.er1
50062 grep -v '^ *+' conftest.er1 >conftest.err
50064 cat conftest.err >&5
50065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066 (exit $ac_status); } &&
50067 { ac_try='test -z "$ac_c_werror_flag"
50068 || test ! -s conftest.err'
50069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50070 (eval $ac_try) 2>&5
50072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50073 (exit $ac_status); }; } &&
50074 { ac_try='test -s conftest$ac_exeext'
50075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50076 (eval $ac_try) 2>&5
50078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50079 (exit $ac_status); }; }; then
50080 gt_cv_func_gnugettext2_libc=yes
50082 echo "$as_me: failed program was:" >&5
50083 sed 's/^/| /' conftest.$ac_ext >&5
50085 gt_cv_func_gnugettext2_libc=no
50087 rm -f conftest.err conftest.$ac_objext \
50088 conftest$ac_exeext conftest.$ac_ext
50090 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
50091 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
50093 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
50099 am_save_CPPFLAGS="$CPPFLAGS"
50101 for element in $INCICONV; do
50103 for x in $CPPFLAGS; do
50105 acl_save_prefix="$prefix"
50106 prefix="$acl_final_prefix"
50107 acl_save_exec_prefix="$exec_prefix"
50108 exec_prefix="$acl_final_exec_prefix"
50110 exec_prefix="$acl_save_exec_prefix"
50111 prefix="$acl_save_prefix"
50113 if test "X$x" = "X$element"; then
50118 if test -z "$haveit"; then
50119 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50124 echo "$as_me:$LINENO: checking for iconv" >&5
50125 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
50126 if test "${am_cv_func_iconv+set}" = set; then
50127 echo $ECHO_N "(cached) $ECHO_C" >&6
50130 am_cv_func_iconv="no, consider installing GNU libiconv"
50132 cat >conftest.$ac_ext <<_ACEOF
50135 cat confdefs.h >>conftest.$ac_ext
50136 cat >>conftest.$ac_ext <<_ACEOF
50137 /* end confdefs.h. */
50138 #include <stdlib.h>
50143 iconv_t cd = iconv_open("","");
50144 iconv(cd,NULL,NULL,NULL,NULL);
50150 rm -f conftest.$ac_objext conftest$ac_exeext
50151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50152 (eval $ac_link) 2>conftest.er1
50154 grep -v '^ *+' conftest.er1 >conftest.err
50156 cat conftest.err >&5
50157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158 (exit $ac_status); } &&
50159 { ac_try='test -z "$ac_c_werror_flag"
50160 || test ! -s conftest.err'
50161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50162 (eval $ac_try) 2>&5
50164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50165 (exit $ac_status); }; } &&
50166 { ac_try='test -s conftest$ac_exeext'
50167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50168 (eval $ac_try) 2>&5
50170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50171 (exit $ac_status); }; }; then
50172 am_cv_func_iconv=yes
50174 echo "$as_me: failed program was:" >&5
50175 sed 's/^/| /' conftest.$ac_ext >&5
50178 rm -f conftest.err conftest.$ac_objext \
50179 conftest$ac_exeext conftest.$ac_ext
50180 if test "$am_cv_func_iconv" != yes; then
50181 am_save_LIBS="$LIBS"
50182 LIBS="$LIBS $LIBICONV"
50183 cat >conftest.$ac_ext <<_ACEOF
50186 cat confdefs.h >>conftest.$ac_ext
50187 cat >>conftest.$ac_ext <<_ACEOF
50188 /* end confdefs.h. */
50189 #include <stdlib.h>
50194 iconv_t cd = iconv_open("","");
50195 iconv(cd,NULL,NULL,NULL,NULL);
50201 rm -f conftest.$ac_objext conftest$ac_exeext
50202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50203 (eval $ac_link) 2>conftest.er1
50205 grep -v '^ *+' conftest.er1 >conftest.err
50207 cat conftest.err >&5
50208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50209 (exit $ac_status); } &&
50210 { ac_try='test -z "$ac_c_werror_flag"
50211 || test ! -s conftest.err'
50212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50213 (eval $ac_try) 2>&5
50215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50216 (exit $ac_status); }; } &&
50217 { ac_try='test -s conftest$ac_exeext'
50218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50219 (eval $ac_try) 2>&5
50221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222 (exit $ac_status); }; }; then
50223 am_cv_lib_iconv=yes
50224 am_cv_func_iconv=yes
50226 echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50230 rm -f conftest.err conftest.$ac_objext \
50231 conftest$ac_exeext conftest.$ac_ext
50232 LIBS="$am_save_LIBS"
50236 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
50237 echo "${ECHO_T}$am_cv_func_iconv" >&6
50238 if test "$am_cv_func_iconv" = yes; then
50240 cat >>confdefs.h <<\_ACEOF
50241 #define HAVE_ICONV 1
50245 if test "$am_cv_lib_iconv" = yes; then
50246 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
50247 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
50248 echo "$as_me:$LINENO: result: $LIBICONV" >&5
50249 echo "${ECHO_T}$LIBICONV" >&6
50251 CPPFLAGS="$am_save_CPPFLAGS"
50263 acl_save_prefix="$prefix"
50264 prefix="$acl_final_prefix"
50265 acl_save_exec_prefix="$exec_prefix"
50266 exec_prefix="$acl_final_exec_prefix"
50268 eval additional_includedir=\"$includedir\"
50269 eval additional_libdir=\"$libdir\"
50271 exec_prefix="$acl_save_exec_prefix"
50272 prefix="$acl_save_prefix"
50275 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
50276 if test "${with_libintl_prefix+set}" = set; then
50277 withval="$with_libintl_prefix"
50279 if test "X$withval" = "Xno"; then
50282 if test "X$withval" = "X"; then
50284 acl_save_prefix="$prefix"
50285 prefix="$acl_final_prefix"
50286 acl_save_exec_prefix="$exec_prefix"
50287 exec_prefix="$acl_final_exec_prefix"
50289 eval additional_includedir=\"$includedir\"
50290 eval additional_libdir=\"$libdir\"
50292 exec_prefix="$acl_save_exec_prefix"
50293 prefix="$acl_save_prefix"
50296 additional_includedir="$withval/include"
50297 additional_libdir="$withval/lib"
50307 names_already_handled=
50308 names_next_round='intl '
50309 while test -n "$names_next_round"; do
50310 names_this_round="$names_next_round"
50312 for name in $names_this_round; do
50314 for n in $names_already_handled; do
50315 if test "$n" = "$name"; then
50316 already_handled=yes
50320 if test -z "$already_handled"; then
50321 names_already_handled="$names_already_handled $name"
50322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50323 eval value=\"\$HAVE_LIB$uppername\"
50324 if test -n "$value"; then
50325 if test "$value" = yes; then
50326 eval value=\"\$LIB$uppername\"
50327 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
50328 eval value=\"\$LTLIB$uppername\"
50329 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
50338 if test $use_additional = yes; then
50339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50340 found_dir="$additional_libdir"
50341 found_so="$additional_libdir/lib$name.$shlibext"
50342 if test -f "$additional_libdir/lib$name.la"; then
50343 found_la="$additional_libdir/lib$name.la"
50346 if test -f "$additional_libdir/lib$name.$libext"; then
50347 found_dir="$additional_libdir"
50348 found_a="$additional_libdir/lib$name.$libext"
50349 if test -f "$additional_libdir/lib$name.la"; then
50350 found_la="$additional_libdir/lib$name.la"
50355 if test "X$found_dir" = "X"; then
50356 for x in $LDFLAGS $LTLIBINTL; do
50358 acl_save_prefix="$prefix"
50359 prefix="$acl_final_prefix"
50360 acl_save_exec_prefix="$exec_prefix"
50361 exec_prefix="$acl_final_exec_prefix"
50363 exec_prefix="$acl_save_exec_prefix"
50364 prefix="$acl_save_prefix"
50368 dir=`echo "X$x" | sed -e 's/^X-L//'`
50369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50371 found_so="$dir/lib$name.$shlibext"
50372 if test -f "$dir/lib$name.la"; then
50373 found_la="$dir/lib$name.la"
50376 if test -f "$dir/lib$name.$libext"; then
50378 found_a="$dir/lib$name.$libext"
50379 if test -f "$dir/lib$name.la"; then
50380 found_la="$dir/lib$name.la"
50386 if test "X$found_dir" != "X"; then
50391 if test "X$found_dir" != "X"; then
50392 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
50393 if test "X$found_so" != "X"; then
50394 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
50395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50398 for x in $ltrpathdirs; do
50399 if test "X$x" = "X$found_dir"; then
50404 if test -z "$haveit"; then
50405 ltrpathdirs="$ltrpathdirs $found_dir"
50407 if test "$hardcode_direct" = yes; then
50408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50413 for x in $rpathdirs; do
50414 if test "X$x" = "X$found_dir"; then
50419 if test -z "$haveit"; then
50420 rpathdirs="$rpathdirs $found_dir"
50424 for x in $LDFLAGS $LIBINTL; do
50426 acl_save_prefix="$prefix"
50427 prefix="$acl_final_prefix"
50428 acl_save_exec_prefix="$exec_prefix"
50429 exec_prefix="$acl_final_exec_prefix"
50431 exec_prefix="$acl_save_exec_prefix"
50432 prefix="$acl_save_prefix"
50434 if test "X$x" = "X-L$found_dir"; then
50439 if test -z "$haveit"; then
50440 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
50442 if test "$hardcode_minus_L" != no; then
50443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50445 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50451 if test "X$found_a" != "X"; then
50452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
50454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
50457 additional_includedir=
50458 case "$found_dir" in
50460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
50461 additional_includedir="$basedir/include"
50464 if test "X$additional_includedir" != "X"; then
50465 if test "X$additional_includedir" != "X/usr/include"; then
50467 if test "X$additional_includedir" = "X/usr/local/include"; then
50468 if test -n "$GCC"; then
50470 linux*) haveit=yes;;
50474 if test -z "$haveit"; then
50475 for x in $CPPFLAGS $INCINTL; do
50477 acl_save_prefix="$prefix"
50478 prefix="$acl_final_prefix"
50479 acl_save_exec_prefix="$exec_prefix"
50480 exec_prefix="$acl_final_exec_prefix"
50482 exec_prefix="$acl_save_exec_prefix"
50483 prefix="$acl_save_prefix"
50485 if test "X$x" = "X-I$additional_includedir"; then
50490 if test -z "$haveit"; then
50491 if test -d "$additional_includedir"; then
50492 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
50498 if test -n "$found_la"; then
50499 save_libdir="$libdir"
50500 case "$found_la" in
50501 */* | *\\*) . "$found_la" ;;
50502 *) . "./$found_la" ;;
50504 libdir="$save_libdir"
50505 for dep in $dependency_libs; do
50508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50509 if test "X$additional_libdir" != "X/usr/lib"; then
50511 if test "X$additional_libdir" = "X/usr/local/lib"; then
50512 if test -n "$GCC"; then
50514 linux*) haveit=yes;;
50518 if test -z "$haveit"; then
50520 for x in $LDFLAGS $LIBINTL; do
50522 acl_save_prefix="$prefix"
50523 prefix="$acl_final_prefix"
50524 acl_save_exec_prefix="$exec_prefix"
50525 exec_prefix="$acl_final_exec_prefix"
50527 exec_prefix="$acl_save_exec_prefix"
50528 prefix="$acl_save_prefix"
50530 if test "X$x" = "X-L$additional_libdir"; then
50535 if test -z "$haveit"; then
50536 if test -d "$additional_libdir"; then
50537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
50541 for x in $LDFLAGS $LTLIBINTL; do
50543 acl_save_prefix="$prefix"
50544 prefix="$acl_final_prefix"
50545 acl_save_exec_prefix="$exec_prefix"
50546 exec_prefix="$acl_final_exec_prefix"
50548 exec_prefix="$acl_save_exec_prefix"
50549 prefix="$acl_save_prefix"
50551 if test "X$x" = "X-L$additional_libdir"; then
50556 if test -z "$haveit"; then
50557 if test -d "$additional_libdir"; then
50558 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
50565 dir=`echo "X$dep" | sed -e 's/^X-R//'`
50566 if test "$enable_rpath" != no; then
50568 for x in $rpathdirs; do
50569 if test "X$x" = "X$dir"; then
50574 if test -z "$haveit"; then
50575 rpathdirs="$rpathdirs $dir"
50578 for x in $ltrpathdirs; do
50579 if test "X$x" = "X$dir"; then
50584 if test -z "$haveit"; then
50585 ltrpathdirs="$ltrpathdirs $dir"
50590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50593 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50596 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
50597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
50603 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
50610 if test "X$rpathdirs" != "X"; then
50611 if test -n "$hardcode_libdir_separator"; then
50613 for found_dir in $rpathdirs; do
50614 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
50616 acl_save_libdir="$libdir"
50618 eval flag=\"$hardcode_libdir_flag_spec\"
50619 libdir="$acl_save_libdir"
50620 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50622 for found_dir in $rpathdirs; do
50623 acl_save_libdir="$libdir"
50624 libdir="$found_dir"
50625 eval flag=\"$hardcode_libdir_flag_spec\"
50626 libdir="$acl_save_libdir"
50627 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50631 if test "X$ltrpathdirs" != "X"; then
50632 for found_dir in $ltrpathdirs; do
50633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
50637 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
50638 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
50639 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
50640 echo $ECHO_N "(cached) $ECHO_C" >&6
50642 gt_save_CPPFLAGS="$CPPFLAGS"
50643 CPPFLAGS="$CPPFLAGS $INCINTL"
50644 gt_save_LIBS="$LIBS"
50645 LIBS="$LIBS $LIBINTL"
50646 cat >conftest.$ac_ext <<_ACEOF
50649 cat confdefs.h >>conftest.$ac_ext
50650 cat >>conftest.$ac_ext <<_ACEOF
50651 /* end confdefs.h. */
50652 #include <libintl.h>
50653 extern int _nl_msg_cat_cntr;
50658 const char *_nl_expand_alias ();
50662 bindtextdomain ("", "");
50663 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
50668 rm -f conftest.$ac_objext conftest$ac_exeext
50669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50670 (eval $ac_link) 2>conftest.er1
50672 grep -v '^ *+' conftest.er1 >conftest.err
50674 cat conftest.err >&5
50675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50676 (exit $ac_status); } &&
50677 { ac_try='test -z "$ac_c_werror_flag"
50678 || test ! -s conftest.err'
50679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50680 (eval $ac_try) 2>&5
50682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50683 (exit $ac_status); }; } &&
50684 { ac_try='test -s conftest$ac_exeext'
50685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50686 (eval $ac_try) 2>&5
50688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50689 (exit $ac_status); }; }; then
50690 gt_cv_func_gnugettext2_libintl=yes
50692 echo "$as_me: failed program was:" >&5
50693 sed 's/^/| /' conftest.$ac_ext >&5
50695 gt_cv_func_gnugettext2_libintl=no
50697 rm -f conftest.err conftest.$ac_objext \
50698 conftest$ac_exeext conftest.$ac_ext
50699 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
50700 LIBS="$LIBS $LIBICONV"
50701 cat >conftest.$ac_ext <<_ACEOF
50704 cat confdefs.h >>conftest.$ac_ext
50705 cat >>conftest.$ac_ext <<_ACEOF
50706 /* end confdefs.h. */
50707 #include <libintl.h>
50708 extern int _nl_msg_cat_cntr;
50713 const char *_nl_expand_alias ();
50717 bindtextdomain ("", "");
50718 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
50723 rm -f conftest.$ac_objext conftest$ac_exeext
50724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50725 (eval $ac_link) 2>conftest.er1
50727 grep -v '^ *+' conftest.er1 >conftest.err
50729 cat conftest.err >&5
50730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50731 (exit $ac_status); } &&
50732 { ac_try='test -z "$ac_c_werror_flag"
50733 || test ! -s conftest.err'
50734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50735 (eval $ac_try) 2>&5
50737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50738 (exit $ac_status); }; } &&
50739 { ac_try='test -s conftest$ac_exeext'
50740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50741 (eval $ac_try) 2>&5
50743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50744 (exit $ac_status); }; }; then
50745 LIBINTL="$LIBINTL $LIBICONV"
50746 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
50747 gt_cv_func_gnugettext2_libintl=yes
50750 echo "$as_me: failed program was:" >&5
50751 sed 's/^/| /' conftest.$ac_ext >&5
50754 rm -f conftest.err conftest.$ac_objext \
50755 conftest$ac_exeext conftest.$ac_ext
50757 CPPFLAGS="$gt_save_CPPFLAGS"
50758 LIBS="$gt_save_LIBS"
50760 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
50761 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
50764 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
50765 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
50766 && test "$PACKAGE" != gettext-runtime \
50767 && test "$PACKAGE" != gettext-tools; }; then
50768 gt_use_preinstalled_gnugettext=yes
50777 if test "$gt_use_preinstalled_gnugettext" = "yes" \
50778 || test "$nls_cv_use_gnu_gettext" = "yes"; then
50780 cat >>confdefs.h <<\_ACEOF
50781 #define ENABLE_NLS 1
50789 echo "$as_me:$LINENO: checking whether to use NLS" >&5
50790 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
50791 echo "$as_me:$LINENO: result: $USE_NLS" >&5
50792 echo "${ECHO_T}$USE_NLS" >&6
50793 if test "$USE_NLS" = "yes"; then
50794 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
50795 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
50796 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
50797 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
50798 gt_source="external libintl"
50803 gt_source="included intl directory"
50805 echo "$as_me:$LINENO: result: $gt_source" >&5
50806 echo "${ECHO_T}$gt_source" >&6
50809 if test "$USE_NLS" = "yes"; then
50811 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
50812 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
50813 echo "$as_me:$LINENO: checking how to link with libintl" >&5
50814 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
50815 echo "$as_me:$LINENO: result: $LIBINTL" >&5
50816 echo "${ECHO_T}$LIBINTL" >&6
50818 for element in $INCINTL; do
50820 for x in $CPPFLAGS; do
50822 acl_save_prefix="$prefix"
50823 prefix="$acl_final_prefix"
50824 acl_save_exec_prefix="$exec_prefix"
50825 exec_prefix="$acl_final_exec_prefix"
50827 exec_prefix="$acl_save_exec_prefix"
50828 prefix="$acl_save_prefix"
50830 if test "X$x" = "X$element"; then
50835 if test -z "$haveit"; then
50836 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50843 cat >>confdefs.h <<\_ACEOF
50844 #define HAVE_GETTEXT 1
50848 cat >>confdefs.h <<\_ACEOF
50849 #define HAVE_DCGETTEXT 1
50859 INTLLIBS="$LIBINTL"
50868 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile m4/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/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"
50870 cat >confcache <<\_ACEOF
50871 # This file is a shell script that caches the results of configure
50872 # tests run on this system so they can be shared between configure
50873 # scripts and configure runs, see configure's option --config-cache.
50874 # It is not useful on other systems. If it contains results you don't
50875 # want to keep, you may remove or edit it.
50877 # config.status only pays attention to the cache file if you give it
50878 # the --recheck option to rerun configure.
50880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50882 # following values.
50886 # The following way of writing the cache mishandles newlines in values,
50887 # but we know of no workaround that is simple, portable, and efficient.
50888 # So, don't put newlines in cache variables' values.
50889 # Ultrix sh set writes to stderr and can't be redirected directly,
50890 # and sets the high bit in the cache file unless we assign to the vars.
50893 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50895 # `set' does not quote correctly, so add quotes (double-quote
50896 # substitution turns \\\\ into \\, and sed turns \\ into \).
50899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50902 # `set' quotes correctly as required by POSIX, so do not add quotes.
50904 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
50911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50913 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50915 if diff $cache_file confcache >/dev/null 2>&1; then :; else
50916 if test -w $cache_file; then
50917 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50918 cat confcache >$cache_file
50920 echo "not updating unwritable cache $cache_file"
50925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50926 # Let make expand exec_prefix.
50927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50931 # trailing colons and then remove the whole line if VPATH becomes empty
50932 # (actually we leave an empty line to preserve line numbers).
50933 if test "x$srcdir" = x.; then
50934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
50935 s/:*\$(srcdir):*/:/;
50936 s/:*\${srcdir}:*/:/;
50938 s/^\([^=]*=[ ]*\):*/\1/;
50944 DEFS=-DHAVE_CONFIG_H
50948 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50949 # 1. Remove the extension, and $U if already installed.
50950 ac_i=`echo "$ac_i" |
50951 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
50953 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50954 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50956 LIBOBJS=$ac_libobjs
50958 LTLIBOBJS=$ac_ltlibobjs
50961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50962 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
50963 Usually this means the macro was only invoked conditionally." >&5
50964 echo "$as_me: error: conditional \"AMDEP\" was never defined.
50965 Usually this means the macro was only invoked conditionally." >&2;}
50966 { (exit 1); exit 1; }; }
50968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50969 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50970 Usually this means the macro was only invoked conditionally." >&5
50971 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50972 Usually this means the macro was only invoked conditionally." >&2;}
50973 { (exit 1); exit 1; }; }
50975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50976 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50977 Usually this means the macro was only invoked conditionally." >&5
50978 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50979 Usually this means the macro was only invoked conditionally." >&2;}
50980 { (exit 1); exit 1; }; }
50983 : ${CONFIG_STATUS=./config.status}
50984 ac_clean_files_save=$ac_clean_files
50985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50988 cat >$CONFIG_STATUS <<_ACEOF
50990 # Generated by $as_me.
50991 # Run this file to recreate the current configuration.
50992 # Compiler output produced by configure, useful for debugging
50993 # configure, is in config.log if it exists.
50996 ac_cs_recheck=false
50998 SHELL=\${CONFIG_SHELL-$SHELL}
51001 cat >>$CONFIG_STATUS <<\_ACEOF
51002 ## --------------------- ##
51003 ## M4sh Initialization. ##
51004 ## --------------------- ##
51006 # Be Bourne compatible
51007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51011 # is contrary to our usage. Disable this feature.
51012 alias -g '${1+"$@"}'='"$@"'
51013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51016 DUALCASE=1; export DUALCASE # for MKS sh
51018 # Support unset when possible.
51019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51026 # Work around bugs in pre-3.0 UWIN ksh.
51027 $as_unset ENV MAIL MAILPATH
51034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51036 LC_TELEPHONE LC_TIME
51038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51039 eval $as_var=C; export $as_var
51045 # Required to use basename.
51046 if expr a : '\(a\)' >/dev/null 2>&1; then
51052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51053 as_basename=basename
51059 # Name of the executable.
51060 as_me=`$as_basename "$0" ||
51061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51062 X"$0" : 'X\(//\)$' \| \
51063 X"$0" : 'X\(/\)$' \| \
51064 . : '\(.\)' 2>/dev/null ||
51066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51067 /^X\/\(\/\/\)$/{ s//\1/; q; }
51068 /^X\/\(\/\).*/{ s//\1/; q; }
51072 # PATH needs CR, and LINENO needs CR and PATH.
51073 # Avoid depending upon Character Ranges.
51074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51077 as_cr_digits='0123456789'
51078 as_cr_alnum=$as_cr_Letters$as_cr_digits
51080 # The user is always right.
51081 if test "${PATH_SEPARATOR+set}" != set; then
51082 echo "#! /bin/sh" >conf$$.sh
51083 echo "exit 0" >>conf$$.sh
51085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51094 as_lineno_1=$LINENO
51095 as_lineno_2=$LINENO
51096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51097 test "x$as_lineno_1" != "x$as_lineno_2" &&
51098 test "x$as_lineno_3" = "x$as_lineno_2" || {
51099 # Find who we are. Look in the path if we contain no path at all
51102 *[\\/]* ) as_myself=$0 ;;
51103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51104 for as_dir in $PATH
51107 test -z "$as_dir" && as_dir=.
51108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51113 # We did not find ourselves, most probably we were run as `sh COMMAND'
51114 # in which case we are not to be found in the path.
51115 if test "x$as_myself" = x; then
51118 if test ! -f "$as_myself"; then
51119 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51121 { (exit 1); exit 1; }; }
51123 case $CONFIG_SHELL in
51125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51129 test -z "$as_dir" && as_dir=.
51130 for as_base in sh bash ksh sh5; do
51133 if ("$as_dir/$as_base" -c '
51134 as_lineno_1=$LINENO
51135 as_lineno_2=$LINENO
51136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51137 test "x$as_lineno_1" != "x$as_lineno_2" &&
51138 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51139 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51140 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51141 CONFIG_SHELL=$as_dir/$as_base
51142 export CONFIG_SHELL
51143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51152 # uniformly replaced by the line number. The first 'sed' inserts a
51153 # line-number line before each line; the second 'sed' does the real
51154 # work. The second script uses 'N' to pair each line-number line
51155 # with the numbered line, and appends trailing '-' during
51156 # substitution so that $LINENO is not a special case at line end.
51157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51159 sed '=' <$as_myself |
51164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51167 s,^['$as_cr_digits']*\n,,
51168 ' >$as_me.lineno &&
51169 chmod +x $as_me.lineno ||
51170 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51172 { (exit 1); exit 1; }; }
51174 # Don't try to exec as it changes $[0], causing all sort of problems
51175 # (the dirname of $[0] is not the place where we might find the
51176 # original and so on. Autoconf is especially sensible to this).
51178 # Exit status is that of the last command.
51183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51184 *c*,-n*) ECHO_N= ECHO_C='
51186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51190 if expr a : '\(a\)' >/dev/null 2>&1; then
51196 rm -f conf$$ conf$$.exe conf$$.file
51198 if ln -s conf$$.file conf$$ 2>/dev/null; then
51199 # We could just check for DJGPP; but this test a) works b) is more generic
51200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51201 if test -f conf$$.exe; then
51202 # Don't use ln at all; we don't have any links
51207 elif ln conf$$.file conf$$ 2>/dev/null; then
51212 rm -f conf$$ conf$$.exe conf$$.file
51214 if mkdir -p . 2>/dev/null; then
51217 test -d ./-p && rmdir ./-p
51221 as_executable_p="test -f"
51223 # Sed expression to map a string onto a valid CPP name.
51224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51226 # Sed expression to map a string onto a valid variable name.
51227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51231 # We need space, tab and new line, in precisely that order.
51241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51242 # report actual input values of CONFIG_FILES etc. instead of their
51243 # values after options handling. Logging --version etc. is OK.
51247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51248 ## Running $as_me. ##
51253 This file was extended by GNU coreutils $as_me 5.2.1, which was
51254 generated by GNU Autoconf 2.59. Invocation command line was
51256 CONFIG_FILES = $CONFIG_FILES
51257 CONFIG_HEADERS = $CONFIG_HEADERS
51258 CONFIG_LINKS = $CONFIG_LINKS
51259 CONFIG_COMMANDS = $CONFIG_COMMANDS
51263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51267 # Files that config.status was made for.
51268 if test -n "$ac_config_files"; then
51269 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51272 if test -n "$ac_config_headers"; then
51273 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51276 if test -n "$ac_config_links"; then
51277 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51280 if test -n "$ac_config_commands"; then
51281 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51284 cat >>$CONFIG_STATUS <<\_ACEOF
51287 \`$as_me' instantiates files from templates according to the
51288 current configuration.
51290 Usage: $0 [OPTIONS] [FILE]...
51292 -h, --help print this help, then exit
51293 -V, --version print version number, then exit
51294 -q, --quiet do not print progress messages
51295 -d, --debug don't remove temporary files
51296 --recheck update $as_me by reconfiguring in the same conditions
51297 --file=FILE[:TEMPLATE]
51298 instantiate the configuration file FILE
51299 --header=FILE[:TEMPLATE]
51300 instantiate the configuration header FILE
51302 Configuration files:
51305 Configuration headers:
51308 Configuration commands:
51311 Report bugs to <bug-autoconf@gnu.org>."
51314 cat >>$CONFIG_STATUS <<_ACEOF
51316 GNU coreutils config.status 5.2.1
51317 configured by $0, generated by GNU Autoconf 2.59,
51318 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51320 Copyright (C) 2003 Free Software Foundation, Inc.
51321 This config.status script is free software; the Free Software Foundation
51322 gives unlimited permission to copy, distribute and modify it."
51327 cat >>$CONFIG_STATUS <<\_ACEOF
51328 # If no file are specified by the user, then we need to provide default
51329 # value. By we need to know if files were specified by the user.
51335 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51336 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51344 *) # This is not an option, so the user has probably given explicit
51347 ac_need_defaults=false;;
51351 # Handling of the options.
51353 cat >>$CONFIG_STATUS <<\_ACEOF
51354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51356 --version | --vers* | -V )
51357 echo "$ac_cs_version"; exit 0 ;;
51359 # Conflict between --help and --header
51360 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51361 Try \`$0 --help' for more information." >&5
51362 echo "$as_me: error: ambiguous option: $1
51363 Try \`$0 --help' for more information." >&2;}
51364 { (exit 1); exit 1; }; };;
51365 --help | --hel | -h )
51366 echo "$ac_cs_usage"; exit 0 ;;
51367 --debug | --d* | -d )
51369 --file | --fil | --fi | --f )
51371 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51372 ac_need_defaults=false;;
51373 --header | --heade | --head | --hea )
51375 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51376 ac_need_defaults=false;;
51377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51381 # This is an error.
51382 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51383 Try \`$0 --help' for more information." >&5
51384 echo "$as_me: error: unrecognized option: $1
51385 Try \`$0 --help' for more information." >&2;}
51386 { (exit 1); exit 1; }; } ;;
51388 *) ac_config_targets="$ac_config_targets $1" ;;
51394 ac_configure_extra_args=
51396 if $ac_cs_silent; then
51398 ac_configure_extra_args="$ac_configure_extra_args --silent"
51402 cat >>$CONFIG_STATUS <<_ACEOF
51403 if \$ac_cs_recheck; then
51404 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51405 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51410 cat >>$CONFIG_STATUS <<_ACEOF
51412 # INIT-COMMANDS section.
51415 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51416 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51417 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51419 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51420 # Capture the value of LINGUAS because we need it to compute CATALOGS.
51421 LINGUAS="${LINGUAS-%UNSET%}"
51428 cat >>$CONFIG_STATUS <<\_ACEOF
51429 for ac_config_target in $ac_config_targets
51431 case "$ac_config_target" in
51432 # Handling of arguments.
51433 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51434 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51435 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51436 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
51437 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
51438 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51439 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51440 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51441 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
51442 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
51443 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
51444 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
51445 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
51446 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
51447 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
51448 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
51449 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
51450 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
51451 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
51452 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
51453 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
51454 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
51455 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
51456 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
51457 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
51458 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
51459 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
51460 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
51461 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
51462 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
51463 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
51464 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
51465 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
51466 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
51467 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
51468 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
51469 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
51470 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
51471 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
51472 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
51473 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
51474 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
51475 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
51476 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
51477 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
51478 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
51479 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
51480 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
51481 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
51482 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
51483 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
51484 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51485 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
51486 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
51487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51489 { (exit 1); exit 1; }; };;
51493 # If the user did not use the arguments to specify the items to instantiate,
51494 # then the envvar interface is used. Set only those that are not.
51495 # We use the long form for the default assignment because of an extremely
51496 # bizarre bug on SunOS 4.1.3.
51497 if $ac_need_defaults; then
51498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51503 # Have a temporary directory for convenience. Make it in the build tree
51504 # simply because there is no reason to put it here, and in addition,
51505 # creating and moving files from /tmp can sometimes cause problems.
51506 # Create a temporary directory, and hook for its removal unless debugging.
51509 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51510 trap '{ (exit 1); exit 1; }' 1 2 13 15
51513 # Create a (secure) tmp directory for tmp files.
51516 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51517 test -n "$tmp" && test -d "$tmp"
51520 tmp=./confstat$$-$RANDOM
51521 (umask 077 && mkdir $tmp)
51524 echo "$me: cannot create a temporary directory in ." >&2
51525 { (exit 1); exit 1; }
51530 cat >>$CONFIG_STATUS <<_ACEOF
51533 # CONFIG_FILES section.
51536 # No need to generate the scripts if there are no CONFIG_FILES.
51537 # This happens for instance when ./config.status config.h
51538 if test -n "\$CONFIG_FILES"; then
51539 # Protect against being on the right side of a sed subst in config.status.
51540 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51541 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51542 s,@SHELL@,$SHELL,;t t
51543 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51544 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51545 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51546 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51547 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51548 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51549 s,@exec_prefix@,$exec_prefix,;t t
51550 s,@prefix@,$prefix,;t t
51551 s,@program_transform_name@,$program_transform_name,;t t
51552 s,@bindir@,$bindir,;t t
51553 s,@sbindir@,$sbindir,;t t
51554 s,@libexecdir@,$libexecdir,;t t
51555 s,@datadir@,$datadir,;t t
51556 s,@sysconfdir@,$sysconfdir,;t t
51557 s,@sharedstatedir@,$sharedstatedir,;t t
51558 s,@localstatedir@,$localstatedir,;t t
51559 s,@libdir@,$libdir,;t t
51560 s,@includedir@,$includedir,;t t
51561 s,@oldincludedir@,$oldincludedir,;t t
51562 s,@infodir@,$infodir,;t t
51563 s,@mandir@,$mandir,;t t
51564 s,@build_alias@,$build_alias,;t t
51565 s,@host_alias@,$host_alias,;t t
51566 s,@target_alias@,$target_alias,;t t
51567 s,@DEFS@,$DEFS,;t t
51568 s,@ECHO_C@,$ECHO_C,;t t
51569 s,@ECHO_N@,$ECHO_N,;t t
51570 s,@ECHO_T@,$ECHO_T,;t t
51571 s,@LIBS@,$LIBS,;t t
51572 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51573 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51574 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51575 s,@CYGPATH_W@,$CYGPATH_W,;t t
51576 s,@PACKAGE@,$PACKAGE,;t t
51577 s,@VERSION@,$VERSION,;t t
51578 s,@ACLOCAL@,$ACLOCAL,;t t
51579 s,@AUTOCONF@,$AUTOCONF,;t t
51580 s,@AUTOMAKE@,$AUTOMAKE,;t t
51581 s,@AUTOHEADER@,$AUTOHEADER,;t t
51582 s,@MAKEINFO@,$MAKEINFO,;t t
51583 s,@AMTAR@,$AMTAR,;t t
51584 s,@install_sh@,$install_sh,;t t
51585 s,@STRIP@,$STRIP,;t t
51586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51587 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51588 s,@mkdir_p@,$mkdir_p,;t t
51590 s,@SET_MAKE@,$SET_MAKE,;t t
51591 s,@am__leading_dot@,$am__leading_dot,;t t
51592 s,@DEFAULT_POSIX2_VERSION@,$DEFAULT_POSIX2_VERSION,;t t
51594 s,@CFLAGS@,$CFLAGS,;t t
51595 s,@LDFLAGS@,$LDFLAGS,;t t
51596 s,@CPPFLAGS@,$CPPFLAGS,;t t
51597 s,@ac_ct_CC@,$ac_ct_CC,;t t
51598 s,@EXEEXT@,$EXEEXT,;t t
51599 s,@OBJEXT@,$OBJEXT,;t t
51600 s,@DEPDIR@,$DEPDIR,;t t
51601 s,@am__include@,$am__include,;t t
51602 s,@am__quote@,$am__quote,;t t
51603 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51604 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51605 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51606 s,@CCDEPMODE@,$CCDEPMODE,;t t
51607 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51608 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51610 s,@EGREP@,$EGREP,;t t
51611 s,@PERL@,$PERL,;t t
51612 s,@RANLIB@,$RANLIB,;t t
51613 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51614 s,@LN_S@,$LN_S,;t t
51615 s,@build@,$build,;t t
51616 s,@build_cpu@,$build_cpu,;t t
51617 s,@build_vendor@,$build_vendor,;t t
51618 s,@build_os@,$build_os,;t t
51619 s,@host@,$host,;t t
51620 s,@host_cpu@,$host_cpu,;t t
51621 s,@host_vendor@,$host_vendor,;t t
51622 s,@host_os@,$host_os,;t t
51623 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
51624 s,@HELP2MAN@,$HELP2MAN,;t t
51625 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
51627 s,@DF_PROG@,$DF_PROG,;t t
51629 s,@ANSI2KNR@,$ANSI2KNR,;t t
51630 s,@LIBOBJS@,$LIBOBJS,;t t
51631 s,@STDBOOL_H@,$STDBOOL_H,;t t
51632 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
51633 s,@ALLOCA@,$ALLOCA,;t t
51634 s,@ALLOCA_H@,$ALLOCA_H,;t t
51635 s,@FNMATCH_H@,$FNMATCH_H,;t t
51636 s,@NEED_SETGID@,$NEED_SETGID,;t t
51637 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
51638 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
51639 s,@POW_LIB@,$POW_LIB,;t t
51640 s,@YACC@,$YACC,;t t
51641 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
51642 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
51643 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
51644 s,@GLIBC21@,$GLIBC21,;t t
51645 s,@LIBICONV@,$LIBICONV,;t t
51646 s,@LTLIBICONV@,$LTLIBICONV,;t t
51647 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
51648 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
51649 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
51650 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
51651 s,@USE_NLS@,$USE_NLS,;t t
51652 s,@MSGFMT@,$MSGFMT,;t t
51653 s,@GMSGFMT@,$GMSGFMT,;t t
51654 s,@XGETTEXT@,$XGETTEXT,;t t
51655 s,@MSGMERGE@,$MSGMERGE,;t t
51656 s,@INTLLIBS@,$INTLLIBS,;t t
51657 s,@LIBINTL@,$LIBINTL,;t t
51658 s,@LTLIBINTL@,$LTLIBINTL,;t t
51659 s,@POSUB@,$POSUB,;t t
51660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51665 cat >>$CONFIG_STATUS <<\_ACEOF
51666 # Split the substitutions into bite-sized pieces for seds with
51667 # small command number limits, like on Digital OSF/1 and HP-UX.
51668 ac_max_sed_lines=48
51669 ac_sed_frag=1 # Number of current file.
51670 ac_beg=1 # First line for current file.
51671 ac_end=$ac_max_sed_lines # Line after last line for current file.
51674 while $ac_more_lines; do
51675 if test $ac_beg -gt 1; then
51676 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51678 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51680 if test ! -s $tmp/subs.frag; then
51681 ac_more_lines=false
51683 # The purpose of the label and of the branching condition is to
51684 # speed up the sed processing (if there are no `@' at all, there
51685 # is no need to browse any of the substitutions).
51686 # These are the two extra sed commands mentioned above.
51688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51689 if test -z "$ac_sed_cmds"; then
51690 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51692 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51694 ac_sed_frag=`expr $ac_sed_frag + 1`
51696 ac_end=`expr $ac_end + $ac_max_sed_lines`
51699 if test -z "$ac_sed_cmds"; then
51702 fi # test -n "$CONFIG_FILES"
51705 cat >>$CONFIG_STATUS <<\_ACEOF
51706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51709 - | *:- | *:-:* ) # input from stdin
51711 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51713 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51715 * ) ac_file_in=$ac_file.in ;;
51718 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51719 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51721 X"$ac_file" : 'X\(//\)[^/]' \| \
51722 X"$ac_file" : 'X\(//\)$' \| \
51723 X"$ac_file" : 'X\(/\)' \| \
51724 . : '\(.\)' 2>/dev/null ||
51726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51728 /^X\(\/\/\)$/{ s//\1/; q; }
51729 /^X\(\/\).*/{ s//\1/; q; }
51731 { if $as_mkdir_p; then
51736 while test ! -d "$as_dir"; do
51737 as_dirs="$as_dir $as_dirs"
51738 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51740 X"$as_dir" : 'X\(//\)[^/]' \| \
51741 X"$as_dir" : 'X\(//\)$' \| \
51742 X"$as_dir" : 'X\(/\)' \| \
51743 . : '\(.\)' 2>/dev/null ||
51745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51747 /^X\(\/\/\)$/{ s//\1/; q; }
51748 /^X\(\/\).*/{ s//\1/; q; }
51751 test ! -n "$as_dirs" || mkdir $as_dirs
51752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51754 { (exit 1); exit 1; }; }; }
51758 if test "$ac_dir" != .; then
51759 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51760 # A "../" for each directory in $ac_dir_suffix.
51761 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51763 ac_dir_suffix= ac_top_builddir=
51767 .) # No --srcdir option. We are building in place.
51769 if test -z "$ac_top_builddir"; then
51772 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51774 [\\/]* | ?:[\\/]* ) # Absolute path.
51775 ac_srcdir=$srcdir$ac_dir_suffix;
51776 ac_top_srcdir=$srcdir ;;
51777 *) # Relative path.
51778 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51779 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51782 # Do not use `cd foo && pwd` to compute absolute paths, because
51783 # the directories may not exist.
51785 .) ac_abs_builddir="$ac_dir";;
51788 .) ac_abs_builddir=`pwd`;;
51789 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51790 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51793 case $ac_abs_builddir in
51794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51796 case ${ac_top_builddir}. in
51797 .) ac_abs_top_builddir=$ac_abs_builddir;;
51798 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51799 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51802 case $ac_abs_builddir in
51803 .) ac_abs_srcdir=$ac_srcdir;;
51806 .) ac_abs_srcdir=$ac_abs_builddir;;
51807 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51808 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51811 case $ac_abs_builddir in
51812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51814 case $ac_top_srcdir in
51815 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51816 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51817 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51824 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51827 if test x"$ac_file" != x-; then
51828 { echo "$as_me:$LINENO: creating $ac_file" >&5
51829 echo "$as_me: creating $ac_file" >&6;}
51832 # Let's still pretend it is `configure' which instantiates (i.e., don't
51833 # use $as_me), people would be surprised to read:
51834 # /* config.h. Generated by config.status. */
51835 if test x"$ac_file" = x-; then
51838 configure_input="$ac_file. "
51840 configure_input=$configure_input"Generated from `echo $ac_file_in |
51841 sed 's,.*/,,'` by configure."
51843 # First look for the input files in the build tree, otherwise in the
51845 ac_file_inputs=`IFS=:
51846 for f in $ac_file_in; do
51848 -) echo $tmp/stdin ;;
51850 # Absolute (can't be DOS-style, as IFS=:)
51851 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51852 echo "$as_me: error: cannot find input file: $f" >&2;}
51853 { (exit 1); exit 1; }; }
51856 if test -f "$f"; then
51859 elif test -f "$srcdir/$f"; then
51864 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51865 echo "$as_me: error: cannot find input file: $f" >&2;}
51866 { (exit 1); exit 1; }; }
51869 done` || { (exit 1); exit 1; }
51871 cat >>$CONFIG_STATUS <<_ACEOF
51875 cat >>$CONFIG_STATUS <<\_ACEOF
51877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51878 s,@configure_input@,$configure_input,;t t
51879 s,@srcdir@,$ac_srcdir,;t t
51880 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51881 s,@top_srcdir@,$ac_top_srcdir,;t t
51882 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51883 s,@builddir@,$ac_builddir,;t t
51884 s,@abs_builddir@,$ac_abs_builddir,;t t
51885 s,@top_builddir@,$ac_top_builddir,;t t
51886 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51887 s,@INSTALL@,$ac_INSTALL,;t t
51888 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51890 if test x"$ac_file" != x-; then
51891 mv $tmp/out $ac_file
51899 cat >>$CONFIG_STATUS <<\_ACEOF
51902 # CONFIG_HEADER section.
51905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51908 # ac_d sets the value in "#define NAME VALUE" lines.
51909 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51910 ac_dB='[ ].*$,\1#\2'
51913 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51914 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
51915 ac_uB='$,\1#\2define\3'
51919 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51922 - | *:- | *:-:* ) # input from stdin
51924 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51926 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51928 * ) ac_file_in=$ac_file.in ;;
51931 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51932 echo "$as_me: creating $ac_file" >&6;}
51934 # First look for the input files in the build tree, otherwise in the
51936 ac_file_inputs=`IFS=:
51937 for f in $ac_file_in; do
51939 -) echo $tmp/stdin ;;
51941 # Absolute (can't be DOS-style, as IFS=:)
51942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51943 echo "$as_me: error: cannot find input file: $f" >&2;}
51944 { (exit 1); exit 1; }; }
51945 # Do quote $f, to prevent DOS paths from being IFS'd.
51948 if test -f "$f"; then
51951 elif test -f "$srcdir/$f"; then
51956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51957 echo "$as_me: error: cannot find input file: $f" >&2;}
51958 { (exit 1); exit 1; }; }
51961 done` || { (exit 1); exit 1; }
51962 # Remove the trailing spaces.
51963 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
51967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51968 # `conftest.undefs', that substitutes the proper values into
51969 # config.h.in to produce config.h. The first handles `#define'
51970 # templates, and the second `#undef' templates.
51971 # And first: Protect against being on the right side of a sed subst in
51972 # config.status. Protect against being in an unquoted here document
51973 # in config.status.
51974 rm -f conftest.defines conftest.undefs
51975 # Using a here document instead of a string reduces the quoting nightmare.
51976 # Putting comments in sed scripts is not portable.
51978 # `end' is used to avoid that the second main sed command (meant for
51979 # 0-ary CPP macros) applies to n-ary macro definitions.
51980 # See the Autoconf documentation for `clear'.
51981 cat >confdef2sed.sed <<\_ACEOF
51986 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51988 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51991 # If some macros were called several times there might be several times
51992 # the same #defines, which is useless. Nevertheless, we may not want to
51993 # sort them, since we want the *last* AC-DEFINE to be honored.
51994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51996 rm -f confdef2sed.sed
51998 # This sed command replaces #undef with comments. This is necessary, for
51999 # example, in the case of _POSIX_SOURCE, which is predefined and required
52000 # on some systems where configure will not decide to define it.
52001 cat >>conftest.undefs <<\_ACEOF
52002 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52005 # Break up conftest.defines because some shells have a limit on the size
52006 # of here documents, and old seds have small limits too (100 cmds).
52007 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52008 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52009 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52010 echo ' :' >>$CONFIG_STATUS
52011 rm -f conftest.tail
52012 while grep . conftest.defines >/dev/null
52014 # Write a limited-size here document to $tmp/defines.sed.
52015 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52016 # Speed up: don't consider the non `#define' lines.
52017 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52018 # Work around the forget-to-reset-the-flag bug.
52019 echo 't clr' >>$CONFIG_STATUS
52020 echo ': clr' >>$CONFIG_STATUS
52021 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52023 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52025 mv $tmp/out $tmp/in
52027 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52028 rm -f conftest.defines
52029 mv conftest.tail conftest.defines
52031 rm -f conftest.defines
52032 echo ' fi # grep' >>$CONFIG_STATUS
52033 echo >>$CONFIG_STATUS
52035 # Break up conftest.undefs because some shells have a limit on the size
52036 # of here documents, and old seds have small limits too (100 cmds).
52037 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52038 rm -f conftest.tail
52039 while grep . conftest.undefs >/dev/null
52041 # Write a limited-size here document to $tmp/undefs.sed.
52042 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52043 # Speed up: don't consider the non `#undef'
52044 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52045 # Work around the forget-to-reset-the-flag bug.
52046 echo 't clr' >>$CONFIG_STATUS
52047 echo ': clr' >>$CONFIG_STATUS
52048 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52050 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52052 mv $tmp/out $tmp/in
52054 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52055 rm -f conftest.undefs
52056 mv conftest.tail conftest.undefs
52058 rm -f conftest.undefs
52060 cat >>$CONFIG_STATUS <<\_ACEOF
52061 # Let's still pretend it is `configure' which instantiates (i.e., don't
52062 # use $as_me), people would be surprised to read:
52063 # /* config.h. Generated by config.status. */
52064 if test x"$ac_file" = x-; then
52065 echo "/* Generated by configure. */" >$tmp/config.h
52067 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52069 cat $tmp/in >>$tmp/config.h
52071 if test x"$ac_file" != x-; then
52072 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52073 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52074 echo "$as_me: $ac_file is unchanged" >&6;}
52076 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52078 X"$ac_file" : 'X\(//\)[^/]' \| \
52079 X"$ac_file" : 'X\(//\)$' \| \
52080 X"$ac_file" : 'X\(/\)' \| \
52081 . : '\(.\)' 2>/dev/null ||
52083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52085 /^X\(\/\/\)$/{ s//\1/; q; }
52086 /^X\(\/\).*/{ s//\1/; q; }
52088 { if $as_mkdir_p; then
52093 while test ! -d "$as_dir"; do
52094 as_dirs="$as_dir $as_dirs"
52095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52097 X"$as_dir" : 'X\(//\)[^/]' \| \
52098 X"$as_dir" : 'X\(//\)$' \| \
52099 X"$as_dir" : 'X\(/\)' \| \
52100 . : '\(.\)' 2>/dev/null ||
52102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52104 /^X\(\/\/\)$/{ s//\1/; q; }
52105 /^X\(\/\).*/{ s//\1/; q; }
52108 test ! -n "$as_dirs" || mkdir $as_dirs
52109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52111 { (exit 1); exit 1; }; }; }
52114 mv $tmp/config.h $ac_file
52118 rm -f $tmp/config.h
52120 # Compute $ac_file's index in $config_headers.
52122 for _am_header in $config_headers :; do
52123 case $_am_header in
52124 $ac_file | $ac_file:* )
52127 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52130 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52131 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52132 X$ac_file : 'X\(//\)[^/]' \| \
52133 X$ac_file : 'X\(//\)$' \| \
52134 X$ac_file : 'X\(/\)' \| \
52135 . : '\(.\)' 2>/dev/null ||
52137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52139 /^X\(\/\/\)$/{ s//\1/; q; }
52140 /^X\(\/\).*/{ s//\1/; q; }
52141 s/.*/./; q'`/stamp-h$_am_stamp_count
52144 cat >>$CONFIG_STATUS <<\_ACEOF
52147 # CONFIG_COMMANDS section.
52149 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52150 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52151 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52152 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52154 X"$ac_dest" : 'X\(//\)[^/]' \| \
52155 X"$ac_dest" : 'X\(//\)$' \| \
52156 X"$ac_dest" : 'X\(/\)' \| \
52157 . : '\(.\)' 2>/dev/null ||
52159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52161 /^X\(\/\/\)$/{ s//\1/; q; }
52162 /^X\(\/\).*/{ s//\1/; q; }
52164 { if $as_mkdir_p; then
52169 while test ! -d "$as_dir"; do
52170 as_dirs="$as_dir $as_dirs"
52171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52173 X"$as_dir" : 'X\(//\)[^/]' \| \
52174 X"$as_dir" : 'X\(//\)$' \| \
52175 X"$as_dir" : 'X\(/\)' \| \
52176 . : '\(.\)' 2>/dev/null ||
52178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52180 /^X\(\/\/\)$/{ s//\1/; q; }
52181 /^X\(\/\).*/{ s//\1/; q; }
52184 test ! -n "$as_dirs" || mkdir $as_dirs
52185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52187 { (exit 1); exit 1; }; }; }
52191 if test "$ac_dir" != .; then
52192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52193 # A "../" for each directory in $ac_dir_suffix.
52194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52196 ac_dir_suffix= ac_top_builddir=
52200 .) # No --srcdir option. We are building in place.
52202 if test -z "$ac_top_builddir"; then
52205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52207 [\\/]* | ?:[\\/]* ) # Absolute path.
52208 ac_srcdir=$srcdir$ac_dir_suffix;
52209 ac_top_srcdir=$srcdir ;;
52210 *) # Relative path.
52211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52215 # Do not use `cd foo && pwd` to compute absolute paths, because
52216 # the directories may not exist.
52218 .) ac_abs_builddir="$ac_dir";;
52221 .) ac_abs_builddir=`pwd`;;
52222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52223 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52226 case $ac_abs_builddir in
52227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52229 case ${ac_top_builddir}. in
52230 .) ac_abs_top_builddir=$ac_abs_builddir;;
52231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52235 case $ac_abs_builddir in
52236 .) ac_abs_srcdir=$ac_srcdir;;
52239 .) ac_abs_srcdir=$ac_abs_builddir;;
52240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52244 case $ac_abs_builddir in
52245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52247 case $ac_top_srcdir in
52248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52255 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52256 echo "$as_me: executing $ac_dest commands" >&6;}
52258 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52259 # Strip MF so we end up with the name of the file.
52260 mf=`echo "$mf" | sed -e 's/:.*$//'`
52261 # Check whether this is an Automake generated Makefile or not.
52262 # We used to match only the files named `Makefile.in', but
52263 # some people rename them; so instead we look at the file content.
52264 # Grep'ing the first line is not enough: some people post-process
52265 # each Makefile.in and add a new line on top of each file to say so.
52266 # So let's grep whole file.
52267 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52268 dirpart=`(dirname "$mf") 2>/dev/null ||
52269 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52270 X"$mf" : 'X\(//\)[^/]' \| \
52271 X"$mf" : 'X\(//\)$' \| \
52272 X"$mf" : 'X\(/\)' \| \
52273 . : '\(.\)' 2>/dev/null ||
52275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52277 /^X\(\/\/\)$/{ s//\1/; q; }
52278 /^X\(\/\).*/{ s//\1/; q; }
52283 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
52284 # Extract the definition of DEP_FILES from the Makefile without
52286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52287 test -z "$DEPDIR" && continue
52288 # When using ansi2knr, U may be empty or an underscore; expand it
52289 U=`sed -n 's/^U = //p' < "$mf"`
52290 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
52291 # We invoke sed twice because it is the simplest approach to
52292 # changing $(DEPDIR) to its actual value in the expansion.
52293 for file in `sed -n '
52294 /^DEP_FILES = .*\\\\$/ {
52303 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
52304 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52305 # Make sure the directory exists.
52306 test -f "$dirpart/$file" && continue
52307 fdir=`(dirname "$file") 2>/dev/null ||
52308 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52309 X"$file" : 'X\(//\)[^/]' \| \
52310 X"$file" : 'X\(//\)$' \| \
52311 X"$file" : 'X\(/\)' \| \
52312 . : '\(.\)' 2>/dev/null ||
52314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52316 /^X\(\/\/\)$/{ s//\1/; q; }
52317 /^X\(\/\).*/{ s//\1/; q; }
52319 { if $as_mkdir_p; then
52320 mkdir -p $dirpart/$fdir
52322 as_dir=$dirpart/$fdir
52324 while test ! -d "$as_dir"; do
52325 as_dirs="$as_dir $as_dirs"
52326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52328 X"$as_dir" : 'X\(//\)[^/]' \| \
52329 X"$as_dir" : 'X\(//\)$' \| \
52330 X"$as_dir" : 'X\(/\)' \| \
52331 . : '\(.\)' 2>/dev/null ||
52333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52335 /^X\(\/\/\)$/{ s//\1/; q; }
52336 /^X\(\/\).*/{ s//\1/; q; }
52339 test ! -n "$as_dirs" || mkdir $as_dirs
52340 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52341 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52342 { (exit 1); exit 1; }; }; }
52344 # echo "creating $dirpart/$file"
52345 echo '# dummy' > "$dirpart/$file"
52350 for ac_file in $CONFIG_FILES; do
52351 # Support "outfile[:infile[:infile...]]"
52353 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52355 # PO directories have a Makefile.in generated from Makefile.in.in.
52356 case "$ac_file" in */Makefile.in)
52357 # Adjust a relative srcdir.
52358 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52359 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52360 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52361 # In autoconf-2.13 it is called $ac_given_srcdir.
52362 # In autoconf-2.50 it is called $srcdir.
52363 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52364 case "$ac_given_srcdir" in
52365 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52366 /*) top_srcdir="$ac_given_srcdir" ;;
52367 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
52369 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52370 rm -f "$ac_dir/POTFILES"
52371 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52372 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52373 POMAKEFILEDEPS="POTFILES.in"
52374 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52375 # on $ac_dir but don't depend on user-specified configuration
52377 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52378 # The LINGUAS file contains the set of available languages.
52379 if test -n "$OBSOLETE_ALL_LINGUAS"; then
52380 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52382 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52383 # Hide the ALL_LINGUAS assigment from automake.
52384 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52385 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52387 # The set of available languages was given in configure.in.
52388 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52391 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52392 # Compute UPDATEPOFILES
52393 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52394 # Compute DUMMYPOFILES
52395 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52397 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52398 case "$ac_given_srcdir" in
52400 *) srcdirpre='$(srcdir)/' ;;
52406 for lang in $ALL_LINGUAS; do
52407 POFILES="$POFILES $srcdirpre$lang.po"
52408 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52409 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52412 # CATALOGS depends on both $ac_dir and the user's LINGUAS
52413 # environment variable.
52415 if test -n "$ALL_LINGUAS"; then
52416 for presentlang in $ALL_LINGUAS; do
52418 if test "%UNSET%" != "$LINGUAS"; then
52419 desiredlanguages="$LINGUAS"
52421 desiredlanguages="$ALL_LINGUAS"
52423 for desiredlang in $desiredlanguages; do
52424 # Use the presentlang catalog if desiredlang is
52425 # a. equal to presentlang, or
52426 # b. a variant of presentlang (because in this case,
52427 # presentlang can be used as a fallback for messages
52428 # which are not translated in the desiredlang catalog).
52429 case "$desiredlang" in
52430 "$presentlang"*) useit=yes;;
52433 if test $useit = yes; then
52434 INST_LINGUAS="$INST_LINGUAS $presentlang"
52439 if test -n "$INST_LINGUAS"; then
52440 for lang in $INST_LINGUAS; do
52441 CATALOGS="$CATALOGS $lang.gmo"
52444 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52445 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"
52446 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52447 if test -f "$f"; then
52449 *.orig | *.bak | *~) ;;
52450 *) cat "$f" >> "$ac_dir/Makefile" ;;
52462 cat >>$CONFIG_STATUS <<\_ACEOF
52464 { (exit 0); exit 0; }
52466 chmod +x $CONFIG_STATUS
52467 ac_clean_files=$ac_clean_files_save
52470 # configure is writing to config.log, and then calls config.status.
52471 # config.status does its own redirection, appending to config.log.
52472 # Unfortunately, on DOS this fails, as config.log is still kept open
52473 # by configure, so config.status won't be able to write to it; its
52474 # output is simply discarded. So we exec the FD to /dev/null,
52475 # effectively closing config.log, so it can be properly (re)opened and
52476 # appended to by config.status. When coming back to configure, we
52477 # need to make the FD available again.
52478 if test "$no_create" != yes; then
52480 ac_config_status_args=
52481 test "$silent" = yes &&
52482 ac_config_status_args="$ac_config_status_args --quiet"
52484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52487 # would make configure fail if this is the last instruction.
52488 $ac_cs_success || { (exit 1); exit 1; }