2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.10.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
26 # Support unset when possible.
27 if (FOO
=FOO
; unset FOO
) >/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 -n "`(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
226 as_executable_p
="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix
=/usr
/local
256 ac_config_libobj_dir
=.
261 SHELL
=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME
='GNU coreutils'
270 PACKAGE_TARNAME
='coreutils'
271 PACKAGE_VERSION
='4.5.10'
272 PACKAGE_STRING
='GNU coreutils 4.5.10'
273 PACKAGE_BUGREPORT
='bug-coreutils@gnu.org'
275 ac_unique_file
="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_config_libobj_dir
=lib
314 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 AWK SET_MAKE am__leading_dot PERL 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 RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures GNU coreutils 4.5.10 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
842 --build=BUILD configure
for building on BUILD
[guessed
]
843 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive
) echo "Configuration of GNU coreutils 4.5.10:";;
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --disable-largefile omit support
for large files
859 --disable-assert turn off assertions
860 --disable-rpath do not hardcode runtime library paths
861 --disable-nls do not use Native Language Support
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-included-regex don
't compile regex; this is the default on
867 systems with version 2 of the GNU C library
868 (use with caution on other system)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
872 --with-libintl-prefix=DIR search
for libintl
in DIR
/include and DIR
/lib
873 --without-libintl-prefix don
't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 Use these variables to override the choices made by `configure' or to
help
885 it to
find libraries and programs with nonstandard names
/locations.
887 Report bugs to
<bug-coreutils@gnu.org
>.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
895 test -d $ac_dir ||
continue
898 if test "$ac_dir" != .
; then
899 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix
= ac_top_builddir
=
907 .
) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
914 [\\/]* | ?
:[\\/]* ) # Absolute path.
915 ac_srcdir
=$srcdir$ac_dir_suffix;
916 ac_top_srcdir
=$srcdir ;;
918 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu
; then
932 $SHELL $ac_srcdir/configure.gnu
--help=recursive
933 elif test -f $ac_srcdir/configure
; then
935 $SHELL $ac_srcdir/configure
--help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.
in; then
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
950 GNU coreutils configure
4.5.10
951 generated by GNU Autoconf
2.57
953 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation
, Inc.
955 This configure
script is free software
; the Free Software Foundation
956 gives unlimited permission to copy
, distribute and modify it.
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 4.5.10, which was
966 generated by GNU Autoconf 2.57. Invocation command line was
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1000 test -z "$as_dir" && as_dir
=.
1001 echo "PATH: $as_dir"
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_must_keep_next
=false
1031 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1032 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1033 |
-silent |
--silent |
--silen |
--sile |
--sil)
1035 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true
; then
1043 ac_must_keep_next
=false
# Got value, back to normal.
1046 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1047 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1048 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1049 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 -* ) ac_must_keep_next
=true
;;
1057 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1064 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1065 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1083 # The following way of writing the cache mishandles newlines in values,
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1113 if test -n "$ac_subst_files"; then
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -s confdefs.h; then
1135 sed "/^$/d" confdefs.h | sort
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 for ac_signal
in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest
* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h
<<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 cat >>confdefs.h
<<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 cat >>confdefs.h
<<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 cat >>confdefs.h
<<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 cat >>confdefs.h
<<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE
; then
1187 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1189 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file
in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1208 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1209 *) . .
/$cache_file;;
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1218 # Check that the precious variables saved in the cache have kept the same
1220 ac_cache_corrupted
=false
1221 for ac_var
in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1224 eval ac_new_set
=\
$ac_env_${ac_var}_set
1225 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val
="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted
=: ;;
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted
=: ;;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted
=:
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1251 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg
=$ac_var=$ac_new_val ;;
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1270 ac_cpp
='$CPP $CPPFLAGS'
1271 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1304 for ac_dir
in config
$srcdir/config
; do
1305 if test -f $ac_dir/install-sh
; then
1307 ac_install_sh
="$ac_aux_dir/install-sh -c"
1309 elif test -f $ac_dir/install.sh
; then
1311 ac_install_sh
="$ac_aux_dir/install.sh -c"
1313 elif test -f $ac_dir/shtool
; then
1315 ac_install_sh
="$ac_aux_dir/shtool install -c"
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 ac_config_headers
="$ac_config_headers config.h:config.hin"
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1332 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1341 ac_cv_build_alias
=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343 ac_cv_build_alias
=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347 { (exit 1); exit 1; }; }
1348 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1357 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_host_alias
=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369 ac_cv_host_alias
=$ac_cv_build_alias
1370 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1379 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 am__api_version
="1.7"
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1408 test -z "$as_dir" && as_dir
=.
1409 # Account for people who put trailing slashes in PATH elements.
1411 .
/ | .
// |
/cC
/* | \
1412 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1415 # OSF1 and SCO ODT 3.0 have their own names for install.
1416 # Don't use installbsd from OSF since it installs stuff as root
1418 for ac_prog
in ginstall scoinst
install; do
1419 for ac_exec_ext
in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421 if test $ac_prog = install &&
1422 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1425 elif test $ac_prog = install &&
1426 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1427 # program-specific install script used by HP pwplus--don't use.
1430 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1442 if test "${ac_cv_path_install+set}" = set; then
1443 INSTALL
=$ac_cv_path_install
1445 # As a last resort, use the slow shell script. We don't cache a
1446 # path for INSTALL within a source directory, because that will
1447 # break other packages using the cache if that directory is
1448 # removed, or if the path is relative.
1449 INSTALL
=$ac_install_sh
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1461 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1467 echo timestamp
> conftest.
file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments. Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1474 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475 if test "$*" = "X"; then
1477 set X
`ls -t $srcdir/configure conftest.file`
1480 if test "$*" != "X $srcdir/configure conftest.file" \
1481 && test "$*" != "X conftest.file $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftest.
file
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE
&&
1509 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE
&&
1512 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $. echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF
>conftest.
sed
1516 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1518 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir
=`cd $ac_aux_dir && pwd`
1525 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528 am_missing_run
="$MISSING --run "
1531 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 for ac_prog
in gawk mawk nawk
awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy
$ac_prog; ac_word
=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir
=.
1552 for ac_exec_ext
in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK
="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$AWK" && break
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 cat >conftest.
make <<\_ACEOF
1583 @
echo 'ac_maketemp="$(MAKE)"'
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_
${ac_make}_set
=yes
1590 eval ac_cv_prog_make_
${ac_make}_set
=no
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE
="MAKE=${MAKE-make}"
1604 rm -rf .tst
2>/dev
/null
1605 mkdir .tst
2>/dev
/null
1606 if test -d .tst
; then
1611 rmdir .tst
2>/dev
/null
1613 # test to see if srcdir already configured
1614 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1615 test -f $srcdir/config.status
; then
1616 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1617 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1618 { (exit 1); exit 1; }; }
1621 # test whether we have cygpath
1622 if test -z "$CYGPATH_W"; then
1623 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1624 CYGPATH_W
='cygpath -w'
1631 # Define the identity of the package.
1636 cat >>confdefs.h
<<_ACEOF
1637 #define PACKAGE "$PACKAGE"
1641 cat >>confdefs.h
<<_ACEOF
1642 #define VERSION "$VERSION"
1645 # Some tools Automake needs.
1647 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1653 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1659 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1662 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1664 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1666 # Installed binaries are usually stripped using `strip' when the user
1667 # run `make install-strip'. However `strip' might not be the right
1668 # tool to use in cross-compilation environments, therefore Automake
1669 # will honor the `STRIP' environment variable to overrule this program.
1670 if test "$cross_compiling" != no
; then
1671 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1673 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_STRIP+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$STRIP"; then
1680 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir
=.
1687 for ac_exec_ext
in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 STRIP
=$ac_cv_prog_STRIP
1699 if test -n "$STRIP"; then
1700 echo "$as_me:$LINENO: result: $STRIP" >&5
1701 echo "${ECHO_T}$STRIP" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1708 if test -z "$ac_cv_prog_STRIP"; then
1710 # Extract the first word of "strip", so it can be a program name with args.
1711 set dummy strip
; ac_word
=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$ac_ct_STRIP"; then
1718 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir
=.
1725 for ac_exec_ext
in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_ac_ct_STRIP
="strip"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1737 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1738 if test -n "$ac_ct_STRIP"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1740 echo "${ECHO_T}$ac_ct_STRIP" >&6
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1748 STRIP
="$ac_cv_prog_STRIP"
1752 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1754 # We need awk for the "check" target. The system "awk" is bad on
1761 cat >>confdefs.h
<<\_ACEOF
1762 #define _GNU_SOURCE 1
1767 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1768 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1769 if test "${PERL+set}" = set; then
1770 # `PERL' is set in the user's environment.
1771 candidate_perl_names
="$PERL"
1774 candidate_perl_names
='perl perl5'
1780 PERL
="$missing_dir/missing perl"
1781 for perl
in $candidate_perl_names; do
1782 # Run test in a subshell; some versions of sh will print an error if
1783 # an executable is not found, even if stderr is redirected.
1784 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev
/null
2>&1; then
1791 echo "$as_me:$LINENO: result: $found" >&5
1792 echo "${ECHO_T}$found" >&6
1793 test $found = no
&& { echo "$as_me:$LINENO: WARNING:
1794 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1795 a usable version of the Perl File::Compare module. As a result,
1796 you may be unable to run a few tests or to regenerate certain
1797 files if you modify the sources from which they are derived.
1799 echo "$as_me: WARNING:
1800 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1801 a usable version of the Perl File::Compare module. As a result,
1802 you may be unable to run a few tests or to regenerate certain
1803 files if you modify the sources from which they are derived.
1807 ac_cpp
='$CPP $CPPFLAGS'
1808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC
="$CC" # Let the user override the test.
1822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir
=.
1827 for ac_exec_ext
in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_CC"; then
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC
="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC
="$CC" # Let the user override the test.
1902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir
=.
1907 for ac_exec_ext
in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc
; ac_word
=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir
=.
1945 for ac_exec_ext
in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC
="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc
; ac_word
=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC
="$CC" # Let the user override the test.
1983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir
=.
1988 for ac_exec_ext
in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected
=yes
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy
$ac_cv_prog_CC
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2010 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC
="$CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$CC" && break
2067 if test -z "$CC"; then
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy
$ac_prog; ac_word
=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir
=.
2086 for ac_exec_ext
in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC
="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2106 test -n "$ac_ct_CC" && break
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123 "checking for C compiler version" >&5
2124 ac_compiler
=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.
$ac_ext <<_ACEOF
2144 cat confdefs.h
>>conftest.
$ac_ext
2145 cat >>conftest.
$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 ac_clean_files_save
=$ac_clean_files
2157 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2161 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2162 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2163 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165 (eval $ac_link_default) 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Find the output, starting from the most likely. This scheme is
2170 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173 # Be careful to initialize this variable, since it used to be cached.
2174 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176 # b.out is created by i960 compilers.
2177 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2179 test -f "$ac_file" ||
continue
2181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2184 # This is the source file.
2187 # We found the default executable, but exeext='' is most
2191 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # FIXME: I believe we export ac_cv_exeext for Libtool,
2193 # but it would be cool to find out if it's true. Does anybody
2194 # maintain Libtool? --akim.
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.
$ac_ext >&5
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2212 ac_exeext
=$ac_cv_exeext
2213 echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6
2216 # Check the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223 if { ac_try
='./$ac_file'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 if test "$cross_compiling" = maybe
; then
2234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2244 echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6
2247 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2248 ac_clean_files
=$ac_clean_files_save
2249 # Check the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254 echo "${ECHO_T}$cross_compiling" >&6
2256 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259 (eval $ac_link) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 for ac_file
in conftest.exe conftest conftest.
*; do
2268 test -f "$ac_file" ||
continue
2270 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2271 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest
$ac_cv_exeext
2286 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6
2289 rm -f conftest.
$ac_ext
2290 EXEEXT
=$ac_cv_exeext
2292 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.
$ac_ext <<_ACEOF
2300 cat confdefs.h
>>conftest.
$ac_ext
2301 cat >>conftest.
$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.o conftest.obj
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2320 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2321 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.
$ac_ext >&5
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2336 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2338 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339 echo "${ECHO_T}$ac_cv_objext" >&6
2340 OBJEXT
=$ac_cv_objext
2342 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.
$ac_ext <<_ACEOF
2350 cat confdefs.h
>>conftest.
$ac_ext
2351 cat >>conftest.
$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2365 rm -f conftest.
$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.
$ac_objext conftest.
$ac_ext
2385 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2388 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2390 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2391 ac_test_CFLAGS
=${CFLAGS+set}
2392 ac_save_CFLAGS
=$CFLAGS
2394 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cc_g+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. */
2414 rm -f conftest.
$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try
='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.
$ac_ext >&5
2433 rm -f conftest.
$ac_objext conftest.
$ac_ext
2435 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2436 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2437 if test "$ac_test_CFLAGS" = set; then
2438 CFLAGS
=$ac_save_CFLAGS
2439 elif test $ac_cv_prog_cc_g = yes; then
2440 if test "$GCC" = yes; then
2446 if test "$GCC" = yes; then
2452 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2453 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 ac_cv_prog_cc_stdc
=no
2459 cat >conftest.
$ac_ext <<_ACEOF
2462 cat confdefs.h
>>conftest.
$ac_ext
2463 cat >>conftest.
$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2467 #include <sys/types.h>
2468 #include <sys/stat.h>
2469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2470 struct buf { int x; };
2471 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2472 static char *e (p, i)
2478 static char *f (char * (*g) (char **, int), char **p, ...)
2483 s = g (p, va_arg (v,int));
2487 int test (int i, double x);
2488 struct s1 {int (*f) (int a);};
2489 struct s2 {int (*f) (double a);};
2490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2501 # Don't try gcc -ansi; that turns off useful extensions and
2502 # breaks some systems' header files.
2503 # AIX -qlanglvl=ansi
2504 # Ultrix and OSF/1 -std1
2505 # HP-UX 10.20 and later -Ae
2506 # HP-UX older versions -Aa -D_HPUX_SOURCE
2507 # SVR4 -Xc -D__EXTENSIONS__
2508 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2510 CC
="$ac_save_CC $ac_arg"
2511 rm -f conftest.
$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try
='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_prog_cc_stdc
=$ac_arg
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2530 rm -f conftest.
$ac_objext
2532 rm -f conftest.
$ac_ext conftest.
$ac_objext
2537 case "x$ac_cv_prog_cc_stdc" in
2539 echo "$as_me:$LINENO: result: none needed" >&5
2540 echo "${ECHO_T}none needed" >&6 ;;
2542 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2544 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2547 # Some people use a C++ compiler to compile C. Since we use `exit',
2548 # in C++ we need to declare it. In case someone uses the same compiler
2549 # for both compiling C and C++ we need to have the C++ compiler decide
2550 # the declaration of exit, since it's the most demanding environment.
2551 cat >conftest.
$ac_ext <<_ACEOF
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try
='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 for ac_declaration
in \
2570 '#include <stdlib.h>' \
2571 'extern "C" void std::exit (int) throw (); using std::exit;' \
2572 'extern "C" void std::exit (int); using std::exit;' \
2573 'extern "C" void exit (int) throw ();' \
2574 'extern "C" void exit (int);' \
2577 cat >conftest.
$ac_ext <<_ACEOF
2580 cat confdefs.h
>>conftest.
$ac_ext
2581 cat >>conftest.
$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2593 rm -f conftest.
$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try
='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.
$ac_ext >&5
2612 rm -f conftest.
$ac_objext conftest.
$ac_ext
2613 cat >conftest.
$ac_ext <<_ACEOF
2616 cat confdefs.h
>>conftest.
$ac_ext
2617 cat >>conftest.
$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2628 rm -f conftest.
$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try
='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.
$ac_ext >&5
2646 rm -f conftest.
$ac_objext conftest.
$ac_ext
2649 if test -n "$ac_declaration"; then
2650 echo '#ifdef __cplusplus' >>confdefs.h
2651 echo $ac_declaration >>confdefs.h
2652 echo '#endif' >>confdefs.h
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.
$ac_ext >&5
2660 rm -f conftest.
$ac_objext conftest.
$ac_ext
2662 ac_cpp
='$CPP $CPPFLAGS'
2663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2666 DEPDIR
="${am__leading_dot}deps"
2668 ac_config_commands
="$ac_config_commands depfiles"
2671 am_make
=${MAKE-make}
2672 cat > confinc
<< 'END'
2676 # If we don't find an include directive, just comment out the code.
2677 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696 echo '.include "confinc"' > confmf
2697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698 am__include
=.include
2705 echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6
2707 rm -f confinc confmf
2709 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711 enableval
="$enable_dependency_tracking"
2714 if test "x$enable_dependency_tracking" != xno
; then
2715 am_depcomp
="$ac_aux_dir/depcomp"
2720 if test "x$enable_dependency_tracking" != xno; then
2731 depcc
="$CC" am_compiler_list
=
2733 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2739 # We make a subdir and do the tests there. Otherwise we can end up
2740 # making bogus files that we don't know about and never remove. For
2741 # instance it was reported that on HP-UX the gcc test will end up
2742 # making a dummy file named `D' -- because `-MD' means `put the output
2745 # Copy depcomp to subdir because otherwise we won't find it if we're
2746 # using a relative directory.
2747 cp "$am_depcomp" conftest.dir
2750 am_cv_CC_dependencies_compiler_type
=none
2751 if test "$am_compiler_list" = ""; then
2752 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2754 for depmode
in $am_compiler_list; do
2755 # We need to recreate these files for each test, as the compiler may
2756 # overwrite some of them when testing with obscure command lines.
2757 # This happens at least with the AIX C compiler.
2758 echo '#include "conftest.h"' > conftest.c
2759 echo 'int i;' > conftest.h
2760 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2764 # after this tag, mechanisms are not by side-effect, so they'll
2765 # only be used when explicitly requested
2766 if test "x$enable_dependency_tracking" = xyes
; then
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 if depmode
=$depmode \
2778 source=conftest.c object
=conftest.o \
2779 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2780 $SHELL .
/depcomp
$depcc -c -o conftest.o conftest.c \
2781 >/dev
/null
2>conftest.err
&&
2782 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2783 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2784 # icc doesn't choke on unknown options, it will just issue warnings
2785 # (even with -Werror). So we grep stderr for any message
2786 # that says an option was ignored.
2787 if grep 'ignoring option' conftest.err
>/dev
/null
2>&1; then :; else
2788 am_cv_CC_dependencies_compiler_type
=$depmode
2797 am_cv_CC_dependencies_compiler_type
=none
2801 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2802 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2803 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2808 test "x$enable_dependency_tracking" != xno \
2809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
2811 am__fastdepCC_FALSE
='#'
2813 am__fastdepCC_TRUE
='#'
2814 am__fastdepCC_FALSE
=
2819 ac_cpp
='$CPP $CPPFLAGS'
2820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2823 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2824 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2825 # On Suns, sometimes $CPP names a directory.
2826 if test -n "$CPP" && test -d "$CPP"; then
2829 if test -z "$CPP"; then
2830 if test "${ac_cv_prog_CPP+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 # Double quotes because CPP needs to be expanded
2834 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2837 for ac_c_preproc_warn_flag
in '' yes
2839 # Use a header file that comes with gcc, so configuring glibc
2840 # with a fresh cross-compiler works.
2841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2842 # <limits.h> exists even on freestanding compilers.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.
$ac_ext <<_ACEOF
2848 cat confdefs.h
>>conftest.
$ac_ext
2849 cat >>conftest.
$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2852 # include <limits.h>
2854 # include <assert.h>
2858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2861 grep -v '^ *+' conftest.er1
>conftest.err
2863 cat conftest.err
>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } >/dev
/null
; then
2866 if test -s conftest.err
; then
2867 ac_cpp_err
=$ac_c_preproc_warn_flag
2874 if test -z "$ac_cpp_err"; then
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.
$ac_ext >&5
2880 # Broken: fails on valid input.
2883 rm -f conftest.err conftest.
$ac_ext
2885 # OK, works on sane cases. Now check whether non-existent headers
2886 # can be detected and how.
2887 cat >conftest.
$ac_ext <<_ACEOF
2890 cat confdefs.h
>>conftest.
$ac_ext
2891 cat >>conftest.
$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 #include <ac_nonexistent.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1
>conftest.err
2900 cat conftest.err
>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev
/null
; then
2903 if test -s conftest.err
; then
2904 ac_cpp_err
=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2912 # Broken: success on invalid input.
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.
$ac_ext >&5
2918 # Passes both tests.
2922 rm -f conftest.err conftest.
$ac_ext
2925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2926 rm -f conftest.err conftest.
$ac_ext
2927 if $ac_preproc_ok; then
2939 echo "$as_me:$LINENO: result: $CPP" >&5
2940 echo "${ECHO_T}$CPP" >&6
2942 for ac_c_preproc_warn_flag
in '' yes
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.
$ac_ext <<_ACEOF
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2957 # include <limits.h>
2959 # include <assert.h>
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2966 grep -v '^ *+' conftest.er1
>conftest.err
2968 cat conftest.err
>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev
/null
; then
2971 if test -s conftest.err
; then
2972 ac_cpp_err
=$ac_c_preproc_warn_flag
2979 if test -z "$ac_cpp_err"; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Broken: fails on valid input.
2988 rm -f conftest.err conftest.
$ac_ext
2990 # OK, works on sane cases. Now check whether non-existent headers
2991 # can be detected and how.
2992 cat >conftest.
$ac_ext <<_ACEOF
2995 cat confdefs.h
>>conftest.
$ac_ext
2996 cat >>conftest.
$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
2998 #include <ac_nonexistent.h>
3000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1
>conftest.err
3005 cat conftest.err
>&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev
/null
; then
3008 if test -s conftest.err
; then
3009 ac_cpp_err
=$ac_c_preproc_warn_flag
3016 if test -z "$ac_cpp_err"; then
3017 # Broken: success on invalid input.
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.
$ac_ext >&5
3023 # Passes both tests.
3027 rm -f conftest.err conftest.
$ac_ext
3030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3031 rm -f conftest.err conftest.
$ac_ext
3032 if $ac_preproc_ok; then
3035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3043 ac_cpp
='$CPP $CPPFLAGS'
3044 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3050 echo "$as_me:$LINENO: checking for egrep" >&5
3051 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3052 if test "${ac_cv_prog_egrep+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3056 then ac_cv_prog_egrep
='grep -E'
3057 else ac_cv_prog_egrep
='egrep'
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3061 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3062 EGREP
=$ac_cv_prog_egrep
3065 if test $ac_cv_c_compiler_gnu = yes; then
3066 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3067 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3068 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 ac_pattern
="Autoconf.*'x'"
3072 cat >conftest.
$ac_ext <<_ACEOF
3075 cat confdefs.h
>>conftest.
$ac_ext
3076 cat >>conftest.
$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3083 ac_cv_prog_gcc_traditional
=yes
3085 ac_cv_prog_gcc_traditional
=no
3090 if test $ac_cv_prog_gcc_traditional = no
; then
3091 cat >conftest.
$ac_ext <<_ACEOF
3094 cat confdefs.h
>>conftest.
$ac_ext
3095 cat >>conftest.
$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3102 ac_cv_prog_gcc_traditional
=yes
3108 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3109 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3110 if test $ac_cv_prog_gcc_traditional = yes; then
3111 CC
="$CC -traditional"
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3117 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_RANLIB+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$RANLIB"; then
3124 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir
=.
3131 for ac_exec_ext
in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 RANLIB
=$ac_cv_prog_RANLIB
3143 if test -n "$RANLIB"; then
3144 echo "$as_me:$LINENO: result: $RANLIB" >&5
3145 echo "${ECHO_T}$RANLIB" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3152 if test -z "$ac_cv_prog_RANLIB"; then
3153 ac_ct_RANLIB
=$RANLIB
3154 # Extract the first word of "ranlib", so it can be a program name with args.
3155 set dummy ranlib
; ac_word
=$2
3156 echo "$as_me:$LINENO: checking for $ac_word" >&5
3157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 if test -n "$ac_ct_RANLIB"; then
3162 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir
=.
3169 for ac_exec_ext
in '' $ac_executable_extensions; do
3170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3181 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3182 if test -n "$ac_ct_RANLIB"; then
3183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 RANLIB
=$ac_ct_RANLIB
3192 RANLIB
="$ac_cv_prog_RANLIB"
3196 echo "$as_me:$LINENO: checking for AIX" >&5
3197 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3201 cat confdefs.h
>>conftest.
$ac_ext
3202 cat >>conftest.
$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 $EGREP "yes" >/dev
/null
2>&1; then
3211 echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6
3213 cat >>confdefs.h
<<\_ACEOF
3214 #define _ALL_SOURCE 1
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3226 if test "${ac_cv_header_stdc+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 cat >conftest.
$ac_ext <<_ACEOF
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3248 rm -f conftest.
$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try
='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_header_stdc
=yes
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.
$ac_ext >&5
3265 ac_cv_header_stdc
=no
3267 rm -f conftest.
$ac_objext conftest.
$ac_ext
3269 if test $ac_cv_header_stdc = yes; then
3270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3271 cat >conftest.
$ac_ext <<_ACEOF
3274 cat confdefs.h
>>conftest.
$ac_ext
3275 cat >>conftest.
$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3281 $EGREP "memchr" >/dev
/null
2>&1; then
3284 ac_cv_header_stdc
=no
3290 if test $ac_cv_header_stdc = yes; then
3291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3292 cat >conftest.
$ac_ext <<_ACEOF
3295 cat confdefs.h
>>conftest.
$ac_ext
3296 cat >>conftest.
$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 $EGREP "free" >/dev
/null
2>&1; then
3305 ac_cv_header_stdc
=no
3311 if test $ac_cv_header_stdc = yes; then
3312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3313 if test "$cross_compiling" = yes; then
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3323 #if ((' ' & 0x0FF) == 0x020)
3324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3327 # define ISLOWER(c) \
3328 (('a' <= (c) && (c) <= 'i') \
3329 || ('j' <= (c) && (c) <= 'r') \
3330 || ('s' <= (c) && (c) <= 'z'))
3331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3339 for (i = 0; i < 256; i++)
3340 if (XOR (islower (i), ISLOWER (i))
3341 || toupper (i) != TOUPPER (i))
3346 rm -f conftest
$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3359 echo "$as_me: program exited with status $ac_status" >&5
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3364 ac_cv_header_stdc
=no
3366 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3370 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3371 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3372 if test $ac_cv_header_stdc = yes; then
3374 cat >>confdefs.h
<<\_ACEOF
3375 #define STDC_HEADERS 1
3380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3390 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3391 inttypes.h stdint.h unistd.h
3393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3394 echo "$as_me:$LINENO: checking for $ac_header" >&5
3395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 cat >conftest.
$ac_ext <<_ACEOF
3402 cat confdefs.h
>>conftest.
$ac_ext
3403 cat >>conftest.
$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 $ac_includes_default
3407 #include <$ac_header>
3409 rm -f conftest.
$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try
='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 eval "$as_ac_Header=yes"
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.
$ac_ext >&5
3426 eval "$as_ac_Header=no"
3428 rm -f conftest.
$ac_objext conftest.
$ac_ext
3430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3433 cat >>confdefs.h
<<_ACEOF
3434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442 if test "${ac_cv_header_minix_config_h+set}" = set; then
3443 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3444 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3445 if test "${ac_cv_header_minix_config_h+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3449 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3451 # Is the header compilable?
3452 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3453 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3454 cat >conftest.
$ac_ext <<_ACEOF
3457 cat confdefs.h
>>conftest.
$ac_ext
3458 cat >>conftest.
$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 $ac_includes_default
3461 #include <minix/config.h>
3463 rm -f conftest.
$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try
='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_header_compiler
=yes
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3480 ac_header_compiler
=no
3482 rm -f conftest.
$ac_objext conftest.
$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3484 echo "${ECHO_T}$ac_header_compiler" >&6
3486 # Is the header present?
3487 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3488 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3489 cat >conftest.
$ac_ext <<_ACEOF
3492 cat confdefs.h
>>conftest.
$ac_ext
3493 cat >>conftest.
$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <minix/config.h>
3497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3498 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3500 grep -v '^ *+' conftest.er1
>conftest.err
3502 cat conftest.err
>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev
/null
; then
3505 if test -s conftest.err
; then
3506 ac_cpp_err
=$ac_c_preproc_warn_flag
3513 if test -z "$ac_cpp_err"; then
3514 ac_header_preproc
=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3519 ac_header_preproc
=no
3521 rm -f conftest.err conftest.
$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3523 echo "${ECHO_T}$ac_header_preproc" >&6
3525 # So? What about this header?
3526 case $ac_header_compiler:$ac_header_preproc in
3528 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3529 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3531 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3534 ## ------------------------------------ ##
3535 ## Report this to bug-autoconf@gnu.org. ##
3536 ## ------------------------------------ ##
3539 sed "s/^/$as_me: WARNING: /" >&2
3542 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3543 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3544 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3545 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3547 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3550 ## ------------------------------------ ##
3551 ## Report this to bug-autoconf@gnu.org. ##
3552 ## ------------------------------------ ##
3555 sed "s/^/$as_me: WARNING: /" >&2
3558 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3559 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3560 if test "${ac_cv_header_minix_config_h+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 ac_cv_header_minix_config_h
=$ac_header_preproc
3565 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3566 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3569 if test $ac_cv_header_minix_config_h = yes; then
3576 if test "$MINIX" = yes; then
3578 cat >>confdefs.h
<<\_ACEOF
3579 #define _POSIX_SOURCE 1
3583 cat >>confdefs.h
<<\_ACEOF
3584 #define _POSIX_1_SOURCE 2
3588 cat >>confdefs.h
<<\_ACEOF
3596 for ac_func
in uname
3598 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3599 echo "$as_me:$LINENO: checking for $ac_func" >&5
3600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_var+set}\" = set"; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 cat >conftest.
$ac_ext <<_ACEOF
3607 cat confdefs.h
>>conftest.
$ac_ext
3608 cat >>conftest.
$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 /* System header to define __stub macros and hopefully few prototypes,
3611 which can conflict with char $ac_func (); below.
3612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613 <limits.h> exists even on freestanding compilers. */
3615 # include <limits.h>
3617 # include <assert.h>
3619 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3627 /* The GNU C library defines this for functions which it implements
3628 to always fail with ENOSYS. Some functions are actually named
3629 something starting with __ and the normal name is an alias. */
3630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3633 char (*f) () = $ac_func;
3642 return f != $ac_func;
3647 rm -f conftest.
$ac_objext conftest
$ac_exeext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try
='test -s conftest$ac_exeext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 eval "$as_ac_var=yes"
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.
$ac_ext >&5
3664 eval "$as_ac_var=no"
3666 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3670 if test `eval echo '${'$as_ac_var'}'` = yes; then
3671 cat >>confdefs.h
<<_ACEOF
3672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3674 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uname" MAN
="$MAN uname.1"
3679 for ac_func
in chroot
3681 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3682 echo "$as_me:$LINENO: checking for $ac_func" >&5
3683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3684 if eval "test \"\${$as_ac_var+set}\" = set"; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 cat >conftest.
$ac_ext <<_ACEOF
3690 cat confdefs.h
>>conftest.
$ac_ext
3691 cat >>conftest.
$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func (); below.
3695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 <limits.h> exists even on freestanding compilers. */
3698 # include <limits.h>
3700 # include <assert.h>
3702 /* Override any gcc2 internal prototype to avoid an error. */
3707 /* We use char because int might match the return type of a gcc2
3708 builtin and then its argument prototype would still apply. */
3710 /* The GNU C library defines this for functions which it implements
3711 to always fail with ENOSYS. Some functions are actually named
3712 something starting with __ and the normal name is an alias. */
3713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3716 char (*f) () = $ac_func;
3725 return f != $ac_func;
3730 rm -f conftest.
$ac_objext conftest
$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732 (eval $ac_link) 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try
='test -s conftest$ac_exeext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 eval "$as_ac_var=yes"
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 eval "$as_ac_var=no"
3749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3753 if test `eval echo '${'$as_ac_var'}'` = yes; then
3754 cat >>confdefs.h
<<_ACEOF
3755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3757 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS chroot" MAN
="$MAN chroot.1"
3762 for ac_func
in gethostid
3764 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3765 echo "$as_me:$LINENO: checking for $ac_func" >&5
3766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3767 if eval "test \"\${$as_ac_var+set}\" = set"; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func (); below.
3778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3779 <limits.h> exists even on freestanding compilers. */
3781 # include <limits.h>
3783 # include <assert.h>
3785 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3799 char (*f) () = $ac_func;
3808 return f != $ac_func;
3813 rm -f conftest.
$ac_objext conftest
$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try
='test -s conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 eval "$as_ac_var=yes"
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.
$ac_ext >&5
3830 eval "$as_ac_var=no"
3832 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3836 if test `eval echo '${'$as_ac_var'}'` = yes; then
3837 cat >>confdefs.h
<<_ACEOF
3838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3840 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS hostid" MAN
="$MAN hostid.1"
3846 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3847 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3848 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_check_lib_save_LIBS
=$LIBS
3852 LIBS
="-lcposix $LIBS"
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3860 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3875 rm -f conftest.
$ac_objext conftest
$ac_exeext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3877 (eval $ac_link) 2>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try
='test -s conftest$ac_exeext'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_lib_cposix_strerror
=yes
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.
$ac_ext >&5
3892 ac_cv_lib_cposix_strerror
=no
3894 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3895 LIBS
=$ac_check_lib_save_LIBS
3897 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3898 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3899 if test $ac_cv_lib_cposix_strerror = yes; then
3900 LIBS
="$LIBS -lcposix"
3905 # Check whether --enable-largefile or --disable-largefile was given.
3906 if test "${enable_largefile+set}" = set; then
3907 enableval
="$enable_largefile"
3910 if test "$enable_largefile" != no
; then
3912 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3913 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3914 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_cv_sys_largefile_CC
=no
3918 if test "$GCC" != yes; then
3921 # IRIX 6.2 and later do not support large files by default,
3922 # so use the C compiler's -n32 option if that helps.
3923 cat >conftest.
$ac_ext <<_ACEOF
3926 cat confdefs.h
>>conftest.
$ac_ext
3927 cat >>conftest.
$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <sys/types.h>
3930 /* Check that off_t can represent 2**63 - 1 correctly.
3931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3932 since some C++ compilers masquerading as C compilers
3933 incorrectly reject 9223372036854775807. */
3934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3936 && LARGE_OFF_T % 2147483647 == 1)
3946 rm -f conftest.
$ac_objext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try
='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.
$ac_ext >&5
3964 rm -f conftest.
$ac_objext
3966 rm -f conftest.
$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try
='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_sys_largefile_CC
=' -n32'; break
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.
$ac_ext >&5
3984 rm -f conftest.
$ac_objext
3988 rm -f conftest.
$ac_ext
3991 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3992 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3993 if test "$ac_cv_sys_largefile_CC" != no
; then
3994 CC
=$CC$ac_cv_sys_largefile_CC
3997 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3998 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3999 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 ac_cv_sys_file_offset_bits
=no
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <sys/types.h>
4011 /* Check that off_t can represent 2**63 - 1 correctly.
4012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4013 since some C++ compilers masquerading as C compilers
4014 incorrectly reject 9223372036854775807. */
4015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4017 && LARGE_OFF_T % 2147483647 == 1)
4027 rm -f conftest.
$ac_objext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4029 (eval $ac_compile) 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try
='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.
$ac_ext >&5
4045 rm -f conftest.
$ac_objext conftest.
$ac_ext
4046 cat >conftest.
$ac_ext <<_ACEOF
4049 cat confdefs.h
>>conftest.
$ac_ext
4050 cat >>conftest.
$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #define _FILE_OFFSET_BITS 64
4053 #include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4070 rm -f conftest.
$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try
='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_sys_file_offset_bits
=64; break
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.
$ac_ext >&5
4088 rm -f conftest.
$ac_objext conftest.
$ac_ext
4092 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4093 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4094 if test "$ac_cv_sys_file_offset_bits" != no
; then
4096 cat >>confdefs.h
<<_ACEOF
4097 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4102 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4103 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4104 if test "${ac_cv_sys_large_files+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 ac_cv_sys_large_files
=no
4109 cat >conftest.
$ac_ext <<_ACEOF
4112 cat confdefs.h
>>conftest.
$ac_ext
4113 cat >>conftest.
$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <sys/types.h>
4116 /* Check that off_t can represent 2**63 - 1 correctly.
4117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118 since some C++ compilers masquerading as C compilers
4119 incorrectly reject 9223372036854775807. */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122 && LARGE_OFF_T % 2147483647 == 1)
4132 rm -f conftest.
$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try
='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4150 rm -f conftest.
$ac_objext conftest.
$ac_ext
4151 cat >conftest.
$ac_ext <<_ACEOF
4154 cat confdefs.h
>>conftest.
$ac_ext
4155 cat >>conftest.
$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #define _LARGE_FILES 1
4158 #include <sys/types.h>
4159 /* Check that off_t can represent 2**63 - 1 correctly.
4160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4161 since some C++ compilers masquerading as C compilers
4162 incorrectly reject 9223372036854775807. */
4163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4165 && LARGE_OFF_T % 2147483647 == 1)
4175 rm -f conftest.
$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_sys_large_files
=1; break
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.
$ac_ext >&5
4193 rm -f conftest.
$ac_objext conftest.
$ac_ext
4197 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4198 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4199 if test "$ac_cv_sys_large_files" != no
; then
4201 cat >>confdefs.h
<<_ACEOF
4202 #define _LARGE_FILES $ac_cv_sys_large_files
4212 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4213 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4214 if test "${am_cv_prog_cc_stdc+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 am_cv_prog_cc_stdc
=no
4219 # Don't try gcc -ansi; that turns off useful extensions and
4220 # breaks some systems' header files.
4221 # AIX -qlanglvl=ansi
4222 # Ultrix and OSF/1 -std1
4223 # HP-UX 10.20 and later -Ae
4224 # HP-UX older versions -Aa -D_HPUX_SOURCE
4225 # SVR4 -Xc -D__EXTENSIONS__
4226 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC
="$ac_save_CC $ac_arg"
4229 cat >conftest.
$ac_ext <<_ACEOF
4232 cat confdefs.h
>>conftest.
$ac_ext
4233 cat >>conftest.
$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4237 #include <sys/types.h>
4238 #include <sys/stat.h>
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4253 s = g (p, va_arg (v,int));
4257 int test (int i, double x);
4258 struct s1 {int (*f) (int a);};
4259 struct s2 {int (*f) (double a);};
4260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4268 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4274 rm -f conftest.
$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try
='test -s conftest.$ac_objext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 am_cv_prog_cc_stdc
="$ac_arg"; break
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4292 rm -f conftest.
$ac_objext conftest.
$ac_ext
4298 if test -z "$am_cv_prog_cc_stdc"; then
4299 echo "$as_me:$LINENO: result: none needed" >&5
4300 echo "${ECHO_T}none needed" >&6
4302 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4303 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4305 case "x$am_cv_prog_cc_stdc" in
4307 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4312 echo "$as_me:$LINENO: checking for function prototypes" >&5
4313 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4314 if test "$am_cv_prog_cc_stdc" != no
; then
4315 echo "$as_me:$LINENO: result: yes" >&5
4316 echo "${ECHO_T}yes" >&6
4318 cat >>confdefs.h
<<\_ACEOF
4319 #define PROTOTYPES 1
4324 echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4326 U
=_ ANSI2KNR
=.
/ansi2knr
4328 # Ensure some checks needed by ansi2knr itself.
4329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4331 if test "${ac_cv_header_stdc+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 cat >conftest.
$ac_ext <<_ACEOF
4337 cat confdefs.h
>>conftest.
$ac_ext
4338 cat >>conftest.
$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4353 rm -f conftest.
$ac_objext
4354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try
='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_header_stdc
=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.
$ac_ext >&5
4370 ac_cv_header_stdc
=no
4372 rm -f conftest.
$ac_objext conftest.
$ac_ext
4374 if test $ac_cv_header_stdc = yes; then
4375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4376 cat >conftest.
$ac_ext <<_ACEOF
4379 cat confdefs.h
>>conftest.
$ac_ext
4380 cat >>conftest.
$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386 $EGREP "memchr" >/dev
/null
2>&1; then
4389 ac_cv_header_stdc
=no
4395 if test $ac_cv_header_stdc = yes; then
4396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4397 cat >conftest.
$ac_ext <<_ACEOF
4400 cat confdefs.h
>>conftest.
$ac_ext
4401 cat >>conftest.
$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "free" >/dev
/null
2>&1; then
4410 ac_cv_header_stdc
=no
4416 if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then
4421 cat >conftest.
$ac_ext <<_ACEOF
4424 cat confdefs.h
>>conftest.
$ac_ext
4425 cat >>conftest.
$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4428 #if ((' ' & 0x0FF) == 0x020)
4429 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4430 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4432 # define ISLOWER(c) \
4433 (('a' <= (c) && (c) <= 'i') \
4434 || ('j' <= (c) && (c) <= 'r') \
4435 || ('s' <= (c) && (c) <= 'z'))
4436 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4439 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4444 for (i = 0; i < 256; i++)
4445 if (XOR (islower (i), ISLOWER (i))
4446 || toupper (i) != TOUPPER (i))
4451 rm -f conftest
$ac_exeext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453 (eval $ac_link) 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4464 echo "$as_me: program exited with status $ac_status" >&5
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.
$ac_ext >&5
4469 ac_cv_header_stdc
=no
4471 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4475 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4476 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4477 if test $ac_cv_header_stdc = yes; then
4479 cat >>confdefs.h
<<\_ACEOF
4480 #define STDC_HEADERS 1
4486 for ac_header
in string.h
4488 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4508 #include <$ac_header>
4510 rm -f conftest.
$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_header_compiler
=yes
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.
$ac_ext >&5
4527 ac_header_compiler
=no
4529 rm -f conftest.
$ac_objext conftest.
$ac_ext
4530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4531 echo "${ECHO_T}$ac_header_compiler" >&6
4533 # Is the header present?
4534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4536 cat >conftest.
$ac_ext <<_ACEOF
4539 cat confdefs.h
>>conftest.
$ac_ext
4540 cat >>conftest.
$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <$ac_header>
4544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1
>conftest.err
4549 cat conftest.err
>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } >/dev
/null
; then
4552 if test -s conftest.err
; then
4553 ac_cpp_err
=$ac_c_preproc_warn_flag
4560 if test -z "$ac_cpp_err"; then
4561 ac_header_preproc
=yes
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.
$ac_ext >&5
4566 ac_header_preproc
=no
4568 rm -f conftest.err conftest.
$ac_ext
4569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4570 echo "${ECHO_T}$ac_header_preproc" >&6
4572 # So? What about this header?
4573 case $ac_header_compiler:$ac_header_preproc in
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4581 ## ------------------------------------ ##
4582 ## Report this to bug-autoconf@gnu.org. ##
4583 ## ------------------------------------ ##
4586 sed "s/^/$as_me: WARNING: /" >&2
4589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4597 ## ------------------------------------ ##
4598 ## Report this to bug-autoconf@gnu.org. ##
4599 ## ------------------------------------ ##
4602 sed "s/^/$as_me: WARNING: /" >&2
4605 echo "$as_me:$LINENO: checking for $ac_header" >&5
4606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 eval "$as_ac_Header=$ac_header_preproc"
4612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617 cat >>confdefs.h
<<_ACEOF
4618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4627 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4628 if test "${ac_cv_c_bigendian+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 # See if sys/param.h defines the BYTE_ORDER macro.
4632 cat >conftest.
$ac_ext <<_ACEOF
4635 cat confdefs.h
>>conftest.
$ac_ext
4636 cat >>conftest.
$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/param.h>
4644 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4652 rm -f conftest.
$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try
='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 # It does; now see whether it defined to BIG_ENDIAN or not.
4665 cat >conftest.
$ac_ext <<_ACEOF
4668 cat confdefs.h
>>conftest.
$ac_ext
4669 cat >>conftest.
$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #include <sys/types.h>
4672 #include <sys/param.h>
4677 #if BYTE_ORDER != BIG_ENDIAN
4685 rm -f conftest.
$ac_objext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try
='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_c_bigendian
=yes
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 ac_cv_c_bigendian
=no
4704 rm -f conftest.
$ac_objext conftest.
$ac_ext
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.
$ac_ext >&5
4709 # It does not; compile a test program.
4710 if test "$cross_compiling" = yes; then
4711 # try to guess the endianness by grepping values into an object file
4712 ac_cv_c_bigendian
=unknown
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4720 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4721 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4722 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4723 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4724 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4728 _ascii (); _ebcdic ();
4733 rm -f conftest.
$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try
='test -s conftest.$ac_objext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4746 ac_cv_c_bigendian
=yes
4748 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4749 if test "$ac_cv_c_bigendian" = unknown
; then
4750 ac_cv_c_bigendian
=no
4752 # finding both strings is unlikely to happen, but who knows?
4753 ac_cv_c_bigendian
=unknown
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.
$ac_ext >&5
4761 rm -f conftest.
$ac_objext conftest.
$ac_ext
4763 cat >conftest.
$ac_ext <<_ACEOF
4766 cat confdefs.h
>>conftest.
$ac_ext
4767 cat >>conftest.
$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4772 /* Are we little or big endian? From Harbison&Steele. */
4776 char c[sizeof (long)];
4779 exit (u.c[sizeof (long) - 1] == 1);
4782 rm -f conftest
$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_c_bigendian
=no
4795 echo "$as_me: program exited with status $ac_status" >&5
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.
$ac_ext >&5
4800 ac_cv_c_bigendian
=yes
4802 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4805 rm -f conftest.
$ac_objext conftest.
$ac_ext
4807 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4808 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4809 case $ac_cv_c_bigendian in
4812 cat >>confdefs.h
<<\_ACEOF
4813 #define WORDS_BIGENDIAN 1
4819 { { echo "$as_me:$LINENO: error: unknown endianness
4820 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4821 echo "$as_me: error: unknown endianness
4822 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4828 if test "${ac_cv_c_const+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 cat >conftest.
$ac_ext <<_ACEOF
4834 cat confdefs.h
>>conftest.
$ac_ext
4835 cat >>conftest.
$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4841 /* FIXME: Include the comments suggested by Paul. */
4843 /* Ultrix mips cc rejects this. */
4844 typedef int charset[2];
4846 /* SunOS 4.1.1 cc rejects this. */
4847 char const *const *ccp;
4849 /* NEC SVR4.0.2 mips cc rejects this. */
4850 struct point {int x, y;};
4851 static struct point const zero = {0,0};
4852 /* AIX XL C 1.02.0.0 rejects this.
4853 It does not let you subtract one const X* pointer from another in
4854 an arm of an if-expression whose if-part is not a constant
4856 const char *g = "string";
4857 ccp = &g + (g ? g-g : 0);
4858 /* HPUX 7.0 cc rejects these. */
4861 ccp = (char const *const *) p;
4862 { /* SCO 3.2v4 cc rejects this. */
4864 char const *s = 0 ? (char *) 0 : (char const *) 0;
4868 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4870 const int *foo = &x[0];
4873 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4874 typedef const int *iptr;
4878 { /* AIX XL C 1.02.0.0 rejects this saying
4879 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4880 struct s { int j; const int *ap[3]; };
4881 struct s *b; b->j = 5;
4883 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4892 rm -f conftest.
$ac_objext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try
='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.
$ac_ext >&5
4911 rm -f conftest.
$ac_objext conftest.
$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4914 echo "${ECHO_T}$ac_cv_c_const" >&6
4915 if test $ac_cv_c_const = no
; then
4917 cat >>confdefs.h
<<\_ACEOF
4923 echo "$as_me:$LINENO: checking for working volatile" >&5
4924 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4925 if test "${ac_cv_c_volatile+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 cat >conftest.
$ac_ext <<_ACEOF
4931 cat confdefs.h
>>conftest.
$ac_ext
4932 cat >>conftest.
$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_c_volatile
=yes
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4964 rm -f conftest.
$ac_objext conftest.
$ac_ext
4966 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4967 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4968 if test $ac_cv_c_volatile = no
; then
4970 cat >>confdefs.h
<<\_ACEOF
4976 echo "$as_me:$LINENO: checking for inline" >&5
4977 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4978 if test "${ac_cv_c_inline+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 for ac_kw
in inline __inline__ __inline
; do
4983 cat >conftest.
$ac_ext <<_ACEOF
4986 cat confdefs.h
>>conftest.
$ac_ext
4987 cat >>conftest.
$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4991 static $ac_kw foo_t static_foo () {return 0; }
4992 $ac_kw foo_t foo () {return 0; }
4996 rm -f conftest.
$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try
='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_c_inline
=$ac_kw; break
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5014 rm -f conftest.
$ac_objext conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5019 echo "${ECHO_T}$ac_cv_c_inline" >&6
5020 case $ac_cv_c_inline in
5023 cat >>confdefs.h
<<\_ACEOF
5027 *) cat >>confdefs.h
<<_ACEOF
5028 #define inline $ac_cv_c_inline
5033 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5034 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5035 if test "${ac_cv_c_long_double+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 cat >conftest.
$ac_ext <<_ACEOF
5041 cat confdefs.h
>>conftest.
$ac_ext
5042 cat >>conftest.
$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 long double foo = 0.0;
5049 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5050 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5051 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5058 rm -f conftest.
$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try
='test -s conftest.$ac_objext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_c_long_double
=yes
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.
$ac_ext >&5
5075 ac_cv_c_long_double
=no
5077 rm -f conftest.
$ac_objext conftest.
$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5080 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5081 if test $ac_cv_c_long_double = yes; then
5083 cat >>confdefs.h
<<\_ACEOF
5084 #define HAVE_LONG_DOUBLE 1
5167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5177 # Is the header compilable?
5178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5180 cat >conftest.
$ac_ext <<_ACEOF
5183 cat confdefs.h
>>conftest.
$ac_ext
5184 cat >>conftest.
$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187 #include <$ac_header>
5189 rm -f conftest.
$ac_objext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191 (eval $ac_compile) 2>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_header_compiler
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_header_compiler
=no
5208 rm -f conftest.
$ac_objext conftest.
$ac_ext
5209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210 echo "${ECHO_T}$ac_header_compiler" >&6
5212 # Is the header present?
5213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5218 cat confdefs.h
>>conftest.
$ac_ext
5219 cat >>conftest.
$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <$ac_header>
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
; then
5231 if test -s conftest.err
; then
5232 ac_cpp_err
=$ac_c_preproc_warn_flag
5239 if test -z "$ac_cpp_err"; then
5240 ac_header_preproc
=yes
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.
$ac_ext >&5
5245 ac_header_preproc
=no
5247 rm -f conftest.err conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5249 echo "${ECHO_T}$ac_header_preproc" >&6
5251 # So? What about this header?
5252 case $ac_header_compiler:$ac_header_preproc in
5254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5260 ## ------------------------------------ ##
5261 ## Report this to bug-autoconf@gnu.org. ##
5262 ## ------------------------------------ ##
5265 sed "s/^/$as_me: WARNING: /" >&2
5268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5276 ## ------------------------------------ ##
5277 ## Report this to bug-autoconf@gnu.org. ##
5278 ## ------------------------------------ ##
5281 sed "s/^/$as_me: WARNING: /" >&2
5284 echo "$as_me:$LINENO: checking for $ac_header" >&5
5285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 eval "$as_ac_Header=$ac_header_preproc"
5291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5296 cat >>confdefs.h
<<_ACEOF
5297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5311 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5312 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5313 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5314 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.
$ac_ext <<_ACEOF
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <sys/types.h>
5336 rm -f conftest.
$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try
='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5353 eval "$as_ac_Header=no"
5355 rm -f conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h
<<_ACEOF
5361 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5364 ac_header_dirent
=$ac_hdr; break
5368 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5369 if test $ac_header_dirent = dirent.h
; then
5371 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5373 if test "${ac_cv_search_opendir+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 ac_func_search_save_LIBS
=$LIBS
5378 ac_cv_search_opendir
=no
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 /* Override any gcc2 internal prototype to avoid an error. */
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5401 rm -f conftest.
$ac_objext conftest
$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try
='test -s conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_search_opendir
='none required'
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.
$ac_ext >&5
5419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5420 if test "$ac_cv_search_opendir" = no
; then
5421 for ac_lib
in dir
; do
5422 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5423 cat >conftest.
$ac_ext <<_ACEOF
5426 cat confdefs.h
>>conftest.
$ac_ext
5427 cat >>conftest.
$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5430 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5445 rm -f conftest.
$ac_objext conftest
$ac_exeext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -s conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_search_opendir
="-l$ac_lib"; break
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.
$ac_ext >&5
5463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5466 LIBS
=$ac_func_search_save_LIBS
5469 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5470 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5472 if test "$ac_cv_search_opendir" = no
; then :
5475 if test "$ac_cv_search_opendir" = 'none required'; then :
5478 LIBS
="$ac_cv_search_opendir $LIBS"
5485 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5487 if test "${ac_cv_search_opendir+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_func_search_save_LIBS
=$LIBS
5492 ac_cv_search_opendir
=no
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5515 rm -f conftest.
$ac_objext conftest
$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_search_opendir
='none required'
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.
$ac_ext >&5
5533 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5534 if test "$ac_cv_search_opendir" = no
; then
5536 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5537 cat >conftest.
$ac_ext <<_ACEOF
5540 cat confdefs.h
>>conftest.
$ac_ext
5541 cat >>conftest.
$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5544 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5559 rm -f conftest.
$ac_objext conftest
$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try
='test -s conftest$ac_exeext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 ac_cv_search_opendir
="-l$ac_lib"; break
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.
$ac_ext >&5
5577 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5580 LIBS
=$ac_func_search_save_LIBS
5583 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5584 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5586 if test "$ac_cv_search_opendir" = no
; then :
5589 if test "$ac_cv_search_opendir" = 'none required'; then :
5592 LIBS
="$ac_cv_search_opendir $LIBS"
5599 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5600 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5601 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.
$ac_ext <<_ACEOF
5607 cat confdefs.h
>>conftest.
$ac_ext
5608 cat >>conftest.
$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5614 static struct stat ac_aggr;
5615 if (ac_aggr.st_blocks)
5621 rm -f conftest.
$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try
='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_member_struct_stat_st_blocks
=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5638 cat >conftest.
$ac_ext <<_ACEOF
5641 cat confdefs.h
>>conftest.
$ac_ext
5642 cat >>conftest.
$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5648 static struct stat ac_aggr;
5649 if (sizeof ac_aggr.st_blocks)
5655 rm -f conftest.
$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_member_struct_stat_st_blocks
=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.
$ac_ext >&5
5672 ac_cv_member_struct_stat_st_blocks
=no
5674 rm -f conftest.
$ac_objext conftest.
$ac_ext
5676 rm -f conftest.
$ac_objext conftest.
$ac_ext
5678 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5679 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5680 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5682 cat >>confdefs.h
<<_ACEOF
5683 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5687 cat >>confdefs.h
<<\_ACEOF
5688 #define HAVE_ST_BLOCKS 1
5692 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5696 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5697 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5698 if test "${ac_cv_struct_tm+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 cat >conftest.
$ac_ext <<_ACEOF
5704 cat confdefs.h
>>conftest.
$ac_ext
5705 cat >>conftest.
$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5713 struct tm *tp; tp->tm_sec;
5718 rm -f conftest.
$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try
='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_struct_tm
=time.h
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.
$ac_ext >&5
5735 ac_cv_struct_tm
=sys
/time.h
5737 rm -f conftest.
$ac_objext conftest.
$ac_ext
5739 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5740 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5741 if test $ac_cv_struct_tm = sys
/time.h
; then
5743 cat >>confdefs.h
<<\_ACEOF
5744 #define TM_IN_SYS_TIME 1
5749 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 cat >conftest.
$ac_ext <<_ACEOF
5757 cat confdefs.h
>>conftest.
$ac_ext
5758 cat >>conftest.
$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 #include <$ac_cv_struct_tm>
5767 static struct tm ac_aggr;
5768 if (ac_aggr.tm_zone)
5774 rm -f conftest.
$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try
='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_member_struct_tm_tm_zone
=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.
$ac_ext >&5
5791 cat >conftest.
$ac_ext <<_ACEOF
5794 cat confdefs.h
>>conftest.
$ac_ext
5795 cat >>conftest.
$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 #include <sys/types.h>
5798 #include <$ac_cv_struct_tm>
5804 static struct tm ac_aggr;
5805 if (sizeof ac_aggr.tm_zone)
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_cv_member_struct_tm_tm_zone
=yes
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5828 ac_cv_member_struct_tm_tm_zone
=no
5830 rm -f conftest.
$ac_objext conftest.
$ac_ext
5832 rm -f conftest.
$ac_objext conftest.
$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5835 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5836 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5838 cat >>confdefs.h
<<_ACEOF
5839 #define HAVE_STRUCT_TM_TM_ZONE 1
5845 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5847 cat >>confdefs.h
<<\_ACEOF
5848 #define HAVE_TM_ZONE 1
5852 echo "$as_me:$LINENO: checking for tzname" >&5
5853 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5854 if test "${ac_cv_var_tzname+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5864 #ifndef tzname /* For SGI. */
5865 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5876 rm -f conftest.
$ac_objext conftest
$ac_exeext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try
='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_var_tzname
=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5895 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5898 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5899 if test $ac_cv_var_tzname = yes; then
5901 cat >>confdefs.h
<<\_ACEOF
5902 #define HAVE_TZNAME 1
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include <sys/types.h>
5920 #include <sys/stat.h>
5922 #if defined(S_ISBLK) && defined(S_IFDIR)
5923 # if S_ISBLK (S_IFDIR)
5928 #if defined(S_ISBLK) && defined(S_IFCHR)
5929 # if S_ISBLK (S_IFCHR)
5934 #if defined(S_ISLNK) && defined(S_IFREG)
5935 # if S_ISLNK (S_IFREG)
5940 #if defined(S_ISSOCK) && defined(S_IFREG)
5941 # if S_ISSOCK (S_IFREG)
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "You lose" >/dev
/null
2>&1; then
5949 ac_cv_header_stat_broken
=yes
5951 ac_cv_header_stat_broken
=no
5956 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5957 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5958 if test $ac_cv_header_stat_broken = yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define STAT_MACROS_BROKEN 1
5966 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5967 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5968 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_save_CPPFLAGS
="$CPPFLAGS"
5972 ac_cv_struct_st_mtim_nsec
=no
5973 # tv_nsec -- the usual case
5974 # _tv_nsec -- Solaris 2.6, if
5975 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5976 # && !defined __EXTENSIONS__)
5977 # st__tim.tv_nsec -- UnixWare 2.1.2
5978 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
5979 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5980 cat >conftest.
$ac_ext <<_ACEOF
5983 cat confdefs.h
>>conftest.
$ac_ext
5984 cat >>conftest.
$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5987 #include <sys/stat.h>
5991 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5996 rm -f conftest.
$ac_objext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try
='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_struct_st_mtim_nsec
=$ac_val; break
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6014 rm -f conftest.
$ac_objext conftest.
$ac_ext
6016 CPPFLAGS
="$ac_save_CPPFLAGS"
6018 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6019 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6021 if test $ac_cv_struct_st_mtim_nsec != no
; then
6023 cat >>confdefs.h
<<_ACEOF
6024 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6030 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6031 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6032 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 cat >conftest.
$ac_ext <<_ACEOF
6038 cat confdefs.h
>>conftest.
$ac_ext
6039 cat >>conftest.
$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <sys/stat.h>
6046 struct stat s; s.st_dm_mode;
6051 rm -f conftest.
$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try
='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_struct_st_dm_mode
=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.
$ac_ext >&5
6068 ac_cv_struct_st_dm_mode
=no
6070 rm -f conftest.
$ac_objext conftest.
$ac_ext
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6075 if test $ac_cv_struct_st_dm_mode = yes; then
6077 cat >>confdefs.h
<<\_ACEOF
6078 #define HAVE_ST_DM_MODE 1
6084 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6086 if test "${ac_cv_header_time+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.
$ac_ext <<_ACEOF
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/time.h>
6102 if ((struct tm *) 0)
6108 rm -f conftest.
$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try
='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_header_time
=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 ac_cv_header_time
=no
6127 rm -f conftest.
$ac_objext conftest.
$ac_ext
6129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6130 echo "${ECHO_T}$ac_cv_header_time" >&6
6131 if test $ac_cv_header_time = yes; then
6133 cat >>confdefs.h
<<\_ACEOF
6134 #define TIME_WITH_SYS_TIME 1
6141 echo "$as_me:$LINENO: checking for struct timespec" >&5
6142 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6143 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.
$ac_ext <<_ACEOF
6149 cat confdefs.h
>>conftest.
$ac_ext
6150 cat >>conftest.
$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 # if TIME_WITH_SYS_TIME
6154 # include <sys/time.h>
6157 # if HAVE_SYS_TIME_H
6158 # include <sys/time.h>
6167 static struct timespec x; x.tv_sec = x.tv_nsec;
6172 rm -f conftest.
$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try
='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 fu_cv_sys_struct_timespec
=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.
$ac_ext >&5
6189 fu_cv_sys_struct_timespec
=no
6191 rm -f conftest.
$ac_objext conftest.
$ac_ext
6194 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6195 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6197 if test $fu_cv_sys_struct_timespec = yes; then
6199 cat >>confdefs.h
<<\_ACEOF
6200 #define HAVE_STRUCT_TIMESPEC 1
6205 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6207 if test "${ac_cv_type_uid_t+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.
$ac_ext <<_ACEOF
6213 cat confdefs.h
>>conftest.
$ac_ext
6214 cat >>conftest.
$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 #include <sys/types.h>
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 $EGREP "uid_t" >/dev
/null
2>&1; then
6221 ac_cv_type_uid_t
=yes
6228 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6230 if test $ac_cv_type_uid_t = no
; then
6232 cat >>confdefs.h
<<\_ACEOF
6237 cat >>confdefs.h
<<\_ACEOF
6243 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6244 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6245 if test "${ac_cv_type_getgroups+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 if test "$cross_compiling" = yes; then
6249 ac_cv_type_getgroups
=cross
6251 cat >conftest.
$ac_ext <<_ACEOF
6254 cat confdefs.h
>>conftest.
$ac_ext
6255 cat >>conftest.
$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 /* Thanks to Mike Rendell for this test. */
6258 #include <sys/types.h>
6261 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6268 union { gid_t gval; long lval; } val;
6271 for (i = 0; i < NGID; i++)
6272 gidset[i] = val.gval;
6273 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6275 /* Exit non-zero if getgroups seems to require an array of ints. This
6276 happens when gid_t is short but getgroups modifies an array of ints. */
6277 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6280 rm -f conftest
$ac_exeext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_type_getgroups
=gid_t
6293 echo "$as_me: program exited with status $ac_status" >&5
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.
$ac_ext >&5
6298 ac_cv_type_getgroups
=int
6300 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6302 if test $ac_cv_type_getgroups = cross
; then
6303 cat >conftest.
$ac_ext <<_ACEOF
6306 cat confdefs.h
>>conftest.
$ac_ext
6307 cat >>conftest.
$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6314 ac_cv_type_getgroups
=gid_t
6316 ac_cv_type_getgroups
=int
6322 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6323 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6325 cat >>confdefs.h
<<_ACEOF
6326 #define GETGROUPS_T $ac_cv_type_getgroups
6330 echo "$as_me:$LINENO: checking for mode_t" >&5
6331 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6332 if test "${ac_cv_type_mode_t+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6347 if (sizeof (mode_t))
6353 rm -f conftest.
$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try
='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_type_mode_t
=yes
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6370 ac_cv_type_mode_t
=no
6372 rm -f conftest.
$ac_objext conftest.
$ac_ext
6374 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6375 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6376 if test $ac_cv_type_mode_t = yes; then
6380 cat >>confdefs.h
<<_ACEOF
6386 echo "$as_me:$LINENO: checking for off_t" >&5
6387 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6388 if test "${ac_cv_type_off_t+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.
$ac_ext <<_ACEOF
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6409 rm -f conftest.
$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try
='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_cv_type_off_t
=yes
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.
$ac_ext >&5
6428 rm -f conftest.
$ac_objext conftest.
$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6431 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6432 if test $ac_cv_type_off_t = yes; then
6436 cat >>confdefs.h
<<_ACEOF
6442 echo "$as_me:$LINENO: checking for pid_t" >&5
6443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6444 if test "${ac_cv_type_pid_t+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 cat >conftest.
$ac_ext <<_ACEOF
6450 cat confdefs.h
>>conftest.
$ac_ext
6451 cat >>conftest.
$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 $ac_includes_default
6465 rm -f conftest.
$ac_objext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467 (eval $ac_compile) 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try
='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_type_pid_t
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6484 rm -f conftest.
$ac_objext conftest.
$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6487 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6488 if test $ac_cv_type_pid_t = yes; then
6492 cat >>confdefs.h
<<_ACEOF
6498 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6499 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6500 if test "${ac_cv_type_signal+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6515 extern "C" void (*signal (int, void (*)(int)))(int);
6517 void (*signal ()) ();
6528 rm -f conftest.
$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try
='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_type_signal
=void
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 ac_cv_type_signal
=int
6547 rm -f conftest.
$ac_objext conftest.
$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6550 echo "${ECHO_T}$ac_cv_type_signal" >&6
6552 cat >>confdefs.h
<<_ACEOF
6553 #define RETSIGTYPE $ac_cv_type_signal
6557 echo "$as_me:$LINENO: checking for size_t" >&5
6558 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6559 if test "${ac_cv_type_size_t+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.
$ac_ext <<_ACEOF
6565 cat confdefs.h
>>conftest.
$ac_ext
6566 cat >>conftest.
$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 $ac_includes_default
6574 if (sizeof (size_t))
6580 rm -f conftest.
$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try
='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_type_size_t
=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6597 ac_cv_type_size_t
=no
6599 rm -f conftest.
$ac_objext conftest.
$ac_ext
6601 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6602 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6603 if test $ac_cv_type_size_t = yes; then
6607 cat >>confdefs.h
<<_ACEOF
6608 #define size_t unsigned
6614 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6615 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6616 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.
$ac_ext <<_ACEOF
6622 cat confdefs.h
>>conftest.
$ac_ext
6623 cat >>conftest.
$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 unsigned long long ull = 1; int i = 63;
6629 unsigned long long ullmax = (unsigned long long) -1;
6630 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6635 rm -f conftest.
$ac_objext conftest
$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try
='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_type_unsigned_long_long
=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.
$ac_ext >&5
6652 ac_cv_type_unsigned_long_long
=no
6654 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6657 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6658 if test $ac_cv_type_unsigned_long_long = yes; then
6660 cat >>confdefs.h
<<\_ACEOF
6661 #define HAVE_UNSIGNED_LONG_LONG 1
6668 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6669 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6670 if test "${ac_cv_type_uintmax_t+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.
$ac_ext <<_ACEOF
6676 cat confdefs.h
>>conftest.
$ac_ext
6677 cat >>conftest.
$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 $ac_includes_default
6683 if ((uintmax_t *) 0)
6685 if (sizeof (uintmax_t))
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try
='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_type_uintmax_t
=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 ac_cv_type_uintmax_t
=no
6710 rm -f conftest.
$ac_objext conftest.
$ac_ext
6712 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6713 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6714 if test $ac_cv_type_uintmax_t = yes; then
6717 test $ac_cv_type_unsigned_long_long = yes \
6718 && ac_type
='unsigned long long' \
6719 || ac_type
='unsigned long'
6721 cat >>confdefs.h
<<_ACEOF
6722 #define uintmax_t $ac_type
6728 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6729 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6730 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 cat >conftest.
$ac_ext <<_ACEOF
6736 cat confdefs.h
>>conftest.
$ac_ext
6737 cat >>conftest.
$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <sys/types.h>
6743 return makedev(0, 0);
6748 rm -f conftest.
$ac_objext conftest
$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try
='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_header_sys_types_h_makedev
=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.
$ac_ext >&5
6765 ac_cv_header_sys_types_h_makedev
=no
6767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6771 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6773 if test $ac_cv_header_sys_types_h_makedev = no
; then
6774 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6775 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6776 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6777 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6781 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6783 # Is the header compilable?
6784 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6785 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6786 cat >conftest.
$ac_ext <<_ACEOF
6789 cat confdefs.h
>>conftest.
$ac_ext
6790 cat >>conftest.
$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 $ac_includes_default
6793 #include <sys/mkdev.h>
6795 rm -f conftest.
$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try
='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_header_compiler
=yes
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.
$ac_ext >&5
6812 ac_header_compiler
=no
6814 rm -f conftest.
$ac_objext conftest.
$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6816 echo "${ECHO_T}$ac_header_compiler" >&6
6818 # Is the header present?
6819 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6820 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6821 cat >conftest.
$ac_ext <<_ACEOF
6824 cat confdefs.h
>>conftest.
$ac_ext
6825 cat >>conftest.
$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <sys/mkdev.h>
6829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1
>conftest.err
6834 cat conftest.err
>&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } >/dev
/null
; then
6837 if test -s conftest.err
; then
6838 ac_cpp_err
=$ac_c_preproc_warn_flag
6845 if test -z "$ac_cpp_err"; then
6846 ac_header_preproc
=yes
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.
$ac_ext >&5
6851 ac_header_preproc
=no
6853 rm -f conftest.err conftest.
$ac_ext
6854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6855 echo "${ECHO_T}$ac_header_preproc" >&6
6857 # So? What about this header?
6858 case $ac_header_compiler:$ac_header_preproc in
6860 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6861 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6863 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6866 ## ------------------------------------ ##
6867 ## Report this to bug-autoconf@gnu.org. ##
6868 ## ------------------------------------ ##
6871 sed "s/^/$as_me: WARNING: /" >&2
6874 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6875 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6877 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6882 ## ------------------------------------ ##
6883 ## Report this to bug-autoconf@gnu.org. ##
6884 ## ------------------------------------ ##
6887 sed "s/^/$as_me: WARNING: /" >&2
6890 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6891 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6892 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6898 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6901 if test $ac_cv_header_sys_mkdev_h = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define MAJOR_IN_MKDEV 1
6911 if test $ac_cv_header_sys_mkdev_h = no
; then
6912 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6913 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6914 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6915 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6919 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6921 # Is the header compilable?
6922 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6923 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6924 cat >conftest.
$ac_ext <<_ACEOF
6927 cat confdefs.h
>>conftest.
$ac_ext
6928 cat >>conftest.
$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #include <sys/sysmacros.h>
6933 rm -f conftest.
$ac_objext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try
='test -s conftest.$ac_objext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_header_compiler
=yes
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 ac_header_compiler
=no
6952 rm -f conftest.
$ac_objext conftest.
$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6954 echo "${ECHO_T}$ac_header_compiler" >&6
6956 # Is the header present?
6957 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6958 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/sysmacros.h>
6967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6968 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6970 grep -v '^ *+' conftest.er1
>conftest.err
6972 cat conftest.err
>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } >/dev
/null
; then
6975 if test -s conftest.err
; then
6976 ac_cpp_err
=$ac_c_preproc_warn_flag
6983 if test -z "$ac_cpp_err"; then
6984 ac_header_preproc
=yes
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.
$ac_ext >&5
6989 ac_header_preproc
=no
6991 rm -f conftest.err conftest.
$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6993 echo "${ECHO_T}$ac_header_preproc" >&6
6995 # So? What about this header?
6996 case $ac_header_compiler:$ac_header_preproc in
6998 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6999 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7000 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7001 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7004 ## ------------------------------------ ##
7005 ## Report this to bug-autoconf@gnu.org. ##
7006 ## ------------------------------------ ##
7009 sed "s/^/$as_me: WARNING: /" >&2
7012 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7013 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7015 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7017 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7020 ## ------------------------------------ ##
7021 ## Report this to bug-autoconf@gnu.org. ##
7022 ## ------------------------------------ ##
7025 sed "s/^/$as_me: WARNING: /" >&2
7028 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7029 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7030 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
7035 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7039 if test $ac_cv_header_sys_sysmacros_h = yes; then
7041 cat >>confdefs.h
<<\_ACEOF
7042 #define MAJOR_IN_SYSMACROS 1
7051 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7052 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
7053 if test "${acx_cv_c_restrict+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 acx_cv_c_restrict
=no
7057 # Try the official restrict keyword, then gcc's __restrict__.
7058 for acx_kw
in restrict __restrict__
; do
7059 cat >conftest.
$ac_ext <<_ACEOF
7062 cat confdefs.h
>>conftest.
$ac_ext
7063 cat >>conftest.
$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7067 rm -f conftest.
$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try
='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 acx_cv_c_restrict
=$acx_kw; break
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.
$ac_ext >&5
7085 rm -f conftest.
$ac_objext conftest.
$ac_ext
7089 echo "$as_me:$LINENO: result: $acx_cv_c_restrict" >&5
7090 echo "${ECHO_T}$acx_cv_c_restrict" >&6
7091 case $acx_cv_c_restrict in
7094 cat >>confdefs.h
<<\_ACEOF
7098 *) cat >>confdefs.h
<<_ACEOF
7099 #define restrict $acx_cv_c_restrict
7104 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7105 # for constant arguments. Useless!
7106 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7107 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7108 if test "${ac_cv_working_alloca_h+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.
$ac_ext <<_ACEOF
7114 cat confdefs.h
>>conftest.
$ac_ext
7115 cat >>conftest.
$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7121 char *p = (char *) alloca (2 * sizeof (int));
7126 rm -f conftest.
$ac_objext conftest
$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try
='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_working_alloca_h
=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.
$ac_ext >&5
7143 ac_cv_working_alloca_h
=no
7145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7147 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7148 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7149 if test $ac_cv_working_alloca_h = yes; then
7151 cat >>confdefs.h
<<\_ACEOF
7152 #define HAVE_ALLOCA_H 1
7157 echo "$as_me:$LINENO: checking for alloca" >&5
7158 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7159 if test "${ac_cv_func_alloca_works+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 # define alloca __builtin_alloca
7172 # include <malloc.h>
7173 # define alloca _alloca
7176 # include <alloca.h>
7181 # ifndef alloca /* predefined by HP cc +Olibcalls */
7192 char *p = (char *) alloca (1);
7197 rm -f conftest.
$ac_objext conftest
$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try
='test -s conftest$ac_exeext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_alloca_works
=yes
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7214 ac_cv_func_alloca_works
=no
7216 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7219 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7221 if test $ac_cv_func_alloca_works = yes; then
7223 cat >>confdefs.h
<<\_ACEOF
7224 #define HAVE_ALLOCA 1
7228 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7229 # that cause trouble. Some versions do not even contain alloca or
7230 # contain a buggy version. If you still want to use their alloca,
7231 # use ar to extract alloca.o from them instead of compiling alloca.c.
7233 ALLOCA
=alloca.
$ac_objext
7235 cat >>confdefs.h
<<\_ACEOF
7240 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7241 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7242 if test "${ac_cv_os_cray+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 #if defined(CRAY) && ! defined(CRAY2)
7258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7259 $EGREP "webecray" >/dev
/null
2>&1; then
7267 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7268 echo "${ECHO_T}$ac_cv_os_cray" >&6
7269 if test $ac_cv_os_cray = yes; then
7270 for ac_func
in _getb67 GETB67 getb67
; do
7271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7272 echo "$as_me:$LINENO: checking for $ac_func" >&5
7273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7274 if eval "test \"\${$as_ac_var+set}\" = set"; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 cat >conftest.
$ac_ext <<_ACEOF
7280 cat confdefs.h
>>conftest.
$ac_ext
7281 cat >>conftest.
$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 /* System header to define __stub macros and hopefully few prototypes,
7284 which can conflict with char $ac_func (); below.
7285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286 <limits.h> exists even on freestanding compilers. */
7288 # include <limits.h>
7290 # include <assert.h>
7292 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7300 /* The GNU C library defines this for functions which it implements
7301 to always fail with ENOSYS. Some functions are actually named
7302 something starting with __ and the normal name is an alias. */
7303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7306 char (*f) () = $ac_func;
7315 return f != $ac_func;
7320 rm -f conftest.
$ac_objext conftest
$ac_exeext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7322 (eval $ac_link) 2>&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
7326 { ac_try
='test -s conftest$ac_exeext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 eval "$as_ac_var=yes"
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.
$ac_ext >&5
7337 eval "$as_ac_var=no"
7339 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7343 if test `eval echo '${'$as_ac_var'}'` = yes; then
7345 cat >>confdefs.h
<<_ACEOF
7346 #define CRAY_STACKSEG_END $ac_func
7355 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7356 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7357 if test "${ac_cv_c_stack_direction+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 if test "$cross_compiling" = yes; then
7361 ac_cv_c_stack_direction
=0
7363 cat >conftest.
$ac_ext <<_ACEOF
7366 cat confdefs.h
>>conftest.
$ac_ext
7367 cat >>conftest.
$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7370 find_stack_direction ()
7372 static char *addr = 0;
7377 return find_stack_direction ();
7380 return (&dummy > addr) ? 1 : -1;
7386 exit (find_stack_direction () < 0);
7389 rm -f conftest
$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_c_stack_direction
=1
7402 echo "$as_me: program exited with status $ac_status" >&5
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.
$ac_ext >&5
7407 ac_cv_c_stack_direction
=-1
7409 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7413 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7415 cat >>confdefs.h
<<_ACEOF
7416 #define STACK_DIRECTION $ac_cv_c_stack_direction
7424 for ac_header
in limits.h
7426 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7436 # Is the header compilable?
7437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7439 cat >conftest.
$ac_ext <<_ACEOF
7442 cat confdefs.h
>>conftest.
$ac_ext
7443 cat >>conftest.
$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 $ac_includes_default
7446 #include <$ac_header>
7448 rm -f conftest.
$ac_objext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7450 (eval $ac_compile) 2>&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try
='test -s conftest.$ac_objext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_header_compiler
=yes
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.
$ac_ext >&5
7465 ac_header_compiler
=no
7467 rm -f conftest.
$ac_objext conftest.
$ac_ext
7468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7469 echo "${ECHO_T}$ac_header_compiler" >&6
7471 # Is the header present?
7472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7474 cat >conftest.
$ac_ext <<_ACEOF
7477 cat confdefs.h
>>conftest.
$ac_ext
7478 cat >>conftest.
$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 #include <$ac_header>
7482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1
>conftest.err
7487 cat conftest.err
>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } >/dev
/null
; then
7490 if test -s conftest.err
; then
7491 ac_cpp_err
=$ac_c_preproc_warn_flag
7498 if test -z "$ac_cpp_err"; then
7499 ac_header_preproc
=yes
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.
$ac_ext >&5
7504 ac_header_preproc
=no
7506 rm -f conftest.err conftest.
$ac_ext
7507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7508 echo "${ECHO_T}$ac_header_preproc" >&6
7510 # So? What about this header?
7511 case $ac_header_compiler:$ac_header_preproc in
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7519 ## ------------------------------------ ##
7520 ## Report this to bug-autoconf@gnu.org. ##
7521 ## ------------------------------------ ##
7524 sed "s/^/$as_me: WARNING: /" >&2
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7535 ## ------------------------------------ ##
7536 ## Report this to bug-autoconf@gnu.org. ##
7537 ## ------------------------------------ ##
7540 sed "s/^/$as_me: WARNING: /" >&2
7543 echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 eval "$as_ac_Header=$ac_header_preproc"
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555 cat >>confdefs.h
<<_ACEOF
7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 for ac_header
in string.h
7568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570 echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 # Is the header compilable?
7579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7581 cat >conftest.
$ac_ext <<_ACEOF
7584 cat confdefs.h
>>conftest.
$ac_ext
7585 cat >>conftest.
$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 #include <$ac_header>
7590 rm -f conftest.
$ac_objext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try
='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_header_compiler
=yes
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 ac_header_compiler
=no
7609 rm -f conftest.
$ac_objext conftest.
$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6
7613 # Is the header present?
7614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <$ac_header>
7624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1
>conftest.err
7629 cat conftest.err
>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } >/dev
/null
; then
7632 if test -s conftest.err
; then
7633 ac_cpp_err
=$ac_c_preproc_warn_flag
7640 if test -z "$ac_cpp_err"; then
7641 ac_header_preproc
=yes
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.
$ac_ext >&5
7646 ac_header_preproc
=no
7648 rm -f conftest.err conftest.
$ac_ext
7649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7650 echo "${ECHO_T}$ac_header_preproc" >&6
7652 # So? What about this header?
7653 case $ac_header_compiler:$ac_header_preproc in
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7661 ## ------------------------------------ ##
7662 ## Report this to bug-autoconf@gnu.org. ##
7663 ## ------------------------------------ ##
7666 sed "s/^/$as_me: WARNING: /" >&2
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7677 ## ------------------------------------ ##
7678 ## Report this to bug-autoconf@gnu.org. ##
7679 ## ------------------------------------ ##
7682 sed "s/^/$as_me: WARNING: /" >&2
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 eval "$as_ac_Header=$ac_header_preproc"
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697 cat >>confdefs.h
<<_ACEOF
7698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7708 for ac_header
in wchar.h
7710 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7720 # Is the header compilable?
7721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7723 cat >conftest.
$ac_ext <<_ACEOF
7726 cat confdefs.h
>>conftest.
$ac_ext
7727 cat >>conftest.
$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 #include <$ac_header>
7732 rm -f conftest.
$ac_objext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_header_compiler
=yes
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7749 ac_header_compiler
=no
7751 rm -f conftest.
$ac_objext conftest.
$ac_ext
7752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7753 echo "${ECHO_T}$ac_header_compiler" >&6
7755 # Is the header present?
7756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7758 cat >conftest.
$ac_ext <<_ACEOF
7761 cat confdefs.h
>>conftest.
$ac_ext
7762 cat >>conftest.
$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 #include <$ac_header>
7766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7769 grep -v '^ *+' conftest.er1
>conftest.err
7771 cat conftest.err
>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } >/dev
/null
; then
7774 if test -s conftest.err
; then
7775 ac_cpp_err
=$ac_c_preproc_warn_flag
7782 if test -z "$ac_cpp_err"; then
7783 ac_header_preproc
=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.
$ac_ext >&5
7788 ac_header_preproc
=no
7790 rm -f conftest.err conftest.
$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7792 echo "${ECHO_T}$ac_header_preproc" >&6
7794 # So? What about this header?
7795 case $ac_header_compiler:$ac_header_preproc in
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7803 ## ------------------------------------ ##
7804 ## Report this to bug-autoconf@gnu.org. ##
7805 ## ------------------------------------ ##
7808 sed "s/^/$as_me: WARNING: /" >&2
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7819 ## ------------------------------------ ##
7820 ## Report this to bug-autoconf@gnu.org. ##
7821 ## ------------------------------------ ##
7824 sed "s/^/$as_me: WARNING: /" >&2
7827 echo "$as_me:$LINENO: checking for $ac_header" >&5
7828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 eval "$as_ac_Header=$ac_header_preproc"
7834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7839 cat >>confdefs.h
<<_ACEOF
7840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7850 for ac_header
in wctype.h
7852 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854 echo "$as_me:$LINENO: checking for $ac_header" >&5
7855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7862 # Is the header compilable?
7863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7865 cat >conftest.
$ac_ext <<_ACEOF
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #include <$ac_header>
7874 rm -f conftest.
$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try
='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler
=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7891 ac_header_compiler
=no
7893 rm -f conftest.
$ac_objext conftest.
$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7895 echo "${ECHO_T}$ac_header_compiler" >&6
7897 # Is the header present?
7898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7900 cat >conftest.
$ac_ext <<_ACEOF
7903 cat confdefs.h
>>conftest.
$ac_ext
7904 cat >>conftest.
$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 #include <$ac_header>
7908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7911 grep -v '^ *+' conftest.er1
>conftest.err
7913 cat conftest.err
>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } >/dev
/null
; then
7916 if test -s conftest.err
; then
7917 ac_cpp_err
=$ac_c_preproc_warn_flag
7924 if test -z "$ac_cpp_err"; then
7925 ac_header_preproc
=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7930 ac_header_preproc
=no
7932 rm -f conftest.err conftest.
$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7934 echo "${ECHO_T}$ac_header_preproc" >&6
7936 # So? What about this header?
7937 case $ac_header_compiler:$ac_header_preproc in
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7945 ## ------------------------------------ ##
7946 ## Report this to bug-autoconf@gnu.org. ##
7947 ## ------------------------------------ ##
7950 sed "s/^/$as_me: WARNING: /" >&2
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7961 ## ------------------------------------ ##
7962 ## Report this to bug-autoconf@gnu.org. ##
7963 ## ------------------------------------ ##
7966 sed "s/^/$as_me: WARNING: /" >&2
7969 echo "$as_me:$LINENO: checking for $ac_header" >&5
7970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 eval "$as_ac_Header=$ac_header_preproc"
7976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7981 cat >>confdefs.h
<<_ACEOF
7982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992 for ac_func
in isascii
7994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7995 echo "$as_me:$LINENO: checking for $ac_func" >&5
7996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7997 if eval "test \"\${$as_ac_var+set}\" = set"; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >conftest.
$ac_ext <<_ACEOF
8003 cat confdefs.h
>>conftest.
$ac_ext
8004 cat >>conftest.
$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char $ac_func (); below.
8008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 <limits.h> exists even on freestanding compilers. */
8011 # include <limits.h>
8013 # include <assert.h>
8015 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8023 /* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8029 char (*f) () = $ac_func;
8038 return f != $ac_func;
8043 rm -f conftest.
$ac_objext conftest
$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try
='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8060 eval "$as_ac_var=no"
8062 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8066 if test `eval echo '${'$as_ac_var'}'` = yes; then
8067 cat >>confdefs.h
<<_ACEOF
8068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8077 for ac_func
in mempcpy
8079 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* System header to define __stub macros and hopefully few prototypes,
8092 which can conflict with char $ac_func (); below.
8093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8094 <limits.h> exists even on freestanding compilers. */
8096 # include <limits.h>
8098 # include <assert.h>
8100 /* Override any gcc2 internal prototype to avoid an error. */
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8114 char (*f) () = $ac_func;
8123 return f != $ac_func;
8128 rm -f conftest.
$ac_objext conftest
$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try
='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 eval "$as_ac_var=yes"
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.
$ac_ext >&5
8145 eval "$as_ac_var=no"
8147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h
<<_ACEOF
8153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8161 echo "$as_me:$LINENO: checking host operating system" >&5
8162 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8163 if test "${utils_cv_host_operating_system+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 # These operating system names do not use the default heuristic below.
8169 # They are in reverse order, so that more-specific prefixes come first.
8170 winnt
*) os
='Windows NT';;
8172 sysv
*) os
='Unix System V';;
8173 superux
*) os
='SUPER-UX';;
8174 sunos
*) os
='SunOS';;
8176 sco
*) os
='SCO Unix';;
8177 riscos
*) os
='RISC OS';;
8178 riscix
*) os
='RISCiX';;
8182 plan9
*) os
='Plan 9';;
8185 openbsd
*) os
='OpenBSD';;
8186 nsk
*) os
='NonStop Kernel';;
8187 nonstopux
*) os
='NonStop-UX';;
8188 netbsd
*) os
='NetBSD';;
8189 msdosdjgpp
*) os
='DJGPP';;
8190 mpeix
*) os
='MPE/iX';;
8192 mingw
*) os
='MinGW';;
8193 lynxos
*) os
='LynxOS';;
8194 linux
*) os
='GNU/Linux';;
8198 freebsd
*-gnu*) os
='GNU/FreeBSD';;
8199 freebsd
*) os
='FreeBSD';;
8201 bsdi
*) os
='BSD/OS';;
8205 atheos
*) os
='AtheOS';;
8206 amigaos
*) os
='Amiga OS';;
8209 # The default heuristic takes the initial alphabetic string
8210 # from $host_os, but capitalizes its first letter.
8213 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8215 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8219 # If $host_os does not start with an alphabetic string, use it unchanged.
8223 utils_cv_host_operating_system
=$os
8225 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8226 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8228 cat >>confdefs.h
<<_ACEOF
8229 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8233 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8234 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8235 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 # Arrange for deletion of the temporary directory this test might create.
8240 ac_clean_files
="$ac_clean_files confdir-slash"
8241 if test "$cross_compiling" = yes; then
8242 utils_cv_func_mkdir_trailing_slash_bug
=yes
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8252 # include <sys/types.h>
8253 # include <sys/stat.h>
8254 # include <stdlib.h>
8257 rmdir ("confdir-slash");
8258 exit (mkdir ("confdir-slash/", 0700));
8262 rm -f conftest
$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 utils_cv_func_mkdir_trailing_slash_bug
=no
8275 echo "$as_me: program exited with status $ac_status" >&5
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.
$ac_ext >&5
8280 utils_cv_func_mkdir_trailing_slash_bug
=yes
8282 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8287 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8288 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8290 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8291 LIBOBJS
="$LIBOBJS mkdir.$ac_objext"
8293 cat >>confdefs.h
<<\_ACEOF
8294 #define mkdir rpl_mkdir
8300 # getdate.y works with bison only.
8301 : ${YACC='bison -y'}
8305 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8306 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8307 # Check whether --enable-assert or --disable-assert was given.
8308 if test "${enable_assert+set}" = set; then
8309 enableval
="$enable_assert"
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8313 cat >>confdefs.h
<<\_ACEOF
8318 echo "$as_me:$LINENO: result: yes" >&5
8319 echo "${ECHO_T}yes" >&6
8325 for ac_header
in utime.h
8327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8329 echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8337 # Is the header compilable?
8338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8340 cat >conftest.
$ac_ext <<_ACEOF
8343 cat confdefs.h
>>conftest.
$ac_ext
8344 cat >>conftest.
$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 $ac_includes_default
8347 #include <$ac_header>
8349 rm -f conftest.
$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try
='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_header_compiler
=yes
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.
$ac_ext >&5
8366 ac_header_compiler
=no
8368 rm -f conftest.
$ac_objext conftest.
$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8375 cat >conftest.
$ac_ext <<_ACEOF
8378 cat confdefs.h
>>conftest.
$ac_ext
8379 cat >>conftest.
$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 #include <$ac_header>
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1
>conftest.err
8388 cat conftest.err
>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev
/null
; then
8391 if test -s conftest.err
; then
8392 ac_cpp_err
=$ac_c_preproc_warn_flag
8399 if test -z "$ac_cpp_err"; then
8400 ac_header_preproc
=yes
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.
$ac_ext >&5
8405 ac_header_preproc
=no
8407 rm -f conftest.err conftest.
$ac_ext
8408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409 echo "${ECHO_T}$ac_header_preproc" >&6
8411 # So? What about this header?
8412 case $ac_header_compiler:$ac_header_preproc in
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8420 ## ------------------------------------ ##
8421 ## Report this to bug-autoconf@gnu.org. ##
8422 ## ------------------------------------ ##
8425 sed "s/^/$as_me: WARNING: /" >&2
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8436 ## ------------------------------------ ##
8437 ## Report this to bug-autoconf@gnu.org. ##
8438 ## ------------------------------------ ##
8441 sed "s/^/$as_me: WARNING: /" >&2
8444 echo "$as_me:$LINENO: checking for $ac_header" >&5
8445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 eval "$as_ac_Header=$ac_header_preproc"
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8456 cat >>confdefs.h
<<_ACEOF
8457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8466 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8467 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 #ifdef TIME_WITH_SYS_TIME
8478 # include <sys/time.h>
8481 # ifdef HAVE_SYS_TIME_H
8482 # include <sys/time.h>
8494 static struct utimbuf x; x.actime = x.modtime;
8499 rm -f conftest.
$ac_objext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try
='test -s conftest.$ac_objext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 fu_cv_sys_struct_utimbuf
=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.
$ac_ext >&5
8516 fu_cv_sys_struct_utimbuf
=no
8518 rm -f conftest.
$ac_objext conftest.
$ac_ext
8521 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8522 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8524 if test $fu_cv_sys_struct_utimbuf = yes; then
8526 cat >>confdefs.h
<<\_ACEOF
8527 #define HAVE_STRUCT_UTIMBUF 1
8532 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8533 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8534 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.
$ac_ext <<_ACEOF
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8544 #include <sys/types.h>
8545 #ifdef HAVE_DIRENT_H
8546 # include <dirent.h>
8547 #else /* not HAVE_DIRENT_H */
8548 # define dirent direct
8549 # ifdef HAVE_SYS_NDIR_H
8550 # include <sys/ndir.h>
8551 # endif /* HAVE_SYS_NDIR_H */
8552 # ifdef HAVE_SYS_DIR_H
8553 # include <sys/dir.h>
8554 # endif /* HAVE_SYS_DIR_H */
8557 # endif /* HAVE_NDIR_H */
8558 #endif /* HAVE_DIRENT_H */
8563 struct dirent dp; dp.d_type = 0;
8568 rm -f conftest.
$ac_objext conftest
$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try
='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 jm_cv_struct_dirent_d_type
=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 jm_cv_struct_dirent_d_type
=no
8587 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8591 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8592 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8593 if test $jm_cv_struct_dirent_d_type = yes; then
8595 cat >>confdefs.h
<<\_ACEOF
8596 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8602 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8603 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8604 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 cat >conftest.
$ac_ext <<_ACEOF
8610 cat confdefs.h
>>conftest.
$ac_ext
8611 cat >>conftest.
$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <sys/types.h>
8615 #ifdef HAVE_DIRENT_H
8616 # include <dirent.h>
8617 #else /* not HAVE_DIRENT_H */
8618 # define dirent direct
8619 # ifdef HAVE_SYS_NDIR_H
8620 # include <sys/ndir.h>
8621 # endif /* HAVE_SYS_NDIR_H */
8622 # ifdef HAVE_SYS_DIR_H
8623 # include <sys/dir.h>
8624 # endif /* HAVE_SYS_DIR_H */
8627 # endif /* HAVE_NDIR_H */
8628 #endif /* HAVE_DIRENT_H */
8633 struct dirent dp; dp.d_ino = 0;
8638 rm -f conftest.
$ac_objext conftest
$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try
='test -s conftest$ac_exeext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 jm_cv_struct_dirent_d_ino
=yes
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.
$ac_ext >&5
8655 jm_cv_struct_dirent_d_ino
=no
8657 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8661 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8662 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8663 if test $jm_cv_struct_dirent_d_ino = yes; then
8665 cat >>confdefs.h
<<\_ACEOF
8666 #define D_INO_IN_DIRENT 1
8684 for ac_header
in grp.h memory.h
pwd.h string.h
strings.h stdlib.h \
8685 unistd.h sys
/time.h utmp.h utmpx.h
8687 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8697 # Is the header compilable?
8698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8700 cat >conftest.
$ac_ext <<_ACEOF
8703 cat confdefs.h
>>conftest.
$ac_ext
8704 cat >>conftest.
$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8707 #include <$ac_header>
8709 rm -f conftest.
$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try
='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_header_compiler
=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.
$ac_ext >&5
8726 ac_header_compiler
=no
8728 rm -f conftest.
$ac_objext conftest.
$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8735 cat >conftest.
$ac_ext <<_ACEOF
8738 cat confdefs.h
>>conftest.
$ac_ext
8739 cat >>conftest.
$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 #include <$ac_header>
8743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1
>conftest.err
8748 cat conftest.err
>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } >/dev
/null
; then
8751 if test -s conftest.err
; then
8752 ac_cpp_err
=$ac_c_preproc_warn_flag
8759 if test -z "$ac_cpp_err"; then
8760 ac_header_preproc
=yes
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.
$ac_ext >&5
8765 ac_header_preproc
=no
8767 rm -f conftest.err conftest.
$ac_ext
8768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769 echo "${ECHO_T}$ac_header_preproc" >&6
8771 # So? What about this header?
8772 case $ac_header_compiler:$ac_header_preproc in
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8780 ## ------------------------------------ ##
8781 ## Report this to bug-autoconf@gnu.org. ##
8782 ## ------------------------------------ ##
8785 sed "s/^/$as_me: WARNING: /" >&2
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8796 ## ------------------------------------ ##
8797 ## Report this to bug-autoconf@gnu.org. ##
8798 ## ------------------------------------ ##
8801 sed "s/^/$as_me: WARNING: /" >&2
8804 echo "$as_me:$LINENO: checking for $ac_header" >&5
8805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 eval "$as_ac_Header=$ac_header_preproc"
8811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8816 cat >>confdefs.h
<<_ACEOF
8817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8831 # if !STDC_HEADERS && HAVE_MEMORY_H
8832 # include <memory.h>
8834 # include <string.h>
8837 # include <strings.h>
8841 # include <stdlib.h>
8844 # include <unistd.h>
8847 #include <sys/types.h>
8848 #if TIME_WITH_SYS_TIME
8849 # include <sys/time.h>
8852 # if HAVE_SYS_TIME_H
8853 # include <sys/time.h>
8872 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
8873 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
8874 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.
$ac_ext <<_ACEOF
8880 cat confdefs.h
>>conftest.
$ac_ext
8881 cat >>conftest.
$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8889 char *p = (char *) euidaccess;
8896 rm -f conftest.
$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try
='test -s conftest.$ac_objext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_have_decl_euidaccess
=yes
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.
$ac_ext >&5
8913 ac_cv_have_decl_euidaccess
=no
8915 rm -f conftest.
$ac_objext conftest.
$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
8918 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
8919 if test $ac_cv_have_decl_euidaccess = yes; then
8921 cat >>confdefs.h
<<_ACEOF
8922 #define HAVE_DECL_EUIDACCESS 1
8927 cat >>confdefs.h
<<_ACEOF
8928 #define HAVE_DECL_EUIDACCESS 0
8933 echo "$as_me:$LINENO: checking whether free is declared" >&5
8934 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8935 if test "${ac_cv_have_decl_free+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 cat >conftest.
$ac_ext <<_ACEOF
8941 cat confdefs.h
>>conftest.
$ac_ext
8942 cat >>conftest.
$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8950 char *p = (char *) free;
8957 rm -f conftest.
$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try
='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_have_decl_free
=yes
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.
$ac_ext >&5
8974 ac_cv_have_decl_free
=no
8976 rm -f conftest.
$ac_objext conftest.
$ac_ext
8978 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8979 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8980 if test $ac_cv_have_decl_free = yes; then
8982 cat >>confdefs.h
<<_ACEOF
8983 #define HAVE_DECL_FREE 1
8988 cat >>confdefs.h
<<_ACEOF
8989 #define HAVE_DECL_FREE 0
8994 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8995 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8996 if test "${ac_cv_have_decl_getenv+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.
$ac_ext <<_ACEOF
9002 cat confdefs.h
>>conftest.
$ac_ext
9003 cat >>conftest.
$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9011 char *p = (char *) getenv;
9018 rm -f conftest.
$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try
='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_cv_have_decl_getenv
=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.
$ac_ext >&5
9035 ac_cv_have_decl_getenv
=no
9037 rm -f conftest.
$ac_objext conftest.
$ac_ext
9039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9040 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9041 if test $ac_cv_have_decl_getenv = yes; then
9043 cat >>confdefs.h
<<_ACEOF
9044 #define HAVE_DECL_GETENV 1
9049 cat >>confdefs.h
<<_ACEOF
9050 #define HAVE_DECL_GETENV 0
9055 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9056 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9057 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 cat >conftest.
$ac_ext <<_ACEOF
9063 cat confdefs.h
>>conftest.
$ac_ext
9064 cat >>conftest.
$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9072 char *p = (char *) geteuid;
9079 rm -f conftest.
$ac_objext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9081 (eval $ac_compile) 2>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try
='test -s conftest.$ac_objext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_have_decl_geteuid
=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.
$ac_ext >&5
9096 ac_cv_have_decl_geteuid
=no
9098 rm -f conftest.
$ac_objext conftest.
$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9101 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9102 if test $ac_cv_have_decl_geteuid = yes; then
9104 cat >>confdefs.h
<<_ACEOF
9105 #define HAVE_DECL_GETEUID 1
9110 cat >>confdefs.h
<<_ACEOF
9111 #define HAVE_DECL_GETEUID 0
9116 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9117 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9118 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 cat >conftest.
$ac_ext <<_ACEOF
9124 cat confdefs.h
>>conftest.
$ac_ext
9125 cat >>conftest.
$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9133 char *p = (char *) getgrgid;
9140 rm -f conftest.
$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try
='test -s conftest.$ac_objext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_have_decl_getgrgid
=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 ac_cv_have_decl_getgrgid
=no
9159 rm -f conftest.
$ac_objext conftest.
$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9162 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9163 if test $ac_cv_have_decl_getgrgid = yes; then
9165 cat >>confdefs.h
<<_ACEOF
9166 #define HAVE_DECL_GETGRGID 1
9171 cat >>confdefs.h
<<_ACEOF
9172 #define HAVE_DECL_GETGRGID 0
9177 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9178 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9179 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9194 char *p = (char *) getlogin;
9201 rm -f conftest.
$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203 (eval $ac_compile) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try
='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_have_decl_getlogin
=yes
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.
$ac_ext >&5
9218 ac_cv_have_decl_getlogin
=no
9220 rm -f conftest.
$ac_objext conftest.
$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9223 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9224 if test $ac_cv_have_decl_getlogin = yes; then
9226 cat >>confdefs.h
<<_ACEOF
9227 #define HAVE_DECL_GETLOGIN 1
9232 cat >>confdefs.h
<<_ACEOF
9233 #define HAVE_DECL_GETLOGIN 0
9238 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9239 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9240 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 cat >conftest.
$ac_ext <<_ACEOF
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9255 char *p = (char *) getpwuid;
9262 rm -f conftest.
$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264 (eval $ac_compile) 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try
='test -s conftest.$ac_objext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_have_decl_getpwuid
=yes
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.
$ac_ext >&5
9279 ac_cv_have_decl_getpwuid
=no
9281 rm -f conftest.
$ac_objext conftest.
$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9284 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9285 if test $ac_cv_have_decl_getpwuid = yes; then
9287 cat >>confdefs.h
<<_ACEOF
9288 #define HAVE_DECL_GETPWUID 1
9293 cat >>confdefs.h
<<_ACEOF
9294 #define HAVE_DECL_GETPWUID 0
9299 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9300 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9301 if test "${ac_cv_have_decl_getuid+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 cat >conftest.
$ac_ext <<_ACEOF
9307 cat confdefs.h
>>conftest.
$ac_ext
9308 cat >>conftest.
$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9316 char *p = (char *) getuid;
9323 rm -f conftest.
$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try
='test -s conftest.$ac_objext'
9330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_cv_have_decl_getuid
=yes
9337 echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.
$ac_ext >&5
9340 ac_cv_have_decl_getuid
=no
9342 rm -f conftest.
$ac_objext conftest.
$ac_ext
9344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9345 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9346 if test $ac_cv_have_decl_getuid = yes; then
9348 cat >>confdefs.h
<<_ACEOF
9349 #define HAVE_DECL_GETUID 1
9354 cat >>confdefs.h
<<_ACEOF
9355 #define HAVE_DECL_GETUID 0
9360 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9361 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9362 if test "${ac_cv_have_decl_getutent+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.
$ac_ext <<_ACEOF
9368 cat confdefs.h
>>conftest.
$ac_ext
9369 cat >>conftest.
$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9377 char *p = (char *) getutent;
9384 rm -f conftest.
$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try
='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_have_decl_getutent
=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.
$ac_ext >&5
9401 ac_cv_have_decl_getutent
=no
9403 rm -f conftest.
$ac_objext conftest.
$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9406 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9407 if test $ac_cv_have_decl_getutent = yes; then
9409 cat >>confdefs.h
<<_ACEOF
9410 #define HAVE_DECL_GETUTENT 1
9415 cat >>confdefs.h
<<_ACEOF
9416 #define HAVE_DECL_GETUTENT 0
9421 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9422 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9423 if test "${ac_cv_have_decl_lseek+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9438 char *p = (char *) lseek;
9445 rm -f conftest.
$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try
='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 ac_cv_have_decl_lseek
=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 ac_cv_have_decl_lseek
=no
9464 rm -f conftest.
$ac_objext conftest.
$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9467 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9468 if test $ac_cv_have_decl_lseek = yes; then
9470 cat >>confdefs.h
<<_ACEOF
9471 #define HAVE_DECL_LSEEK 1
9476 cat >>confdefs.h
<<_ACEOF
9477 #define HAVE_DECL_LSEEK 0
9482 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9483 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9484 if test "${ac_cv_have_decl_malloc+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.
$ac_ext <<_ACEOF
9490 cat confdefs.h
>>conftest.
$ac_ext
9491 cat >>conftest.
$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9499 char *p = (char *) malloc;
9506 rm -f conftest.
$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try
='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_have_decl_malloc
=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.
$ac_ext >&5
9523 ac_cv_have_decl_malloc
=no
9525 rm -f conftest.
$ac_objext conftest.
$ac_ext
9527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9528 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9529 if test $ac_cv_have_decl_malloc = yes; then
9531 cat >>confdefs.h
<<_ACEOF
9532 #define HAVE_DECL_MALLOC 1
9537 cat >>confdefs.h
<<_ACEOF
9538 #define HAVE_DECL_MALLOC 0
9543 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9544 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9545 if test "${ac_cv_have_decl_memchr+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.
$ac_ext <<_ACEOF
9551 cat confdefs.h
>>conftest.
$ac_ext
9552 cat >>conftest.
$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9560 char *p = (char *) memchr;
9567 rm -f conftest.
$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569 (eval $ac_compile) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try
='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_have_decl_memchr
=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.
$ac_ext >&5
9584 ac_cv_have_decl_memchr
=no
9586 rm -f conftest.
$ac_objext conftest.
$ac_ext
9588 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9589 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9590 if test $ac_cv_have_decl_memchr = yes; then
9592 cat >>confdefs.h
<<_ACEOF
9593 #define HAVE_DECL_MEMCHR 1
9598 cat >>confdefs.h
<<_ACEOF
9599 #define HAVE_DECL_MEMCHR 0
9604 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9605 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9606 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.
$ac_ext <<_ACEOF
9612 cat confdefs.h
>>conftest.
$ac_ext
9613 cat >>conftest.
$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9621 char *p = (char *) memrchr;
9628 rm -f conftest.
$ac_objext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630 (eval $ac_compile) 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try
='test -s conftest.$ac_objext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_cv_have_decl_memrchr
=yes
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9645 ac_cv_have_decl_memrchr
=no
9647 rm -f conftest.
$ac_objext conftest.
$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9650 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9651 if test $ac_cv_have_decl_memrchr = yes; then
9653 cat >>confdefs.h
<<_ACEOF
9654 #define HAVE_DECL_MEMRCHR 1
9659 cat >>confdefs.h
<<_ACEOF
9660 #define HAVE_DECL_MEMRCHR 0
9665 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9666 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9667 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 cat >conftest.
$ac_ext <<_ACEOF
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9682 char *p = (char *) nanosleep;
9689 rm -f conftest.
$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try
='test -s conftest.$ac_objext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_have_decl_nanosleep
=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.
$ac_ext >&5
9706 ac_cv_have_decl_nanosleep
=no
9708 rm -f conftest.
$ac_objext conftest.
$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9711 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9712 if test $ac_cv_have_decl_nanosleep = yes; then
9714 cat >>confdefs.h
<<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 1
9720 cat >>confdefs.h
<<_ACEOF
9721 #define HAVE_DECL_NANOSLEEP 0
9726 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9727 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9728 if test "${ac_cv_have_decl_realloc+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 cat >conftest.
$ac_ext <<_ACEOF
9734 cat confdefs.h
>>conftest.
$ac_ext
9735 cat >>conftest.
$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9743 char *p = (char *) realloc;
9750 rm -f conftest.
$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try
='test -s conftest.$ac_objext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_have_decl_realloc
=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.
$ac_ext >&5
9767 ac_cv_have_decl_realloc
=no
9769 rm -f conftest.
$ac_objext conftest.
$ac_ext
9771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9772 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9773 if test $ac_cv_have_decl_realloc = yes; then
9775 cat >>confdefs.h
<<_ACEOF
9776 #define HAVE_DECL_REALLOC 1
9781 cat >>confdefs.h
<<_ACEOF
9782 #define HAVE_DECL_REALLOC 0
9787 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9788 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9789 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 cat >conftest.
$ac_ext <<_ACEOF
9795 cat confdefs.h
>>conftest.
$ac_ext
9796 cat >>conftest.
$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9804 char *p = (char *) stpcpy;
9811 rm -f conftest.
$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try
='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_have_decl_stpcpy
=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.
$ac_ext >&5
9828 ac_cv_have_decl_stpcpy
=no
9830 rm -f conftest.
$ac_objext conftest.
$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9833 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9834 if test $ac_cv_have_decl_stpcpy = yes; then
9836 cat >>confdefs.h
<<_ACEOF
9837 #define HAVE_DECL_STPCPY 1
9842 cat >>confdefs.h
<<_ACEOF
9843 #define HAVE_DECL_STPCPY 0
9848 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9849 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9850 if test "${ac_cv_have_decl_strndup+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.
$ac_ext <<_ACEOF
9856 cat confdefs.h
>>conftest.
$ac_ext
9857 cat >>conftest.
$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9865 char *p = (char *) strndup;
9872 rm -f conftest.
$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try
='test -s conftest.$ac_objext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_have_decl_strndup
=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.
$ac_ext >&5
9889 ac_cv_have_decl_strndup
=no
9891 rm -f conftest.
$ac_objext conftest.
$ac_ext
9893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9894 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9895 if test $ac_cv_have_decl_strndup = yes; then
9897 cat >>confdefs.h
<<_ACEOF
9898 #define HAVE_DECL_STRNDUP 1
9903 cat >>confdefs.h
<<_ACEOF
9904 #define HAVE_DECL_STRNDUP 0
9909 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9910 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9911 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 cat >conftest.
$ac_ext <<_ACEOF
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9926 char *p = (char *) strnlen;
9933 rm -f conftest.
$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try
='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_have_decl_strnlen
=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.
$ac_ext >&5
9950 ac_cv_have_decl_strnlen
=no
9952 rm -f conftest.
$ac_objext conftest.
$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9955 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9956 if test $ac_cv_have_decl_strnlen = yes; then
9958 cat >>confdefs.h
<<_ACEOF
9959 #define HAVE_DECL_STRNLEN 1
9964 cat >>confdefs.h
<<_ACEOF
9965 #define HAVE_DECL_STRNLEN 0
9970 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9971 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9972 if test "${ac_cv_have_decl_strstr+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.
$ac_ext <<_ACEOF
9978 cat confdefs.h
>>conftest.
$ac_ext
9979 cat >>conftest.
$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9987 char *p = (char *) strstr;
9994 rm -f conftest.
$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try
='test -s conftest.$ac_objext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_have_decl_strstr
=yes
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.
$ac_ext >&5
10011 ac_cv_have_decl_strstr
=no
10013 rm -f conftest.
$ac_objext conftest.
$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10016 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10017 if test $ac_cv_have_decl_strstr = yes; then
10019 cat >>confdefs.h
<<_ACEOF
10020 #define HAVE_DECL_STRSTR 1
10025 cat >>confdefs.h
<<_ACEOF
10026 #define HAVE_DECL_STRSTR 0
10031 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10032 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10033 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.
$ac_ext <<_ACEOF
10039 cat confdefs.h
>>conftest.
$ac_ext
10040 cat >>conftest.
$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10048 char *p = (char *) strtoul;
10055 rm -f conftest.
$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try
='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_have_decl_strtoul
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_cv_have_decl_strtoul
=no
10074 rm -f conftest.
$ac_objext conftest.
$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10080 cat >>confdefs.h
<<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10086 cat >>confdefs.h
<<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10109 char *p = (char *) strtoull;
10116 rm -f conftest.
$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try
='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_have_decl_strtoull
=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.
$ac_ext >&5
10133 ac_cv_have_decl_strtoull
=no
10135 rm -f conftest.
$ac_objext conftest.
$ac_ext
10137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10138 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10139 if test $ac_cv_have_decl_strtoull = yes; then
10141 cat >>confdefs.h
<<_ACEOF
10142 #define HAVE_DECL_STRTOULL 1
10147 cat >>confdefs.h
<<_ACEOF
10148 #define HAVE_DECL_STRTOULL 0
10153 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10154 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10155 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 cat >conftest.
$ac_ext <<_ACEOF
10161 cat confdefs.h
>>conftest.
$ac_ext
10162 cat >>conftest.
$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10170 char *p = (char *) ttyname;
10177 rm -f conftest.
$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 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_ttyname
=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.
$ac_ext >&5
10194 ac_cv_have_decl_ttyname
=no
10196 rm -f conftest.
$ac_objext conftest.
$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10200 if test $ac_cv_have_decl_ttyname = yes; then
10202 cat >>confdefs.h
<<_ACEOF
10203 #define HAVE_DECL_TTYNAME 1
10208 cat >>confdefs.h
<<_ACEOF
10209 #define HAVE_DECL_TTYNAME 0
10217 echo "$as_me:$LINENO: checking for long file names" >&5
10218 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10219 if test "${ac_cv_sys_long_file_names+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 ac_cv_sys_long_file_names
=yes
10223 # Test for long file names in all the places we know might matter:
10224 # . the current directory, where building will happen
10225 # $prefix/lib where we will be installing things
10226 # $exec_prefix/lib likewise
10227 # eval it to expand exec_prefix.
10228 # $TMPDIR if set, where it might want to write temporary files
10229 # if $TMPDIR is not set:
10230 # /tmp where it might want to write temporary files
10231 # /var/tmp likewise
10232 # /usr/tmp likewise
10233 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10236 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
10238 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10239 test -d $ac_dir ||
continue
10240 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
10241 ac_xdir
=$ac_dir/cf$$
10242 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
10243 ac_tf1
=$ac_xdir/conftest9012345
10244 ac_tf2
=$ac_xdir/conftest9012346
10245 (echo 1 >$ac_tf1) 2>/dev
/null
10246 (echo 2 >$ac_tf2) 2>/dev
/null
10247 ac_val
=`cat $ac_tf1 2>/dev/null`
10248 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
10249 ac_cv_sys_long_file_names
=no
10250 rm -rf $ac_xdir 2>/dev
/null
10253 rm -rf $ac_xdir 2>/dev
/null
10256 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10257 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10258 if test $ac_cv_sys_long_file_names = yes; then
10260 cat >>confdefs.h
<<\_ACEOF
10261 #define HAVE_LONG_FILE_NAMES 1
10269 for ac_func
in pathconf
10271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.
$ac_ext <<_ACEOF
10280 cat confdefs.h
>>conftest.
$ac_ext
10281 cat >>conftest.
$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10288 # include <limits.h>
10290 # include <assert.h>
10292 /* Override any gcc2 internal prototype to avoid an error. */
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10300 /* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
10303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10306 char (*f) () = $ac_func;
10315 return f != $ac_func;
10320 rm -f conftest.
$ac_objext conftest
$ac_exeext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 eval "$as_ac_var=yes"
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.
$ac_ext >&5
10337 eval "$as_ac_var=no"
10339 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344 cat >>confdefs.h
<<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10354 for ac_header
in limits.h string.h unistd.h
10356 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10358 echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10366 # Is the header compilable?
10367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <$ac_header>
10378 rm -f conftest.
$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try
='test -s conftest.$ac_objext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_header_compiler
=yes
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.
$ac_ext >&5
10395 ac_header_compiler
=no
10397 rm -f conftest.
$ac_objext conftest.
$ac_ext
10398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10399 echo "${ECHO_T}$ac_header_compiler" >&6
10401 # Is the header present?
10402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10404 cat >conftest.
$ac_ext <<_ACEOF
10407 cat confdefs.h
>>conftest.
$ac_ext
10408 cat >>conftest.
$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <$ac_header>
10412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10415 grep -v '^ *+' conftest.er1
>conftest.err
10417 cat conftest.err
>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } >/dev
/null
; then
10420 if test -s conftest.err
; then
10421 ac_cpp_err
=$ac_c_preproc_warn_flag
10428 if test -z "$ac_cpp_err"; then
10429 ac_header_preproc
=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.
$ac_ext >&5
10434 ac_header_preproc
=no
10436 rm -f conftest.err conftest.
$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10438 echo "${ECHO_T}$ac_header_preproc" >&6
10440 # So? What about this header?
10441 case $ac_header_compiler:$ac_header_preproc in
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10449 ## ------------------------------------ ##
10450 ## Report this to bug-autoconf@gnu.org. ##
10451 ## ------------------------------------ ##
10454 sed "s/^/$as_me: WARNING: /" >&2
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10465 ## ------------------------------------ ##
10466 ## Report this to bug-autoconf@gnu.org. ##
10467 ## ------------------------------------ ##
10470 sed "s/^/$as_me: WARNING: /" >&2
10473 echo "$as_me:$LINENO: checking for $ac_header" >&5
10474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 eval "$as_ac_Header=$ac_header_preproc"
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10485 cat >>confdefs.h
<<_ACEOF
10486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10494 # for STACK_DIRECTION
10497 for ac_func
in setrlimit
10499 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10500 echo "$as_me:$LINENO: checking for $ac_func" >&5
10501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10502 if eval "test \"\${$as_ac_var+set}\" = set"; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 cat >conftest.
$ac_ext <<_ACEOF
10508 cat confdefs.h
>>conftest.
$ac_ext
10509 cat >>conftest.
$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char $ac_func (); below.
10513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514 <limits.h> exists even on freestanding compilers. */
10516 # include <limits.h>
10518 # include <assert.h>
10520 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10534 char (*f) () = $ac_func;
10543 return f != $ac_func;
10548 rm -f conftest.
$ac_objext conftest
$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try
='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 eval "$as_ac_var=yes"
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.
$ac_ext >&5
10565 eval "$as_ac_var=no"
10567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10572 cat >>confdefs.h
<<_ACEOF
10573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10581 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10582 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 if test "$cross_compiling" = yes; then
10586 ac_cv_sys_xsi_stack_overflow_heuristic
=cross-compiling
10588 cat >conftest.
$ac_ext <<_ACEOF
10591 cat confdefs.h
>>conftest.
$ac_ext
10592 cat >>conftest.
$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 #include <unistd.h>
10596 #include <signal.h>
10597 #include <ucontext.h>
10599 # include <sys/types.h>
10600 # include <sys/time.h>
10601 # include <sys/resource.h>
10606 char buffer[SIGSTKSZ];
10610 } alternate_signal_stack;
10612 #if STACK_DIRECTION
10613 # define find_stack_direction(ptr) STACK_DIRECTION
10616 find_stack_direction (char const *addr)
10619 return (! addr ? find_stack_direction (&dummy)
10620 : addr < &dummy ? 1 : -1);
10625 segv_handler (int signo, siginfo_t *info, void *context)
10627 if (0 < info->si_code)
10629 ucontext_t const *user_context = context;
10630 char const *stack_min = user_context->uc_stack.ss_sp;
10631 size_t stack_size = user_context->uc_stack.ss_size;
10632 char const *faulting_address = info->si_addr;
10633 size_t s = faulting_address - stack_min;
10634 size_t page_size = sysconf (_SC_PAGESIZE);
10635 if (find_stack_direction (0) < 0)
10637 if (s < stack_size + page_size)
10645 c_stack_action (void)
10648 struct sigaction act;
10652 st.ss_sp = alternate_signal_stack.buffer;
10653 st.ss_size = sizeof alternate_signal_stack.buffer;
10654 r = sigaltstack (&st, 0);
10658 sigemptyset (&act.sa_mask);
10659 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10660 act.sa_sigaction = segv_handler;
10661 return sigaction (SIGSEGV, &act, 0);
10669 return *p + recurse (array);
10675 #if HAVE_SETRLIMIT && defined RLIMIT_STACK
10676 /* Before starting the endless recursion, try to be friendly
10677 to the user's machine. On some Linux 2.2.x systems, there
10678 is no stack limit for user processes at all. We don't want
10679 to kill such systems. */
10681 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
10682 setrlimit (RLIMIT_STACK, &rl);
10686 return recurse ("\1");
10690 rm -f conftest
$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_sys_xsi_stack_overflow_heuristic
=yes
10703 echo "$as_me: program exited with status $ac_status" >&5
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.
$ac_ext >&5
10707 ( exit $ac_status )
10708 ac_cv_sys_xsi_stack_overflow_heuristic
=no
10710 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10714 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10716 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10718 cat >>confdefs.h
<<\_ACEOF
10719 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10725 # for STACK_DIRECTION
10730 for ac_func
in getcontext sigaltstack
10732 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733 echo "$as_me:$LINENO: checking for $ac_func" >&5
10734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_var+set}\" = set"; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10749 # include <limits.h>
10751 # include <assert.h>
10753 /* Override any gcc2 internal prototype to avoid an error. */
10758 /* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10761 /* The GNU C library defines this for functions which it implements
10762 to always fail with ENOSYS. Some functions are actually named
10763 something starting with __ and the normal name is an alias. */
10764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10767 char (*f) () = $ac_func;
10776 return f != $ac_func;
10781 rm -f conftest.
$ac_objext conftest
$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try
='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 eval "$as_ac_var=yes"
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.
$ac_ext >&5
10798 eval "$as_ac_var=no"
10800 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10804 if test `eval echo '${'$as_ac_var'}'` = yes; then
10805 cat >>confdefs.h
<<_ACEOF
10806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10812 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10813 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10814 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.
$ac_ext <<_ACEOF
10820 cat confdefs.h
>>conftest.
$ac_ext
10821 cat >>conftest.
$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <ucontext.h>
10829 char *p = (char *) getcontext;
10836 rm -f conftest.
$ac_objext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838 (eval $ac_compile) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try
='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_have_decl_getcontext
=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.
$ac_ext >&5
10853 ac_cv_have_decl_getcontext
=no
10855 rm -f conftest.
$ac_objext conftest.
$ac_ext
10857 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10858 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10859 if test $ac_cv_have_decl_getcontext = yes; then
10861 cat >>confdefs.h
<<_ACEOF
10862 #define HAVE_DECL_GETCONTEXT 1
10867 cat >>confdefs.h
<<_ACEOF
10868 #define HAVE_DECL_GETCONTEXT 0
10875 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10876 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10877 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.
$ac_ext <<_ACEOF
10883 cat confdefs.h
>>conftest.
$ac_ext
10884 cat >>conftest.
$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <signal.h>
10891 #ifndef sigaltstack
10892 char *p = (char *) sigaltstack;
10899 rm -f conftest.
$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try
='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_have_decl_sigaltstack
=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.
$ac_ext >&5
10916 ac_cv_have_decl_sigaltstack
=no
10918 rm -f conftest.
$ac_objext conftest.
$ac_ext
10920 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10921 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10922 if test $ac_cv_have_decl_sigaltstack = yes; then
10924 cat >>confdefs.h
<<_ACEOF
10925 #define HAVE_DECL_SIGALTSTACK 1
10930 cat >>confdefs.h
<<_ACEOF
10931 #define HAVE_DECL_SIGALTSTACK 0
10942 for ac_header
in sys
/resource.h ucontext.h unistd.h
10944 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10946 echo "$as_me:$LINENO: checking for $ac_header" >&5
10947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10954 # Is the header compilable?
10955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10957 cat >conftest.
$ac_ext <<_ACEOF
10960 cat confdefs.h
>>conftest.
$ac_ext
10961 cat >>conftest.
$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 $ac_includes_default
10964 #include <$ac_header>
10966 rm -f conftest.
$ac_objext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968 (eval $ac_compile) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try
='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_header_compiler
=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.
$ac_ext >&5
10983 ac_header_compiler
=no
10985 rm -f conftest.
$ac_objext conftest.
$ac_ext
10986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6
10989 # Is the header present?
10990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10992 cat >conftest.
$ac_ext <<_ACEOF
10995 cat confdefs.h
>>conftest.
$ac_ext
10996 cat >>conftest.
$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <$ac_header>
11000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11003 grep -v '^ *+' conftest.er1
>conftest.err
11005 cat conftest.err
>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev
/null
; then
11008 if test -s conftest.err
; then
11009 ac_cpp_err
=$ac_c_preproc_warn_flag
11016 if test -z "$ac_cpp_err"; then
11017 ac_header_preproc
=yes
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.
$ac_ext >&5
11022 ac_header_preproc
=no
11024 rm -f conftest.err conftest.
$ac_ext
11025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc in
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11037 ## ------------------------------------ ##
11038 ## Report this to bug-autoconf@gnu.org. ##
11039 ## ------------------------------------ ##
11042 sed "s/^/$as_me: WARNING: /" >&2
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11053 ## ------------------------------------ ##
11054 ## Report this to bug-autoconf@gnu.org. ##
11055 ## ------------------------------------ ##
11058 sed "s/^/$as_me: WARNING: /" >&2
11061 echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 eval "$as_ac_Header=$ac_header_preproc"
11068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11073 cat >>confdefs.h
<<_ACEOF
11074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 echo "$as_me:$LINENO: checking for stack_t" >&5
11083 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11084 if test "${ac_cv_type_stack_t+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 cat >conftest.
$ac_ext <<_ACEOF
11090 cat confdefs.h
>>conftest.
$ac_ext
11091 cat >>conftest.
$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 #include <signal.h>
11100 if (sizeof (stack_t))
11106 rm -f conftest.
$ac_objext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try
='test -s conftest.$ac_objext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_type_stack_t
=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.
$ac_ext >&5
11123 ac_cv_type_stack_t
=no
11125 rm -f conftest.
$ac_objext conftest.
$ac_ext
11127 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11128 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11129 if test $ac_cv_type_stack_t = yes; then
11131 cat >>confdefs.h
<<_ACEOF
11132 #define HAVE_STACK_T 1
11140 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11141 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11142 if test "${ac_cv_search_gethostbyname+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 ac_func_search_save_LIBS
=$LIBS
11147 ac_cv_search_gethostbyname
=no
11148 cat >conftest.
$ac_ext <<_ACEOF
11151 cat confdefs.h
>>conftest.
$ac_ext
11152 cat >>conftest.
$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11155 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char gethostbyname ();
11170 rm -f conftest.
$ac_objext conftest
$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try
='test -s conftest$ac_exeext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_cv_search_gethostbyname
='none required'
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.
$ac_ext >&5
11188 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11189 if test "$ac_cv_search_gethostbyname" = no
; then
11190 for ac_lib
in inet nsl
; do
11191 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11199 /* Override any gcc2 internal prototype to avoid an error. */
11203 /* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205 char gethostbyname ();
11214 rm -f conftest.
$ac_objext conftest
$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try
='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_search_gethostbyname
="-l$ac_lib"; break
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.
$ac_ext >&5
11232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11235 LIBS
=$ac_func_search_save_LIBS
11238 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11239 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11241 if test "$ac_cv_search_gethostbyname" = no
; then :
11244 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11247 LIBS
="$ac_cv_search_gethostbyname $LIBS"
11256 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
11258 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11259 echo "$as_me:$LINENO: checking for $ac_func" >&5
11260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11261 if eval "test \"\${$as_ac_var+set}\" = set"; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 cat >conftest.
$ac_ext <<_ACEOF
11267 cat confdefs.h
>>conftest.
$ac_ext
11268 cat >>conftest.
$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 /* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11275 # include <limits.h>
11277 # include <assert.h>
11279 /* Override any gcc2 internal prototype to avoid an error. */
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11293 char (*f) () = $ac_func;
11302 return f != $ac_func;
11307 rm -f conftest.
$ac_objext conftest
$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try
='test -s conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 eval "$as_ac_var=yes"
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.
$ac_ext >&5
11324 eval "$as_ac_var=no"
11326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331 cat >>confdefs.h
<<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11345 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
11346 netinet
/in.h arpa
/inet.h
11348 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11350 echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11358 # Is the header compilable?
11359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11361 cat >conftest.
$ac_ext <<_ACEOF
11364 cat confdefs.h
>>conftest.
$ac_ext
11365 cat >>conftest.
$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11370 rm -f conftest.
$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try
='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_header_compiler
=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.
$ac_ext >&5
11387 ac_header_compiler
=no
11389 rm -f conftest.
$ac_objext conftest.
$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6
11393 # Is the header present?
11394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <$ac_header>
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1
>conftest.err
11409 cat conftest.err
>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } >/dev
/null
; then
11412 if test -s conftest.err
; then
11413 ac_cpp_err
=$ac_c_preproc_warn_flag
11420 if test -z "$ac_cpp_err"; then
11421 ac_header_preproc
=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.
$ac_ext >&5
11426 ac_header_preproc
=no
11428 rm -f conftest.err conftest.
$ac_ext
11429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11430 echo "${ECHO_T}$ac_header_preproc" >&6
11432 # So? What about this header?
11433 case $ac_header_compiler:$ac_header_preproc in
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11441 ## ------------------------------------ ##
11442 ## Report this to bug-autoconf@gnu.org. ##
11443 ## ------------------------------------ ##
11446 sed "s/^/$as_me: WARNING: /" >&2
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11457 ## ------------------------------------ ##
11458 ## Report this to bug-autoconf@gnu.org. ##
11459 ## ------------------------------------ ##
11462 sed "s/^/$as_me: WARNING: /" >&2
11465 echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 eval "$as_ac_Header=$ac_header_preproc"
11472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477 cat >>confdefs.h
<<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11489 for ac_header
in string.h
11491 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501 # Is the header compilable?
11502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11504 cat >conftest.
$ac_ext <<_ACEOF
11507 cat confdefs.h
>>conftest.
$ac_ext
11508 cat >>conftest.
$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11513 rm -f conftest.
$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try
='test -s conftest.$ac_objext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_header_compiler
=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.
$ac_ext >&5
11530 ac_header_compiler
=no
11532 rm -f conftest.
$ac_objext conftest.
$ac_ext
11533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11534 echo "${ECHO_T}$ac_header_compiler" >&6
11536 # Is the header present?
11537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11539 cat >conftest.
$ac_ext <<_ACEOF
11542 cat confdefs.h
>>conftest.
$ac_ext
11543 cat >>conftest.
$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <$ac_header>
11547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11550 grep -v '^ *+' conftest.er1
>conftest.err
11552 cat conftest.err
>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } >/dev
/null
; then
11555 if test -s conftest.err
; then
11556 ac_cpp_err
=$ac_c_preproc_warn_flag
11563 if test -z "$ac_cpp_err"; then
11564 ac_header_preproc
=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.
$ac_ext >&5
11569 ac_header_preproc
=no
11571 rm -f conftest.err conftest.
$ac_ext
11572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11573 echo "${ECHO_T}$ac_header_preproc" >&6
11575 # So? What about this header?
11576 case $ac_header_compiler:$ac_header_preproc in
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11584 ## ------------------------------------ ##
11585 ## Report this to bug-autoconf@gnu.org. ##
11586 ## ------------------------------------ ##
11589 sed "s/^/$as_me: WARNING: /" >&2
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11600 ## ------------------------------------ ##
11601 ## Report this to bug-autoconf@gnu.org. ##
11602 ## ------------------------------------ ##
11605 sed "s/^/$as_me: WARNING: /" >&2
11608 echo "$as_me:$LINENO: checking for $ac_header" >&5
11609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 eval "$as_ac_Header=$ac_header_preproc"
11615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620 cat >>confdefs.h
<<_ACEOF
11621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 for ac_func
in strerror vprintf doprnt
11635 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_var+set}\" = set"; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.
$ac_ext <<_ACEOF
11644 cat confdefs.h
>>conftest.
$ac_ext
11645 cat >>conftest.
$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* System header to define __stub macros and hopefully few prototypes,
11648 which can conflict with char $ac_func (); below.
11649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650 <limits.h> exists even on freestanding compilers. */
11652 # include <limits.h>
11654 # include <assert.h>
11656 /* Override any gcc2 internal prototype to avoid an error. */
11661 /* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11670 char (*f) () = $ac_func;
11679 return f != $ac_func;
11684 rm -f conftest.
$ac_objext conftest
$ac_exeext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686 (eval $ac_link) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try
='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 eval "$as_ac_var=yes"
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.
$ac_ext >&5
11701 eval "$as_ac_var=no"
11703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11707 if test `eval echo '${'$as_ac_var'}'` = yes; then
11708 cat >>confdefs.h
<<_ACEOF
11709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11716 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11717 if test "${ac_cv_have_decl_strerror+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.
$ac_ext <<_ACEOF
11723 cat confdefs.h
>>conftest.
$ac_ext
11724 cat >>conftest.
$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 $ac_includes_default
11731 char *p = (char *) strerror;
11738 rm -f conftest.
$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try
='test -s conftest.$ac_objext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 ac_cv_have_decl_strerror
=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.
$ac_ext >&5
11755 ac_cv_have_decl_strerror
=no
11757 rm -f conftest.
$ac_objext conftest.
$ac_ext
11759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11760 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11761 if test $ac_cv_have_decl_strerror = yes; then
11763 cat >>confdefs.h
<<_ACEOF
11764 #define HAVE_DECL_STRERROR 1
11769 cat >>confdefs.h
<<_ACEOF
11770 #define HAVE_DECL_STRERROR 0
11778 for ac_header
in libintl.h
11780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo "$as_me:$LINENO: checking for $ac_header" >&5
11783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11790 # Is the header compilable?
11791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11793 cat >conftest.
$ac_ext <<_ACEOF
11796 cat confdefs.h
>>conftest.
$ac_ext
11797 cat >>conftest.
$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11800 #include <$ac_header>
11802 rm -f conftest.
$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try
='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler
=yes
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.
$ac_ext >&5
11819 ac_header_compiler
=no
11821 rm -f conftest.
$ac_objext conftest.
$ac_ext
11822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11823 echo "${ECHO_T}$ac_header_compiler" >&6
11825 # Is the header present?
11826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <$ac_header>
11836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11839 grep -v '^ *+' conftest.er1
>conftest.err
11841 cat conftest.err
>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } >/dev
/null
; then
11844 if test -s conftest.err
; then
11845 ac_cpp_err
=$ac_c_preproc_warn_flag
11852 if test -z "$ac_cpp_err"; then
11853 ac_header_preproc
=yes
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.
$ac_ext >&5
11858 ac_header_preproc
=no
11860 rm -f conftest.err conftest.
$ac_ext
11861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11862 echo "${ECHO_T}$ac_header_preproc" >&6
11864 # So? What about this header?
11865 case $ac_header_compiler:$ac_header_preproc in
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11873 ## ------------------------------------ ##
11874 ## Report this to bug-autoconf@gnu.org. ##
11875 ## ------------------------------------ ##
11878 sed "s/^/$as_me: WARNING: /" >&2
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11889 ## ------------------------------------ ##
11890 ## Report this to bug-autoconf@gnu.org. ##
11891 ## ------------------------------------ ##
11894 sed "s/^/$as_me: WARNING: /" >&2
11897 echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 eval "$as_ac_Header=$ac_header_preproc"
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11909 cat >>confdefs.h
<<_ACEOF
11910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11918 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11919 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.
$ac_ext <<_ACEOF
11925 cat confdefs.h
>>conftest.
$ac_ext
11926 cat >>conftest.
$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11933 char *p = (char *) strerror_r;
11940 rm -f conftest.
$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try
='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_have_decl_strerror_r
=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.
$ac_ext >&5
11957 ac_cv_have_decl_strerror_r
=no
11959 rm -f conftest.
$ac_objext conftest.
$ac_ext
11961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11962 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11963 if test $ac_cv_have_decl_strerror_r = yes; then
11965 cat >>confdefs.h
<<_ACEOF
11966 #define HAVE_DECL_STRERROR_R 1
11971 cat >>confdefs.h
<<_ACEOF
11972 #define HAVE_DECL_STRERROR_R 0
11980 for ac_func
in strerror_r
11982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11983 echo "$as_me:$LINENO: checking for $ac_func" >&5
11984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11985 if eval "test \"\${$as_ac_var+set}\" = set"; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 cat >conftest.
$ac_ext <<_ACEOF
11991 cat confdefs.h
>>conftest.
$ac_ext
11992 cat >>conftest.
$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 /* System header to define __stub macros and hopefully few prototypes,
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11999 # include <limits.h>
12001 # include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 char (*f) () = $ac_func;
12026 return f != $ac_func;
12031 rm -f conftest.
$ac_objext conftest
$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try
='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 eval "$as_ac_var=yes"
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.
$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12054 if test `eval echo '${'$as_ac_var'}'` = yes; then
12055 cat >>confdefs.h
<<_ACEOF
12056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12063 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
12064 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 ac_cv_func_strerror_r_char_p
=no
12069 if test $ac_cv_have_decl_strerror_r = yes; then
12070 cat >conftest.
$ac_ext <<_ACEOF
12073 cat confdefs.h
>>conftest.
$ac_ext
12074 cat >>conftest.
$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 $ac_includes_default
12082 char x = *strerror_r (0, buf, sizeof buf);
12083 char *p = strerror_r (0, buf, sizeof buf);
12089 rm -f conftest.
$ac_objext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try
='test -s conftest.$ac_objext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_func_strerror_r_char_p
=yes
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.
$ac_ext >&5
12107 rm -f conftest.
$ac_objext conftest.
$ac_ext
12109 # strerror_r is not declared. Choose between
12110 # systems that have relatively inaccessible declarations for the
12111 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12112 # former has a strerror_r that returns char*, while the latter
12113 # has a strerror_r that returns `int'.
12114 # This test should segfault on the DEC system.
12115 if test "$cross_compiling" = yes; then
12118 cat >conftest.
$ac_ext <<_ACEOF
12121 cat confdefs.h
>>conftest.
$ac_ext
12122 cat >>conftest.
$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12125 extern char *strerror_r ();
12130 char x = *strerror_r (0, buf, sizeof buf);
12131 exit (!isalpha (x));
12136 rm -f conftest
$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_func_strerror_r_char_p
=yes
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.
$ac_ext >&5
12154 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12159 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12160 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12161 if test $ac_cv_func_strerror_r_char_p = yes; then
12163 cat >>confdefs.h
<<\_ACEOF
12164 #define STRERROR_R_CHAR_P 1
12169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12171 if test "${ac_cv_header_stdc+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 cat >conftest.
$ac_ext <<_ACEOF
12177 cat confdefs.h
>>conftest.
$ac_ext
12178 cat >>conftest.
$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include <stdlib.h>
12181 #include <stdarg.h>
12182 #include <string.h>
12193 rm -f conftest.
$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try
='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_header_stdc
=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.
$ac_ext >&5
12210 ac_cv_header_stdc
=no
12212 rm -f conftest.
$ac_objext conftest.
$ac_ext
12214 if test $ac_cv_header_stdc = yes; then
12215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12216 cat >conftest.
$ac_ext <<_ACEOF
12219 cat confdefs.h
>>conftest.
$ac_ext
12220 cat >>conftest.
$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <string.h>
12225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12226 $EGREP "memchr" >/dev
/null
2>&1; then
12229 ac_cv_header_stdc
=no
12235 if test $ac_cv_header_stdc = yes; then
12236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12237 cat >conftest.
$ac_ext <<_ACEOF
12240 cat confdefs.h
>>conftest.
$ac_ext
12241 cat >>conftest.
$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <stdlib.h>
12246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12247 $EGREP "free" >/dev
/null
2>&1; then
12250 ac_cv_header_stdc
=no
12256 if test $ac_cv_header_stdc = yes; then
12257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12258 if test "$cross_compiling" = yes; then
12261 cat >conftest.
$ac_ext <<_ACEOF
12264 cat confdefs.h
>>conftest.
$ac_ext
12265 cat >>conftest.
$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12268 #if ((' ' & 0x0FF) == 0x020)
12269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12272 # define ISLOWER(c) \
12273 (('a' <= (c) && (c) <= 'i') \
12274 || ('j' <= (c) && (c) <= 'r') \
12275 || ('s' <= (c) && (c) <= 'z'))
12276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12284 for (i = 0; i < 256; i++)
12285 if (XOR (islower (i), ISLOWER (i))
12286 || toupper (i) != TOUPPER (i))
12291 rm -f conftest
$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12304 echo "$as_me: program exited with status $ac_status" >&5
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 ( exit $ac_status )
12309 ac_cv_header_stdc
=no
12311 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12317 if test $ac_cv_header_stdc = yes; then
12319 cat >>confdefs.h
<<\_ACEOF
12320 #define STDC_HEADERS 1
12326 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12327 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12328 if test "${ac_cv_type_mbstate_t+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.
$ac_ext <<_ACEOF
12334 cat confdefs.h
>>conftest.
$ac_ext
12335 cat >>conftest.
$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338 # include <wchar.h>
12342 mbstate_t x; return sizeof x;
12347 rm -f conftest.
$ac_objext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12349 (eval $ac_compile) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try
='test -s conftest.$ac_objext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_type_mbstate_t
=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.
$ac_ext >&5
12364 ac_cv_type_mbstate_t
=no
12366 rm -f conftest.
$ac_objext conftest.
$ac_ext
12368 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12369 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12370 if test $ac_cv_type_mbstate_t = yes; then
12372 cat >>confdefs.h
<<\_ACEOF
12373 #define HAVE_MBSTATE_T 1
12378 cat >>confdefs.h
<<\_ACEOF
12379 #define mbstate_t int
12384 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12385 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12386 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 # Some versions of Solaris, SCO, and the GNU C Library
12390 # have a broken or incompatible fnmatch.
12391 # So we run a test program. If we are cross-compiling, take no chance.
12392 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12393 if test "$cross_compiling" = yes; then
12394 ac_cv_func_fnmatch_gnu
=cross
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 #include <fnmatch.h>
12403 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12404 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12410 (!(y ("a*", "abc", 0)
12411 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12412 && y ("a\\\\bc", "abc", 0)
12413 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12414 && y ("*x", ".x", 0)
12415 && n ("*x", ".x", FNM_PERIOD)
12416 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12417 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12418 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12419 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12420 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12421 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12426 rm -f conftest
$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_func_fnmatch_gnu
=yes
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.
$ac_ext >&5
12443 ( exit $ac_status )
12444 ac_cv_func_fnmatch_gnu
=no
12446 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12449 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12450 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12451 if test $ac_cv_func_fnmatch_gnu = yes; then
12452 rm -f $ac_config_libobj_dir/fnmatch.h
12454 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12455 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12456 if test "${ac_cv_have_decl_getenv+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 $ac_includes_default
12470 char *p = (char *) getenv;
12477 rm -f conftest.
$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try
='test -s conftest.$ac_objext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_have_decl_getenv
=yes
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12494 ac_cv_have_decl_getenv
=no
12496 rm -f conftest.
$ac_objext conftest.
$ac_ext
12498 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12499 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12500 if test $ac_cv_have_decl_getenv = yes; then
12502 cat >>confdefs.h
<<_ACEOF
12503 #define HAVE_DECL_GETENV 1
12508 cat >>confdefs.h
<<_ACEOF
12509 #define HAVE_DECL_GETENV 0
12520 for ac_func
in btowc mbsrtowcs mempcpy wmempcpy
12522 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12523 echo "$as_me:$LINENO: checking for $ac_func" >&5
12524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12525 if eval "test \"\${$as_ac_var+set}\" = set"; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 cat >conftest.
$ac_ext <<_ACEOF
12531 cat confdefs.h
>>conftest.
$ac_ext
12532 cat >>conftest.
$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 /* System header to define __stub macros and hopefully few prototypes,
12535 which can conflict with char $ac_func (); below.
12536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12537 <limits.h> exists even on freestanding compilers. */
12539 # include <limits.h>
12541 # include <assert.h>
12543 /* Override any gcc2 internal prototype to avoid an error. */
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12557 char (*f) () = $ac_func;
12566 return f != $ac_func;
12571 rm -f conftest.
$ac_objext conftest
$ac_exeext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12573 (eval $ac_link) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try
='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.
$ac_ext >&5
12588 eval "$as_ac_var=no"
12590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595 cat >>confdefs.h
<<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12604 for ac_header
in wchar.h wctype.h
12606 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12608 echo "$as_me:$LINENO: checking for $ac_header" >&5
12609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12616 # Is the header compilable?
12617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12619 cat >conftest.
$ac_ext <<_ACEOF
12622 cat confdefs.h
>>conftest.
$ac_ext
12623 cat >>conftest.
$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 $ac_includes_default
12626 #include <$ac_header>
12628 rm -f conftest.
$ac_objext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try
='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_header_compiler
=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.
$ac_ext >&5
12645 ac_header_compiler
=no
12647 rm -f conftest.
$ac_objext conftest.
$ac_ext
12648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12649 echo "${ECHO_T}$ac_header_compiler" >&6
12651 # Is the header present?
12652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12654 cat >conftest.
$ac_ext <<_ACEOF
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 #include <$ac_header>
12662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12665 grep -v '^ *+' conftest.er1
>conftest.err
12667 cat conftest.err
>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } >/dev
/null
; then
12670 if test -s conftest.err
; then
12671 ac_cpp_err
=$ac_c_preproc_warn_flag
12678 if test -z "$ac_cpp_err"; then
12679 ac_header_preproc
=yes
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.
$ac_ext >&5
12684 ac_header_preproc
=no
12686 rm -f conftest.err conftest.
$ac_ext
12687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12688 echo "${ECHO_T}$ac_header_preproc" >&6
12690 # So? What about this header?
12691 case $ac_header_compiler:$ac_header_preproc in
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12699 ## ------------------------------------ ##
12700 ## Report this to bug-autoconf@gnu.org. ##
12701 ## ------------------------------------ ##
12704 sed "s/^/$as_me: WARNING: /" >&2
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12715 ## ------------------------------------ ##
12716 ## Report this to bug-autoconf@gnu.org. ##
12717 ## ------------------------------------ ##
12720 sed "s/^/$as_me: WARNING: /" >&2
12723 echo "$as_me:$LINENO: checking for $ac_header" >&5
12724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 eval "$as_ac_Header=$ac_header_preproc"
12730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12735 cat >>confdefs.h
<<_ACEOF
12736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12743 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
12744 ac_config_links
="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12747 cat >>confdefs.h
<<\_ACEOF
12748 #define fnmatch rpl_fnmatch
12756 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12757 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12758 if test "${ac_cv_header_stdbool_h+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 cat >conftest.
$ac_ext <<_ACEOF
12764 cat confdefs.h
>>conftest.
$ac_ext
12765 cat >>conftest.
$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 #include <stdbool.h>
12770 "error: bool is not defined"
12773 "error: false is not defined"
12776 "error: false is not 0"
12779 "error: false is not defined"
12782 "error: true is not 1"
12784 #ifndef __bool_true_false_are_defined
12785 "error: __bool_true_false_are_defined is not defined"
12788 struct s { _Bool s: 1; _Bool t; } s;
12790 char a[true == 1 ? 1 : -1];
12791 char b[false == 0 ? 1 : -1];
12792 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12793 char d[(bool) -0.5 == true ? 1 : -1];
12795 char f[(_Bool) -0.0 == false ? 1 : -1];
12797 char h[sizeof (_Bool)];
12798 char i[sizeof s.t];
12803 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12808 rm -f conftest.
$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try
='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_cv_header_stdbool_h
=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.
$ac_ext >&5
12825 ac_cv_header_stdbool_h
=no
12827 rm -f conftest.
$ac_objext conftest.
$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12830 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12831 if test $ac_cv_header_stdbool_h = yes; then
12833 cat >>confdefs.h
<<\_ACEOF
12834 #define HAVE_STDBOOL_H 1
12844 for ac_func
in getpagesize
12846 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12847 echo "$as_me:$LINENO: checking for $ac_func" >&5
12848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12849 if eval "test \"\${$as_ac_var+set}\" = set"; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 cat >conftest.
$ac_ext <<_ACEOF
12855 cat confdefs.h
>>conftest.
$ac_ext
12856 cat >>conftest.
$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 /* System header to define __stub macros and hopefully few prototypes,
12859 which can conflict with char $ac_func (); below.
12860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12861 <limits.h> exists even on freestanding compilers. */
12863 # include <limits.h>
12865 # include <assert.h>
12867 /* Override any gcc2 internal prototype to avoid an error. */
12872 /* We use char because int might match the return type of a gcc2
12873 builtin and then its argument prototype would still apply. */
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12881 char (*f) () = $ac_func;
12890 return f != $ac_func;
12895 rm -f conftest.
$ac_objext conftest
$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try
='test -s conftest$ac_exeext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 eval "$as_ac_var=yes"
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12912 eval "$as_ac_var=no"
12914 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12918 if test `eval echo '${'$as_ac_var'}'` = yes; then
12919 cat >>confdefs.h
<<_ACEOF
12920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 for ac_header
in OS.h unistd.h
12930 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo "$as_me:$LINENO: checking for $ac_header" >&5
12933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12940 # Is the header compilable?
12941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12943 cat >conftest.
$ac_ext <<_ACEOF
12946 cat confdefs.h
>>conftest.
$ac_ext
12947 cat >>conftest.
$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12950 #include <$ac_header>
12952 rm -f conftest.
$ac_objext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try
='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_header_compiler
=yes
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.
$ac_ext >&5
12969 ac_header_compiler
=no
12971 rm -f conftest.
$ac_objext conftest.
$ac_ext
12972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12973 echo "${ECHO_T}$ac_header_compiler" >&6
12975 # Is the header present?
12976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12978 cat >conftest.
$ac_ext <<_ACEOF
12981 cat confdefs.h
>>conftest.
$ac_ext
12982 cat >>conftest.
$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #include <$ac_header>
12986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1
>conftest.err
12991 cat conftest.err
>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } >/dev
/null
; then
12994 if test -s conftest.err
; then
12995 ac_cpp_err
=$ac_c_preproc_warn_flag
13002 if test -z "$ac_cpp_err"; then
13003 ac_header_preproc
=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.
$ac_ext >&5
13008 ac_header_preproc
=no
13010 rm -f conftest.err conftest.
$ac_ext
13011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13012 echo "${ECHO_T}$ac_header_preproc" >&6
13014 # So? What about this header?
13015 case $ac_header_compiler:$ac_header_preproc in
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13023 ## ------------------------------------ ##
13024 ## Report this to bug-autoconf@gnu.org. ##
13025 ## ------------------------------------ ##
13028 sed "s/^/$as_me: WARNING: /" >&2
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13039 ## ------------------------------------ ##
13040 ## Report this to bug-autoconf@gnu.org. ##
13041 ## ------------------------------------ ##
13044 sed "s/^/$as_me: WARNING: /" >&2
13047 echo "$as_me:$LINENO: checking for $ac_header" >&5
13048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13052 eval "$as_ac_Header=$ac_header_preproc"
13054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13059 cat >>confdefs.h
<<_ACEOF
13060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072 for ac_header
in locale.h stdlib.h string.h
13074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13076 echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084 # Is the header compilable?
13085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13087 cat >conftest.
$ac_ext <<_ACEOF
13090 cat confdefs.h
>>conftest.
$ac_ext
13091 cat >>conftest.
$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 $ac_includes_default
13094 #include <$ac_header>
13096 rm -f conftest.
$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try
='test -s conftest.$ac_objext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 ac_header_compiler
=yes
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.
$ac_ext >&5
13113 ac_header_compiler
=no
13115 rm -f conftest.
$ac_objext conftest.
$ac_ext
13116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13117 echo "${ECHO_T}$ac_header_compiler" >&6
13119 # Is the header present?
13120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13122 cat >conftest.
$ac_ext <<_ACEOF
13125 cat confdefs.h
>>conftest.
$ac_ext
13126 cat >>conftest.
$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <$ac_header>
13130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13133 grep -v '^ *+' conftest.er1
>conftest.err
13135 cat conftest.err
>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } >/dev
/null
; then
13138 if test -s conftest.err
; then
13139 ac_cpp_err
=$ac_c_preproc_warn_flag
13146 if test -z "$ac_cpp_err"; then
13147 ac_header_preproc
=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.
$ac_ext >&5
13152 ac_header_preproc
=no
13154 rm -f conftest.err conftest.
$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6
13158 # So? What about this header?
13159 case $ac_header_compiler:$ac_header_preproc in
13161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13167 ## ------------------------------------ ##
13168 ## Report this to bug-autoconf@gnu.org. ##
13169 ## ------------------------------------ ##
13172 sed "s/^/$as_me: WARNING: /" >&2
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13183 ## ------------------------------------ ##
13184 ## Report this to bug-autoconf@gnu.org. ##
13185 ## ------------------------------------ ##
13188 sed "s/^/$as_me: WARNING: /" >&2
13191 echo "$as_me:$LINENO: checking for $ac_header" >&5
13192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 eval "$as_ac_Header=$ac_header_preproc"
13198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13203 cat >>confdefs.h
<<_ACEOF
13204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13212 for ac_func
in setlocale
13214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215 echo "$as_me:$LINENO: checking for $ac_func" >&5
13216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13217 if eval "test \"\${$as_ac_var+set}\" = set"; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 cat >conftest.
$ac_ext <<_ACEOF
13223 cat confdefs.h
>>conftest.
$ac_ext
13224 cat >>conftest.
$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 /* System header to define __stub macros and hopefully few prototypes,
13227 which can conflict with char $ac_func (); below.
13228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 <limits.h> exists even on freestanding compilers. */
13231 # include <limits.h>
13233 # include <assert.h>
13235 /* Override any gcc2 internal prototype to avoid an error. */
13240 /* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13243 /* The GNU C library defines this for functions which it implements
13244 to always fail with ENOSYS. Some functions are actually named
13245 something starting with __ and the normal name is an alias. */
13246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13249 char (*f) () = $ac_func;
13258 return f != $ac_func;
13263 rm -f conftest.
$ac_objext conftest
$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try
='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 eval "$as_ac_var=yes"
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.
$ac_ext >&5
13280 eval "$as_ac_var=no"
13282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13286 if test `eval echo '${'$as_ac_var'}'` = yes; then
13287 cat >>confdefs.h
<<_ACEOF
13288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13298 for ac_header
in stdlib.h
13300 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13310 # Is the header compilable?
13311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313 cat >conftest.
$ac_ext <<_ACEOF
13316 cat confdefs.h
>>conftest.
$ac_ext
13317 cat >>conftest.
$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <$ac_header>
13322 rm -f conftest.
$ac_objext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try
='test -s conftest.$ac_objext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_header_compiler
=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.
$ac_ext >&5
13339 ac_header_compiler
=no
13341 rm -f conftest.
$ac_objext conftest.
$ac_ext
13342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 echo "${ECHO_T}$ac_header_compiler" >&6
13345 # Is the header present?
13346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13348 cat >conftest.
$ac_ext <<_ACEOF
13351 cat confdefs.h
>>conftest.
$ac_ext
13352 cat >>conftest.
$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <$ac_header>
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13359 grep -v '^ *+' conftest.er1
>conftest.err
13361 cat conftest.err
>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev
/null
; then
13364 if test -s conftest.err
; then
13365 ac_cpp_err
=$ac_c_preproc_warn_flag
13372 if test -z "$ac_cpp_err"; then
13373 ac_header_preproc
=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.
$ac_ext >&5
13378 ac_header_preproc
=no
13380 rm -f conftest.err conftest.
$ac_ext
13381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382 echo "${ECHO_T}$ac_header_preproc" >&6
13384 # So? What about this header?
13385 case $ac_header_compiler:$ac_header_preproc in
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13393 ## ------------------------------------ ##
13394 ## Report this to bug-autoconf@gnu.org. ##
13395 ## ------------------------------------ ##
13398 sed "s/^/$as_me: WARNING: /" >&2
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13409 ## ------------------------------------ ##
13410 ## Report this to bug-autoconf@gnu.org. ##
13411 ## ------------------------------------ ##
13414 sed "s/^/$as_me: WARNING: /" >&2
13417 echo "$as_me:$LINENO: checking for $ac_header" >&5
13418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 eval "$as_ac_Header=$ac_header_preproc"
13424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429 cat >>confdefs.h
<<_ACEOF
13430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442 for ac_header
in locale.h
13444 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo "$as_me:$LINENO: checking for $ac_header" >&5
13447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13454 # Is the header compilable?
13455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13457 cat >conftest.
$ac_ext <<_ACEOF
13460 cat confdefs.h
>>conftest.
$ac_ext
13461 cat >>conftest.
$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 #include <$ac_header>
13466 rm -f conftest.
$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try
='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_header_compiler
=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.
$ac_ext >&5
13483 ac_header_compiler
=no
13485 rm -f conftest.
$ac_objext conftest.
$ac_ext
13486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 echo "${ECHO_T}$ac_header_compiler" >&6
13489 # Is the header present?
13490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13492 cat >conftest.
$ac_ext <<_ACEOF
13495 cat confdefs.h
>>conftest.
$ac_ext
13496 cat >>conftest.
$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <$ac_header>
13500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13503 grep -v '^ *+' conftest.er1
>conftest.err
13505 cat conftest.err
>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev
/null
; then
13508 if test -s conftest.err
; then
13509 ac_cpp_err
=$ac_c_preproc_warn_flag
13516 if test -z "$ac_cpp_err"; then
13517 ac_header_preproc
=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.
$ac_ext >&5
13522 ac_header_preproc
=no
13524 rm -f conftest.err conftest.
$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526 echo "${ECHO_T}$ac_header_preproc" >&6
13528 # So? What about this header?
13529 case $ac_header_compiler:$ac_header_preproc in
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13537 ## ------------------------------------ ##
13538 ## Report this to bug-autoconf@gnu.org. ##
13539 ## ------------------------------------ ##
13542 sed "s/^/$as_me: WARNING: /" >&2
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13553 ## ------------------------------------ ##
13554 ## Report this to bug-autoconf@gnu.org. ##
13555 ## ------------------------------------ ##
13558 sed "s/^/$as_me: WARNING: /" >&2
13561 echo "$as_me:$LINENO: checking for $ac_header" >&5
13562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 eval "$as_ac_Header=$ac_header_preproc"
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13573 cat >>confdefs.h
<<_ACEOF
13574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13581 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13582 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13583 if test "${ac_cv_have_decl_getenv+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 cat >conftest.
$ac_ext <<_ACEOF
13589 cat confdefs.h
>>conftest.
$ac_ext
13590 cat >>conftest.
$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13597 char *p = (char *) getenv;
13604 rm -f conftest.
$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try
='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_have_decl_getenv
=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.
$ac_ext >&5
13621 ac_cv_have_decl_getenv
=no
13623 rm -f conftest.
$ac_objext conftest.
$ac_ext
13625 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13626 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13627 if test $ac_cv_have_decl_getenv = yes; then
13629 cat >>confdefs.h
<<_ACEOF
13630 #define HAVE_DECL_GETENV 1
13635 cat >>confdefs.h
<<_ACEOF
13636 #define HAVE_DECL_GETENV 0
13644 for ac_func
in localeconv
13646 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13647 echo "$as_me:$LINENO: checking for $ac_func" >&5
13648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13649 if eval "test \"\${$as_ac_var+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 cat >conftest.
$ac_ext <<_ACEOF
13655 cat confdefs.h
>>conftest.
$ac_ext
13656 cat >>conftest.
$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 /* System header to define __stub macros and hopefully few prototypes,
13659 which can conflict with char $ac_func (); below.
13660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13661 <limits.h> exists even on freestanding compilers. */
13663 # include <limits.h>
13665 # include <assert.h>
13667 /* Override any gcc2 internal prototype to avoid an error. */
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13675 /* The GNU C library defines this for functions which it implements
13676 to always fail with ENOSYS. Some functions are actually named
13677 something starting with __ and the normal name is an alias. */
13678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13681 char (*f) () = $ac_func;
13690 return f != $ac_func;
13695 rm -f conftest.
$ac_objext conftest
$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try
='test -s conftest$ac_exeext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 eval "$as_ac_var=yes"
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.
$ac_ext >&5
13712 eval "$as_ac_var=no"
13714 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13718 if test `eval echo '${'$as_ac_var'}'` = yes; then
13719 cat >>confdefs.h
<<_ACEOF
13720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13736 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
13738 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo "$as_me:$LINENO: checking for $ac_header" >&5
13741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13748 # Is the header compilable?
13749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13751 cat >conftest.
$ac_ext <<_ACEOF
13754 cat confdefs.h
>>conftest.
$ac_ext
13755 cat >>conftest.
$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 $ac_includes_default
13758 #include <$ac_header>
13760 rm -f conftest.
$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try
='test -s conftest.$ac_objext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_header_compiler
=yes
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13777 ac_header_compiler
=no
13779 rm -f conftest.
$ac_objext conftest.
$ac_ext
13780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6
13783 # Is the header present?
13784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13786 cat >conftest.
$ac_ext <<_ACEOF
13789 cat confdefs.h
>>conftest.
$ac_ext
13790 cat >>conftest.
$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13795 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13797 grep -v '^ *+' conftest.er1
>conftest.err
13799 cat conftest.err
>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } >/dev
/null
; then
13802 if test -s conftest.err
; then
13803 ac_cpp_err
=$ac_c_preproc_warn_flag
13810 if test -z "$ac_cpp_err"; then
13811 ac_header_preproc
=yes
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.
$ac_ext >&5
13816 ac_header_preproc
=no
13818 rm -f conftest.err conftest.
$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc in
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13831 ## ------------------------------------ ##
13832 ## Report this to bug-autoconf@gnu.org. ##
13833 ## ------------------------------------ ##
13836 sed "s/^/$as_me: WARNING: /" >&2
13839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13847 ## ------------------------------------ ##
13848 ## Report this to bug-autoconf@gnu.org. ##
13849 ## ------------------------------------ ##
13852 sed "s/^/$as_me: WARNING: /" >&2
13855 echo "$as_me:$LINENO: checking for $ac_header" >&5
13856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 eval "$as_ac_Header=$ac_header_preproc"
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13867 cat >>confdefs.h
<<_ACEOF
13868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13880 for ac_func
in isascii iswcntrl iswprint mbsinit wcwidth
13882 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13883 echo "$as_me:$LINENO: checking for $ac_func" >&5
13884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13885 if eval "test \"\${$as_ac_var+set}\" = set"; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 cat >conftest.
$ac_ext <<_ACEOF
13891 cat confdefs.h
>>conftest.
$ac_ext
13892 cat >>conftest.
$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func (); below.
13896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897 <limits.h> exists even on freestanding compilers. */
13899 # include <limits.h>
13901 # include <assert.h>
13903 /* Override any gcc2 internal prototype to avoid an error. */
13908 /* We use char because int might match the return type of a gcc2
13909 builtin and then its argument prototype would still apply. */
13911 /* The GNU C library defines this for functions which it implements
13912 to always fail with ENOSYS. Some functions are actually named
13913 something starting with __ and the normal name is an alias. */
13914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13917 char (*f) () = $ac_func;
13926 return f != $ac_func;
13931 rm -f conftest.
$ac_objext conftest
$ac_exeext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13933 (eval $ac_link) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try
='test -s conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 eval "$as_ac_var=yes"
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.
$ac_ext >&5
13948 eval "$as_ac_var=no"
13950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13954 if test `eval echo '${'$as_ac_var'}'` = yes; then
13955 cat >>confdefs.h
<<_ACEOF
13956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13963 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13964 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13965 if test "${jm_cv_func_mbrtowc+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.
$ac_ext <<_ACEOF
13971 cat confdefs.h
>>conftest.
$ac_ext
13972 cat >>conftest.
$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13978 mbstate_t state; return ! (sizeof state && mbrtowc);
13983 rm -f conftest.
$ac_objext conftest
$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try
='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 jm_cv_func_mbrtowc
=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.
$ac_ext >&5
14000 jm_cv_func_mbrtowc
=no
14002 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14004 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
14005 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
14006 if test $jm_cv_func_mbrtowc = yes; then
14008 cat >>confdefs.h
<<\_ACEOF
14009 #define HAVE_MBRTOWC 1
14015 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
14016 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
14017 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 cat >conftest.
$ac_ext <<_ACEOF
14023 cat confdefs.h
>>conftest.
$ac_ext
14024 cat >>conftest.
$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* AIX 3.2.5 declares wcwidth in <string.h>. */
14029 # include <string.h>
14032 # include <wchar.h>
14040 char *p = (char *) wcwidth;
14047 rm -f conftest.
$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049 (eval $ac_compile) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try
='test -s conftest.$ac_objext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_have_decl_wcwidth
=yes
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.
$ac_ext >&5
14064 ac_cv_have_decl_wcwidth
=no
14066 rm -f conftest.
$ac_objext conftest.
$ac_ext
14068 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14069 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14070 if test $ac_cv_have_decl_wcwidth = yes; then
14076 cat >>confdefs.h
<<_ACEOF
14077 #define HAVE_DECL_WCWIDTH $ac_val
14081 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14082 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14083 if test "${ac_cv_type_mbstate_t+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 cat >conftest.
$ac_ext <<_ACEOF
14089 cat confdefs.h
>>conftest.
$ac_ext
14090 cat >>conftest.
$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 $ac_includes_default
14093 # include <wchar.h>
14097 mbstate_t x; return sizeof x;
14102 rm -f conftest.
$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104 (eval $ac_compile) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try
='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_type_mbstate_t
=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.
$ac_ext >&5
14119 ac_cv_type_mbstate_t
=no
14121 rm -f conftest.
$ac_objext conftest.
$ac_ext
14123 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14124 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14125 if test $ac_cv_type_mbstate_t = yes; then
14127 cat >>confdefs.h
<<\_ACEOF
14128 #define HAVE_MBSTATE_T 1
14133 cat >>confdefs.h
<<\_ACEOF
14134 #define mbstate_t int
14143 for ac_header
in limits.h stdlib.h bp-sym.h
14145 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14155 # Is the header compilable?
14156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14158 cat >conftest.
$ac_ext <<_ACEOF
14161 cat confdefs.h
>>conftest.
$ac_ext
14162 cat >>conftest.
$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 $ac_includes_default
14165 #include <$ac_header>
14167 rm -f conftest.
$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 (eval $ac_compile) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try
='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_header_compiler
=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.
$ac_ext >&5
14184 ac_header_compiler
=no
14186 rm -f conftest.
$ac_objext conftest.
$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188 echo "${ECHO_T}$ac_header_compiler" >&6
14190 # Is the header present?
14191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14193 cat >conftest.
$ac_ext <<_ACEOF
14196 cat confdefs.h
>>conftest.
$ac_ext
14197 cat >>conftest.
$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14199 #include <$ac_header>
14201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14204 grep -v '^ *+' conftest.er1
>conftest.err
14206 cat conftest.err
>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } >/dev
/null
; then
14209 if test -s conftest.err
; then
14210 ac_cpp_err
=$ac_c_preproc_warn_flag
14217 if test -z "$ac_cpp_err"; then
14218 ac_header_preproc
=yes
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.
$ac_ext >&5
14223 ac_header_preproc
=no
14225 rm -f conftest.err conftest.
$ac_ext
14226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14227 echo "${ECHO_T}$ac_header_preproc" >&6
14229 # So? What about this header?
14230 case $ac_header_compiler:$ac_header_preproc in
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14238 ## ------------------------------------ ##
14239 ## Report this to bug-autoconf@gnu.org. ##
14240 ## ------------------------------------ ##
14243 sed "s/^/$as_me: WARNING: /" >&2
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14254 ## ------------------------------------ ##
14255 ## Report this to bug-autoconf@gnu.org. ##
14256 ## ------------------------------------ ##
14259 sed "s/^/$as_me: WARNING: /" >&2
14262 echo "$as_me:$LINENO: checking for $ac_header" >&5
14263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 eval "$as_ac_Header=$ac_header_preproc"
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14274 cat >>confdefs.h
<<_ACEOF
14275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14283 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
14284 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
14285 if test "${gl_cv_var__system_configuration+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 cat >conftest.
$ac_ext <<_ACEOF
14291 cat confdefs.h
>>conftest.
$ac_ext
14292 cat >>conftest.
$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 #include <sys/systemcfg.h>
14299 double x = _system_configuration.physmem;
14304 rm -f conftest.
$ac_objext conftest
$ac_exeext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try
='test -s conftest$ac_exeext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 gl_cv_var__system_configuration
=yes
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.
$ac_ext >&5
14321 gl_cv_var__system_configuration
=no
14323 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14325 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
14326 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
14328 if test $gl_cv_var__system_configuration = yes; then
14330 cat >>confdefs.h
<<\_ACEOF
14331 #define HAVE__SYSTEM_CONFIGURATION 1
14347 for ac_header
in unistd.h sys
/pstat.h sys
/sysmp.h sys
/sysinfo.h \
14348 machine
/hal_sysinfo.h sys
/table.h sys
/param.h sys
/sysctl.h \
14351 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353 echo "$as_me:$LINENO: checking for $ac_header" >&5
14354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14361 # Is the header compilable?
14362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14364 cat >conftest.
$ac_ext <<_ACEOF
14367 cat confdefs.h
>>conftest.
$ac_ext
14368 cat >>conftest.
$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 $ac_includes_default
14371 #include <$ac_header>
14373 rm -f conftest.
$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try
='test -s conftest.$ac_objext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_header_compiler
=yes
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.
$ac_ext >&5
14390 ac_header_compiler
=no
14392 rm -f conftest.
$ac_objext conftest.
$ac_ext
14393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14394 echo "${ECHO_T}$ac_header_compiler" >&6
14396 # Is the header present?
14397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14399 cat >conftest.
$ac_ext <<_ACEOF
14402 cat confdefs.h
>>conftest.
$ac_ext
14403 cat >>conftest.
$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 #include <$ac_header>
14407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1
>conftest.err
14412 cat conftest.err
>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } >/dev
/null
; then
14415 if test -s conftest.err
; then
14416 ac_cpp_err
=$ac_c_preproc_warn_flag
14423 if test -z "$ac_cpp_err"; then
14424 ac_header_preproc
=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.
$ac_ext >&5
14429 ac_header_preproc
=no
14431 rm -f conftest.err conftest.
$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc in
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14444 ## ------------------------------------ ##
14445 ## Report this to bug-autoconf@gnu.org. ##
14446 ## ------------------------------------ ##
14449 sed "s/^/$as_me: WARNING: /" >&2
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460 ## ------------------------------------ ##
14461 ## Report this to bug-autoconf@gnu.org. ##
14462 ## ------------------------------------ ##
14465 sed "s/^/$as_me: WARNING: /" >&2
14468 echo "$as_me:$LINENO: checking for $ac_header" >&5
14469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 eval "$as_ac_Header=$ac_header_preproc"
14475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14480 cat >>confdefs.h
<<_ACEOF
14481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14494 for ac_func
in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
14496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14497 echo "$as_me:$LINENO: checking for $ac_func" >&5
14498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14499 if eval "test \"\${$as_ac_var+set}\" = set"; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 cat >conftest.
$ac_ext <<_ACEOF
14505 cat confdefs.h
>>conftest.
$ac_ext
14506 cat >>conftest.
$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 /* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char $ac_func (); below.
14510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14511 <limits.h> exists even on freestanding compilers. */
14513 # include <limits.h>
14515 # include <assert.h>
14517 /* Override any gcc2 internal prototype to avoid an error. */
14522 /* We use char because int might match the return type of a gcc2
14523 builtin and then its argument prototype would still apply. */
14525 /* The GNU C library defines this for functions which it implements
14526 to always fail with ENOSYS. Some functions are actually named
14527 something starting with __ and the normal name is an alias. */
14528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14531 char (*f) () = $ac_func;
14540 return f != $ac_func;
14545 rm -f conftest.
$ac_objext conftest
$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try
='test -s conftest$ac_exeext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 eval "$as_ac_var=yes"
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.
$ac_ext >&5
14562 eval "$as_ac_var=no"
14564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14568 if test `eval echo '${'$as_ac_var'}'` = yes; then
14569 cat >>confdefs.h
<<_ACEOF
14570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 for ac_header
in unistd.h
14583 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14585 echo "$as_me:$LINENO: checking for $ac_header" >&5
14586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593 # Is the header compilable?
14594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14596 cat >conftest.
$ac_ext <<_ACEOF
14599 cat confdefs.h
>>conftest.
$ac_ext
14600 cat >>conftest.
$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 $ac_includes_default
14603 #include <$ac_header>
14605 rm -f conftest.
$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try
='test -s conftest.$ac_objext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_header_compiler
=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.
$ac_ext >&5
14622 ac_header_compiler
=no
14624 rm -f conftest.
$ac_objext conftest.
$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14626 echo "${ECHO_T}$ac_header_compiler" >&6
14628 # Is the header present?
14629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14631 cat >conftest.
$ac_ext <<_ACEOF
14634 cat confdefs.h
>>conftest.
$ac_ext
14635 cat >>conftest.
$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 #include <$ac_header>
14639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14640 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14642 grep -v '^ *+' conftest.er1
>conftest.err
14644 cat conftest.err
>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } >/dev
/null
; then
14647 if test -s conftest.err
; then
14648 ac_cpp_err
=$ac_c_preproc_warn_flag
14655 if test -z "$ac_cpp_err"; then
14656 ac_header_preproc
=yes
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.
$ac_ext >&5
14661 ac_header_preproc
=no
14663 rm -f conftest.err conftest.
$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14665 echo "${ECHO_T}$ac_header_preproc" >&6
14667 # So? What about this header?
14668 case $ac_header_compiler:$ac_header_preproc in
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14676 ## ------------------------------------ ##
14677 ## Report this to bug-autoconf@gnu.org. ##
14678 ## ------------------------------------ ##
14681 sed "s/^/$as_me: WARNING: /" >&2
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14692 ## ------------------------------------ ##
14693 ## Report this to bug-autoconf@gnu.org. ##
14694 ## ------------------------------------ ##
14697 sed "s/^/$as_me: WARNING: /" >&2
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 eval "$as_ac_Header=$ac_header_preproc"
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14712 cat >>confdefs.h
<<_ACEOF
14713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14720 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14721 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14722 if test "${ac_cv_have_decl_getenv+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >conftest.
$ac_ext <<_ACEOF
14728 cat confdefs.h
>>conftest.
$ac_ext
14729 cat >>conftest.
$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14736 char *p = (char *) getenv;
14743 rm -f conftest.
$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try
='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_cv_have_decl_getenv
=yes
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.
$ac_ext >&5
14760 ac_cv_have_decl_getenv
=no
14762 rm -f conftest.
$ac_objext conftest.
$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14765 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14766 if test $ac_cv_have_decl_getenv = yes; then
14768 cat >>confdefs.h
<<_ACEOF
14769 #define HAVE_DECL_GETENV 1
14774 cat >>confdefs.h
<<_ACEOF
14775 #define HAVE_DECL_GETENV 0
14783 echo "$as_me:$LINENO: checking for working memcmp" >&5
14784 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14785 if test "${ac_cv_func_memcmp_working+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 if test "$cross_compiling" = yes; then
14789 ac_cv_func_memcmp_working
=no
14791 cat >conftest.
$ac_ext <<_ACEOF
14794 cat confdefs.h
>>conftest.
$ac_ext
14795 cat >>conftest.
$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14802 /* Some versions of memcmp are not 8-bit clean. */
14803 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14804 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14807 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14808 or more and with at least one buffer not starting on a 4-byte boundary.
14809 William Lewis provided this test program. */
14814 for (i = 0; i < 4; i++)
14818 strcpy (a, "--------01111111");
14819 strcpy (b, "--------10000000");
14820 if (memcmp (a, b, 16) >= 0)
14830 rm -f conftest
$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_func_memcmp_working
=yes
14843 echo "$as_me: program exited with status $ac_status" >&5
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.
$ac_ext >&5
14847 ( exit $ac_status )
14848 ac_cv_func_memcmp_working
=no
14850 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14853 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14854 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14855 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
14857 if test $ac_cv_func_memcmp_working = no
; then
14859 cat >>confdefs.h
<<\_ACEOF
14860 #define memcmp rpl_memcmp
14866 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14867 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14868 if test "${ac_cv_c_backslash_a+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.
$ac_ext <<_ACEOF
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14885 char buf['\a' == 'a' ? -1 : 1];
14887 return buf[0] != "\a"[0];
14893 rm -f conftest.
$ac_objext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try
='test -s conftest.$ac_objext'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 ac_cv_c_backslash_a
=yes
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.
$ac_ext >&5
14910 ac_cv_c_backslash_a
=no
14912 rm -f conftest.
$ac_objext conftest.
$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14915 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14916 if test $ac_cv_c_backslash_a = yes; then
14918 cat >>confdefs.h
<<\_ACEOF
14919 #define HAVE_C_BACKSLASH_A 1
14927 for ac_func
in isascii iswprint
14929 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14930 echo "$as_me:$LINENO: checking for $ac_func" >&5
14931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14932 if eval "test \"\${$as_ac_var+set}\" = set"; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 cat >conftest.
$ac_ext <<_ACEOF
14938 cat confdefs.h
>>conftest.
$ac_ext
14939 cat >>conftest.
$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 /* System header to define __stub macros and hopefully few prototypes,
14942 which can conflict with char $ac_func (); below.
14943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14944 <limits.h> exists even on freestanding compilers. */
14946 # include <limits.h>
14948 # include <assert.h>
14950 /* Override any gcc2 internal prototype to avoid an error. */
14955 /* We use char because int might match the return type of a gcc2
14956 builtin and then its argument prototype would still apply. */
14958 /* The GNU C library defines this for functions which it implements
14959 to always fail with ENOSYS. Some functions are actually named
14960 something starting with __ and the normal name is an alias. */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14964 char (*f) () = $ac_func;
14973 return f != $ac_func;
14978 rm -f conftest.
$ac_objext conftest
$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try
='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 eval "$as_ac_var=yes"
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.
$ac_ext >&5
14995 eval "$as_ac_var=no"
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002 cat >>confdefs.h
<<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15017 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
15019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15029 # Is the header compilable?
15030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15032 cat >conftest.
$ac_ext <<_ACEOF
15035 cat confdefs.h
>>conftest.
$ac_ext
15036 cat >>conftest.
$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 $ac_includes_default
15039 #include <$ac_header>
15041 rm -f conftest.
$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try
='test -s conftest.$ac_objext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_header_compiler
=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.
$ac_ext >&5
15058 ac_header_compiler
=no
15060 rm -f conftest.
$ac_objext conftest.
$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 echo "${ECHO_T}$ac_header_compiler" >&6
15064 # Is the header present?
15065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15067 cat >conftest.
$ac_ext <<_ACEOF
15070 cat confdefs.h
>>conftest.
$ac_ext
15071 cat >>conftest.
$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <$ac_header>
15075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15078 grep -v '^ *+' conftest.er1
>conftest.err
15080 cat conftest.err
>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev
/null
; then
15083 if test -s conftest.err
; then
15084 ac_cpp_err
=$ac_c_preproc_warn_flag
15091 if test -z "$ac_cpp_err"; then
15092 ac_header_preproc
=yes
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15097 ac_header_preproc
=no
15099 rm -f conftest.err conftest.
$ac_ext
15100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101 echo "${ECHO_T}$ac_header_preproc" >&6
15103 # So? What about this header?
15104 case $ac_header_compiler:$ac_header_preproc in
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15112 ## ------------------------------------ ##
15113 ## Report this to bug-autoconf@gnu.org. ##
15114 ## ------------------------------------ ##
15117 sed "s/^/$as_me: WARNING: /" >&2
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15128 ## ------------------------------------ ##
15129 ## Report this to bug-autoconf@gnu.org. ##
15130 ## ------------------------------------ ##
15133 sed "s/^/$as_me: WARNING: /" >&2
15136 echo "$as_me:$LINENO: checking for $ac_header" >&5
15137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 eval "$as_ac_Header=$ac_header_preproc"
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148 cat >>confdefs.h
<<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 for ac_header
in string.h utmp.h utmpx.h sys
/param.h
15169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15171 echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15179 # Is the header compilable?
15180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15182 cat >conftest.
$ac_ext <<_ACEOF
15185 cat confdefs.h
>>conftest.
$ac_ext
15186 cat >>conftest.
$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 $ac_includes_default
15189 #include <$ac_header>
15191 rm -f conftest.
$ac_objext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try
='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_header_compiler
=yes
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.
$ac_ext >&5
15208 ac_header_compiler
=no
15210 rm -f conftest.
$ac_objext conftest.
$ac_ext
15211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15212 echo "${ECHO_T}$ac_header_compiler" >&6
15214 # Is the header present?
15215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15217 cat >conftest.
$ac_ext <<_ACEOF
15220 cat confdefs.h
>>conftest.
$ac_ext
15221 cat >>conftest.
$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <$ac_header>
15225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev
/null
; then
15233 if test -s conftest.err
; then
15234 ac_cpp_err
=$ac_c_preproc_warn_flag
15241 if test -z "$ac_cpp_err"; then
15242 ac_header_preproc
=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.
$ac_ext >&5
15247 ac_header_preproc
=no
15249 rm -f conftest.err conftest.
$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc in
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 ## ------------------------------------ ##
15263 ## Report this to bug-autoconf@gnu.org. ##
15264 ## ------------------------------------ ##
15267 sed "s/^/$as_me: WARNING: /" >&2
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15283 sed "s/^/$as_me: WARNING: /" >&2
15286 echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 eval "$as_ac_Header=$ac_header_preproc"
15293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h
<<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307 for ac_func
in utmpname
15309 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15310 echo "$as_me:$LINENO: checking for $ac_func" >&5
15311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15312 if eval "test \"\${$as_ac_var+set}\" = set"; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 cat >conftest.
$ac_ext <<_ACEOF
15318 cat confdefs.h
>>conftest.
$ac_ext
15319 cat >>conftest.
$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func (); below.
15323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15324 <limits.h> exists even on freestanding compilers. */
15326 # include <limits.h>
15328 # include <assert.h>
15330 /* Override any gcc2 internal prototype to avoid an error. */
15335 /* We use char because int might match the return type of a gcc2
15336 builtin and then its argument prototype would still apply. */
15338 /* The GNU C library defines this for functions which it implements
15339 to always fail with ENOSYS. Some functions are actually named
15340 something starting with __ and the normal name is an alias. */
15341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15344 char (*f) () = $ac_func;
15353 return f != $ac_func;
15358 rm -f conftest.
$ac_objext conftest
$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try
='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 eval "$as_ac_var=yes"
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.
$ac_ext >&5
15375 eval "$as_ac_var=no"
15377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15381 if test `eval echo '${'$as_ac_var'}'` = yes; then
15382 cat >>confdefs.h
<<_ACEOF
15383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 for ac_func
in utmpxname
15392 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15393 echo "$as_me:$LINENO: checking for $ac_func" >&5
15394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15395 if eval "test \"\${$as_ac_var+set}\" = set"; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 cat >conftest.
$ac_ext <<_ACEOF
15401 cat confdefs.h
>>conftest.
$ac_ext
15402 cat >>conftest.
$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char $ac_func (); below.
15406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407 <limits.h> exists even on freestanding compilers. */
15409 # include <limits.h>
15411 # include <assert.h>
15413 /* Override any gcc2 internal prototype to avoid an error. */
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15427 char (*f) () = $ac_func;
15436 return f != $ac_func;
15441 rm -f conftest.
$ac_objext conftest
$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try
='test -s conftest$ac_exeext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 eval "$as_ac_var=yes"
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.
$ac_ext >&5
15458 eval "$as_ac_var=no"
15460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15464 if test `eval echo '${'$as_ac_var'}'` = yes; then
15465 cat >>confdefs.h
<<_ACEOF
15466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15474 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
15476 $ac_includes_default
15477 #ifdef HAVE_UTMPX_H
15478 # include <utmpx.h>
15484 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15485 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15486 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 cat >conftest.
$ac_ext <<_ACEOF
15492 cat confdefs.h
>>conftest.
$ac_ext
15493 cat >>conftest.
$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15500 static struct utmpx ac_aggr;
15501 if (ac_aggr.ut_user)
15507 rm -f conftest.
$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try
='test -s conftest.$ac_objext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_member_struct_utmpx_ut_user
=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.
$ac_ext >&5
15524 cat >conftest.
$ac_ext <<_ACEOF
15527 cat confdefs.h
>>conftest.
$ac_ext
15528 cat >>conftest.
$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15535 static struct utmpx ac_aggr;
15536 if (sizeof ac_aggr.ut_user)
15542 rm -f conftest.
$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try
='test -s conftest.$ac_objext'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_cv_member_struct_utmpx_ut_user
=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.
$ac_ext >&5
15559 ac_cv_member_struct_utmpx_ut_user
=no
15561 rm -f conftest.
$ac_objext conftest.
$ac_ext
15563 rm -f conftest.
$ac_objext conftest.
$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15566 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15567 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15569 cat >>confdefs.h
<<_ACEOF
15570 #define HAVE_STRUCT_UTMPX_UT_USER 1
15576 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15577 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15578 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 cat >conftest.
$ac_ext <<_ACEOF
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15592 static struct utmp ac_aggr;
15593 if (ac_aggr.ut_user)
15599 rm -f conftest.
$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try
='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_member_struct_utmp_ut_user
=yes
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.
$ac_ext >&5
15616 cat >conftest.
$ac_ext <<_ACEOF
15619 cat confdefs.h
>>conftest.
$ac_ext
15620 cat >>conftest.
$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15627 static struct utmp ac_aggr;
15628 if (sizeof ac_aggr.ut_user)
15634 rm -f conftest.
$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try
='test -s conftest.$ac_objext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_cv_member_struct_utmp_ut_user
=yes
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.
$ac_ext >&5
15651 ac_cv_member_struct_utmp_ut_user
=no
15653 rm -f conftest.
$ac_objext conftest.
$ac_ext
15655 rm -f conftest.
$ac_objext conftest.
$ac_ext
15657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15658 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15659 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15661 cat >>confdefs.h
<<_ACEOF
15662 #define HAVE_STRUCT_UTMP_UT_USER 1
15668 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15669 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15670 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 cat >conftest.
$ac_ext <<_ACEOF
15676 cat confdefs.h
>>conftest.
$ac_ext
15677 cat >>conftest.
$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15684 static struct utmpx ac_aggr;
15685 if (ac_aggr.ut_name)
15691 rm -f conftest.
$ac_objext
15692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15693 (eval $ac_compile) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try
='test -s conftest.$ac_objext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_cv_member_struct_utmpx_ut_name
=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.
$ac_ext >&5
15708 cat >conftest.
$ac_ext <<_ACEOF
15711 cat confdefs.h
>>conftest.
$ac_ext
15712 cat >>conftest.
$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15719 static struct utmpx ac_aggr;
15720 if (sizeof ac_aggr.ut_name)
15726 rm -f conftest.
$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try
='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_member_struct_utmpx_ut_name
=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.
$ac_ext >&5
15743 ac_cv_member_struct_utmpx_ut_name
=no
15745 rm -f conftest.
$ac_objext conftest.
$ac_ext
15747 rm -f conftest.
$ac_objext conftest.
$ac_ext
15749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15750 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15751 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15753 cat >>confdefs.h
<<_ACEOF
15754 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15760 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15761 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15762 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 cat >conftest.
$ac_ext <<_ACEOF
15768 cat confdefs.h
>>conftest.
$ac_ext
15769 cat >>conftest.
$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15776 static struct utmp ac_aggr;
15777 if (ac_aggr.ut_name)
15783 rm -f conftest.
$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try
='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_member_struct_utmp_ut_name
=yes
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.
$ac_ext >&5
15800 cat >conftest.
$ac_ext <<_ACEOF
15803 cat confdefs.h
>>conftest.
$ac_ext
15804 cat >>conftest.
$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15811 static struct utmp ac_aggr;
15812 if (sizeof ac_aggr.ut_name)
15818 rm -f conftest.
$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try
='test -s conftest.$ac_objext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 ac_cv_member_struct_utmp_ut_name
=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 ac_cv_member_struct_utmp_ut_name
=no
15837 rm -f conftest.
$ac_objext conftest.
$ac_ext
15839 rm -f conftest.
$ac_objext conftest.
$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15842 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15843 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15845 cat >>confdefs.h
<<_ACEOF
15846 #define HAVE_STRUCT_UTMP_UT_NAME 1
15852 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15853 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15854 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 cat >conftest.
$ac_ext <<_ACEOF
15860 cat confdefs.h
>>conftest.
$ac_ext
15861 cat >>conftest.
$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15868 static struct utmpx ac_aggr;
15869 if (ac_aggr.ut_type)
15875 rm -f conftest.
$ac_objext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try
='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_member_struct_utmpx_ut_type
=yes
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.
$ac_ext >&5
15892 cat >conftest.
$ac_ext <<_ACEOF
15895 cat confdefs.h
>>conftest.
$ac_ext
15896 cat >>conftest.
$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15903 static struct utmpx ac_aggr;
15904 if (sizeof ac_aggr.ut_type)
15910 rm -f conftest.
$ac_objext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try
='test -s conftest.$ac_objext'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 ac_cv_member_struct_utmpx_ut_type
=yes
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.
$ac_ext >&5
15927 ac_cv_member_struct_utmpx_ut_type
=no
15929 rm -f conftest.
$ac_objext conftest.
$ac_ext
15931 rm -f conftest.
$ac_objext conftest.
$ac_ext
15933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15934 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15935 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15937 cat >>confdefs.h
<<_ACEOF
15938 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15944 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15945 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15946 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 cat >conftest.
$ac_ext <<_ACEOF
15952 cat confdefs.h
>>conftest.
$ac_ext
15953 cat >>conftest.
$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15960 static struct utmp ac_aggr;
15961 if (ac_aggr.ut_type)
15967 rm -f conftest.
$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try
='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_cv_member_struct_utmp_ut_type
=yes
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.
$ac_ext >&5
15984 cat >conftest.
$ac_ext <<_ACEOF
15987 cat confdefs.h
>>conftest.
$ac_ext
15988 cat >>conftest.
$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15995 static struct utmp ac_aggr;
15996 if (sizeof ac_aggr.ut_type)
16002 rm -f conftest.
$ac_objext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try
='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_member_struct_utmp_ut_type
=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 ac_cv_member_struct_utmp_ut_type
=no
16021 rm -f conftest.
$ac_objext conftest.
$ac_ext
16023 rm -f conftest.
$ac_objext conftest.
$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
16026 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
16027 if test $ac_cv_member_struct_utmp_ut_type = yes; then
16029 cat >>confdefs.h
<<_ACEOF
16030 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16036 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
16037 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
16038 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 cat >conftest.
$ac_ext <<_ACEOF
16044 cat confdefs.h
>>conftest.
$ac_ext
16045 cat >>conftest.
$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16052 static struct utmpx ac_aggr;
16053 if (ac_aggr.ut_pid)
16059 rm -f conftest.
$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try
='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_member_struct_utmpx_ut_pid
=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.
$ac_ext >&5
16076 cat >conftest.
$ac_ext <<_ACEOF
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16087 static struct utmpx ac_aggr;
16088 if (sizeof ac_aggr.ut_pid)
16094 rm -f conftest.
$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try
='test -s conftest.$ac_objext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_member_struct_utmpx_ut_pid
=yes
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.
$ac_ext >&5
16111 ac_cv_member_struct_utmpx_ut_pid
=no
16113 rm -f conftest.
$ac_objext conftest.
$ac_ext
16115 rm -f conftest.
$ac_objext conftest.
$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16118 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16119 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16121 cat >>confdefs.h
<<_ACEOF
16122 #define HAVE_STRUCT_UTMPX_UT_PID 1
16128 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16129 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16130 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 cat >conftest.
$ac_ext <<_ACEOF
16136 cat confdefs.h
>>conftest.
$ac_ext
16137 cat >>conftest.
$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16144 static struct utmp ac_aggr;
16145 if (ac_aggr.ut_pid)
16151 rm -f conftest.
$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try
='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ac_cv_member_struct_utmp_ut_pid
=yes
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.
$ac_ext >&5
16168 cat >conftest.
$ac_ext <<_ACEOF
16171 cat confdefs.h
>>conftest.
$ac_ext
16172 cat >>conftest.
$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16179 static struct utmp ac_aggr;
16180 if (sizeof ac_aggr.ut_pid)
16186 rm -f conftest.
$ac_objext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try
='test -s conftest.$ac_objext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_cv_member_struct_utmp_ut_pid
=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.
$ac_ext >&5
16203 ac_cv_member_struct_utmp_ut_pid
=no
16205 rm -f conftest.
$ac_objext conftest.
$ac_ext
16207 rm -f conftest.
$ac_objext conftest.
$ac_ext
16209 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16210 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16211 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16213 cat >>confdefs.h
<<_ACEOF
16214 #define HAVE_STRUCT_UTMP_UT_PID 1
16220 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16221 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16222 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 cat >conftest.
$ac_ext <<_ACEOF
16228 cat confdefs.h
>>conftest.
$ac_ext
16229 cat >>conftest.
$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16236 static struct utmpx ac_aggr;
16243 rm -f conftest.
$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try
='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_member_struct_utmpx_ut_id
=yes
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.
$ac_ext >&5
16260 cat >conftest.
$ac_ext <<_ACEOF
16263 cat confdefs.h
>>conftest.
$ac_ext
16264 cat >>conftest.
$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16271 static struct utmpx ac_aggr;
16272 if (sizeof ac_aggr.ut_id)
16278 rm -f conftest.
$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try
='test -s conftest.$ac_objext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_member_struct_utmpx_ut_id
=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.
$ac_ext >&5
16295 ac_cv_member_struct_utmpx_ut_id
=no
16297 rm -f conftest.
$ac_objext conftest.
$ac_ext
16299 rm -f conftest.
$ac_objext conftest.
$ac_ext
16301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16303 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16305 cat >>confdefs.h
<<_ACEOF
16306 #define HAVE_STRUCT_UTMPX_UT_ID 1
16312 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16313 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16314 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.
$ac_ext <<_ACEOF
16320 cat confdefs.h
>>conftest.
$ac_ext
16321 cat >>conftest.
$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16328 static struct utmp ac_aggr;
16335 rm -f conftest.
$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try
='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_member_struct_utmp_ut_id
=yes
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.
$ac_ext >&5
16352 cat >conftest.
$ac_ext <<_ACEOF
16355 cat confdefs.h
>>conftest.
$ac_ext
16356 cat >>conftest.
$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16363 static struct utmp ac_aggr;
16364 if (sizeof ac_aggr.ut_id)
16370 rm -f conftest.
$ac_objext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try
='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_member_struct_utmp_ut_id
=yes
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.
$ac_ext >&5
16387 ac_cv_member_struct_utmp_ut_id
=no
16389 rm -f conftest.
$ac_objext conftest.
$ac_ext
16391 rm -f conftest.
$ac_objext conftest.
$ac_ext
16393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16394 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16395 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16397 cat >>confdefs.h
<<_ACEOF
16398 #define HAVE_STRUCT_UTMP_UT_ID 1
16405 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16406 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16407 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 cat >conftest.
$ac_ext <<_ACEOF
16413 cat confdefs.h
>>conftest.
$ac_ext
16414 cat >>conftest.
$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16421 static struct utmpx ac_aggr;
16422 if (ac_aggr.ut_exit.ut_exit)
16428 rm -f conftest.
$ac_objext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try
='test -s conftest.$ac_objext'
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 cat >conftest.
$ac_ext <<_ACEOF
16448 cat confdefs.h
>>conftest.
$ac_ext
16449 cat >>conftest.
$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16456 static struct utmpx ac_aggr;
16457 if (sizeof ac_aggr.ut_exit.ut_exit)
16463 rm -f conftest.
$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try
='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.
$ac_ext >&5
16480 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=no
16482 rm -f conftest.
$ac_objext conftest.
$ac_ext
16484 rm -f conftest.
$ac_objext conftest.
$ac_ext
16486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16487 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16488 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16490 cat >>confdefs.h
<<_ACEOF
16491 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16497 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16498 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16499 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 cat >conftest.
$ac_ext <<_ACEOF
16505 cat confdefs.h
>>conftest.
$ac_ext
16506 cat >>conftest.
$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16513 static struct utmp ac_aggr;
16514 if (ac_aggr.ut_exit.ut_exit)
16520 rm -f conftest.
$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try
='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.
$ac_ext >&5
16537 cat >conftest.
$ac_ext <<_ACEOF
16540 cat confdefs.h
>>conftest.
$ac_ext
16541 cat >>conftest.
$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16548 static struct utmp ac_aggr;
16549 if (sizeof ac_aggr.ut_exit.ut_exit)
16555 rm -f conftest.
$ac_objext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16557 (eval $ac_compile) 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try
='test -s conftest.$ac_objext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.
$ac_ext >&5
16572 ac_cv_member_struct_utmp_ut_exit_ut_exit
=no
16574 rm -f conftest.
$ac_objext conftest.
$ac_ext
16576 rm -f conftest.
$ac_objext conftest.
$ac_ext
16578 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16579 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16580 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16582 cat >>confdefs.h
<<_ACEOF
16583 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16589 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16590 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16591 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 cat >conftest.
$ac_ext <<_ACEOF
16597 cat confdefs.h
>>conftest.
$ac_ext
16598 cat >>conftest.
$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16605 static struct utmpx ac_aggr;
16606 if (ac_aggr.ut_exit.e_exit)
16612 rm -f conftest.
$ac_objext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16614 (eval $ac_compile) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try
='test -s conftest.$ac_objext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16629 cat >conftest.
$ac_ext <<_ACEOF
16632 cat confdefs.h
>>conftest.
$ac_ext
16633 cat >>conftest.
$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16640 static struct utmpx ac_aggr;
16641 if (sizeof ac_aggr.ut_exit.e_exit)
16647 rm -f conftest.
$ac_objext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try
='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.
$ac_ext >&5
16664 ac_cv_member_struct_utmpx_ut_exit_e_exit
=no
16666 rm -f conftest.
$ac_objext conftest.
$ac_ext
16668 rm -f conftest.
$ac_objext conftest.
$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16671 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16672 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16674 cat >>confdefs.h
<<_ACEOF
16675 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16681 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16682 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16683 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.
$ac_ext <<_ACEOF
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16697 static struct utmp ac_aggr;
16698 if (ac_aggr.ut_exit.e_exit)
16704 rm -f conftest.
$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try
='test -s conftest.$ac_objext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.
$ac_ext >&5
16721 cat >conftest.
$ac_ext <<_ACEOF
16724 cat confdefs.h
>>conftest.
$ac_ext
16725 cat >>conftest.
$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16732 static struct utmp ac_aggr;
16733 if (sizeof ac_aggr.ut_exit.e_exit)
16739 rm -f conftest.
$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try
='test -s conftest.$ac_objext'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.
$ac_ext >&5
16756 ac_cv_member_struct_utmp_ut_exit_e_exit
=no
16758 rm -f conftest.
$ac_objext conftest.
$ac_ext
16760 rm -f conftest.
$ac_objext conftest.
$ac_ext
16762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16763 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16764 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16766 cat >>confdefs.h
<<_ACEOF
16767 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16774 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16775 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16776 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 cat >conftest.
$ac_ext <<_ACEOF
16782 cat confdefs.h
>>conftest.
$ac_ext
16783 cat >>conftest.
$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16790 static struct utmpx ac_aggr;
16791 if (ac_aggr.ut_exit.ut_termination)
16797 rm -f conftest.
$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16809 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.
$ac_ext >&5
16814 cat >conftest.
$ac_ext <<_ACEOF
16817 cat confdefs.h
>>conftest.
$ac_ext
16818 cat >>conftest.
$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16825 static struct utmpx ac_aggr;
16826 if (sizeof ac_aggr.ut_exit.ut_termination)
16832 rm -f conftest.
$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try
='test -s conftest.$ac_objext'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.
$ac_ext >&5
16849 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=no
16851 rm -f conftest.
$ac_objext conftest.
$ac_ext
16853 rm -f conftest.
$ac_objext conftest.
$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16856 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16857 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16859 cat >>confdefs.h
<<_ACEOF
16860 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16866 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16867 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16868 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.
$ac_ext <<_ACEOF
16874 cat confdefs.h
>>conftest.
$ac_ext
16875 cat >>conftest.
$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16882 static struct utmp ac_aggr;
16883 if (ac_aggr.ut_exit.ut_termination)
16889 rm -f conftest.
$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try
='test -s conftest.$ac_objext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.
$ac_ext >&5
16906 cat >conftest.
$ac_ext <<_ACEOF
16909 cat confdefs.h
>>conftest.
$ac_ext
16910 cat >>conftest.
$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16917 static struct utmp ac_aggr;
16918 if (sizeof ac_aggr.ut_exit.ut_termination)
16924 rm -f conftest.
$ac_objext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try
='test -s conftest.$ac_objext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.
$ac_ext >&5
16941 ac_cv_member_struct_utmp_ut_exit_ut_termination
=no
16943 rm -f conftest.
$ac_objext conftest.
$ac_ext
16945 rm -f conftest.
$ac_objext conftest.
$ac_ext
16947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16948 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16949 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16951 cat >>confdefs.h
<<_ACEOF
16952 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16958 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16959 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16960 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.
$ac_ext <<_ACEOF
16966 cat confdefs.h
>>conftest.
$ac_ext
16967 cat >>conftest.
$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16974 static struct utmpx ac_aggr;
16975 if (ac_aggr.ut_exit.e_termination)
16981 rm -f conftest.
$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try
='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.
$ac_ext >&5
16998 cat >conftest.
$ac_ext <<_ACEOF
17001 cat confdefs.h
>>conftest.
$ac_ext
17002 cat >>conftest.
$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17009 static struct utmpx ac_aggr;
17010 if (sizeof ac_aggr.ut_exit.e_termination)
17016 rm -f conftest.
$ac_objext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17018 (eval $ac_compile) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try
='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.
$ac_ext >&5
17033 ac_cv_member_struct_utmpx_ut_exit_e_termination
=no
17035 rm -f conftest.
$ac_objext conftest.
$ac_ext
17037 rm -f conftest.
$ac_objext conftest.
$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
17040 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
17041 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
17043 cat >>confdefs.h
<<_ACEOF
17044 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
17050 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
17051 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
17052 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 cat >conftest.
$ac_ext <<_ACEOF
17058 cat confdefs.h
>>conftest.
$ac_ext
17059 cat >>conftest.
$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17066 static struct utmp ac_aggr;
17067 if (ac_aggr.ut_exit.e_termination)
17073 rm -f conftest.
$ac_objext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075 (eval $ac_compile) 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try
='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.
$ac_ext >&5
17090 cat >conftest.
$ac_ext <<_ACEOF
17093 cat confdefs.h
>>conftest.
$ac_ext
17094 cat >>conftest.
$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17101 static struct utmp ac_aggr;
17102 if (sizeof ac_aggr.ut_exit.e_termination)
17108 rm -f conftest.
$ac_objext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110 (eval $ac_compile) 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try
='test -s conftest.$ac_objext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.
$ac_ext >&5
17125 ac_cv_member_struct_utmp_ut_exit_e_termination
=no
17127 rm -f conftest.
$ac_objext conftest.
$ac_ext
17129 rm -f conftest.
$ac_objext conftest.
$ac_ext
17131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17132 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17133 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17135 cat >>confdefs.h
<<_ACEOF
17136 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17142 LIBOBJS
="$LIBOBJS readutmp.$ac_objext"
17146 echo "$as_me:$LINENO: checking for long long" >&5
17147 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17148 if test "${ac_cv_type_long_long+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.
$ac_ext <<_ACEOF
17154 cat confdefs.h
>>conftest.
$ac_ext
17155 cat >>conftest.
$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 long long ll = 1; int i = 63;
17161 long long llmax = (long long) -1;
17162 return ll << i | ll >> i | llmax / ll | llmax % ll;
17167 rm -f conftest.
$ac_objext conftest
$ac_exeext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17169 (eval $ac_link) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try
='test -s conftest$ac_exeext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_type_long_long
=yes
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.
$ac_ext >&5
17184 ac_cv_type_long_long
=no
17186 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17189 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17190 if test $ac_cv_type_long_long = yes; then
17192 cat >>confdefs.h
<<\_ACEOF
17193 #define HAVE_LONG_LONG 1
17203 for ac_header
in sys
/sysmacros.h sys
/statvfs.h sys
/vfs.h inttypes.h
17205 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207 echo "$as_me:$LINENO: checking for $ac_header" >&5
17208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17215 # Is the header compilable?
17216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17218 cat >conftest.
$ac_ext <<_ACEOF
17221 cat confdefs.h
>>conftest.
$ac_ext
17222 cat >>conftest.
$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 $ac_includes_default
17225 #include <$ac_header>
17227 rm -f conftest.
$ac_objext
17228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try
='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_header_compiler
=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.
$ac_ext >&5
17244 ac_header_compiler
=no
17246 rm -f conftest.
$ac_objext conftest.
$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17248 echo "${ECHO_T}$ac_header_compiler" >&6
17250 # Is the header present?
17251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17253 cat >conftest.
$ac_ext <<_ACEOF
17256 cat confdefs.h
>>conftest.
$ac_ext
17257 cat >>conftest.
$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 #include <$ac_header>
17261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17264 grep -v '^ *+' conftest.er1
>conftest.err
17266 cat conftest.err
>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } >/dev
/null
; then
17269 if test -s conftest.err
; then
17270 ac_cpp_err
=$ac_c_preproc_warn_flag
17277 if test -z "$ac_cpp_err"; then
17278 ac_header_preproc
=yes
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.
$ac_ext >&5
17283 ac_header_preproc
=no
17285 rm -f conftest.err conftest.
$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17287 echo "${ECHO_T}$ac_header_preproc" >&6
17289 # So? What about this header?
17290 case $ac_header_compiler:$ac_header_preproc in
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17298 ## ------------------------------------ ##
17299 ## Report this to bug-autoconf@gnu.org. ##
17300 ## ------------------------------------ ##
17303 sed "s/^/$as_me: WARNING: /" >&2
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 ## ------------------------------------ ##
17315 ## Report this to bug-autoconf@gnu.org. ##
17316 ## ------------------------------------ ##
17319 sed "s/^/$as_me: WARNING: /" >&2
17322 echo "$as_me:$LINENO: checking for $ac_header" >&5
17323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 eval "$as_ac_Header=$ac_header_preproc"
17329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17334 cat >>confdefs.h
<<_ACEOF
17335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17344 for ac_header
in sys
/param.h sys
/mount.h
17346 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo "$as_me:$LINENO: checking for $ac_header" >&5
17349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17356 # Is the header compilable?
17357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17359 cat >conftest.
$ac_ext <<_ACEOF
17362 cat confdefs.h
>>conftest.
$ac_ext
17363 cat >>conftest.
$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 $ac_includes_default
17366 #include <$ac_header>
17368 rm -f conftest.
$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370 (eval $ac_compile) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try
='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_header_compiler
=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.
$ac_ext >&5
17385 ac_header_compiler
=no
17387 rm -f conftest.
$ac_objext conftest.
$ac_ext
17388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17389 echo "${ECHO_T}$ac_header_compiler" >&6
17391 # Is the header present?
17392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17394 cat >conftest.
$ac_ext <<_ACEOF
17397 cat confdefs.h
>>conftest.
$ac_ext
17398 cat >>conftest.
$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 #include <$ac_header>
17402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17405 grep -v '^ *+' conftest.er1
>conftest.err
17407 cat conftest.err
>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } >/dev
/null
; then
17410 if test -s conftest.err
; then
17411 ac_cpp_err
=$ac_c_preproc_warn_flag
17418 if test -z "$ac_cpp_err"; then
17419 ac_header_preproc
=yes
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.
$ac_ext >&5
17424 ac_header_preproc
=no
17426 rm -f conftest.err conftest.
$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17428 echo "${ECHO_T}$ac_header_preproc" >&6
17430 # So? What about this header?
17431 case $ac_header_compiler:$ac_header_preproc in
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17439 ## ------------------------------------ ##
17440 ## Report this to bug-autoconf@gnu.org. ##
17441 ## ------------------------------------ ##
17444 sed "s/^/$as_me: WARNING: /" >&2
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17455 ## ------------------------------------ ##
17456 ## Report this to bug-autoconf@gnu.org. ##
17457 ## ------------------------------------ ##
17460 sed "s/^/$as_me: WARNING: /" >&2
17463 echo "$as_me:$LINENO: checking for $ac_header" >&5
17464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 eval "$as_ac_Header=$ac_header_preproc"
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17475 cat >>confdefs.h
<<_ACEOF
17476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17484 for ac_func
in statvfs
17486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.
$ac_ext <<_ACEOF
17495 cat confdefs.h
>>conftest.
$ac_ext
17496 cat >>conftest.
$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* System header to define __stub macros and hopefully few prototypes,
17499 which can conflict with char $ac_func (); below.
17500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17501 <limits.h> exists even on freestanding compilers. */
17503 # include <limits.h>
17505 # include <assert.h>
17507 /* Override any gcc2 internal prototype to avoid an error. */
17512 /* We use char because int might match the return type of a gcc2
17513 builtin and then its argument prototype would still apply. */
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17521 char (*f) () = $ac_func;
17530 return f != $ac_func;
17535 rm -f conftest.
$ac_objext conftest
$ac_exeext
17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17537 (eval $ac_link) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try
='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.
$ac_ext >&5
17552 eval "$as_ac_var=no"
17554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17558 if test `eval echo '${'$as_ac_var'}'` = yes; then
17559 cat >>confdefs.h
<<_ACEOF
17560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 statxfs_includes
="\
17569 $ac_includes_default
17570 #if HAVE_SYS_STATVFS_H
17571 # include <sys/statvfs.h>
17574 # include <sys/vfs.h>
17576 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17577 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17578 # include <sys/param.h>
17579 # include <sys/mount.h>
17582 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17583 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17584 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.
$ac_ext <<_ACEOF
17590 cat confdefs.h
>>conftest.
$ac_ext
17591 cat >>conftest.
$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17598 static struct statfs ac_aggr;
17599 if (ac_aggr.f_basetype)
17605 rm -f conftest.
$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try
='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 ac_cv_member_struct_statfs_f_basetype
=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.
$ac_ext >&5
17622 cat >conftest.
$ac_ext <<_ACEOF
17625 cat confdefs.h
>>conftest.
$ac_ext
17626 cat >>conftest.
$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17633 static struct statfs ac_aggr;
17634 if (sizeof ac_aggr.f_basetype)
17640 rm -f conftest.
$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try
='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_member_struct_statfs_f_basetype
=yes
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.
$ac_ext >&5
17657 ac_cv_member_struct_statfs_f_basetype
=no
17659 rm -f conftest.
$ac_objext conftest.
$ac_ext
17661 rm -f conftest.
$ac_objext conftest.
$ac_ext
17663 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17664 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17665 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17667 cat >>confdefs.h
<<_ACEOF
17668 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17674 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17675 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17676 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.
$ac_ext <<_ACEOF
17682 cat confdefs.h
>>conftest.
$ac_ext
17683 cat >>conftest.
$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17690 static struct statvfs ac_aggr;
17691 if (ac_aggr.f_basetype)
17697 rm -f conftest.
$ac_objext
17698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17699 (eval $ac_compile) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try
='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_member_struct_statvfs_f_basetype
=yes
17711 echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.
$ac_ext >&5
17714 cat >conftest.
$ac_ext <<_ACEOF
17717 cat confdefs.h
>>conftest.
$ac_ext
17718 cat >>conftest.
$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17725 static struct statvfs ac_aggr;
17726 if (sizeof ac_aggr.f_basetype)
17732 rm -f conftest.
$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try
='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_member_struct_statvfs_f_basetype
=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.
$ac_ext >&5
17749 ac_cv_member_struct_statvfs_f_basetype
=no
17751 rm -f conftest.
$ac_objext conftest.
$ac_ext
17753 rm -f conftest.
$ac_objext conftest.
$ac_ext
17755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17756 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17757 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17759 cat >>confdefs.h
<<_ACEOF
17760 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17766 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17767 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17768 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 cat >conftest.
$ac_ext <<_ACEOF
17774 cat confdefs.h
>>conftest.
$ac_ext
17775 cat >>conftest.
$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17782 static struct statfs ac_aggr;
17783 if (ac_aggr.f_fstypename)
17789 rm -f conftest.
$ac_objext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17791 (eval $ac_compile) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try
='test -s conftest.$ac_objext'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; }; then
17801 ac_cv_member_struct_statfs_f_fstypename
=yes
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.
$ac_ext >&5
17806 cat >conftest.
$ac_ext <<_ACEOF
17809 cat confdefs.h
>>conftest.
$ac_ext
17810 cat >>conftest.
$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17817 static struct statfs ac_aggr;
17818 if (sizeof ac_aggr.f_fstypename)
17824 rm -f conftest.
$ac_objext
17825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17826 (eval $ac_compile) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try
='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_member_struct_statfs_f_fstypename
=yes
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.
$ac_ext >&5
17841 ac_cv_member_struct_statfs_f_fstypename
=no
17843 rm -f conftest.
$ac_objext conftest.
$ac_ext
17845 rm -f conftest.
$ac_objext conftest.
$ac_ext
17847 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17848 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17849 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17851 cat >>confdefs.h
<<_ACEOF
17852 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17858 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17859 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17860 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 cat >conftest.
$ac_ext <<_ACEOF
17866 cat confdefs.h
>>conftest.
$ac_ext
17867 cat >>conftest.
$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17874 static struct statfs ac_aggr;
17875 if (ac_aggr.f_type)
17881 rm -f conftest.
$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try
='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_member_struct_statfs_f_type
=yes
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.
$ac_ext >&5
17898 cat >conftest.
$ac_ext <<_ACEOF
17901 cat confdefs.h
>>conftest.
$ac_ext
17902 cat >>conftest.
$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17909 static struct statfs ac_aggr;
17910 if (sizeof ac_aggr.f_type)
17916 rm -f conftest.
$ac_objext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17918 (eval $ac_compile) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try
='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_member_struct_statfs_f_type
=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.
$ac_ext >&5
17933 ac_cv_member_struct_statfs_f_type
=no
17935 rm -f conftest.
$ac_objext conftest.
$ac_ext
17937 rm -f conftest.
$ac_objext conftest.
$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17940 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17941 if test $ac_cv_member_struct_statfs_f_type = yes; then
17943 cat >>confdefs.h
<<_ACEOF
17944 #define HAVE_STRUCT_STATFS_F_TYPE 1
17950 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17951 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17952 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 cat >conftest.
$ac_ext <<_ACEOF
17958 cat confdefs.h
>>conftest.
$ac_ext
17959 cat >>conftest.
$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17966 static struct statvfs ac_aggr;
17967 if (ac_aggr.f_type)
17973 rm -f conftest.
$ac_objext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17975 (eval $ac_compile) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try
='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_member_struct_statvfs_f_type
=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.
$ac_ext >&5
17990 cat >conftest.
$ac_ext <<_ACEOF
17993 cat confdefs.h
>>conftest.
$ac_ext
17994 cat >>conftest.
$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
18001 static struct statvfs ac_aggr;
18002 if (sizeof ac_aggr.f_type)
18008 rm -f conftest.
$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } &&
18014 { ac_try
='test -s conftest.$ac_objext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 ac_cv_member_struct_statvfs_f_type
=yes
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.
$ac_ext >&5
18025 ac_cv_member_struct_statvfs_f_type
=no
18027 rm -f conftest.
$ac_objext conftest.
$ac_ext
18029 rm -f conftest.
$ac_objext conftest.
$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
18032 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
18033 if test $ac_cv_member_struct_statvfs_f_type = yes; then
18035 cat >>confdefs.h
<<_ACEOF
18036 #define HAVE_STRUCT_STATVFS_F_TYPE 1
18042 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18043 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18044 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 cat >conftest.
$ac_ext <<_ACEOF
18050 cat confdefs.h
>>conftest.
$ac_ext
18051 cat >>conftest.
$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18058 static struct statfs ac_aggr;
18059 if (ac_aggr.f_fsid.__val)
18065 rm -f conftest.
$ac_objext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18067 (eval $ac_compile) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try
='test -s conftest.$ac_objext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_cv_member_struct_statfs_f_fsid___val
=yes
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.
$ac_ext >&5
18082 cat >conftest.
$ac_ext <<_ACEOF
18085 cat confdefs.h
>>conftest.
$ac_ext
18086 cat >>conftest.
$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18093 static struct statfs ac_aggr;
18094 if (sizeof ac_aggr.f_fsid.__val)
18100 rm -f conftest.
$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try
='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_member_struct_statfs_f_fsid___val
=yes
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.
$ac_ext >&5
18117 ac_cv_member_struct_statfs_f_fsid___val
=no
18119 rm -f conftest.
$ac_objext conftest.
$ac_ext
18121 rm -f conftest.
$ac_objext conftest.
$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18124 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18125 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18127 cat >>confdefs.h
<<_ACEOF
18128 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18134 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18135 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18136 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 cat >conftest.
$ac_ext <<_ACEOF
18142 cat confdefs.h
>>conftest.
$ac_ext
18143 cat >>conftest.
$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18150 static struct statvfs ac_aggr;
18151 if (ac_aggr.f_fsid.__val)
18157 rm -f conftest.
$ac_objext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try
='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_member_struct_statvfs_f_fsid___val
=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.
$ac_ext >&5
18174 cat >conftest.
$ac_ext <<_ACEOF
18177 cat confdefs.h
>>conftest.
$ac_ext
18178 cat >>conftest.
$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18185 static struct statvfs ac_aggr;
18186 if (sizeof ac_aggr.f_fsid.__val)
18192 rm -f conftest.
$ac_objext
18193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194 (eval $ac_compile) 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try
='test -s conftest.$ac_objext'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 ac_cv_member_struct_statvfs_f_fsid___val
=yes
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.
$ac_ext >&5
18209 ac_cv_member_struct_statvfs_f_fsid___val
=no
18211 rm -f conftest.
$ac_objext conftest.
$ac_ext
18213 rm -f conftest.
$ac_objext conftest.
$ac_ext
18215 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18216 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18217 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18219 cat >>confdefs.h
<<_ACEOF
18220 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18226 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18227 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18228 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 cat >conftest.
$ac_ext <<_ACEOF
18234 cat confdefs.h
>>conftest.
$ac_ext
18235 cat >>conftest.
$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18242 static struct statfs ac_aggr;
18243 if (ac_aggr.f_namemax)
18249 rm -f conftest.
$ac_objext
18250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18251 (eval $ac_compile) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try
='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_cv_member_struct_statfs_f_namemax
=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.
$ac_ext >&5
18266 cat >conftest.
$ac_ext <<_ACEOF
18269 cat confdefs.h
>>conftest.
$ac_ext
18270 cat >>conftest.
$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18277 static struct statfs ac_aggr;
18278 if (sizeof ac_aggr.f_namemax)
18284 rm -f conftest.
$ac_objext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try
='test -s conftest.$ac_objext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_member_struct_statfs_f_namemax
=yes
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.
$ac_ext >&5
18301 ac_cv_member_struct_statfs_f_namemax
=no
18303 rm -f conftest.
$ac_objext conftest.
$ac_ext
18305 rm -f conftest.
$ac_objext conftest.
$ac_ext
18307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18308 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18309 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18311 cat >>confdefs.h
<<_ACEOF
18312 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18318 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18319 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18320 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 cat >conftest.
$ac_ext <<_ACEOF
18326 cat confdefs.h
>>conftest.
$ac_ext
18327 cat >>conftest.
$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18334 static struct statvfs ac_aggr;
18335 if (ac_aggr.f_namemax)
18341 rm -f conftest.
$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try
='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_member_struct_statvfs_f_namemax
=yes
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.
$ac_ext >&5
18358 cat >conftest.
$ac_ext <<_ACEOF
18361 cat confdefs.h
>>conftest.
$ac_ext
18362 cat >>conftest.
$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18369 static struct statvfs ac_aggr;
18370 if (sizeof ac_aggr.f_namemax)
18376 rm -f conftest.
$ac_objext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18378 (eval $ac_compile) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try
='test -s conftest.$ac_objext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_member_struct_statvfs_f_namemax
=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.
$ac_ext >&5
18393 ac_cv_member_struct_statvfs_f_namemax
=no
18395 rm -f conftest.
$ac_objext conftest.
$ac_ext
18397 rm -f conftest.
$ac_objext conftest.
$ac_ext
18399 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18400 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18401 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18403 cat >>confdefs.h
<<_ACEOF
18404 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18410 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18411 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18412 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.
$ac_ext <<_ACEOF
18418 cat confdefs.h
>>conftest.
$ac_ext
18419 cat >>conftest.
$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18426 static struct statfs ac_aggr;
18427 if (ac_aggr.f_namelen)
18433 rm -f conftest.
$ac_objext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435 (eval $ac_compile) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try
='test -s conftest.$ac_objext'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_cv_member_struct_statfs_f_namelen
=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.
$ac_ext >&5
18450 cat >conftest.
$ac_ext <<_ACEOF
18453 cat confdefs.h
>>conftest.
$ac_ext
18454 cat >>conftest.
$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18461 static struct statfs ac_aggr;
18462 if (sizeof ac_aggr.f_namelen)
18468 rm -f conftest.
$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try
='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_member_struct_statfs_f_namelen
=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.
$ac_ext >&5
18485 ac_cv_member_struct_statfs_f_namelen
=no
18487 rm -f conftest.
$ac_objext conftest.
$ac_ext
18489 rm -f conftest.
$ac_objext conftest.
$ac_ext
18491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18492 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18493 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18495 cat >>confdefs.h
<<_ACEOF
18496 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18502 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18503 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18504 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 cat >conftest.
$ac_ext <<_ACEOF
18510 cat confdefs.h
>>conftest.
$ac_ext
18511 cat >>conftest.
$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18518 static struct statvfs ac_aggr;
18519 if (ac_aggr.f_namelen)
18525 rm -f conftest.
$ac_objext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18527 (eval $ac_compile) 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try
='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_member_struct_statvfs_f_namelen
=yes
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.
$ac_ext >&5
18542 cat >conftest.
$ac_ext <<_ACEOF
18545 cat confdefs.h
>>conftest.
$ac_ext
18546 cat >>conftest.
$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18553 static struct statvfs ac_aggr;
18554 if (sizeof ac_aggr.f_namelen)
18560 rm -f conftest.
$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try
='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_cv_member_struct_statvfs_f_namelen
=yes
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.
$ac_ext >&5
18577 ac_cv_member_struct_statvfs_f_namelen
=no
18579 rm -f conftest.
$ac_objext conftest.
$ac_ext
18581 rm -f conftest.
$ac_objext conftest.
$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18584 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18585 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18587 cat >>confdefs.h
<<_ACEOF
18588 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18595 echo "$as_me:$LINENO: checking for working strnlen" >&5
18596 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18597 if test "${ac_cv_func_strnlen_working+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 if test "$cross_compiling" = yes; then
18601 ac_cv_func_strnlen_working
=no
18603 cat >conftest.
$ac_ext <<_ACEOF
18606 cat confdefs.h
>>conftest.
$ac_ext
18607 cat >>conftest.
$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18615 #define S_LEN (sizeof S - 1)
18617 /* At least one implementation is buggy: that of AIX 4.3 would
18618 give strnlen (S, 1) == 3. */
18621 for (i = 0; i < S_LEN + 1; ++i)
18623 int expected = i <= S_LEN ? i : S_LEN;
18624 if (strnlen (S, i) != expected)
18633 rm -f conftest
$ac_exeext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_func_strnlen_working
=yes
18646 echo "$as_me: program exited with status $ac_status" >&5
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.
$ac_ext >&5
18650 ( exit $ac_status )
18651 ac_cv_func_strnlen_working
=no
18653 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18656 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18657 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18658 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18664 for ac_header
in memory.h
18666 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18668 echo "$as_me:$LINENO: checking for $ac_header" >&5
18669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18676 # Is the header compilable?
18677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18679 cat >conftest.
$ac_ext <<_ACEOF
18682 cat confdefs.h
>>conftest.
$ac_ext
18683 cat >>conftest.
$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 $ac_includes_default
18686 #include <$ac_header>
18688 rm -f conftest.
$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try
='test -s conftest.$ac_objext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_header_compiler
=yes
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.
$ac_ext >&5
18705 ac_header_compiler
=no
18707 rm -f conftest.
$ac_objext conftest.
$ac_ext
18708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18709 echo "${ECHO_T}$ac_header_compiler" >&6
18711 # Is the header present?
18712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18714 cat >conftest.
$ac_ext <<_ACEOF
18717 cat confdefs.h
>>conftest.
$ac_ext
18718 cat >>conftest.
$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <$ac_header>
18722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18725 grep -v '^ *+' conftest.er1
>conftest.err
18727 cat conftest.err
>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } >/dev
/null
; then
18730 if test -s conftest.err
; then
18731 ac_cpp_err
=$ac_c_preproc_warn_flag
18738 if test -z "$ac_cpp_err"; then
18739 ac_header_preproc
=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.
$ac_ext >&5
18744 ac_header_preproc
=no
18746 rm -f conftest.err conftest.
$ac_ext
18747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18748 echo "${ECHO_T}$ac_header_preproc" >&6
18750 # So? What about this header?
18751 case $ac_header_compiler:$ac_header_preproc in
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18759 ## ------------------------------------ ##
18760 ## Report this to bug-autoconf@gnu.org. ##
18761 ## ------------------------------------ ##
18764 sed "s/^/$as_me: WARNING: /" >&2
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18775 ## ------------------------------------ ##
18776 ## Report this to bug-autoconf@gnu.org. ##
18777 ## ------------------------------------ ##
18780 sed "s/^/$as_me: WARNING: /" >&2
18783 echo "$as_me:$LINENO: checking for $ac_header" >&5
18784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 eval "$as_ac_Header=$ac_header_preproc"
18790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18795 cat >>confdefs.h
<<_ACEOF
18796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18803 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18804 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18805 if test "${ac_cv_have_decl_memchr+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 cat >conftest.
$ac_ext <<_ACEOF
18811 cat confdefs.h
>>conftest.
$ac_ext
18812 cat >>conftest.
$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 $ac_includes_default
18819 char *p = (char *) memchr;
18826 rm -f conftest.
$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } &&
18832 { ac_try
='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_cv_have_decl_memchr
=yes
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.
$ac_ext >&5
18843 ac_cv_have_decl_memchr
=no
18845 rm -f conftest.
$ac_objext conftest.
$ac_ext
18847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18848 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18849 if test $ac_cv_have_decl_memchr = yes; then
18851 cat >>confdefs.h
<<_ACEOF
18852 #define HAVE_DECL_MEMCHR 1
18857 cat >>confdefs.h
<<_ACEOF
18858 #define HAVE_DECL_MEMCHR 0
18866 # This is necessary because automake-1.6.1 doesn't understand
18867 # that the above use of AC_FUNC_STRNLEN means we may have to use
18869 test $ac_cv_func_strnlen_working = yes \
18870 && LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18879 for ac_header
in fcntl.h sys
/time.h stdint.h unistd.h
18881 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18883 echo "$as_me:$LINENO: checking for $ac_header" >&5
18884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18891 # Is the header compilable?
18892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18894 cat >conftest.
$ac_ext <<_ACEOF
18897 cat confdefs.h
>>conftest.
$ac_ext
18898 cat >>conftest.
$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 $ac_includes_default
18901 #include <$ac_header>
18903 rm -f conftest.
$ac_objext
18904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18905 (eval $ac_compile) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try
='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 ac_header_compiler
=yes
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.
$ac_ext >&5
18920 ac_header_compiler
=no
18922 rm -f conftest.
$ac_objext conftest.
$ac_ext
18923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18924 echo "${ECHO_T}$ac_header_compiler" >&6
18926 # Is the header present?
18927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18929 cat >conftest.
$ac_ext <<_ACEOF
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <$ac_header>
18937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18940 grep -v '^ *+' conftest.er1
>conftest.err
18942 cat conftest.err
>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev
/null
; then
18945 if test -s conftest.err
; then
18946 ac_cpp_err
=$ac_c_preproc_warn_flag
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc
=yes
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.
$ac_ext >&5
18959 ac_header_preproc
=no
18961 rm -f conftest.err conftest.
$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc in
18968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18974 ## ------------------------------------ ##
18975 ## Report this to bug-autoconf@gnu.org. ##
18976 ## ------------------------------------ ##
18979 sed "s/^/$as_me: WARNING: /" >&2
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18990 ## ------------------------------------ ##
18991 ## Report this to bug-autoconf@gnu.org. ##
18992 ## ------------------------------------ ##
18995 sed "s/^/$as_me: WARNING: /" >&2
18998 echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 eval "$as_ac_Header=$ac_header_preproc"
19005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19010 cat >>confdefs.h
<<_ACEOF
19011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19020 for ac_func
in __secure_getenv gettimeofday
19022 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19023 echo "$as_me:$LINENO: checking for $ac_func" >&5
19024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19025 if eval "test \"\${$as_ac_var+set}\" = set"; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 cat >conftest.
$ac_ext <<_ACEOF
19031 cat confdefs.h
>>conftest.
$ac_ext
19032 cat >>conftest.
$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char $ac_func (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19039 # include <limits.h>
19041 # include <assert.h>
19043 /* Override any gcc2 internal prototype to avoid an error. */
19048 /* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19051 /* The GNU C library defines this for functions which it implements
19052 to always fail with ENOSYS. Some functions are actually named
19053 something starting with __ and the normal name is an alias. */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19057 char (*f) () = $ac_func;
19066 return f != $ac_func;
19071 rm -f conftest.
$ac_objext conftest
$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try
='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 eval "$as_ac_var=yes"
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.
$ac_ext >&5
19088 eval "$as_ac_var=no"
19090 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19094 if test `eval echo '${'$as_ac_var'}'` = yes; then
19095 cat >>confdefs.h
<<_ACEOF
19096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19102 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19103 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19104 if test "${ac_cv_have_decl_getenv+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 cat >conftest.
$ac_ext <<_ACEOF
19110 cat confdefs.h
>>conftest.
$ac_ext
19111 cat >>conftest.
$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19113 $ac_includes_default
19118 char *p = (char *) getenv;
19125 rm -f conftest.
$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try
='test -s conftest.$ac_objext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_have_decl_getenv
=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.
$ac_ext >&5
19142 ac_cv_have_decl_getenv
=no
19144 rm -f conftest.
$ac_objext conftest.
$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19147 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19148 if test $ac_cv_have_decl_getenv = yes; then
19150 cat >>confdefs.h
<<_ACEOF
19151 #define HAVE_DECL_GETENV 1
19156 cat >>confdefs.h
<<_ACEOF
19157 #define HAVE_DECL_GETENV 0
19166 echo "$as_me:$LINENO: checking for function prototypes" >&5
19167 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19168 if test "$ac_cv_prog_cc_stdc" != no
; then
19169 echo "$as_me:$LINENO: result: yes" >&5
19170 echo "${ECHO_T}yes" >&6
19172 cat >>confdefs.h
<<\_ACEOF
19173 #define PROTOTYPES 1
19177 cat >>confdefs.h
<<\_ACEOF
19178 #define __PROTOTYPES 1
19182 echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6
19188 for ac_header
in stdlib.h unistd.h
19190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19192 echo "$as_me:$LINENO: checking for $ac_header" >&5
19193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200 # Is the header compilable?
19201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19203 cat >conftest.
$ac_ext <<_ACEOF
19206 cat confdefs.h
>>conftest.
$ac_ext
19207 cat >>conftest.
$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 $ac_includes_default
19210 #include <$ac_header>
19212 rm -f conftest.
$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214 (eval $ac_compile) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try
='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_header_compiler
=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 ac_header_compiler
=no
19231 rm -f conftest.
$ac_objext conftest.
$ac_ext
19232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19233 echo "${ECHO_T}$ac_header_compiler" >&6
19235 # Is the header present?
19236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19238 cat >conftest.
$ac_ext <<_ACEOF
19241 cat confdefs.h
>>conftest.
$ac_ext
19242 cat >>conftest.
$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <$ac_header>
19246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19249 grep -v '^ *+' conftest.er1
>conftest.err
19251 cat conftest.err
>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } >/dev
/null
; then
19254 if test -s conftest.err
; then
19255 ac_cpp_err
=$ac_c_preproc_warn_flag
19262 if test -z "$ac_cpp_err"; then
19263 ac_header_preproc
=yes
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.
$ac_ext >&5
19268 ac_header_preproc
=no
19270 rm -f conftest.err conftest.
$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19272 echo "${ECHO_T}$ac_header_preproc" >&6
19274 # So? What about this header?
19275 case $ac_header_compiler:$ac_header_preproc in
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19283 ## ------------------------------------ ##
19284 ## Report this to bug-autoconf@gnu.org. ##
19285 ## ------------------------------------ ##
19288 sed "s/^/$as_me: WARNING: /" >&2
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 ## ------------------------------------ ##
19300 ## Report this to bug-autoconf@gnu.org. ##
19301 ## ------------------------------------ ##
19304 sed "s/^/$as_me: WARNING: /" >&2
19307 echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 eval "$as_ac_Header=$ac_header_preproc"
19314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19319 cat >>confdefs.h
<<_ACEOF
19320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19327 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19328 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19329 if test "${ac_cv_func_getcwd_null+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 if test "$cross_compiling" = yes; then
19333 ac_cv_func_getcwd_null
=no
19335 cat >conftest.
$ac_ext <<_ACEOF
19338 cat confdefs.h
>>conftest.
$ac_ext
19339 cat >>conftest.
$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 # ifdef HAVE_STDLIB_H
19343 # include <stdlib.h>
19345 # ifdef HAVE_UNISTD_H
19346 # include <unistd.h>
19354 if (chdir ("/") != 0)
19358 char *f = getcwd (NULL, 0);
19359 exit (! (f && f[0] == '/' && !f[1]));
19363 rm -f conftest
$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_func_getcwd_null
=yes
19376 echo "$as_me: program exited with status $ac_status" >&5
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.
$ac_ext >&5
19380 ( exit $ac_status )
19381 ac_cv_func_getcwd_null
=no
19383 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19387 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19388 if test $ac_cv_func_getcwd_null = yes; then
19390 cat >>confdefs.h
<<\_ACEOF
19391 #define HAVE_GETCWD_NULL 1
19401 for ac_header
in limits.h stdlib.h sys
/param.h unistd.h
19403 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19405 echo "$as_me:$LINENO: checking for $ac_header" >&5
19406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19413 # Is the header compilable?
19414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19416 cat >conftest.
$ac_ext <<_ACEOF
19419 cat confdefs.h
>>conftest.
$ac_ext
19420 cat >>conftest.
$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 $ac_includes_default
19423 #include <$ac_header>
19425 rm -f conftest.
$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try
='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler
=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.
$ac_ext >&5
19442 ac_header_compiler
=no
19444 rm -f conftest.
$ac_objext conftest.
$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19451 cat >conftest.
$ac_ext <<_ACEOF
19454 cat confdefs.h
>>conftest.
$ac_ext
19455 cat >>conftest.
$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <$ac_header>
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1
>conftest.err
19464 cat conftest.err
>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev
/null
; then
19467 if test -s conftest.err
; then
19468 ac_cpp_err
=$ac_c_preproc_warn_flag
19475 if test -z "$ac_cpp_err"; then
19476 ac_header_preproc
=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.
$ac_ext >&5
19481 ac_header_preproc
=no
19483 rm -f conftest.err conftest.
$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19487 # So? What about this header?
19488 case $ac_header_compiler:$ac_header_preproc in
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19496 ## ------------------------------------ ##
19497 ## Report this to bug-autoconf@gnu.org. ##
19498 ## ------------------------------------ ##
19501 sed "s/^/$as_me: WARNING: /" >&2
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19512 ## ------------------------------------ ##
19513 ## Report this to bug-autoconf@gnu.org. ##
19514 ## ------------------------------------ ##
19517 sed "s/^/$as_me: WARNING: /" >&2
19520 echo "$as_me:$LINENO: checking for $ac_header" >&5
19521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 eval "$as_ac_Header=$ac_header_preproc"
19527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19532 cat >>confdefs.h
<<_ACEOF
19533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19541 for ac_func
in getcwd
19543 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19544 echo "$as_me:$LINENO: checking for $ac_func" >&5
19545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19546 if eval "test \"\${$as_ac_var+set}\" = set"; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 cat >conftest.
$ac_ext <<_ACEOF
19552 cat confdefs.h
>>conftest.
$ac_ext
19553 cat >>conftest.
$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* System header to define __stub macros and hopefully few prototypes,
19556 which can conflict with char $ac_func (); below.
19557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19558 <limits.h> exists even on freestanding compilers. */
19560 # include <limits.h>
19562 # include <assert.h>
19564 /* Override any gcc2 internal prototype to avoid an error. */
19569 /* We use char because int might match the return type of a gcc2
19570 builtin and then its argument prototype would still apply. */
19572 /* The GNU C library defines this for functions which it implements
19573 to always fail with ENOSYS. Some functions are actually named
19574 something starting with __ and the normal name is an alias. */
19575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19578 char (*f) () = $ac_func;
19587 return f != $ac_func;
19592 rm -f conftest.
$ac_objext conftest
$ac_exeext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try
='test -s conftest$ac_exeext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 eval "$as_ac_var=yes"
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.
$ac_ext >&5
19609 eval "$as_ac_var=no"
19611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19615 if test `eval echo '${'$as_ac_var'}'` = yes; then
19616 cat >>confdefs.h
<<_ACEOF
19617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19631 for ac_header
in limits.h stdlib.h sys
/types.h unistd.h
19633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635 echo "$as_me:$LINENO: checking for $ac_header" >&5
19636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19643 # Is the header compilable?
19644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19646 cat >conftest.
$ac_ext <<_ACEOF
19649 cat confdefs.h
>>conftest.
$ac_ext
19650 cat >>conftest.
$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19655 rm -f conftest.
$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try
='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_header_compiler
=yes
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.
$ac_ext >&5
19672 ac_header_compiler
=no
19674 rm -f conftest.
$ac_objext conftest.
$ac_ext
19675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19676 echo "${ECHO_T}$ac_header_compiler" >&6
19678 # Is the header present?
19679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19681 cat >conftest.
$ac_ext <<_ACEOF
19684 cat confdefs.h
>>conftest.
$ac_ext
19685 cat >>conftest.
$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <$ac_header>
19689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19692 grep -v '^ *+' conftest.er1
>conftest.err
19694 cat conftest.err
>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } >/dev
/null
; then
19697 if test -s conftest.err
; then
19698 ac_cpp_err
=$ac_c_preproc_warn_flag
19705 if test -z "$ac_cpp_err"; then
19706 ac_header_preproc
=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.
$ac_ext >&5
19711 ac_header_preproc
=no
19713 rm -f conftest.err conftest.
$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715 echo "${ECHO_T}$ac_header_preproc" >&6
19717 # So? What about this header?
19718 case $ac_header_compiler:$ac_header_preproc in
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19726 ## ------------------------------------ ##
19727 ## Report this to bug-autoconf@gnu.org. ##
19728 ## ------------------------------------ ##
19731 sed "s/^/$as_me: WARNING: /" >&2
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742 ## ------------------------------------ ##
19743 ## Report this to bug-autoconf@gnu.org. ##
19744 ## ------------------------------------ ##
19747 sed "s/^/$as_me: WARNING: /" >&2
19750 echo "$as_me:$LINENO: checking for $ac_header" >&5
19751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19755 eval "$as_ac_Header=$ac_header_preproc"
19757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19762 cat >>confdefs.h
<<_ACEOF
19763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19790 # called by mkstemp
19803 ac_header_dirent
=no
19804 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19805 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19806 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19807 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 cat >conftest.
$ac_ext <<_ACEOF
19814 cat confdefs.h
>>conftest.
$ac_ext
19815 cat >>conftest.
$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 #include <sys/types.h>
19829 rm -f conftest.
$ac_objext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19831 (eval $ac_compile) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try
='test -s conftest.$ac_objext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 eval "$as_ac_Header=yes"
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.
$ac_ext >&5
19846 eval "$as_ac_Header=no"
19848 rm -f conftest.
$ac_objext conftest.
$ac_ext
19850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19853 cat >>confdefs.h
<<_ACEOF
19854 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19857 ac_header_dirent
=$ac_hdr; break
19861 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19862 if test $ac_header_dirent = dirent.h
; then
19864 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19866 if test "${ac_cv_search_opendir+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 ac_func_search_save_LIBS
=$LIBS
19871 ac_cv_search_opendir
=no
19872 cat >conftest.
$ac_ext <<_ACEOF
19875 cat confdefs.h
>>conftest.
$ac_ext
19876 cat >>conftest.
$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19879 /* Override any gcc2 internal prototype to avoid an error. */
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19894 rm -f conftest.
$ac_objext conftest
$ac_exeext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19896 (eval $ac_link) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try
='test -s conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_search_opendir
='none required'
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.
$ac_ext >&5
19912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19913 if test "$ac_cv_search_opendir" = no
; then
19914 for ac_lib
in dir
; do
19915 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19916 cat >conftest.
$ac_ext <<_ACEOF
19919 cat confdefs.h
>>conftest.
$ac_ext
19920 cat >>conftest.
$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19923 /* Override any gcc2 internal prototype to avoid an error. */
19927 /* We use char because int might match the return type of a gcc2
19928 builtin and then its argument prototype would still apply. */
19938 rm -f conftest.
$ac_objext conftest
$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try
='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_search_opendir
="-l$ac_lib"; break
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.
$ac_ext >&5
19956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19959 LIBS
=$ac_func_search_save_LIBS
19962 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19963 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19965 if test "$ac_cv_search_opendir" = no
; then :
19968 if test "$ac_cv_search_opendir" = 'none required'; then :
19971 LIBS
="$ac_cv_search_opendir $LIBS"
19978 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19980 if test "${ac_cv_search_opendir+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 ac_func_search_save_LIBS
=$LIBS
19985 ac_cv_search_opendir
=no
19986 cat >conftest.
$ac_ext <<_ACEOF
19989 cat confdefs.h
>>conftest.
$ac_ext
19990 cat >>conftest.
$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any gcc2 internal prototype to avoid an error. */
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
20008 rm -f conftest.
$ac_objext conftest
$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
20014 { ac_try
='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_search_opendir
='none required'
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.
$ac_ext >&5
20026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20027 if test "$ac_cv_search_opendir" = no
; then
20028 for ac_lib
in x
; do
20029 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20030 cat >conftest.
$ac_ext <<_ACEOF
20033 cat confdefs.h
>>conftest.
$ac_ext
20034 cat >>conftest.
$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20037 /* Override any gcc2 internal prototype to avoid an error. */
20041 /* We use char because int might match the return type of a gcc2
20042 builtin and then its argument prototype would still apply. */
20052 rm -f conftest.
$ac_objext conftest
$ac_exeext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054 (eval $ac_link) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try
='test -s conftest$ac_exeext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_cv_search_opendir
="-l$ac_lib"; break
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.
$ac_ext >&5
20070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20073 LIBS
=$ac_func_search_save_LIBS
20076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20079 if test "$ac_cv_search_opendir" = no
; then :
20082 if test "$ac_cv_search_opendir" = 'none required'; then :
20085 LIBS
="$ac_cv_search_opendir $LIBS"
20094 # include <dirent.h>
20095 #else /* not HAVE_DIRENT_H */
20096 # define dirent direct
20097 # if HAVE_SYS_NDIR_H
20098 # include <sys/ndir.h>
20099 # endif /* HAVE_SYS_NDIR_H */
20100 # if HAVE_SYS_DIR_H
20101 # include <sys/dir.h>
20102 # endif /* HAVE_SYS_DIR_H */
20105 # endif /* HAVE_NDIR_H */
20106 #endif /* HAVE_DIRENT_H */
20109 for ac_func
in dirfd
20111 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 echo "$as_me:$LINENO: checking for $ac_func" >&5
20113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20114 if eval "test \"\${$as_ac_var+set}\" = set"; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 cat >conftest.
$ac_ext <<_ACEOF
20120 cat confdefs.h
>>conftest.
$ac_ext
20121 cat >>conftest.
$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20128 # include <limits.h>
20130 # include <assert.h>
20132 /* Override any gcc2 internal prototype to avoid an error. */
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20140 /* The GNU C library defines this for functions which it implements
20141 to always fail with ENOSYS. Some functions are actually named
20142 something starting with __ and the normal name is an alias. */
20143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20146 char (*f) () = $ac_func;
20155 return f != $ac_func;
20160 rm -f conftest.
$ac_objext conftest
$ac_exeext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try
='test -s conftest$ac_exeext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 eval "$as_ac_var=yes"
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.
$ac_ext >&5
20177 eval "$as_ac_var=no"
20179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20183 if test `eval echo '${'$as_ac_var'}'` = yes; then
20184 cat >>confdefs.h
<<_ACEOF
20185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20191 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20192 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20193 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 cat >conftest.
$ac_ext <<_ACEOF
20199 cat confdefs.h
>>conftest.
$ac_ext
20200 cat >>conftest.
$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20208 char *p = (char *) dirfd;
20215 rm -f conftest.
$ac_objext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217 (eval $ac_compile) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try
='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_have_decl_dirfd
=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.
$ac_ext >&5
20232 ac_cv_have_decl_dirfd
=no
20234 rm -f conftest.
$ac_objext conftest.
$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20237 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20238 if test $ac_cv_have_decl_dirfd = yes; then
20240 cat >>confdefs.h
<<_ACEOF
20241 #define HAVE_DECL_DIRFD 1
20246 cat >>confdefs.h
<<_ACEOF
20247 #define HAVE_DECL_DIRFD 0
20255 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20256 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20257 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 cat >conftest.
$ac_ext <<_ACEOF
20263 cat confdefs.h
>>conftest.
$ac_ext
20264 cat >>conftest.
$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20268 dirent_header_defines_dirfd
20271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20272 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then
20273 jm_cv_func_dirfd_macro
=yes
20275 jm_cv_func_dirfd_macro
=no
20280 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20281 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20283 # Use the replacement only if we have no function, macro,
20284 # or declaration with that name.
20285 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20288 for ac_func
in dirfd
20290 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20293 if eval "test \"\${$as_ac_var+set}\" = set"; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 cat >conftest.
$ac_ext <<_ACEOF
20299 cat confdefs.h
>>conftest.
$ac_ext
20300 cat >>conftest.
$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char $ac_func (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20307 # include <limits.h>
20309 # include <assert.h>
20311 /* Override any gcc2 internal prototype to avoid an error. */
20316 /* We use char because int might match the return type of a gcc2
20317 builtin and then its argument prototype would still apply. */
20319 /* The GNU C library defines this for functions which it implements
20320 to always fail with ENOSYS. Some functions are actually named
20321 something starting with __ and the normal name is an alias. */
20322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20325 char (*f) () = $ac_func;
20334 return f != $ac_func;
20339 rm -f conftest.
$ac_objext conftest
$ac_exeext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20341 (eval $ac_link) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try
='test -s conftest$ac_exeext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 eval "$as_ac_var=yes"
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.
$ac_ext >&5
20356 eval "$as_ac_var=no"
20358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20362 if test `eval echo '${'$as_ac_var'}'` = yes; then
20363 cat >>confdefs.h
<<_ACEOF
20364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20368 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20373 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20374 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20375 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 dirfd_save_CFLAGS
=$CFLAGS
20380 for ac_expr
in d_fd dd_fd
; do
20382 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20383 cat >conftest.
$ac_ext <<_ACEOF
20386 cat confdefs.h
>>conftest.
$ac_ext
20387 cat >>conftest.
$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20394 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20399 rm -f conftest.
$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try
='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.
$ac_ext >&5
20418 rm -f conftest.
$ac_objext conftest.
$ac_ext
20419 CFLAGS
=$dirfd_save_CFLAGS
20420 test "$dir_fd_found" = yes && break
20422 test "$dir_fd_found" = yes || ac_expr
=-1
20424 ac_cv_sys_dir_fd_member_name
=$ac_expr
20428 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20429 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20430 if test $ac_cv_have_decl_dirfd = no
; then
20432 cat >>confdefs.h
<<_ACEOF
20433 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20442 for ac_header
in sys
/acl.h
20444 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo "$as_me:$LINENO: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20454 # Is the header compilable?
20455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20457 cat >conftest.
$ac_ext <<_ACEOF
20460 cat confdefs.h
>>conftest.
$ac_ext
20461 cat >>conftest.
$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 $ac_includes_default
20464 #include <$ac_header>
20466 rm -f conftest.
$ac_objext
20467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468 (eval $ac_compile) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try
='test -s conftest.$ac_objext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_header_compiler
=yes
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.
$ac_ext >&5
20483 ac_header_compiler
=no
20485 rm -f conftest.
$ac_objext conftest.
$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6
20489 # Is the header present?
20490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20492 cat >conftest.
$ac_ext <<_ACEOF
20495 cat confdefs.h
>>conftest.
$ac_ext
20496 cat >>conftest.
$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <$ac_header>
20500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1
>conftest.err
20505 cat conftest.err
>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } >/dev
/null
; then
20508 if test -s conftest.err
; then
20509 ac_cpp_err
=$ac_c_preproc_warn_flag
20516 if test -z "$ac_cpp_err"; then
20517 ac_header_preproc
=yes
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.
$ac_ext >&5
20522 ac_header_preproc
=no
20524 rm -f conftest.err conftest.
$ac_ext
20525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc in
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20537 ## ------------------------------------ ##
20538 ## Report this to bug-autoconf@gnu.org. ##
20539 ## ------------------------------------ ##
20542 sed "s/^/$as_me: WARNING: /" >&2
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20553 ## ------------------------------------ ##
20554 ## Report this to bug-autoconf@gnu.org. ##
20555 ## ------------------------------------ ##
20558 sed "s/^/$as_me: WARNING: /" >&2
20561 echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 eval "$as_ac_Header=$ac_header_preproc"
20568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20573 cat >>confdefs.h
<<_ACEOF
20574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20584 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20585 echo "$as_me:$LINENO: checking for $ac_func" >&5
20586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20587 if eval "test \"\${$as_ac_var+set}\" = set"; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 cat >conftest.
$ac_ext <<_ACEOF
20593 cat confdefs.h
>>conftest.
$ac_ext
20594 cat >>conftest.
$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 /* System header to define __stub macros and hopefully few prototypes,
20597 which can conflict with char $ac_func (); below.
20598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20599 <limits.h> exists even on freestanding compilers. */
20601 # include <limits.h>
20603 # include <assert.h>
20605 /* Override any gcc2 internal prototype to avoid an error. */
20610 /* We use char because int might match the return type of a gcc2
20611 builtin and then its argument prototype would still apply. */
20613 /* The GNU C library defines this for functions which it implements
20614 to always fail with ENOSYS. Some functions are actually named
20615 something starting with __ and the normal name is an alias. */
20616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20619 char (*f) () = $ac_func;
20628 return f != $ac_func;
20633 rm -f conftest.
$ac_objext conftest
$ac_exeext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20635 (eval $ac_link) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
20639 { ac_try
='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20645 eval "$as_ac_var=yes"
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.
$ac_ext >&5
20650 eval "$as_ac_var=no"
20652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20656 if test `eval echo '${'$as_ac_var'}'` = yes; then
20657 cat >>confdefs.h
<<_ACEOF
20658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20664 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20665 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 rm -f conftest.sym conftest.
file
20670 echo >conftest.
file
20671 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
20672 if test "$cross_compiling" = yes; then
20673 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20675 cat >conftest.
$ac_ext <<_ACEOF
20678 cat confdefs.h
>>conftest.
$ac_ext
20679 cat >>conftest.
$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 $ac_includes_default
20686 /* Linux will dereference the symlink and fail.
20687 That is better in the sense that it means we will not
20688 have to compile and use the lstat wrapper. */
20689 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20694 rm -f conftest
$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
20707 echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.
$ac_ext >&5
20711 ( exit $ac_status )
20712 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20714 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20717 # If the `ln -s' command failed, then we probably don't even
20718 # have an lstat function.
20719 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20721 rm -f conftest.sym conftest.
file
20724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20729 cat >>confdefs.h
<<_ACEOF
20730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
20735 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
20740 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20741 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20742 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 if test "$cross_compiling" = yes; then
20746 jm_cv_func_lstat_empty_string_bug
=yes
20748 cat >conftest.
$ac_ext <<_ACEOF
20751 cat confdefs.h
>>conftest.
$ac_ext
20752 cat >>conftest.
$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 # include <sys/types.h>
20756 # include <sys/stat.h>
20762 exit (lstat ("", &sbuf) ? 1 : 0);
20766 rm -f conftest
$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 jm_cv_func_lstat_empty_string_bug
=yes
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.
$ac_ext >&5
20783 ( exit $ac_status )
20784 jm_cv_func_lstat_empty_string_bug
=no
20786 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20790 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20791 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20792 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20793 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
20795 cat >>confdefs.h
<<\_ACEOF
20796 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20806 for ac_header
in sys
/param.h
20808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20818 # Is the header compilable?
20819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20821 cat >conftest.
$ac_ext <<_ACEOF
20824 cat confdefs.h
>>conftest.
$ac_ext
20825 cat >>conftest.
$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <$ac_header>
20830 rm -f conftest.
$ac_objext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20832 (eval $ac_compile) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try
='test -s conftest.$ac_objext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_header_compiler
=yes
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.
$ac_ext >&5
20847 ac_header_compiler
=no
20849 rm -f conftest.
$ac_objext conftest.
$ac_ext
20850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20851 echo "${ECHO_T}$ac_header_compiler" >&6
20853 # Is the header present?
20854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20856 cat >conftest.
$ac_ext <<_ACEOF
20859 cat confdefs.h
>>conftest.
$ac_ext
20860 cat >>conftest.
$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 #include <$ac_header>
20864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20867 grep -v '^ *+' conftest.er1
>conftest.err
20869 cat conftest.err
>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } >/dev
/null
; then
20872 if test -s conftest.err
; then
20873 ac_cpp_err
=$ac_c_preproc_warn_flag
20880 if test -z "$ac_cpp_err"; then
20881 ac_header_preproc
=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.
$ac_ext >&5
20886 ac_header_preproc
=no
20888 rm -f conftest.err conftest.
$ac_ext
20889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20890 echo "${ECHO_T}$ac_header_preproc" >&6
20892 # So? What about this header?
20893 case $ac_header_compiler:$ac_header_preproc in
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901 ## ------------------------------------ ##
20902 ## Report this to bug-autoconf@gnu.org. ##
20903 ## ------------------------------------ ##
20906 sed "s/^/$as_me: WARNING: /" >&2
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20917 ## ------------------------------------ ##
20918 ## Report this to bug-autoconf@gnu.org. ##
20919 ## ------------------------------------ ##
20922 sed "s/^/$as_me: WARNING: /" >&2
20925 echo "$as_me:$LINENO: checking for $ac_header" >&5
20926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 eval "$as_ac_Header=$ac_header_preproc"
20932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20937 cat >>confdefs.h
<<_ACEOF
20938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20945 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20946 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20947 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 cat >conftest.
$ac_ext <<_ACEOF
20953 cat confdefs.h
>>conftest.
$ac_ext
20954 cat >>conftest.
$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20961 char *p = (char *) stpcpy;
20968 rm -f conftest.
$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try
='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_have_decl_stpcpy
=yes
20982 echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.
$ac_ext >&5
20985 ac_cv_have_decl_stpcpy
=no
20987 rm -f conftest.
$ac_objext conftest.
$ac_ext
20989 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20990 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20991 if test $ac_cv_have_decl_stpcpy = yes; then
20993 cat >>confdefs.h
<<_ACEOF
20994 #define HAVE_DECL_STPCPY 1
20999 cat >>confdefs.h
<<_ACEOF
21000 #define HAVE_DECL_STPCPY 0
21008 # In the event that we have to use the replacement ftw.c,
21009 # see if we'll also need the replacement tsearch.c.
21010 echo "$as_me:$LINENO: checking for tdestroy" >&5
21011 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21012 if test "${ac_cv_func_tdestroy+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 cat >conftest.
$ac_ext <<_ACEOF
21018 cat confdefs.h
>>conftest.
$ac_ext
21019 cat >>conftest.
$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char tdestroy (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21026 # include <limits.h>
21028 # include <assert.h>
21030 /* Override any gcc2 internal prototype to avoid an error. */
21035 /* We use char because int might match the return type of a gcc2
21036 builtin and then its argument prototype would still apply. */
21038 /* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21044 char (*f) () = tdestroy;
21053 return f != tdestroy;
21058 rm -f conftest.
$ac_objext conftest
$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try
='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 ac_cv_func_tdestroy
=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.
$ac_ext >&5
21075 ac_cv_func_tdestroy
=no
21077 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21079 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21080 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21081 if test $ac_cv_func_tdestroy = yes; then
21088 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21089 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21090 if test "${ac_cv_func_ftw_working+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 # The following test would fail prior to glibc-2.3.2, because `depth'
21095 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21096 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21097 mkdir
-p conftest.dir
/a
/b
/c
21098 if test "$cross_compiling" = yes; then
21099 ac_cv_func_ftw_working
=no
21101 cat >conftest.
$ac_ext <<_ACEOF
21104 cat confdefs.h
>>conftest.
$ac_ext
21105 cat >>conftest.
$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21108 #include <string.h>
21109 #include <stdlib.h>
21112 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21113 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21114 static char **p = _f;
21118 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21120 if (strcmp (file, *p++) != 0)
21129 /* Require these symbols, too. */
21133 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21134 exit ((err == 0 && depth == 4) ? 0 : 1);
21138 rm -f conftest
$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_func_ftw_working
=yes
21151 echo "$as_me: program exited with status $ac_status" >&5
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.
$ac_ext >&5
21155 ( exit $ac_status )
21156 ac_cv_func_ftw_working
=no
21158 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21161 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21162 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21163 rm -rf conftest.dir
21164 if test $ac_cv_func_ftw_working = no
; then
21165 LIBOBJS
="$LIBOBJS ftw.$ac_objext"
21166 ac_config_links
="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21168 # Add tsearch.o IFF we have to use the replacement ftw.c.
21169 if test -n "$need_tdestroy"; then
21170 LIBOBJS
="$LIBOBJS tsearch.$ac_objext"
21171 # Link search.h to search_.h if we use the replacement tsearch.c.
21172 ac_config_links
="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21180 for ac_func
in lchown
21182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21183 echo "$as_me:$LINENO: checking for $ac_func" >&5
21184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21185 if eval "test \"\${$as_ac_var+set}\" = set"; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 cat >conftest.
$ac_ext <<_ACEOF
21191 cat confdefs.h
>>conftest.
$ac_ext
21192 cat >>conftest.
$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 /* System header to define __stub macros and hopefully few prototypes,
21195 which can conflict with char $ac_func (); below.
21196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21197 <limits.h> exists even on freestanding compilers. */
21199 # include <limits.h>
21201 # include <assert.h>
21203 /* Override any gcc2 internal prototype to avoid an error. */
21208 /* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21217 char (*f) () = $ac_func;
21226 return f != $ac_func;
21231 rm -f conftest.
$ac_objext conftest
$ac_exeext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233 (eval $ac_link) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try
='test -s conftest$ac_exeext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 eval "$as_ac_var=yes"
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.
$ac_ext >&5
21248 eval "$as_ac_var=no"
21250 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21254 if test `eval echo '${'$as_ac_var'}'` = yes; then
21255 cat >>confdefs.h
<<_ACEOF
21256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21260 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21266 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21267 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21268 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 # Arrange for deletion of the temporary directory this test creates.
21273 ac_clean_files
="$ac_clean_files confdir2"
21274 mkdir confdir2
; : > confdir
2/file
21275 if test "$cross_compiling" = yes; then
21276 fetish_cv_func_rmdir_errno_not_empty
=ENOTEMPTY
21279 cat >conftest.
$ac_ext <<_ACEOF
21282 cat confdefs.h
>>conftest.
$ac_ext
21283 cat >>conftest.
$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21295 rmdir ("confdir2");
21297 s = fopen ("confdir2/errno", "w");
21298 fprintf (s, "%d\n", val);
21303 rm -f conftest
$ac_exeext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21305 (eval $ac_link) 2>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 fetish_cv_func_rmdir_errno_not_empty
=`cat confdir2/errno`
21316 echo "$as_me: program exited with status $ac_status" >&5
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.
$ac_ext >&5
21320 ( exit $ac_status )
21321 fetish_cv_func_rmdir_errno_not_empty
='configure error in rmdir-errno.m4'
21323 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21328 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21329 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21332 cat >>confdefs.h
<<_ACEOF
21333 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21337 test -z "$ac_cv_header_unistd_h" \
21339 for ac_header
in unistd.h
21341 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21343 echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21351 # Is the header compilable?
21352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21354 cat >conftest.
$ac_ext <<_ACEOF
21357 cat confdefs.h
>>conftest.
$ac_ext
21358 cat >>conftest.
$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21361 #include <$ac_header>
21363 rm -f conftest.
$ac_objext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try
='test -s conftest.$ac_objext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_header_compiler
=yes
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.
$ac_ext >&5
21380 ac_header_compiler
=no
21382 rm -f conftest.
$ac_objext conftest.
$ac_ext
21383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21384 echo "${ECHO_T}$ac_header_compiler" >&6
21386 # Is the header present?
21387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21389 cat >conftest.
$ac_ext <<_ACEOF
21392 cat confdefs.h
>>conftest.
$ac_ext
21393 cat >>conftest.
$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 #include <$ac_header>
21397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21398 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21400 grep -v '^ *+' conftest.er1
>conftest.err
21402 cat conftest.err
>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } >/dev
/null
; then
21405 if test -s conftest.err
; then
21406 ac_cpp_err
=$ac_c_preproc_warn_flag
21413 if test -z "$ac_cpp_err"; then
21414 ac_header_preproc
=yes
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.
$ac_ext >&5
21419 ac_header_preproc
=no
21421 rm -f conftest.err conftest.
$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21423 echo "${ECHO_T}$ac_header_preproc" >&6
21425 # So? What about this header?
21426 case $ac_header_compiler:$ac_header_preproc in
21428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21434 ## ------------------------------------ ##
21435 ## Report this to bug-autoconf@gnu.org. ##
21436 ## ------------------------------------ ##
21439 sed "s/^/$as_me: WARNING: /" >&2
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21450 ## ------------------------------------ ##
21451 ## Report this to bug-autoconf@gnu.org. ##
21452 ## ------------------------------------ ##
21455 sed "s/^/$as_me: WARNING: /" >&2
21458 echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 eval "$as_ac_Header=$ac_header_preproc"
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h
<<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21478 echo "$as_me:$LINENO: checking for working chown" >&5
21479 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21480 if test "${jm_cv_func_working_chown+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21483 if test "$cross_compiling" = yes; then
21484 jm_cv_func_working_chown
=no
21486 cat >conftest.
$ac_ext <<_ACEOF
21489 cat confdefs.h
>>conftest.
$ac_ext
21490 cat >>conftest.
$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 # include <sys/types.h>
21494 # include <sys/stat.h>
21495 # include <fcntl.h>
21496 # ifdef HAVE_UNISTD_H
21497 # include <unistd.h>
21503 char *f = "conftest.chown";
21504 struct stat before, after;
21506 if (creat (f, 0600) < 0)
21508 if (stat (f, &before) < 0)
21510 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21512 if (stat (f, &after) < 0)
21514 exit ((before.st_uid == after.st_uid
21515 && before.st_gid == after.st_gid) ? 0 : 1);
21519 rm -f conftest
$ac_exeext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21521 (eval $ac_link) 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 jm_cv_func_working_chown
=yes
21532 echo "$as_me: program exited with status $ac_status" >&5
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.
$ac_ext >&5
21536 ( exit $ac_status )
21537 jm_cv_func_working_chown
=no
21539 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21543 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21544 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21545 if test $jm_cv_func_working_chown = no
; then
21546 LIBOBJS
="$LIBOBJS chown.$ac_objext"
21548 cat >>confdefs.h
<<\_ACEOF
21549 #define chown rpl_chown
21556 for ac_header
in sys
/time.h unistd.h
21558 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21560 echo "$as_me:$LINENO: checking for $ac_header" >&5
21561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21568 # Is the header compilable?
21569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21571 cat >conftest.
$ac_ext <<_ACEOF
21574 cat confdefs.h
>>conftest.
$ac_ext
21575 cat >>conftest.
$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <$ac_header>
21580 rm -f conftest.
$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try
='test -s conftest.$ac_objext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_header_compiler
=yes
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.
$ac_ext >&5
21597 ac_header_compiler
=no
21599 rm -f conftest.
$ac_objext conftest.
$ac_ext
21600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21601 echo "${ECHO_T}$ac_header_compiler" >&6
21603 # Is the header present?
21604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21606 cat >conftest.
$ac_ext <<_ACEOF
21609 cat confdefs.h
>>conftest.
$ac_ext
21610 cat >>conftest.
$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 #include <$ac_header>
21614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21617 grep -v '^ *+' conftest.er1
>conftest.err
21619 cat conftest.err
>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } >/dev
/null
; then
21622 if test -s conftest.err
; then
21623 ac_cpp_err
=$ac_c_preproc_warn_flag
21630 if test -z "$ac_cpp_err"; then
21631 ac_header_preproc
=yes
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.
$ac_ext >&5
21636 ac_header_preproc
=no
21638 rm -f conftest.err conftest.
$ac_ext
21639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21640 echo "${ECHO_T}$ac_header_preproc" >&6
21642 # So? What about this header?
21643 case $ac_header_compiler:$ac_header_preproc in
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21651 ## ------------------------------------ ##
21652 ## Report this to bug-autoconf@gnu.org. ##
21653 ## ------------------------------------ ##
21656 sed "s/^/$as_me: WARNING: /" >&2
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21667 ## ------------------------------------ ##
21668 ## Report this to bug-autoconf@gnu.org. ##
21669 ## ------------------------------------ ##
21672 sed "s/^/$as_me: WARNING: /" >&2
21675 echo "$as_me:$LINENO: checking for $ac_header" >&5
21676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 eval "$as_ac_Header=$ac_header_preproc"
21682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21687 cat >>confdefs.h
<<_ACEOF
21688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21696 for ac_func
in alarm
21698 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21699 echo "$as_me:$LINENO: checking for $ac_func" >&5
21700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21701 if eval "test \"\${$as_ac_var+set}\" = set"; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 cat >conftest.
$ac_ext <<_ACEOF
21707 cat confdefs.h
>>conftest.
$ac_ext
21708 cat >>conftest.
$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 /* System header to define __stub macros and hopefully few prototypes,
21711 which can conflict with char $ac_func (); below.
21712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21713 <limits.h> exists even on freestanding compilers. */
21715 # include <limits.h>
21717 # include <assert.h>
21719 /* Override any gcc2 internal prototype to avoid an error. */
21724 /* We use char because int might match the return type of a gcc2
21725 builtin and then its argument prototype would still apply. */
21727 /* The GNU C library defines this for functions which it implements
21728 to always fail with ENOSYS. Some functions are actually named
21729 something starting with __ and the normal name is an alias. */
21730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21733 char (*f) () = $ac_func;
21742 return f != $ac_func;
21747 rm -f conftest.
$ac_objext conftest
$ac_exeext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749 (eval $ac_link) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try
='test -s conftest$ac_exeext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 eval "$as_ac_var=yes"
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.
$ac_ext >&5
21764 eval "$as_ac_var=no"
21766 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21770 if test `eval echo '${'$as_ac_var'}'` = yes; then
21771 cat >>confdefs.h
<<_ACEOF
21772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21778 echo "$as_me:$LINENO: checking for working mktime" >&5
21779 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21780 if test "${ac_cv_func_working_mktime+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 if test "$cross_compiling" = yes; then
21784 ac_cv_func_working_mktime
=no
21786 cat >conftest.
$ac_ext <<_ACEOF
21789 cat confdefs.h
>>conftest.
$ac_ext
21790 cat >>conftest.
$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 /* Test program from Paul Eggert and Tony Leneis. */
21793 #if TIME_WITH_SYS_TIME
21794 # include <sys/time.h>
21797 # if HAVE_SYS_TIME_H
21798 # include <sys/time.h>
21805 # include <unistd.h>
21809 # define alarm(X) /* empty */
21812 /* Work around redefinition to rpl_putenv by other config tests. */
21815 static time_t time_t_max;
21817 /* Values we'll use to set the TZ environment variable. */
21818 static const char *const tz_strings[] = {
21819 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21820 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21822 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21824 /* Fail if mktime fails to convert a date in the spring-forward gap.
21825 Based on a problem report from Andreas Jaeger. */
21827 spring_forward_gap ()
21829 /* glibc (up to about 1998-10-07) failed this test. */
21832 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21833 instead of "TZ=America/Vancouver" in order to detect the bug even
21834 on systems that don't support the Olson extension, or don't have the
21835 full zoneinfo tables installed. */
21836 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21845 if (mktime (&tm) == (time_t)-1)
21854 if ((lt = localtime (&now)) && mktime (lt) != now)
21856 now = time_t_max - now;
21857 if ((lt = localtime (&now)) && mktime (lt) != now)
21864 /* Based on code from Ariel Faigon. */
21874 if (tm.tm_mon != 2 || tm.tm_mday != 31)
21884 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21885 now = mktime (&tm);
21886 if (now != (time_t) -1)
21888 struct tm *lt = localtime (&now);
21890 && lt->tm_year == tm.tm_year
21891 && lt->tm_mon == tm.tm_mon
21892 && lt->tm_mday == tm.tm_mday
21893 && lt->tm_hour == tm.tm_hour
21894 && lt->tm_min == tm.tm_min
21895 && lt->tm_sec == tm.tm_sec
21896 && lt->tm_yday == tm.tm_yday
21897 && lt->tm_wday == tm.tm_wday
21898 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21899 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21910 /* This test makes some buggy mktime implementations loop.
21911 Give up after 60 seconds; a mktime slower than that
21912 isn't worth using anyway. */
21915 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21918 delta = time_t_max / 997; /* a suitable prime number */
21919 for (i = 0; i < N_STRINGS; i++)
21922 putenv (tz_strings[i]);
21924 for (t = 0; t <= time_t_max - delta; t += delta)
21926 mktime_test ((time_t) 60 * 60);
21927 mktime_test ((time_t) 60 * 60 * 24);
21929 for (j = 1; 0 < j; j *= 2)
21931 bigtime_test (j - 1);
21934 spring_forward_gap ();
21938 rm -f conftest
$ac_exeext
21939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21940 (eval $ac_link) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_cv_func_working_mktime
=yes
21951 echo "$as_me: program exited with status $ac_status" >&5
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.
$ac_ext >&5
21955 ( exit $ac_status )
21956 ac_cv_func_working_mktime
=no
21958 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21962 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21963 if test $ac_cv_func_working_mktime = no
; then
21964 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
21969 for ac_func
in localtime_r
21971 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21972 echo "$as_me:$LINENO: checking for $ac_func" >&5
21973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21974 if eval "test \"\${$as_ac_var+set}\" = set"; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21977 cat >conftest.
$ac_ext <<_ACEOF
21980 cat confdefs.h
>>conftest.
$ac_ext
21981 cat >>conftest.
$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 /* System header to define __stub macros and hopefully few prototypes,
21984 which can conflict with char $ac_func (); below.
21985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21986 <limits.h> exists even on freestanding compilers. */
21988 # include <limits.h>
21990 # 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>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
22026 { ac_try
='test -s conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 eval "$as_ac_var=yes"
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.
$ac_ext >&5
22037 eval "$as_ac_var=no"
22039 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22043 if test `eval echo '${'$as_ac_var'}'` = yes; then
22044 cat >>confdefs.h
<<_ACEOF
22045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22052 if test $ac_cv_func_working_mktime = no
; then
22054 cat >>confdefs.h
<<\_ACEOF
22055 #define mktime rpl_mktime
22062 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22063 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22064 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 if test "$cross_compiling" = yes; then
22068 jm_cv_func_stat_empty_string_bug
=yes
22070 cat >conftest.
$ac_ext <<_ACEOF
22073 cat confdefs.h
>>conftest.
$ac_ext
22074 cat >>conftest.
$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 # include <sys/types.h>
22078 # include <sys/stat.h>
22084 exit (stat ("", &sbuf) ? 1 : 0);
22088 rm -f conftest
$ac_exeext
22089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22090 (eval $ac_link) 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 jm_cv_func_stat_empty_string_bug
=yes
22101 echo "$as_me: program exited with status $ac_status" >&5
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.
$ac_ext >&5
22105 ( exit $ac_status )
22106 jm_cv_func_stat_empty_string_bug
=no
22108 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22112 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22113 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22114 if test $jm_cv_func_stat_empty_string_bug = yes; then
22115 LIBOBJS
="$LIBOBJS stat.$ac_objext"
22117 cat >>confdefs.h
<<\_ACEOF
22118 #define HAVE_STAT_EMPTY_STRING_BUG 1
22124 for ac_header
in stdlib.h
22126 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22128 echo "$as_me:$LINENO: checking for $ac_header" >&5
22129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22131 echo $ECHO_N "(cached) $ECHO_C" >&6
22133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22136 # Is the header compilable?
22137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22139 cat >conftest.
$ac_ext <<_ACEOF
22142 cat confdefs.h
>>conftest.
$ac_ext
22143 cat >>conftest.
$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 $ac_includes_default
22146 #include <$ac_header>
22148 rm -f conftest.
$ac_objext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22150 (eval $ac_compile) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try
='test -s conftest.$ac_objext'
22155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156 (eval $ac_try) 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 ac_header_compiler
=yes
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.
$ac_ext >&5
22165 ac_header_compiler
=no
22167 rm -f conftest.
$ac_objext conftest.
$ac_ext
22168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22169 echo "${ECHO_T}$ac_header_compiler" >&6
22171 # Is the header present?
22172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22174 cat >conftest.
$ac_ext <<_ACEOF
22177 cat confdefs.h
>>conftest.
$ac_ext
22178 cat >>conftest.
$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <$ac_header>
22182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22185 grep -v '^ *+' conftest.er1
>conftest.err
22187 cat conftest.err
>&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } >/dev
/null
; then
22190 if test -s conftest.err
; then
22191 ac_cpp_err
=$ac_c_preproc_warn_flag
22198 if test -z "$ac_cpp_err"; then
22199 ac_header_preproc
=yes
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.
$ac_ext >&5
22204 ac_header_preproc
=no
22206 rm -f conftest.err conftest.
$ac_ext
22207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22208 echo "${ECHO_T}$ac_header_preproc" >&6
22210 # So? What about this header?
22211 case $ac_header_compiler:$ac_header_preproc in
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22219 ## ------------------------------------ ##
22220 ## Report this to bug-autoconf@gnu.org. ##
22221 ## ------------------------------------ ##
22224 sed "s/^/$as_me: WARNING: /" >&2
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22235 ## ------------------------------------ ##
22236 ## Report this to bug-autoconf@gnu.org. ##
22237 ## ------------------------------------ ##
22240 sed "s/^/$as_me: WARNING: /" >&2
22243 echo "$as_me:$LINENO: checking for $ac_header" >&5
22244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 eval "$as_ac_Header=$ac_header_preproc"
22250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22255 cat >>confdefs.h
<<_ACEOF
22256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22263 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22264 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22265 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 if test "$cross_compiling" = yes; then
22269 ac_cv_func_realloc_0_nonnull
=no
22271 cat >conftest.
$ac_ext <<_ACEOF
22274 cat confdefs.h
>>conftest.
$ac_ext
22275 cat >>conftest.
$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #if STDC_HEADERS || HAVE_STDLIB_H
22278 # include <stdlib.h>
22286 exit (realloc (0, 0) ? 0 : 1);
22291 rm -f conftest
$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293 (eval $ac_link) 2>&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 ac_cv_func_realloc_0_nonnull
=yes
22304 echo "$as_me: program exited with status $ac_status" >&5
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.
$ac_ext >&5
22308 ( exit $ac_status )
22309 ac_cv_func_realloc_0_nonnull
=no
22311 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22314 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22315 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22316 if test $ac_cv_func_realloc_0_nonnull = yes; then
22318 cat >>confdefs.h
<<\_ACEOF
22319 #define HAVE_REALLOC 1
22323 cat >>confdefs.h
<<\_ACEOF
22324 #define HAVE_REALLOC 0
22327 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
22329 cat >>confdefs.h
<<\_ACEOF
22330 #define realloc rpl_realloc
22338 for ac_header
in stdlib.h
22340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22342 echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22350 # Is the header compilable?
22351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22353 cat >conftest.
$ac_ext <<_ACEOF
22356 cat confdefs.h
>>conftest.
$ac_ext
22357 cat >>conftest.
$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #include <$ac_header>
22362 rm -f conftest.
$ac_objext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22364 (eval $ac_compile) 2>&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
22368 { ac_try
='test -s conftest.$ac_objext'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; }; then
22374 ac_header_compiler
=yes
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.
$ac_ext >&5
22379 ac_header_compiler
=no
22381 rm -f conftest.
$ac_objext conftest.
$ac_ext
22382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22383 echo "${ECHO_T}$ac_header_compiler" >&6
22385 # Is the header present?
22386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22388 cat >conftest.
$ac_ext <<_ACEOF
22391 cat confdefs.h
>>conftest.
$ac_ext
22392 cat >>conftest.
$ac_ext <<_ACEOF
22393 /* end confdefs.h. */
22394 #include <$ac_header>
22396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22397 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22399 grep -v '^ *+' conftest.er1
>conftest.err
22401 cat conftest.err
>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } >/dev
/null
; then
22404 if test -s conftest.err
; then
22405 ac_cpp_err
=$ac_c_preproc_warn_flag
22412 if test -z "$ac_cpp_err"; then
22413 ac_header_preproc
=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.
$ac_ext >&5
22418 ac_header_preproc
=no
22420 rm -f conftest.err conftest.
$ac_ext
22421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22422 echo "${ECHO_T}$ac_header_preproc" >&6
22424 # So? What about this header?
22425 case $ac_header_compiler:$ac_header_preproc in
22427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22433 ## ------------------------------------ ##
22434 ## Report this to bug-autoconf@gnu.org. ##
22435 ## ------------------------------------ ##
22438 sed "s/^/$as_me: WARNING: /" >&2
22441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22449 ## ------------------------------------ ##
22450 ## Report this to bug-autoconf@gnu.org. ##
22451 ## ------------------------------------ ##
22454 sed "s/^/$as_me: WARNING: /" >&2
22457 echo "$as_me:$LINENO: checking for $ac_header" >&5
22458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 eval "$as_ac_Header=$ac_header_preproc"
22464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22469 cat >>confdefs.h
<<_ACEOF
22470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22477 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22478 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22479 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22482 if test "$cross_compiling" = yes; then
22483 ac_cv_func_malloc_0_nonnull
=no
22485 cat >conftest.
$ac_ext <<_ACEOF
22488 cat confdefs.h
>>conftest.
$ac_ext
22489 cat >>conftest.
$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 #if STDC_HEADERS || HAVE_STDLIB_H
22492 # include <stdlib.h>
22500 exit (malloc (0) ? 0 : 1);
22505 rm -f conftest
$ac_exeext
22506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22507 (eval $ac_link) 2>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_func_malloc_0_nonnull
=yes
22518 echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.
$ac_ext >&5
22522 ( exit $ac_status )
22523 ac_cv_func_malloc_0_nonnull
=no
22525 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22528 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22529 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22530 if test $ac_cv_func_malloc_0_nonnull = yes; then
22532 cat >>confdefs.h
<<\_ACEOF
22533 #define HAVE_MALLOC 1
22537 cat >>confdefs.h
<<\_ACEOF
22538 #define HAVE_MALLOC 0
22541 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
22543 cat >>confdefs.h
<<\_ACEOF
22544 #define malloc rpl_malloc
22552 nanosleep_save_libs
=$LIBS
22554 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22555 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22557 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22558 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22559 if test "${ac_cv_search_nanosleep+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 ac_func_search_save_LIBS
=$LIBS
22564 ac_cv_search_nanosleep
=no
22565 cat >conftest.
$ac_ext <<_ACEOF
22568 cat confdefs.h
>>conftest.
$ac_ext
22569 cat >>conftest.
$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 /* Override any gcc2 internal prototype to avoid an error. */
22576 /* We use char because int might match the return type of a gcc2
22577 builtin and then its argument prototype would still apply. */
22587 rm -f conftest.
$ac_objext conftest
$ac_exeext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589 (eval $ac_link) 2>&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } &&
22593 { ac_try
='test -s conftest$ac_exeext'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_cv_search_nanosleep
='none required'
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.
$ac_ext >&5
22605 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22606 if test "$ac_cv_search_nanosleep" = no
; then
22607 for ac_lib
in rt posix4
; do
22608 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22609 cat >conftest.
$ac_ext <<_ACEOF
22612 cat confdefs.h
>>conftest.
$ac_ext
22613 cat >>conftest.
$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22616 /* 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. */
22631 rm -f conftest.
$ac_objext conftest
$ac_exeext
22632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22633 (eval $ac_link) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
22637 { ac_try
='test -s conftest$ac_exeext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 ac_cv_search_nanosleep
="-l$ac_lib"; break
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.
$ac_ext >&5
22649 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22652 LIBS
=$ac_func_search_save_LIBS
22655 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22656 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22658 if test "$ac_cv_search_nanosleep" = no
; then :
22661 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22664 LIBS
="$ac_cv_search_nanosleep $LIBS"
22665 LIB_NANOSLEEP
=$ac_cv_search_nanosleep
22671 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22672 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22673 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 if test "$cross_compiling" = yes; then
22679 jm_cv_func_nanosleep_works
=no
22681 cat >conftest.
$ac_ext <<_ACEOF
22684 cat confdefs.h
>>conftest.
$ac_ext
22685 cat >>conftest.
$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22688 # if TIME_WITH_SYS_TIME
22689 # include <sys/time.h>
22692 # if HAVE_SYS_TIME_H
22693 # include <sys/time.h>
22702 struct timespec ts_sleep, ts_remaining;
22703 ts_sleep.tv_sec = 0;
22704 ts_sleep.tv_nsec = 1;
22705 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22709 rm -f conftest
$ac_exeext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711 (eval $ac_link) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 jm_cv_func_nanosleep_works
=yes
22722 echo "$as_me: program exited with status $ac_status" >&5
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.
$ac_ext >&5
22726 ( exit $ac_status )
22727 jm_cv_func_nanosleep_works
=no
22729 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22733 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22734 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22735 if test $jm_cv_func_nanosleep_works = no
; then
22736 LIBOBJS
="$LIBOBJS nanosleep.$ac_objext"
22738 cat >>confdefs.h
<<\_ACEOF
22739 #define nanosleep rpl_nanosleep
22744 LIBS
=$nanosleep_save_libs
22746 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22747 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22748 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22751 cat >conftest.
$ac_ext <<_ACEOF
22754 cat confdefs.h
>>conftest.
$ac_ext
22755 cat >>conftest.
$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 $ac_includes_default
22761 #ifndef clearerr_unlocked
22762 char *p = (char *) clearerr_unlocked;
22769 rm -f conftest.
$ac_objext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22771 (eval $ac_compile) 2>&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
22775 { ac_try
='test -s conftest.$ac_objext'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 ac_cv_have_decl_clearerr_unlocked
=yes
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.
$ac_ext >&5
22786 ac_cv_have_decl_clearerr_unlocked
=no
22788 rm -f conftest.
$ac_objext conftest.
$ac_ext
22790 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22791 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22792 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22794 cat >>confdefs.h
<<_ACEOF
22795 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22800 cat >>confdefs.h
<<_ACEOF
22801 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22806 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22807 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22808 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 cat >conftest.
$ac_ext <<_ACEOF
22814 cat confdefs.h
>>conftest.
$ac_ext
22815 cat >>conftest.
$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 $ac_includes_default
22821 #ifndef feof_unlocked
22822 char *p = (char *) feof_unlocked;
22829 rm -f conftest.
$ac_objext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22831 (eval $ac_compile) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } &&
22835 { ac_try
='test -s conftest.$ac_objext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_have_decl_feof_unlocked
=yes
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.
$ac_ext >&5
22846 ac_cv_have_decl_feof_unlocked
=no
22848 rm -f conftest.
$ac_objext conftest.
$ac_ext
22850 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22851 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22852 if test $ac_cv_have_decl_feof_unlocked = yes; then
22854 cat >>confdefs.h
<<_ACEOF
22855 #define HAVE_DECL_FEOF_UNLOCKED 1
22860 cat >>confdefs.h
<<_ACEOF
22861 #define HAVE_DECL_FEOF_UNLOCKED 0
22866 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22867 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22868 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22871 cat >conftest.
$ac_ext <<_ACEOF
22874 cat confdefs.h
>>conftest.
$ac_ext
22875 cat >>conftest.
$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 $ac_includes_default
22881 #ifndef ferror_unlocked
22882 char *p = (char *) ferror_unlocked;
22889 rm -f conftest.
$ac_objext
22890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22891 (eval $ac_compile) 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } &&
22895 { ac_try
='test -s conftest.$ac_objext'
22896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897 (eval $ac_try) 2>&5
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; }; then
22901 ac_cv_have_decl_ferror_unlocked
=yes
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.
$ac_ext >&5
22906 ac_cv_have_decl_ferror_unlocked
=no
22908 rm -f conftest.
$ac_objext conftest.
$ac_ext
22910 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22911 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22912 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22914 cat >>confdefs.h
<<_ACEOF
22915 #define HAVE_DECL_FERROR_UNLOCKED 1
22920 cat >>confdefs.h
<<_ACEOF
22921 #define HAVE_DECL_FERROR_UNLOCKED 0
22926 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22927 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22928 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 cat >conftest.
$ac_ext <<_ACEOF
22934 cat confdefs.h
>>conftest.
$ac_ext
22935 cat >>conftest.
$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 $ac_includes_default
22941 #ifndef fflush_unlocked
22942 char *p = (char *) fflush_unlocked;
22949 rm -f conftest.
$ac_objext
22950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22951 (eval $ac_compile) 2>&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } &&
22955 { ac_try
='test -s conftest.$ac_objext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_have_decl_fflush_unlocked
=yes
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.
$ac_ext >&5
22966 ac_cv_have_decl_fflush_unlocked
=no
22968 rm -f conftest.
$ac_objext conftest.
$ac_ext
22970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
22971 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
22972 if test $ac_cv_have_decl_fflush_unlocked = yes; then
22974 cat >>confdefs.h
<<_ACEOF
22975 #define HAVE_DECL_FFLUSH_UNLOCKED 1
22980 cat >>confdefs.h
<<_ACEOF
22981 #define HAVE_DECL_FFLUSH_UNLOCKED 0
22986 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22987 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
22988 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 cat >conftest.
$ac_ext <<_ACEOF
22994 cat confdefs.h
>>conftest.
$ac_ext
22995 cat >>conftest.
$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 $ac_includes_default
23001 #ifndef fgets_unlocked
23002 char *p = (char *) fgets_unlocked;
23009 rm -f conftest.
$ac_objext
23010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23011 (eval $ac_compile) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try
='test -s conftest.$ac_objext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_have_decl_fgets_unlocked
=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.
$ac_ext >&5
23026 ac_cv_have_decl_fgets_unlocked
=no
23028 rm -f conftest.
$ac_objext conftest.
$ac_ext
23030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23031 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23032 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23034 cat >>confdefs.h
<<_ACEOF
23035 #define HAVE_DECL_FGETS_UNLOCKED 1
23040 cat >>confdefs.h
<<_ACEOF
23041 #define HAVE_DECL_FGETS_UNLOCKED 0
23046 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23047 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23048 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 cat >conftest.
$ac_ext <<_ACEOF
23054 cat confdefs.h
>>conftest.
$ac_ext
23055 cat >>conftest.
$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 $ac_includes_default
23061 #ifndef fputc_unlocked
23062 char *p = (char *) fputc_unlocked;
23069 rm -f conftest.
$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071 (eval $ac_compile) 2>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try
='test -s conftest.$ac_objext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_have_decl_fputc_unlocked
=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.
$ac_ext >&5
23086 ac_cv_have_decl_fputc_unlocked
=no
23088 rm -f conftest.
$ac_objext conftest.
$ac_ext
23090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23091 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23092 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23094 cat >>confdefs.h
<<_ACEOF
23095 #define HAVE_DECL_FPUTC_UNLOCKED 1
23100 cat >>confdefs.h
<<_ACEOF
23101 #define HAVE_DECL_FPUTC_UNLOCKED 0
23106 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23107 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23108 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 cat >conftest.
$ac_ext <<_ACEOF
23114 cat confdefs.h
>>conftest.
$ac_ext
23115 cat >>conftest.
$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 $ac_includes_default
23121 #ifndef fputs_unlocked
23122 char *p = (char *) fputs_unlocked;
23129 rm -f conftest.
$ac_objext
23130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23131 (eval $ac_compile) 2>&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } &&
23135 { ac_try
='test -s conftest.$ac_objext'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ac_cv_have_decl_fputs_unlocked
=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.
$ac_ext >&5
23146 ac_cv_have_decl_fputs_unlocked
=no
23148 rm -f conftest.
$ac_objext conftest.
$ac_ext
23150 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23151 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23152 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23154 cat >>confdefs.h
<<_ACEOF
23155 #define HAVE_DECL_FPUTS_UNLOCKED 1
23160 cat >>confdefs.h
<<_ACEOF
23161 #define HAVE_DECL_FPUTS_UNLOCKED 0
23166 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23167 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23168 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 cat >conftest.
$ac_ext <<_ACEOF
23174 cat confdefs.h
>>conftest.
$ac_ext
23175 cat >>conftest.
$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177 $ac_includes_default
23181 #ifndef fread_unlocked
23182 char *p = (char *) fread_unlocked;
23189 rm -f conftest.
$ac_objext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23191 (eval $ac_compile) 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } &&
23195 { ac_try
='test -s conftest.$ac_objext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_have_decl_fread_unlocked
=yes
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.
$ac_ext >&5
23206 ac_cv_have_decl_fread_unlocked
=no
23208 rm -f conftest.
$ac_objext conftest.
$ac_ext
23210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23211 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23212 if test $ac_cv_have_decl_fread_unlocked = yes; then
23214 cat >>confdefs.h
<<_ACEOF
23215 #define HAVE_DECL_FREAD_UNLOCKED 1
23220 cat >>confdefs.h
<<_ACEOF
23221 #define HAVE_DECL_FREAD_UNLOCKED 0
23226 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23227 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23228 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 cat >conftest.
$ac_ext <<_ACEOF
23234 cat confdefs.h
>>conftest.
$ac_ext
23235 cat >>conftest.
$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 $ac_includes_default
23241 #ifndef fwrite_unlocked
23242 char *p = (char *) fwrite_unlocked;
23249 rm -f conftest.
$ac_objext
23250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23251 (eval $ac_compile) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } &&
23255 { ac_try
='test -s conftest.$ac_objext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_have_decl_fwrite_unlocked
=yes
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.
$ac_ext >&5
23266 ac_cv_have_decl_fwrite_unlocked
=no
23268 rm -f conftest.
$ac_objext conftest.
$ac_ext
23270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23271 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23272 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23274 cat >>confdefs.h
<<_ACEOF
23275 #define HAVE_DECL_FWRITE_UNLOCKED 1
23280 cat >>confdefs.h
<<_ACEOF
23281 #define HAVE_DECL_FWRITE_UNLOCKED 0
23286 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23287 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23288 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23291 cat >conftest.
$ac_ext <<_ACEOF
23294 cat confdefs.h
>>conftest.
$ac_ext
23295 cat >>conftest.
$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 $ac_includes_default
23301 #ifndef getc_unlocked
23302 char *p = (char *) getc_unlocked;
23309 rm -f conftest.
$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311 (eval $ac_compile) 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); } &&
23315 { ac_try
='test -s conftest.$ac_objext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ac_cv_have_decl_getc_unlocked
=yes
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.
$ac_ext >&5
23326 ac_cv_have_decl_getc_unlocked
=no
23328 rm -f conftest.
$ac_objext conftest.
$ac_ext
23330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23331 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23332 if test $ac_cv_have_decl_getc_unlocked = yes; then
23334 cat >>confdefs.h
<<_ACEOF
23335 #define HAVE_DECL_GETC_UNLOCKED 1
23340 cat >>confdefs.h
<<_ACEOF
23341 #define HAVE_DECL_GETC_UNLOCKED 0
23346 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23347 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23348 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 cat >conftest.
$ac_ext <<_ACEOF
23354 cat confdefs.h
>>conftest.
$ac_ext
23355 cat >>conftest.
$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 $ac_includes_default
23361 #ifndef getchar_unlocked
23362 char *p = (char *) getchar_unlocked;
23369 rm -f conftest.
$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try
='test -s conftest.$ac_objext'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 ac_cv_have_decl_getchar_unlocked
=yes
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.
$ac_ext >&5
23386 ac_cv_have_decl_getchar_unlocked
=no
23388 rm -f conftest.
$ac_objext conftest.
$ac_ext
23390 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23391 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23392 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23394 cat >>confdefs.h
<<_ACEOF
23395 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23400 cat >>confdefs.h
<<_ACEOF
23401 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23406 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23407 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23408 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23409 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 cat >conftest.
$ac_ext <<_ACEOF
23414 cat confdefs.h
>>conftest.
$ac_ext
23415 cat >>conftest.
$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 $ac_includes_default
23421 #ifndef putc_unlocked
23422 char *p = (char *) putc_unlocked;
23429 rm -f conftest.
$ac_objext
23430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23431 (eval $ac_compile) 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } &&
23435 { ac_try
='test -s conftest.$ac_objext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 ac_cv_have_decl_putc_unlocked
=yes
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.
$ac_ext >&5
23446 ac_cv_have_decl_putc_unlocked
=no
23448 rm -f conftest.
$ac_objext conftest.
$ac_ext
23450 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23451 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23452 if test $ac_cv_have_decl_putc_unlocked = yes; then
23454 cat >>confdefs.h
<<_ACEOF
23455 #define HAVE_DECL_PUTC_UNLOCKED 1
23460 cat >>confdefs.h
<<_ACEOF
23461 #define HAVE_DECL_PUTC_UNLOCKED 0
23466 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23467 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23468 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23471 cat >conftest.
$ac_ext <<_ACEOF
23474 cat confdefs.h
>>conftest.
$ac_ext
23475 cat >>conftest.
$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23477 $ac_includes_default
23481 #ifndef putchar_unlocked
23482 char *p = (char *) putchar_unlocked;
23489 rm -f conftest.
$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>&5
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); } &&
23495 { ac_try
='test -s conftest.$ac_objext'
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; }; then
23501 ac_cv_have_decl_putchar_unlocked
=yes
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.
$ac_ext >&5
23506 ac_cv_have_decl_putchar_unlocked
=no
23508 rm -f conftest.
$ac_objext conftest.
$ac_ext
23510 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23511 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23512 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23514 cat >>confdefs.h
<<_ACEOF
23515 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23520 cat >>confdefs.h
<<_ACEOF
23521 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23529 echo "$as_me:$LINENO: checking for group_member" >&5
23530 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23531 if test "${ac_cv_func_group_member+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 cat >conftest.
$ac_ext <<_ACEOF
23537 cat confdefs.h
>>conftest.
$ac_ext
23538 cat >>conftest.
$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 /* System header to define __stub macros and hopefully few prototypes,
23541 which can conflict with char group_member (); below.
23542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23543 <limits.h> exists even on freestanding compilers. */
23545 # include <limits.h>
23547 # include <assert.h>
23549 /* Override any gcc2 internal prototype to avoid an error. */
23554 /* We use char because int might match the return type of a gcc2
23555 builtin and then its argument prototype would still apply. */
23556 char group_member ();
23557 /* The GNU C library defines this for functions which it implements
23558 to always fail with ENOSYS. Some functions are actually named
23559 something starting with __ and the normal name is an alias. */
23560 #if defined (__stub_group_member) || defined (__stub___group_member)
23563 char (*f) () = group_member;
23572 return f != group_member;
23577 rm -f conftest.
$ac_objext conftest
$ac_exeext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23579 (eval $ac_link) 2>&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try
='test -s conftest$ac_exeext'
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; }; then
23589 ac_cv_func_group_member
=yes
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.
$ac_ext >&5
23594 ac_cv_func_group_member
=no
23596 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23598 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23599 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23600 if test $ac_cv_func_group_member = yes; then
23603 LIBOBJS
="$LIBOBJS group-member.$ac_objext"
23608 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23609 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23610 if test "${jm_cv_func_svid_putenv+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 if test "$cross_compiling" = yes; then
23614 jm_cv_func_svid_putenv
=no
23616 cat >conftest.
$ac_ext <<_ACEOF
23619 cat confdefs.h
>>conftest.
$ac_ext
23620 cat >>conftest.
$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23626 /* Put it in env. */
23627 if (putenv ("CONFTEST_putenv=val"))
23630 /* Try to remove it. */
23631 if (putenv ("CONFTEST_putenv"))
23634 /* Make sure it was deleted. */
23635 if (getenv ("CONFTEST_putenv") != 0)
23642 rm -f conftest
$ac_exeext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 jm_cv_func_svid_putenv
=yes
23655 echo "$as_me: program exited with status $ac_status" >&5
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.
$ac_ext >&5
23659 ( exit $ac_status )
23660 jm_cv_func_svid_putenv
=no
23662 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23666 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23667 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23668 if test $jm_cv_func_svid_putenv = no
; then
23669 LIBOBJS
="$LIBOBJS putenv.$ac_objext"
23671 cat >>confdefs.h
<<\_ACEOF
23672 #define putenv rpl_putenv
23678 echo "$as_me:$LINENO: checking for AFS" >&5
23679 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23680 if test -d /afs
; then
23682 cat >>confdefs.h
<<\_ACEOF
23690 echo "$as_me:$LINENO: result: $ac_result" >&5
23691 echo "${ECHO_T}$ac_result" >&6
23695 echo "$as_me:$LINENO: checking for intmax_t" >&5
23696 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23697 if test "${ac_cv_type_intmax_t+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 cat >conftest.
$ac_ext <<_ACEOF
23703 cat confdefs.h
>>conftest.
$ac_ext
23704 cat >>conftest.
$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 $ac_includes_default
23710 if ((intmax_t *) 0)
23712 if (sizeof (intmax_t))
23718 rm -f conftest.
$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720 (eval $ac_compile) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } &&
23724 { ac_try
='test -s conftest.$ac_objext'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; }; then
23730 ac_cv_type_intmax_t
=yes
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.
$ac_ext >&5
23735 ac_cv_type_intmax_t
=no
23737 rm -f conftest.
$ac_objext conftest.
$ac_ext
23739 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23740 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23741 if test $ac_cv_type_intmax_t = yes; then
23744 test $ac_cv_type_long_long = yes \
23745 && ac_type
='long long' \
23748 cat >>confdefs.h
<<_ACEOF
23749 #define intmax_t $ac_type
23760 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23761 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23762 if test "${ac_cv_have_decl_strtol+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23765 cat >conftest.
$ac_ext <<_ACEOF
23768 cat confdefs.h
>>conftest.
$ac_ext
23769 cat >>conftest.
$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 $ac_includes_default
23776 char *p = (char *) strtol;
23783 rm -f conftest.
$ac_objext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785 (eval $ac_compile) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try
='test -s conftest.$ac_objext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ac_cv_have_decl_strtol
=yes
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.
$ac_ext >&5
23800 ac_cv_have_decl_strtol
=no
23802 rm -f conftest.
$ac_objext conftest.
$ac_ext
23804 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23805 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23806 if test $ac_cv_have_decl_strtol = yes; then
23808 cat >>confdefs.h
<<_ACEOF
23809 #define HAVE_DECL_STRTOL 1
23814 cat >>confdefs.h
<<_ACEOF
23815 #define HAVE_DECL_STRTOL 0
23820 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23821 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23822 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23825 cat >conftest.
$ac_ext <<_ACEOF
23828 cat confdefs.h
>>conftest.
$ac_ext
23829 cat >>conftest.
$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23836 char *p = (char *) strtoul;
23843 rm -f conftest.
$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845 (eval $ac_compile) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try
='test -s conftest.$ac_objext'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_have_decl_strtoul
=yes
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.
$ac_ext >&5
23860 ac_cv_have_decl_strtoul
=no
23862 rm -f conftest.
$ac_objext conftest.
$ac_ext
23864 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23865 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23866 if test $ac_cv_have_decl_strtoul = yes; then
23868 cat >>confdefs.h
<<_ACEOF
23869 #define HAVE_DECL_STRTOUL 1
23874 cat >>confdefs.h
<<_ACEOF
23875 #define HAVE_DECL_STRTOUL 0
23880 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23881 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23882 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 cat >conftest.
$ac_ext <<_ACEOF
23888 cat confdefs.h
>>conftest.
$ac_ext
23889 cat >>conftest.
$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891 $ac_includes_default
23896 char *p = (char *) strtoull;
23903 rm -f conftest.
$ac_objext
23904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23905 (eval $ac_compile) 2>&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
23909 { ac_try
='test -s conftest.$ac_objext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_have_decl_strtoull
=yes
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.
$ac_ext >&5
23920 ac_cv_have_decl_strtoull
=no
23922 rm -f conftest.
$ac_objext conftest.
$ac_ext
23924 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23925 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23926 if test $ac_cv_have_decl_strtoull = yes; then
23928 cat >>confdefs.h
<<_ACEOF
23929 #define HAVE_DECL_STRTOULL 1
23934 cat >>confdefs.h
<<_ACEOF
23935 #define HAVE_DECL_STRTOULL 0
23940 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23941 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23942 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 cat >conftest.
$ac_ext <<_ACEOF
23948 cat confdefs.h
>>conftest.
$ac_ext
23949 cat >>conftest.
$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 $ac_includes_default
23956 char *p = (char *) strtoimax;
23963 rm -f conftest.
$ac_objext
23964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23965 (eval $ac_compile) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
23969 { ac_try
='test -s conftest.$ac_objext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 ac_cv_have_decl_strtoimax
=yes
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.
$ac_ext >&5
23980 ac_cv_have_decl_strtoimax
=no
23982 rm -f conftest.
$ac_objext conftest.
$ac_ext
23984 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23985 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23986 if test $ac_cv_have_decl_strtoimax = yes; then
23988 cat >>confdefs.h
<<_ACEOF
23989 #define HAVE_DECL_STRTOIMAX 1
23994 cat >>confdefs.h
<<_ACEOF
23995 #define HAVE_DECL_STRTOIMAX 0
24000 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24001 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24002 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 cat >conftest.
$ac_ext <<_ACEOF
24008 cat confdefs.h
>>conftest.
$ac_ext
24009 cat >>conftest.
$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 $ac_includes_default
24016 char *p = (char *) strtoumax;
24023 rm -f conftest.
$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025 (eval $ac_compile) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } &&
24029 { ac_try
='test -s conftest.$ac_objext'
24030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_cv_have_decl_strtoumax
=yes
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.
$ac_ext >&5
24040 ac_cv_have_decl_strtoumax
=no
24042 rm -f conftest.
$ac_objext conftest.
$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24045 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24046 if test $ac_cv_have_decl_strtoumax = yes; then
24048 cat >>confdefs.h
<<_ACEOF
24049 #define HAVE_DECL_STRTOUMAX 1
24054 cat >>confdefs.h
<<_ACEOF
24055 #define HAVE_DECL_STRTOUMAX 0
24065 for ac_header
in limits.h stdlib.h inttypes.h
24067 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24069 echo "$as_me:$LINENO: checking for $ac_header" >&5
24070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24077 # Is the header compilable?
24078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24080 cat >conftest.
$ac_ext <<_ACEOF
24083 cat confdefs.h
>>conftest.
$ac_ext
24084 cat >>conftest.
$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24087 #include <$ac_header>
24089 rm -f conftest.
$ac_objext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24091 (eval $ac_compile) 2>&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } &&
24095 { ac_try
='test -s conftest.$ac_objext'
24096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097 (eval $ac_try) 2>&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); }; }; then
24101 ac_header_compiler
=yes
24103 echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.
$ac_ext >&5
24106 ac_header_compiler
=no
24108 rm -f conftest.
$ac_objext conftest.
$ac_ext
24109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24110 echo "${ECHO_T}$ac_header_compiler" >&6
24112 # Is the header present?
24113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24115 cat >conftest.
$ac_ext <<_ACEOF
24118 cat confdefs.h
>>conftest.
$ac_ext
24119 cat >>conftest.
$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 #include <$ac_header>
24123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24126 grep -v '^ *+' conftest.er1
>conftest.err
24128 cat conftest.err
>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); } >/dev
/null
; then
24131 if test -s conftest.err
; then
24132 ac_cpp_err
=$ac_c_preproc_warn_flag
24139 if test -z "$ac_cpp_err"; then
24140 ac_header_preproc
=yes
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.
$ac_ext >&5
24145 ac_header_preproc
=no
24147 rm -f conftest.err conftest.
$ac_ext
24148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24149 echo "${ECHO_T}$ac_header_preproc" >&6
24151 # So? What about this header?
24152 case $ac_header_compiler:$ac_header_preproc in
24154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24160 ## ------------------------------------ ##
24161 ## Report this to bug-autoconf@gnu.org. ##
24162 ## ------------------------------------ ##
24165 sed "s/^/$as_me: WARNING: /" >&2
24168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24176 ## ------------------------------------ ##
24177 ## Report this to bug-autoconf@gnu.org. ##
24178 ## ------------------------------------ ##
24181 sed "s/^/$as_me: WARNING: /" >&2
24184 echo "$as_me:$LINENO: checking for $ac_header" >&5
24185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24189 eval "$as_ac_Header=$ac_header_preproc"
24191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24196 cat >>confdefs.h
<<_ACEOF
24197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24205 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24206 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24207 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24208 echo $ECHO_N "(cached) $ECHO_C" >&6
24210 cat >conftest.
$ac_ext <<_ACEOF
24213 cat confdefs.h
>>conftest.
$ac_ext
24214 cat >>conftest.
$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24216 #include <inttypes.h>
24218 inttypes_h_defines_strtoumax
24221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24222 $EGREP "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
24223 jm_cv_func_strtoumax_macro
=yes
24225 jm_cv_func_strtoumax_macro
=no
24230 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24231 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24233 if test "$jm_cv_func_strtoumax_macro" != yes; then
24235 for ac_func
in strtoumax
24237 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24238 echo "$as_me:$LINENO: checking for $ac_func" >&5
24239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24240 if eval "test \"\${$as_ac_var+set}\" = set"; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24243 cat >conftest.
$ac_ext <<_ACEOF
24246 cat confdefs.h
>>conftest.
$ac_ext
24247 cat >>conftest.
$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24254 # include <limits.h>
24256 # include <assert.h>
24258 /* Override any gcc2 internal prototype to avoid an error. */
24263 /* We use char because int might match the return type of a gcc2
24264 builtin and then its argument prototype would still apply. */
24266 /* The GNU C library defines this for functions which it implements
24267 to always fail with ENOSYS. Some functions are actually named
24268 something starting with __ and the normal name is an alias. */
24269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24272 char (*f) () = $ac_func;
24281 return f != $ac_func;
24286 rm -f conftest.
$ac_objext conftest
$ac_exeext
24287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24288 (eval $ac_link) 2>&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try
='test -s conftest$ac_exeext'
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; }; then
24298 eval "$as_ac_var=yes"
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.
$ac_ext >&5
24303 eval "$as_ac_var=no"
24305 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24309 if test `eval echo '${'$as_ac_var'}'` = yes; then
24310 cat >>confdefs.h
<<_ACEOF
24311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24315 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24322 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24325 for ac_func
in strtoul
24327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24328 echo "$as_me:$LINENO: checking for $ac_func" >&5
24329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24330 if eval "test \"\${$as_ac_var+set}\" = set"; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 cat >conftest.
$ac_ext <<_ACEOF
24336 cat confdefs.h
>>conftest.
$ac_ext
24337 cat >>conftest.
$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 /* System header to define __stub macros and hopefully few prototypes,
24340 which can conflict with char $ac_func (); below.
24341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24342 <limits.h> exists even on freestanding compilers. */
24344 # include <limits.h>
24346 # include <assert.h>
24348 /* Override any gcc2 internal prototype to avoid an error. */
24353 /* We use char because int might match the return type of a gcc2
24354 builtin and then its argument prototype would still apply. */
24356 /* The GNU C library defines this for functions which it implements
24357 to always fail with ENOSYS. Some functions are actually named
24358 something starting with __ and the normal name is an alias. */
24359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24362 char (*f) () = $ac_func;
24371 return f != $ac_func;
24376 rm -f conftest.
$ac_objext conftest
$ac_exeext
24377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24378 (eval $ac_link) 2>&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } &&
24382 { ac_try
='test -s conftest$ac_exeext'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 eval "$as_ac_var=yes"
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.
$ac_ext >&5
24393 eval "$as_ac_var=no"
24395 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24399 if test `eval echo '${'$as_ac_var'}'` = yes; then
24400 cat >>confdefs.h
<<_ACEOF
24401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24405 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24411 if test "$ac_cv_type_unsigned_long_long" = yes; then
24413 for ac_func
in strtoull
24415 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24416 echo "$as_me:$LINENO: checking for $ac_func" >&5
24417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24418 if eval "test \"\${$as_ac_var+set}\" = set"; then
24419 echo $ECHO_N "(cached) $ECHO_C" >&6
24421 cat >conftest.
$ac_ext <<_ACEOF
24424 cat confdefs.h
>>conftest.
$ac_ext
24425 cat >>conftest.
$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 /* System header to define __stub macros and hopefully few prototypes,
24428 which can conflict with char $ac_func (); below.
24429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24430 <limits.h> exists even on freestanding compilers. */
24432 # include <limits.h>
24434 # include <assert.h>
24436 /* Override any gcc2 internal prototype to avoid an error. */
24441 /* We use char because int might match the return type of a gcc2
24442 builtin and then its argument prototype would still apply. */
24444 /* The GNU C library defines this for functions which it implements
24445 to always fail with ENOSYS. Some functions are actually named
24446 something starting with __ and the normal name is an alias. */
24447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24450 char (*f) () = $ac_func;
24459 return f != $ac_func;
24464 rm -f conftest.
$ac_objext conftest
$ac_exeext
24465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24466 (eval $ac_link) 2>&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try
='test -s conftest$ac_exeext'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 eval "$as_ac_var=yes"
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.
$ac_ext >&5
24481 eval "$as_ac_var=no"
24483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24487 if test `eval echo '${'$as_ac_var'}'` = yes; then
24488 cat >>confdefs.h
<<_ACEOF
24489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24493 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24507 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24508 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24509 if test "${ac_cv_have_decl_strtol+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24512 cat >conftest.
$ac_ext <<_ACEOF
24515 cat confdefs.h
>>conftest.
$ac_ext
24516 cat >>conftest.
$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24523 char *p = (char *) strtol;
24530 rm -f conftest.
$ac_objext
24531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24532 (eval $ac_compile) 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); } &&
24536 { ac_try
='test -s conftest.$ac_objext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ac_cv_have_decl_strtol
=yes
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.
$ac_ext >&5
24547 ac_cv_have_decl_strtol
=no
24549 rm -f conftest.
$ac_objext conftest.
$ac_ext
24551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24552 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24553 if test $ac_cv_have_decl_strtol = yes; then
24555 cat >>confdefs.h
<<_ACEOF
24556 #define HAVE_DECL_STRTOL 1
24561 cat >>confdefs.h
<<_ACEOF
24562 #define HAVE_DECL_STRTOL 0
24567 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24568 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24569 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24572 cat >conftest.
$ac_ext <<_ACEOF
24575 cat confdefs.h
>>conftest.
$ac_ext
24576 cat >>conftest.
$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 $ac_includes_default
24583 char *p = (char *) strtoul;
24590 rm -f conftest.
$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592 (eval $ac_compile) 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
24596 { ac_try
='test -s conftest.$ac_objext'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 ac_cv_have_decl_strtoul
=yes
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.
$ac_ext >&5
24607 ac_cv_have_decl_strtoul
=no
24609 rm -f conftest.
$ac_objext conftest.
$ac_ext
24611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24612 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24613 if test $ac_cv_have_decl_strtoul = yes; then
24615 cat >>confdefs.h
<<_ACEOF
24616 #define HAVE_DECL_STRTOUL 1
24621 cat >>confdefs.h
<<_ACEOF
24622 #define HAVE_DECL_STRTOUL 0
24627 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24628 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24629 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 cat >conftest.
$ac_ext <<_ACEOF
24635 cat confdefs.h
>>conftest.
$ac_ext
24636 cat >>conftest.
$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24643 char *p = (char *) strtoll;
24650 rm -f conftest.
$ac_objext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24652 (eval $ac_compile) 2>&5
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
24656 { ac_try
='test -s conftest.$ac_objext'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_cv_have_decl_strtoll
=yes
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.
$ac_ext >&5
24667 ac_cv_have_decl_strtoll
=no
24669 rm -f conftest.
$ac_objext conftest.
$ac_ext
24671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24672 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24673 if test $ac_cv_have_decl_strtoll = yes; then
24675 cat >>confdefs.h
<<_ACEOF
24676 #define HAVE_DECL_STRTOLL 1
24681 cat >>confdefs.h
<<_ACEOF
24682 #define HAVE_DECL_STRTOLL 0
24687 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24688 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24689 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 cat >conftest.
$ac_ext <<_ACEOF
24695 cat confdefs.h
>>conftest.
$ac_ext
24696 cat >>conftest.
$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24703 char *p = (char *) strtoimax;
24710 rm -f conftest.
$ac_objext
24711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24712 (eval $ac_compile) 2>&5
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } &&
24716 { ac_try
='test -s conftest.$ac_objext'
24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 (eval $ac_try) 2>&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); }; }; then
24722 ac_cv_have_decl_strtoimax
=yes
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.
$ac_ext >&5
24727 ac_cv_have_decl_strtoimax
=no
24729 rm -f conftest.
$ac_objext conftest.
$ac_ext
24731 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24732 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24733 if test $ac_cv_have_decl_strtoimax = yes; then
24735 cat >>confdefs.h
<<_ACEOF
24736 #define HAVE_DECL_STRTOIMAX 1
24741 cat >>confdefs.h
<<_ACEOF
24742 #define HAVE_DECL_STRTOIMAX 0
24747 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24748 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24749 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24752 cat >conftest.
$ac_ext <<_ACEOF
24755 cat confdefs.h
>>conftest.
$ac_ext
24756 cat >>conftest.
$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 $ac_includes_default
24763 char *p = (char *) strtoumax;
24770 rm -f conftest.
$ac_objext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24772 (eval $ac_compile) 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } &&
24776 { ac_try
='test -s conftest.$ac_objext'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_have_decl_strtoumax
=yes
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.
$ac_ext >&5
24787 ac_cv_have_decl_strtoumax
=no
24789 rm -f conftest.
$ac_objext conftest.
$ac_ext
24791 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24792 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24793 if test $ac_cv_have_decl_strtoumax = yes; then
24795 cat >>confdefs.h
<<_ACEOF
24796 #define HAVE_DECL_STRTOUMAX 1
24801 cat >>confdefs.h
<<_ACEOF
24802 #define HAVE_DECL_STRTOUMAX 0
24812 for ac_header
in limits.h stdlib.h inttypes.h
24814 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24816 echo "$as_me:$LINENO: checking for $ac_header" >&5
24817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24824 # Is the header compilable?
24825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24827 cat >conftest.
$ac_ext <<_ACEOF
24830 cat confdefs.h
>>conftest.
$ac_ext
24831 cat >>conftest.
$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 $ac_includes_default
24834 #include <$ac_header>
24836 rm -f conftest.
$ac_objext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24838 (eval $ac_compile) 2>&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try
='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_header_compiler
=yes
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.
$ac_ext >&5
24853 ac_header_compiler
=no
24855 rm -f conftest.
$ac_objext conftest.
$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24857 echo "${ECHO_T}$ac_header_compiler" >&6
24859 # Is the header present?
24860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24862 cat >conftest.
$ac_ext <<_ACEOF
24865 cat confdefs.h
>>conftest.
$ac_ext
24866 cat >>conftest.
$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 #include <$ac_header>
24870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24873 grep -v '^ *+' conftest.er1
>conftest.err
24875 cat conftest.err
>&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } >/dev
/null
; then
24878 if test -s conftest.err
; then
24879 ac_cpp_err
=$ac_c_preproc_warn_flag
24886 if test -z "$ac_cpp_err"; then
24887 ac_header_preproc
=yes
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.
$ac_ext >&5
24892 ac_header_preproc
=no
24894 rm -f conftest.err conftest.
$ac_ext
24895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24896 echo "${ECHO_T}$ac_header_preproc" >&6
24898 # So? What about this header?
24899 case $ac_header_compiler:$ac_header_preproc in
24901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24907 ## ------------------------------------ ##
24908 ## Report this to bug-autoconf@gnu.org. ##
24909 ## ------------------------------------ ##
24912 sed "s/^/$as_me: WARNING: /" >&2
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24923 ## ------------------------------------ ##
24924 ## Report this to bug-autoconf@gnu.org. ##
24925 ## ------------------------------------ ##
24928 sed "s/^/$as_me: WARNING: /" >&2
24931 echo "$as_me:$LINENO: checking for $ac_header" >&5
24932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 eval "$as_ac_Header=$ac_header_preproc"
24938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24943 cat >>confdefs.h
<<_ACEOF
24944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24952 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24953 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
24954 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24957 cat >conftest.
$ac_ext <<_ACEOF
24960 cat confdefs.h
>>conftest.
$ac_ext
24961 cat >>conftest.
$ac_ext <<_ACEOF
24962 /* end confdefs.h. */
24963 #include <inttypes.h>
24965 inttypes_h_defines_strtoimax
24968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24969 $EGREP "inttypes_h_defines_strtoimax" >/dev
/null
2>&1; then
24970 jm_cv_func_strtoimax_macro
=yes
24972 jm_cv_func_strtoimax_macro
=no
24977 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24978 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
24980 if test "$jm_cv_func_strtoimax_macro" != yes; then
24982 for ac_func
in strtoimax
24984 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24985 echo "$as_me:$LINENO: checking for $ac_func" >&5
24986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24987 if eval "test \"\${$as_ac_var+set}\" = set"; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 cat >conftest.
$ac_ext <<_ACEOF
24993 cat confdefs.h
>>conftest.
$ac_ext
24994 cat >>conftest.
$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 /* System header to define __stub macros and hopefully few prototypes,
24997 which can conflict with char $ac_func (); below.
24998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24999 <limits.h> exists even on freestanding compilers. */
25001 # include <limits.h>
25003 # include <assert.h>
25005 /* Override any gcc2 internal prototype to avoid an error. */
25010 /* We use char because int might match the return type of a gcc2
25011 builtin and then its argument prototype would still apply. */
25013 /* The GNU C library defines this for functions which it implements
25014 to always fail with ENOSYS. Some functions are actually named
25015 something starting with __ and the normal name is an alias. */
25016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25019 char (*f) () = $ac_func;
25028 return f != $ac_func;
25033 rm -f conftest.
$ac_objext conftest
$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035 (eval $ac_link) 2>&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
25039 { ac_try
='test -s conftest$ac_exeext'
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; }; then
25045 eval "$as_ac_var=yes"
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.
$ac_ext >&5
25050 eval "$as_ac_var=no"
25052 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25056 if test `eval echo '${'$as_ac_var'}'` = yes; then
25057 cat >>confdefs.h
<<_ACEOF
25058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25062 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25069 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25072 for ac_func
in strtol
25074 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25075 echo "$as_me:$LINENO: checking for $ac_func" >&5
25076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25077 if eval "test \"\${$as_ac_var+set}\" = set"; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 cat >conftest.
$ac_ext <<_ACEOF
25083 cat confdefs.h
>>conftest.
$ac_ext
25084 cat >>conftest.
$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 /* System header to define __stub macros and hopefully few prototypes,
25087 which can conflict with char $ac_func (); below.
25088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25089 <limits.h> exists even on freestanding compilers. */
25091 # include <limits.h>
25093 # include <assert.h>
25095 /* Override any gcc2 internal prototype to avoid an error. */
25100 /* We use char because int might match the return type of a gcc2
25101 builtin and then its argument prototype would still apply. */
25103 /* The GNU C library defines this for functions which it implements
25104 to always fail with ENOSYS. Some functions are actually named
25105 something starting with __ and the normal name is an alias. */
25106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25109 char (*f) () = $ac_func;
25118 return f != $ac_func;
25123 rm -f conftest.
$ac_objext conftest
$ac_exeext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25125 (eval $ac_link) 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } &&
25129 { ac_try
='test -s conftest$ac_exeext'
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 eval "$as_ac_var=yes"
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.
$ac_ext >&5
25140 eval "$as_ac_var=no"
25142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25146 if test `eval echo '${'$as_ac_var'}'` = yes; then
25147 cat >>confdefs.h
<<_ACEOF
25148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25152 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25158 if test "$ac_cv_type_long_long" = yes; then
25160 for ac_func
in strtoll
25162 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25163 echo "$as_me:$LINENO: checking for $ac_func" >&5
25164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25165 if eval "test \"\${$as_ac_var+set}\" = set"; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25168 cat >conftest.
$ac_ext <<_ACEOF
25171 cat confdefs.h
>>conftest.
$ac_ext
25172 cat >>conftest.
$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 /* System header to define __stub macros and hopefully few prototypes,
25175 which can conflict with char $ac_func (); below.
25176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25177 <limits.h> exists even on freestanding compilers. */
25179 # include <limits.h>
25181 # include <assert.h>
25183 /* Override any gcc2 internal prototype to avoid an error. */
25188 /* We use char because int might match the return type of a gcc2
25189 builtin and then its argument prototype would still apply. */
25191 /* The GNU C library defines this for functions which it implements
25192 to always fail with ENOSYS. Some functions are actually named
25193 something starting with __ and the normal name is an alias. */
25194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25197 char (*f) () = $ac_func;
25206 return f != $ac_func;
25211 rm -f conftest.
$ac_objext conftest
$ac_exeext
25212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25213 (eval $ac_link) 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } &&
25217 { ac_try
='test -s conftest$ac_exeext'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 eval "$as_ac_var=yes"
25225 echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.
$ac_ext >&5
25228 eval "$as_ac_var=no"
25230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25234 if test `eval echo '${'$as_ac_var'}'` = yes; then
25235 cat >>confdefs.h
<<_ACEOF
25236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25240 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25249 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25250 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25251 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 test -z "$ac_cv_header_unistd_h" \
25257 for ac_header
in unistd.h
25259 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25261 echo "$as_me:$LINENO: checking for $ac_header" >&5
25262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25269 # Is the header compilable?
25270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25272 cat >conftest.
$ac_ext <<_ACEOF
25275 cat confdefs.h
>>conftest.
$ac_ext
25276 cat >>conftest.
$ac_ext <<_ACEOF
25277 /* end confdefs.h. */
25278 $ac_includes_default
25279 #include <$ac_header>
25281 rm -f conftest.
$ac_objext
25282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25283 (eval $ac_compile) 2>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try
='test -s conftest.$ac_objext'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_header_compiler
=yes
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.
$ac_ext >&5
25298 ac_header_compiler
=no
25300 rm -f conftest.
$ac_objext conftest.
$ac_ext
25301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25302 echo "${ECHO_T}$ac_header_compiler" >&6
25304 # Is the header present?
25305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25307 cat >conftest.
$ac_ext <<_ACEOF
25310 cat confdefs.h
>>conftest.
$ac_ext
25311 cat >>conftest.
$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25313 #include <$ac_header>
25315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25318 grep -v '^ *+' conftest.er1
>conftest.err
25320 cat conftest.err
>&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } >/dev
/null
; then
25323 if test -s conftest.err
; then
25324 ac_cpp_err
=$ac_c_preproc_warn_flag
25331 if test -z "$ac_cpp_err"; then
25332 ac_header_preproc
=yes
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.
$ac_ext >&5
25337 ac_header_preproc
=no
25339 rm -f conftest.err conftest.
$ac_ext
25340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341 echo "${ECHO_T}$ac_header_preproc" >&6
25343 # So? What about this header?
25344 case $ac_header_compiler:$ac_header_preproc in
25346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25352 ## ------------------------------------ ##
25353 ## Report this to bug-autoconf@gnu.org. ##
25354 ## ------------------------------------ ##
25357 sed "s/^/$as_me: WARNING: /" >&2
25360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25368 ## ------------------------------------ ##
25369 ## Report this to bug-autoconf@gnu.org. ##
25370 ## ------------------------------------ ##
25373 sed "s/^/$as_me: WARNING: /" >&2
25376 echo "$as_me:$LINENO: checking for $ac_header" >&5
25377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25381 eval "$as_ac_Header=$ac_header_preproc"
25383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25388 cat >>confdefs.h
<<_ACEOF
25389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25397 # Create a regular file.
25398 echo > conftest.
file
25399 if test "$cross_compiling" = yes; then
25400 jm_ac_cv_func_link_follows_symlink
=yes
25402 cat >conftest.
$ac_ext <<_ACEOF
25405 cat confdefs.h
>>conftest.
$ac_ext
25406 cat >>conftest.
$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25409 # include <sys/types.h>
25410 # include <sys/stat.h>
25411 # ifdef HAVE_UNISTD_H
25412 # include <unistd.h>
25415 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25416 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25417 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25422 const char *file = "conftest.file";
25423 const char *sym = "conftest.sym";
25424 const char *hard = "conftest.hard";
25425 struct stat sb_file, sb_hard;
25427 /* Create a symlink to the regular file. */
25428 if (symlink (file, sym))
25431 /* Create a hard link to that symlink. */
25432 if (link (sym, hard))
25435 if (lstat (hard, &sb_hard))
25437 if (lstat (file, &sb_file))
25440 /* If the dev/inode of hard and file are the same, then
25441 the link call followed the symlink. */
25442 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25446 rm -f conftest
$ac_exeext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25448 (eval $ac_link) 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 jm_ac_cv_func_link_follows_symlink
=yes
25459 echo "$as_me: program exited with status $ac_status" >&5
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.
$ac_ext >&5
25463 ( exit $ac_status )
25464 jm_ac_cv_func_link_follows_symlink
=no
25466 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25470 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25471 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25472 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25474 cat >>confdefs.h
<<\_ACEOF
25475 #define LINK_FOLLOWS_SYMLINKS 1
25480 echo "$as_me:$LINENO: checking for error_at_line" >&5
25481 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25482 if test "${ac_cv_lib_error_at_line+set}" = set; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25485 cat >conftest.
$ac_ext <<_ACEOF
25488 cat confdefs.h
>>conftest.
$ac_ext
25489 cat >>conftest.
$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25495 error_at_line (0, 0, "", 0, "");
25500 rm -f conftest.
$ac_objext conftest
$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } &&
25506 { ac_try
='test -s conftest$ac_exeext'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_lib_error_at_line
=yes
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.
$ac_ext >&5
25517 ac_cv_lib_error_at_line
=no
25519 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25521 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25522 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25523 if test $ac_cv_lib_error_at_line = no
; then
25524 LIBOBJS
="$LIBOBJS error.$ac_objext"
25531 for ac_func
in localtime_r strftime
25533 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25534 echo "$as_me:$LINENO: checking for $ac_func" >&5
25535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25536 if eval "test \"\${$as_ac_var+set}\" = set"; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 cat >conftest.
$ac_ext <<_ACEOF
25542 cat confdefs.h
>>conftest.
$ac_ext
25543 cat >>conftest.
$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 /* System header to define __stub macros and hopefully few prototypes,
25546 which can conflict with char $ac_func (); below.
25547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25548 <limits.h> exists even on freestanding compilers. */
25550 # include <limits.h>
25552 # include <assert.h>
25554 /* Override any gcc2 internal prototype to avoid an error. */
25559 /* We use char because int might match the return type of a gcc2
25560 builtin and then its argument prototype would still apply. */
25562 /* The GNU C library defines this for functions which it implements
25563 to always fail with ENOSYS. Some functions are actually named
25564 something starting with __ and the normal name is an alias. */
25565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25568 char (*f) () = $ac_func;
25577 return f != $ac_func;
25582 rm -f conftest.
$ac_objext conftest
$ac_exeext
25583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25584 (eval $ac_link) 2>&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try
='test -s conftest$ac_exeext'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 eval "$as_ac_var=yes"
25596 echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.
$ac_ext >&5
25599 eval "$as_ac_var=no"
25601 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25605 if test `eval echo '${'$as_ac_var'}'` = yes; then
25606 cat >>confdefs.h
<<_ACEOF
25607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25615 for ac_header
in limits.h
25617 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25619 echo "$as_me:$LINENO: checking for $ac_header" >&5
25620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25627 # Is the header compilable?
25628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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
25637 #include <$ac_header>
25639 rm -f conftest.
$ac_objext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25641 (eval $ac_compile) 2>&5
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); } &&
25645 { ac_try
='test -s conftest.$ac_objext'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; }; then
25651 ac_header_compiler
=yes
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.
$ac_ext >&5
25656 ac_header_compiler
=no
25658 rm -f conftest.
$ac_objext conftest.
$ac_ext
25659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6
25662 # Is the header present?
25663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25665 cat >conftest.
$ac_ext <<_ACEOF
25668 cat confdefs.h
>>conftest.
$ac_ext
25669 cat >>conftest.
$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 #include <$ac_header>
25673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25676 grep -v '^ *+' conftest.er1
>conftest.err
25678 cat conftest.err
>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } >/dev
/null
; then
25681 if test -s conftest.err
; then
25682 ac_cpp_err
=$ac_c_preproc_warn_flag
25689 if test -z "$ac_cpp_err"; then
25690 ac_header_preproc
=yes
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.
$ac_ext >&5
25695 ac_header_preproc
=no
25697 rm -f conftest.err conftest.
$ac_ext
25698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 echo "${ECHO_T}$ac_header_preproc" >&6
25701 # So? What about this header?
25702 case $ac_header_compiler:$ac_header_preproc in
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25710 ## ------------------------------------ ##
25711 ## Report this to bug-autoconf@gnu.org. ##
25712 ## ------------------------------------ ##
25715 sed "s/^/$as_me: WARNING: /" >&2
25718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25726 ## ------------------------------------ ##
25727 ## Report this to bug-autoconf@gnu.org. ##
25728 ## ------------------------------------ ##
25731 sed "s/^/$as_me: WARNING: /" >&2
25734 echo "$as_me:$LINENO: checking for $ac_header" >&5
25735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25739 eval "$as_ac_Header=$ac_header_preproc"
25741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25746 cat >>confdefs.h
<<_ACEOF
25747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25759 for ac_func
in bcopy tzset mempcpy memcpy memset
25761 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25762 echo "$as_me:$LINENO: checking for $ac_func" >&5
25763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25764 if eval "test \"\${$as_ac_var+set}\" = set"; then
25765 echo $ECHO_N "(cached) $ECHO_C" >&6
25767 cat >conftest.
$ac_ext <<_ACEOF
25770 cat confdefs.h
>>conftest.
$ac_ext
25771 cat >>conftest.
$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 /* System header to define __stub macros and hopefully few prototypes,
25774 which can conflict with char $ac_func (); below.
25775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25776 <limits.h> exists even on freestanding compilers. */
25778 # include <limits.h>
25780 # include <assert.h>
25782 /* Override any gcc2 internal prototype to avoid an error. */
25787 /* We use char because int might match the return type of a gcc2
25788 builtin and then its argument prototype would still apply. */
25790 /* The GNU C library defines this for functions which it implements
25791 to always fail with ENOSYS. Some functions are actually named
25792 something starting with __ and the normal name is an alias. */
25793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25796 char (*f) () = $ac_func;
25805 return f != $ac_func;
25810 rm -f conftest.
$ac_objext conftest
$ac_exeext
25811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25812 (eval $ac_link) 2>&5
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); } &&
25816 { ac_try
='test -s conftest$ac_exeext'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; }; then
25822 eval "$as_ac_var=yes"
25824 echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.
$ac_ext >&5
25827 eval "$as_ac_var=no"
25829 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25833 if test `eval echo '${'$as_ac_var'}'` = yes; then
25834 cat >>confdefs.h
<<_ACEOF
25835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25842 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25843 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25844 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25845 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25846 echo $ECHO_N "(cached) $ECHO_C" >&6
25848 cat >conftest.
$ac_ext <<_ACEOF
25851 cat confdefs.h
>>conftest.
$ac_ext
25852 cat >>conftest.
$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 #include <sys/types.h>
25855 #include <$ac_cv_struct_tm>
25861 static struct tm ac_aggr;
25862 if (ac_aggr.tm_zone)
25868 rm -f conftest.
$ac_objext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25870 (eval $ac_compile) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try
='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_cv_member_struct_tm_tm_zone
=yes
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.
$ac_ext >&5
25885 cat >conftest.
$ac_ext <<_ACEOF
25888 cat confdefs.h
>>conftest.
$ac_ext
25889 cat >>conftest.
$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 #include <sys/types.h>
25892 #include <$ac_cv_struct_tm>
25898 static struct tm ac_aggr;
25899 if (sizeof ac_aggr.tm_zone)
25905 rm -f conftest.
$ac_objext
25906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25907 (eval $ac_compile) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
25911 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
25917 ac_cv_member_struct_tm_tm_zone
=yes
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.
$ac_ext >&5
25922 ac_cv_member_struct_tm_tm_zone
=no
25924 rm -f conftest.
$ac_objext conftest.
$ac_ext
25926 rm -f conftest.
$ac_objext conftest.
$ac_ext
25928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25929 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
25930 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25932 cat >>confdefs.h
<<_ACEOF
25933 #define HAVE_STRUCT_TM_TM_ZONE 1
25939 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25941 cat >>confdefs.h
<<\_ACEOF
25942 #define HAVE_TM_ZONE 1
25946 echo "$as_me:$LINENO: checking for tzname" >&5
25947 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
25948 if test "${ac_cv_var_tzname+set}" = set; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25951 cat >conftest.
$ac_ext <<_ACEOF
25954 cat confdefs.h
>>conftest.
$ac_ext
25955 cat >>conftest.
$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25958 #ifndef tzname /* For SGI. */
25959 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25970 rm -f conftest.
$ac_objext conftest
$ac_exeext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25972 (eval $ac_link) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } &&
25976 { ac_try
='test -s conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 ac_cv_var_tzname
=yes
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.
$ac_ext >&5
25987 ac_cv_var_tzname
=no
25989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25991 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25992 echo "${ECHO_T}$ac_cv_var_tzname" >&6
25993 if test $ac_cv_var_tzname = yes; then
25995 cat >>confdefs.h
<<\_ACEOF
25996 #define HAVE_TZNAME 1
26005 for ac_func
in mblen mbrlen
26007 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_var+set}\" = set"; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 cat >conftest.
$ac_ext <<_ACEOF
26016 cat confdefs.h
>>conftest.
$ac_ext
26017 cat >>conftest.
$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 /* System header to define __stub macros and hopefully few prototypes,
26020 which can conflict with char $ac_func (); below.
26021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26022 <limits.h> exists even on freestanding compilers. */
26024 # include <limits.h>
26026 # include <assert.h>
26028 /* Override any gcc2 internal prototype to avoid an error. */
26033 /* We use char because int might match the return type of a gcc2
26034 builtin and then its argument prototype would still apply. */
26036 /* The GNU C library defines this for functions which it implements
26037 to always fail with ENOSYS. Some functions are actually named
26038 something starting with __ and the normal name is an alias. */
26039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26042 char (*f) () = $ac_func;
26051 return f != $ac_func;
26056 rm -f conftest.
$ac_objext conftest
$ac_exeext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26058 (eval $ac_link) 2>&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try
='test -s conftest$ac_exeext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 eval "$as_ac_var=yes"
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.
$ac_ext >&5
26073 eval "$as_ac_var=no"
26075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26079 if test `eval echo '${'$as_ac_var'}'` = yes; then
26080 cat >>confdefs.h
<<_ACEOF
26081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26088 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26089 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26090 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26093 cat >conftest.
$ac_ext <<_ACEOF
26096 cat confdefs.h
>>conftest.
$ac_ext
26097 cat >>conftest.
$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26104 static struct tm ac_aggr;
26105 if (ac_aggr.tm_gmtoff)
26111 rm -f conftest.
$ac_objext
26112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26113 (eval $ac_compile) 2>&5
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } &&
26117 { ac_try
='test -s conftest.$ac_objext'
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123 ac_cv_member_struct_tm_tm_gmtoff
=yes
26125 echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.
$ac_ext >&5
26128 cat >conftest.
$ac_ext <<_ACEOF
26131 cat confdefs.h
>>conftest.
$ac_ext
26132 cat >>conftest.
$ac_ext <<_ACEOF
26133 /* end confdefs.h. */
26139 static struct tm ac_aggr;
26140 if (sizeof ac_aggr.tm_gmtoff)
26146 rm -f conftest.
$ac_objext
26147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148 (eval $ac_compile) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } &&
26152 { ac_try
='test -s conftest.$ac_objext'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 ac_cv_member_struct_tm_tm_gmtoff
=yes
26160 echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.
$ac_ext >&5
26163 ac_cv_member_struct_tm_tm_gmtoff
=no
26165 rm -f conftest.
$ac_objext conftest.
$ac_ext
26167 rm -f conftest.
$ac_objext conftest.
$ac_ext
26169 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26170 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26171 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26173 cat >>confdefs.h
<<\_ACEOF
26174 #define HAVE_TM_GMTOFF 1
26182 for ac_header
in sys
/time.h
26184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26186 echo "$as_me:$LINENO: checking for $ac_header" >&5
26187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26194 # Is the header compilable?
26195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26197 cat >conftest.
$ac_ext <<_ACEOF
26200 cat confdefs.h
>>conftest.
$ac_ext
26201 cat >>conftest.
$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 $ac_includes_default
26204 #include <$ac_header>
26206 rm -f conftest.
$ac_objext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26208 (eval $ac_compile) 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } &&
26212 { ac_try
='test -s conftest.$ac_objext'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
26218 ac_header_compiler
=yes
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.
$ac_ext >&5
26223 ac_header_compiler
=no
26225 rm -f conftest.
$ac_objext conftest.
$ac_ext
26226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26227 echo "${ECHO_T}$ac_header_compiler" >&6
26229 # Is the header present?
26230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26232 cat >conftest.
$ac_ext <<_ACEOF
26235 cat confdefs.h
>>conftest.
$ac_ext
26236 cat >>conftest.
$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <$ac_header>
26240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26243 grep -v '^ *+' conftest.er1
>conftest.err
26245 cat conftest.err
>&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } >/dev
/null
; then
26248 if test -s conftest.err
; then
26249 ac_cpp_err
=$ac_c_preproc_warn_flag
26256 if test -z "$ac_cpp_err"; then
26257 ac_header_preproc
=yes
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.
$ac_ext >&5
26262 ac_header_preproc
=no
26264 rm -f conftest.err conftest.
$ac_ext
26265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26266 echo "${ECHO_T}$ac_header_preproc" >&6
26268 # So? What about this header?
26269 case $ac_header_compiler:$ac_header_preproc in
26271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26277 ## ------------------------------------ ##
26278 ## Report this to bug-autoconf@gnu.org. ##
26279 ## ------------------------------------ ##
26282 sed "s/^/$as_me: WARNING: /" >&2
26285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26293 ## ------------------------------------ ##
26294 ## Report this to bug-autoconf@gnu.org. ##
26295 ## ------------------------------------ ##
26298 sed "s/^/$as_me: WARNING: /" >&2
26301 echo "$as_me:$LINENO: checking for $ac_header" >&5
26302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26304 echo $ECHO_N "(cached) $ECHO_C" >&6
26306 eval "$as_ac_Header=$ac_header_preproc"
26308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313 cat >>confdefs.h
<<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26322 cat >>confdefs.h
<<\_ACEOF
26323 #define my_strftime nstrftime
26329 for ac_header
in stdio_ext.h
26331 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26333 echo "$as_me:$LINENO: checking for $ac_header" >&5
26334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336 echo $ECHO_N "(cached) $ECHO_C" >&6
26338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26341 # Is the header compilable?
26342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26344 cat >conftest.
$ac_ext <<_ACEOF
26347 cat confdefs.h
>>conftest.
$ac_ext
26348 cat >>conftest.
$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 $ac_includes_default
26351 #include <$ac_header>
26353 rm -f conftest.
$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355 (eval $ac_compile) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } &&
26359 { ac_try
='test -s conftest.$ac_objext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26365 ac_header_compiler
=yes
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.
$ac_ext >&5
26370 ac_header_compiler
=no
26372 rm -f conftest.
$ac_objext conftest.
$ac_ext
26373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26374 echo "${ECHO_T}$ac_header_compiler" >&6
26376 # Is the header present?
26377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26379 cat >conftest.
$ac_ext <<_ACEOF
26382 cat confdefs.h
>>conftest.
$ac_ext
26383 cat >>conftest.
$ac_ext <<_ACEOF
26384 /* end confdefs.h. */
26385 #include <$ac_header>
26387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26388 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26390 grep -v '^ *+' conftest.er1
>conftest.err
26392 cat conftest.err
>&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } >/dev
/null
; then
26395 if test -s conftest.err
; then
26396 ac_cpp_err
=$ac_c_preproc_warn_flag
26403 if test -z "$ac_cpp_err"; then
26404 ac_header_preproc
=yes
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.
$ac_ext >&5
26409 ac_header_preproc
=no
26411 rm -f conftest.err conftest.
$ac_ext
26412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26413 echo "${ECHO_T}$ac_header_preproc" >&6
26415 # So? What about this header?
26416 case $ac_header_compiler:$ac_header_preproc in
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26424 ## ------------------------------------ ##
26425 ## Report this to bug-autoconf@gnu.org. ##
26426 ## ------------------------------------ ##
26429 sed "s/^/$as_me: WARNING: /" >&2
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26440 ## ------------------------------------ ##
26441 ## Report this to bug-autoconf@gnu.org. ##
26442 ## ------------------------------------ ##
26445 sed "s/^/$as_me: WARNING: /" >&2
26448 echo "$as_me:$LINENO: checking for $ac_header" >&5
26449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 eval "$as_ac_Header=$ac_header_preproc"
26455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26460 cat >>confdefs.h
<<_ACEOF
26461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26469 for ac_func
in __fpending
26471 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26472 echo "$as_me:$LINENO: checking for $ac_func" >&5
26473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26474 if eval "test \"\${$as_ac_var+set}\" = set"; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26477 cat >conftest.
$ac_ext <<_ACEOF
26480 cat confdefs.h
>>conftest.
$ac_ext
26481 cat >>conftest.
$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483 /* System header to define __stub macros and hopefully few prototypes,
26484 which can conflict with char $ac_func (); below.
26485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26486 <limits.h> exists even on freestanding compilers. */
26488 # include <limits.h>
26490 # include <assert.h>
26492 /* Override any gcc2 internal prototype to avoid an error. */
26497 /* We use char because int might match the return type of a gcc2
26498 builtin and then its argument prototype would still apply. */
26500 /* The GNU C library defines this for functions which it implements
26501 to always fail with ENOSYS. Some functions are actually named
26502 something starting with __ and the normal name is an alias. */
26503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26506 char (*f) () = $ac_func;
26515 return f != $ac_func;
26520 rm -f conftest.
$ac_objext conftest
$ac_exeext
26521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26522 (eval $ac_link) 2>&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try
='test -s conftest$ac_exeext'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; }; then
26532 eval "$as_ac_var=yes"
26534 echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.
$ac_ext >&5
26537 eval "$as_ac_var=no"
26539 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26543 if test `eval echo '${'$as_ac_var'}'` = yes; then
26544 cat >>confdefs.h
<<_ACEOF
26545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26549 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
26555 # if HAVE_STDIO_EXT_H
26556 # include <stdio_ext.h>
26559 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26560 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26561 if test "${ac_cv_have_decl___fpending+set}" = set; then
26562 echo $ECHO_N "(cached) $ECHO_C" >&6
26564 cat >conftest.
$ac_ext <<_ACEOF
26567 cat confdefs.h
>>conftest.
$ac_ext
26568 cat >>conftest.
$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26576 char *p = (char *) __fpending;
26583 rm -f conftest.
$ac_objext
26584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26585 (eval $ac_compile) 2>&5
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } &&
26589 { ac_try
='test -s conftest.$ac_objext'
26590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591 (eval $ac_try) 2>&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); }; }; then
26595 ac_cv_have_decl___fpending
=yes
26597 echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.
$ac_ext >&5
26600 ac_cv_have_decl___fpending
=no
26602 rm -f conftest.
$ac_objext conftest.
$ac_ext
26604 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26605 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26606 if test $ac_cv_have_decl___fpending = yes; then
26608 cat >>confdefs.h
<<_ACEOF
26609 #define HAVE_DECL___FPENDING 1
26614 cat >>confdefs.h
<<_ACEOF
26615 #define HAVE_DECL___FPENDING 0
26622 if test $ac_cv_func___fpending = no
; then
26623 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26624 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26625 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 'fp->_IO_write_ptr - fp->_IO_write_base' \
26634 '# traditional Unix' \
26635 'fp->_ptr - fp->_base' \
26638 'fp->_p - fp->_bf._base' \
26640 '# SCO, Unixware' \
26641 'fp->__ptr - fp->__base' \
26644 'fp->__bufp - fp->__buffer' \
26646 '# old glibc iostream?' \
26647 'fp->_pptr - fp->_pbase' \
26650 '(*fp)->_ptr - (*fp)->_base' \
26652 '# e.g., DGUX R4.11; the info is not available' \
26656 # Skip each embedded comment.
26657 case "$ac_expr" in '#'*) continue;; esac
26659 cat >conftest.
$ac_ext <<_ACEOF
26662 cat confdefs.h
>>conftest.
$ac_ext
26663 cat >>conftest.
$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26670 FILE *fp = stdin; (void) ($ac_expr);
26675 rm -f conftest.
$ac_objext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26677 (eval $ac_compile) 2>&5
26679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680 (exit $ac_status); } &&
26681 { ac_try
='test -s conftest.$ac_objext'
26682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683 (eval $ac_try) 2>&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); }; }; then
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.
$ac_ext >&5
26694 rm -f conftest.
$ac_objext conftest.
$ac_ext
26695 test "$fp_done" = yes && break
26698 ac_cv_sys_pending_output_n_bytes
=$ac_expr
26702 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26703 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26705 cat >>confdefs.h
<<_ACEOF
26706 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26712 # autoconf-2.52 has a proper check for inttypes.h.
26715 if test $ac_cv_header_inttypes_h = yes; then
26716 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26717 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26718 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26722 cat >conftest.
$ac_ext <<_ACEOF
26725 cat confdefs.h
>>conftest.
$ac_ext
26726 cat >>conftest.
$ac_ext <<_ACEOF
26727 /* end confdefs.h. */
26728 #include <inttypes.h>
26741 rm -f conftest.
$ac_objext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743 (eval $ac_compile) 2>&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try
='test -s conftest.$ac_objext'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26753 gt_cv_inttypes_pri_broken
=no
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.
$ac_ext >&5
26758 gt_cv_inttypes_pri_broken
=yes
26760 rm -f conftest.
$ac_objext conftest.
$ac_ext
26763 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26764 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26766 if test "$gt_cv_inttypes_pri_broken" = yes; then
26768 cat >>confdefs.h
<<_ACEOF
26769 #define PRI_MACROS_BROKEN 1
26774 echo "$as_me:$LINENO: checking for getgroups" >&5
26775 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26776 if test "${ac_cv_func_getgroups+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26779 cat >conftest.
$ac_ext <<_ACEOF
26782 cat confdefs.h
>>conftest.
$ac_ext
26783 cat >>conftest.
$ac_ext <<_ACEOF
26784 /* end confdefs.h. */
26785 /* System header to define __stub macros and hopefully few prototypes,
26786 which can conflict with char getgroups (); below.
26787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788 <limits.h> exists even on freestanding compilers. */
26790 # include <limits.h>
26792 # include <assert.h>
26794 /* Override any gcc2 internal prototype to avoid an error. */
26799 /* We use char because int might match the return type of a gcc2
26800 builtin and then its argument prototype would still apply. */
26802 /* The GNU C library defines this for functions which it implements
26803 to always fail with ENOSYS. Some functions are actually named
26804 something starting with __ and the normal name is an alias. */
26805 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26808 char (*f) () = getgroups;
26817 return f != getgroups;
26822 rm -f conftest.
$ac_objext conftest
$ac_exeext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26824 (eval $ac_link) 2>&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } &&
26828 { ac_try
='test -s conftest$ac_exeext'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_cv_func_getgroups
=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.
$ac_ext >&5
26839 ac_cv_func_getgroups
=no
26841 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26844 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26847 # If we don't yet have getgroups, see if it's in -lbsd.
26848 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26850 if test $ac_cv_func_getgroups = no
; then
26851 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26852 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26853 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26856 ac_check_lib_save_LIBS
=$LIBS
26858 cat >conftest.
$ac_ext <<_ACEOF
26861 cat confdefs.h
>>conftest.
$ac_ext
26862 cat >>conftest.
$ac_ext <<_ACEOF
26863 /* end confdefs.h. */
26865 /* Override any gcc2 internal prototype to avoid an error. */
26869 /* We use char because int might match the return type of a gcc2
26870 builtin and then its argument prototype would still apply. */
26880 rm -f conftest.
$ac_objext conftest
$ac_exeext
26881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26882 (eval $ac_link) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
26886 { ac_try
='test -s conftest$ac_exeext'
26887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888 (eval $ac_try) 2>&5
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_bsd_getgroups
=yes
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.
$ac_ext >&5
26897 ac_cv_lib_bsd_getgroups
=no
26899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26900 LIBS
=$ac_check_lib_save_LIBS
26902 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26903 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26904 if test $ac_cv_lib_bsd_getgroups = yes; then
26905 GETGROUPS_LIB
=-lbsd
26910 # Run the program to test the functionality of the system-supplied
26911 # getgroups function only if there is such a function.
26912 if test $ac_cv_func_getgroups = yes; then
26913 echo "$as_me:$LINENO: checking for working getgroups" >&5
26914 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
26915 if test "${ac_cv_func_getgroups_works+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26918 if test "$cross_compiling" = yes; then
26919 ac_cv_func_getgroups_works
=no
26921 cat >conftest.
$ac_ext <<_ACEOF
26924 cat confdefs.h
>>conftest.
$ac_ext
26925 cat >>conftest.
$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26931 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26932 exit (getgroups (0, 0) == -1 ? 1 : 0);
26937 rm -f conftest
$ac_exeext
26938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26939 (eval $ac_link) 2>&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_cv_func_getgroups_works
=yes
26950 echo "$as_me: program exited with status $ac_status" >&5
26951 echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.
$ac_ext >&5
26954 ( exit $ac_status )
26955 ac_cv_func_getgroups_works
=no
26957 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26961 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26962 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
26963 if test $ac_cv_func_getgroups_works = yes; then
26965 cat >>confdefs.h
<<\_ACEOF
26966 #define HAVE_GETGROUPS 1
26973 if test $ac_cv_func_getgroups_works = no
; then
26974 LIBOBJS
="$LIBOBJS getgroups.$ac_objext"
26976 cat >>confdefs.h
<<\_ACEOF
26977 #define getgroups rpl_getgroups
26981 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
26983 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26984 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
26985 if test "${ac_cv_sys_largefile_source+set}" = set; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26989 ac_cv_sys_largefile_source
=no
26990 cat >conftest.
$ac_ext <<_ACEOF
26993 cat confdefs.h
>>conftest.
$ac_ext
26994 cat >>conftest.
$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
27005 rm -f conftest.
$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007 (eval $ac_compile) 2>&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
27011 { ac_try
='test -s conftest.$ac_objext'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; }; then
27019 echo "$as_me: failed program was:" >&5
27020 sed 's/^/| /' conftest.
$ac_ext >&5
27023 rm -f conftest.
$ac_objext conftest.
$ac_ext
27024 cat >conftest.
$ac_ext <<_ACEOF
27027 cat confdefs.h
>>conftest.
$ac_ext
27028 cat >>conftest.
$ac_ext <<_ACEOF
27029 /* end confdefs.h. */
27030 #define _LARGEFILE_SOURCE 1
27040 rm -f conftest.
$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042 (eval $ac_compile) 2>&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
27046 { ac_try
='test -s conftest.$ac_objext'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_cv_sys_largefile_source
=1; break
27054 echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.
$ac_ext >&5
27058 rm -f conftest.
$ac_objext conftest.
$ac_ext
27062 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27063 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27064 if test "$ac_cv_sys_largefile_source" != no
; then
27066 cat >>confdefs.h
<<_ACEOF
27067 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27073 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27074 # in glibc 2.1.3, but that breaks too many other things.
27075 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27076 echo "$as_me:$LINENO: checking for fseeko" >&5
27077 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27078 if test "${ac_cv_func_fseeko+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 cat >conftest.
$ac_ext <<_ACEOF
27084 cat confdefs.h
>>conftest.
$ac_ext
27085 cat >>conftest.
$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27091 return fseeko && fseeko (stdin, 0, 0);
27096 rm -f conftest.
$ac_objext conftest
$ac_exeext
27097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098 (eval $ac_link) 2>&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } &&
27102 { ac_try
='test -s conftest$ac_exeext'
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 ac_cv_func_fseeko
=yes
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.
$ac_ext >&5
27113 ac_cv_func_fseeko
=no
27115 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27117 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27118 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27119 if test $ac_cv_func_fseeko = yes; then
27121 cat >>confdefs.h
<<\_ACEOF
27122 #define HAVE_FSEEKO 1
27128 for ac_func
in vprintf
27130 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27131 echo "$as_me:$LINENO: checking for $ac_func" >&5
27132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27133 if eval "test \"\${$as_ac_var+set}\" = set"; then
27134 echo $ECHO_N "(cached) $ECHO_C" >&6
27136 cat >conftest.
$ac_ext <<_ACEOF
27139 cat confdefs.h
>>conftest.
$ac_ext
27140 cat >>conftest.
$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27142 /* System header to define __stub macros and hopefully few prototypes,
27143 which can conflict with char $ac_func (); below.
27144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27145 <limits.h> exists even on freestanding compilers. */
27147 # include <limits.h>
27149 # include <assert.h>
27151 /* Override any gcc2 internal prototype to avoid an error. */
27156 /* We use char because int might match the return type of a gcc2
27157 builtin and then its argument prototype would still apply. */
27159 /* The GNU C library defines this for functions which it implements
27160 to always fail with ENOSYS. Some functions are actually named
27161 something starting with __ and the normal name is an alias. */
27162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27165 char (*f) () = $ac_func;
27174 return f != $ac_func;
27179 rm -f conftest.
$ac_objext conftest
$ac_exeext
27180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27181 (eval $ac_link) 2>&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
27185 { ac_try
='test -s conftest$ac_exeext'
27186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187 (eval $ac_try) 2>&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); }; }; then
27191 eval "$as_ac_var=yes"
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.
$ac_ext >&5
27196 eval "$as_ac_var=no"
27198 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27202 if test `eval echo '${'$as_ac_var'}'` = yes; then
27203 cat >>confdefs.h
<<_ACEOF
27204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27207 echo "$as_me:$LINENO: checking for _doprnt" >&5
27208 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27209 if test "${ac_cv_func__doprnt+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27212 cat >conftest.
$ac_ext <<_ACEOF
27215 cat confdefs.h
>>conftest.
$ac_ext
27216 cat >>conftest.
$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 /* System header to define __stub macros and hopefully few prototypes,
27219 which can conflict with char _doprnt (); below.
27220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27221 <limits.h> exists even on freestanding compilers. */
27223 # include <limits.h>
27225 # include <assert.h>
27227 /* Override any gcc2 internal prototype to avoid an error. */
27232 /* We use char because int might match the return type of a gcc2
27233 builtin and then its argument prototype would still apply. */
27235 /* The GNU C library defines this for functions which it implements
27236 to always fail with ENOSYS. Some functions are actually named
27237 something starting with __ and the normal name is an alias. */
27238 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27241 char (*f) () = _doprnt;
27250 return f != _doprnt;
27255 rm -f conftest.
$ac_objext conftest
$ac_exeext
27256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27257 (eval $ac_link) 2>&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); } &&
27261 { ac_try
='test -s conftest$ac_exeext'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 ac_cv_func__doprnt
=yes
27269 echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.
$ac_ext >&5
27272 ac_cv_func__doprnt
=no
27274 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27276 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27277 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27278 if test $ac_cv_func__doprnt = yes; then
27280 cat >>confdefs.h
<<\_ACEOF
27281 #define HAVE_DOPRNT 1
27291 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27292 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27293 if test "${jm_cv_have_proc_uptime+set}" = set; then
27294 echo $ECHO_N "(cached) $ECHO_C" >&6
27296 jm_cv_have_proc_uptime
=no
27297 test -f /proc
/uptime \
27298 && test "$cross_compiling" = no \
27299 && cat < /proc
/uptime
>/dev
/null
2>/dev
/null \
27300 && jm_cv_have_proc_uptime
=yes
27302 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27303 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27304 if test $jm_cv_have_proc_uptime = yes; then
27306 cat >>confdefs.h
<<\_ACEOF
27307 #define HAVE_PROC_UPTIME 1
27314 for ac_func
in ftruncate
27316 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27317 echo "$as_me:$LINENO: checking for $ac_func" >&5
27318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27319 if eval "test \"\${$as_ac_var+set}\" = set"; then
27320 echo $ECHO_N "(cached) $ECHO_C" >&6
27322 cat >conftest.
$ac_ext <<_ACEOF
27325 cat confdefs.h
>>conftest.
$ac_ext
27326 cat >>conftest.
$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 /* System header to define __stub macros and hopefully few prototypes,
27329 which can conflict with char $ac_func (); below.
27330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27331 <limits.h> exists even on freestanding compilers. */
27333 # include <limits.h>
27335 # include <assert.h>
27337 /* Override any gcc2 internal prototype to avoid an error. */
27342 /* We use char because int might match the return type of a gcc2
27343 builtin and then its argument prototype would still apply. */
27345 /* The GNU C library defines this for functions which it implements
27346 to always fail with ENOSYS. Some functions are actually named
27347 something starting with __ and the normal name is an alias. */
27348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27351 char (*f) () = $ac_func;
27360 return f != $ac_func;
27365 rm -f conftest.
$ac_objext conftest
$ac_exeext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27367 (eval $ac_link) 2>&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
27371 { ac_try
='test -s conftest$ac_exeext'
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; }; then
27377 eval "$as_ac_var=yes"
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.
$ac_ext >&5
27382 eval "$as_ac_var=no"
27384 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27388 if test `eval echo '${'$as_ac_var'}'` = yes; then
27389 cat >>confdefs.h
<<_ACEOF
27390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27394 ftruncate_missing
=yes
27399 if test "$ftruncate_missing" = yes; then
27401 for ac_header
in unistd.h
27403 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27405 echo "$as_me:$LINENO: checking for $ac_header" >&5
27406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27408 echo $ECHO_N "(cached) $ECHO_C" >&6
27410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27413 # Is the header compilable?
27414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27416 cat >conftest.
$ac_ext <<_ACEOF
27419 cat confdefs.h
>>conftest.
$ac_ext
27420 cat >>conftest.
$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 $ac_includes_default
27423 #include <$ac_header>
27425 rm -f conftest.
$ac_objext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27427 (eval $ac_compile) 2>&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); } &&
27431 { ac_try
='test -s conftest.$ac_objext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 ac_header_compiler
=yes
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.
$ac_ext >&5
27442 ac_header_compiler
=no
27444 rm -f conftest.
$ac_objext conftest.
$ac_ext
27445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27446 echo "${ECHO_T}$ac_header_compiler" >&6
27448 # Is the header present?
27449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27451 cat >conftest.
$ac_ext <<_ACEOF
27454 cat confdefs.h
>>conftest.
$ac_ext
27455 cat >>conftest.
$ac_ext <<_ACEOF
27456 /* end confdefs.h. */
27457 #include <$ac_header>
27459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
27462 grep -v '^ *+' conftest.er1
>conftest.err
27464 cat conftest.err
>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); } >/dev
/null
; then
27467 if test -s conftest.err
; then
27468 ac_cpp_err
=$ac_c_preproc_warn_flag
27475 if test -z "$ac_cpp_err"; then
27476 ac_header_preproc
=yes
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.
$ac_ext >&5
27481 ac_header_preproc
=no
27483 rm -f conftest.err conftest.
$ac_ext
27484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27485 echo "${ECHO_T}$ac_header_preproc" >&6
27487 # So? What about this header?
27488 case $ac_header_compiler:$ac_header_preproc in
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27496 ## ------------------------------------ ##
27497 ## Report this to bug-autoconf@gnu.org. ##
27498 ## ------------------------------------ ##
27501 sed "s/^/$as_me: WARNING: /" >&2
27504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27512 ## ------------------------------------ ##
27513 ## Report this to bug-autoconf@gnu.org. ##
27514 ## ------------------------------------ ##
27517 sed "s/^/$as_me: WARNING: /" >&2
27520 echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27525 eval "$as_ac_Header=$ac_header_preproc"
27527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27532 cat >>confdefs.h
<<_ACEOF
27533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27541 for ac_func
in chsize
27543 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27544 echo "$as_me:$LINENO: checking for $ac_func" >&5
27545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27546 if eval "test \"\${$as_ac_var+set}\" = set"; then
27547 echo $ECHO_N "(cached) $ECHO_C" >&6
27549 cat >conftest.
$ac_ext <<_ACEOF
27552 cat confdefs.h
>>conftest.
$ac_ext
27553 cat >>conftest.
$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 /* System header to define __stub macros and hopefully few prototypes,
27556 which can conflict with char $ac_func (); below.
27557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27558 <limits.h> exists even on freestanding compilers. */
27560 # include <limits.h>
27562 # include <assert.h>
27564 /* Override any gcc2 internal prototype to avoid an error. */
27569 /* We use char because int might match the return type of a gcc2
27570 builtin and then its argument prototype would still apply. */
27572 /* The GNU C library defines this for functions which it implements
27573 to always fail with ENOSYS. Some functions are actually named
27574 something starting with __ and the normal name is an alias. */
27575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27578 char (*f) () = $ac_func;
27587 return f != $ac_func;
27592 rm -f conftest.
$ac_objext conftest
$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594 (eval $ac_link) 2>&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
27598 { ac_try
='test -s conftest$ac_exeext'
27599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600 (eval $ac_try) 2>&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); }; }; then
27604 eval "$as_ac_var=yes"
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.
$ac_ext >&5
27609 eval "$as_ac_var=no"
27611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27615 if test `eval echo '${'$as_ac_var'}'` = yes; then
27616 cat >>confdefs.h
<<_ACEOF
27617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27623 LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
27627 echo "$as_me:$LINENO: checking whether rename is broken" >&5
27628 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27629 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27633 rm -rf conftest.d1 conftest.d2
27634 mkdir conftest.d1 ||
27635 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27636 echo "$as_me: error: cannot create temporary directory" >&2;}
27637 { (exit 1); exit 1; }; }
27638 if test "$cross_compiling" = yes; then
27639 vb_cv_func_rename_trailing_slash_bug
=yes
27641 cat >conftest.
$ac_ext <<_ACEOF
27644 cat confdefs.h
>>conftest.
$ac_ext
27645 cat >>conftest.
$ac_ext <<_ACEOF
27646 /* end confdefs.h. */
27648 # include <stdio.h>
27652 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27656 rm -f conftest
$ac_exeext
27657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27658 (eval $ac_link) 2>&5
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663 (eval $ac_try) 2>&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 vb_cv_func_rename_trailing_slash_bug
=no
27669 echo "$as_me: program exited with status $ac_status" >&5
27670 echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.
$ac_ext >&5
27673 ( exit $ac_status )
27674 vb_cv_func_rename_trailing_slash_bug
=yes
27676 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27679 rm -rf conftest.d1 conftest.d2
27682 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27683 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27684 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27685 LIBOBJS
="$LIBOBJS rename.$ac_objext"
27687 cat >>confdefs.h
<<\_ACEOF
27688 #define RENAME_TRAILING_SLASH_BUG 1
27694 for ac_func
in mkstemp
27696 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27697 echo "$as_me:$LINENO: checking for $ac_func" >&5
27698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27699 if eval "test \"\${$as_ac_var+set}\" = set"; then
27700 echo $ECHO_N "(cached) $ECHO_C" >&6
27702 cat >conftest.
$ac_ext <<_ACEOF
27705 cat confdefs.h
>>conftest.
$ac_ext
27706 cat >>conftest.
$ac_ext <<_ACEOF
27707 /* end confdefs.h. */
27708 /* System header to define __stub macros and hopefully few prototypes,
27709 which can conflict with char $ac_func (); below.
27710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27711 <limits.h> exists even on freestanding compilers. */
27713 # include <limits.h>
27715 # include <assert.h>
27717 /* Override any gcc2 internal prototype to avoid an error. */
27722 /* We use char because int might match the return type of a gcc2
27723 builtin and then its argument prototype would still apply. */
27725 /* The GNU C library defines this for functions which it implements
27726 to always fail with ENOSYS. Some functions are actually named
27727 something starting with __ and the normal name is an alias. */
27728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27731 char (*f) () = $ac_func;
27740 return f != $ac_func;
27745 rm -f conftest.
$ac_objext conftest
$ac_exeext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747 (eval $ac_link) 2>&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } &&
27751 { ac_try
='test -s conftest$ac_exeext'
27752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753 (eval $ac_try) 2>&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); }; }; then
27757 eval "$as_ac_var=yes"
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.
$ac_ext >&5
27762 eval "$as_ac_var=no"
27764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27768 if test `eval echo '${'$as_ac_var'}'` = yes; then
27769 cat >>confdefs.h
<<_ACEOF
27770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27774 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
27779 if test $ac_cv_func_mkstemp = no
; then
27780 utils_cv_func_mkstemp_limitations
=yes
27782 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27783 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27784 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27788 if test "$cross_compiling" = yes; then
27789 utils_cv_func_mkstemp_limitations
=yes
27792 cat >conftest.
$ac_ext <<_ACEOF
27795 cat confdefs.h
>>conftest.
$ac_ext
27796 cat >>conftest.
$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27799 # include <stdlib.h>
27803 for (i = 0; i < 30; i++)
27805 char template[] = "conftestXXXXXX";
27806 int fd = mkstemp (template);
27815 rm -f conftest
$ac_exeext
27816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27817 (eval $ac_link) 2>&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 utils_cv_func_mkstemp_limitations
=no
27828 echo "$as_me: program exited with status $ac_status" >&5
27829 echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.
$ac_ext >&5
27832 ( exit $ac_status )
27833 utils_cv_func_mkstemp_limitations
=yes
27835 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27840 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27841 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27844 if test $utils_cv_func_mkstemp_limitations = yes; then
27845 LIBOBJS
="$LIBOBJS mkstemp.$ac_objext"
27846 LIBOBJS
="$LIBOBJS tempname.$ac_objext"
27848 cat >>confdefs.h
<<\_ACEOF
27849 #define mkstemp rpl_mkstemp
27854 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27855 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27856 if test "${ac_cv_func_closedir_void+set}" = set; then
27857 echo $ECHO_N "(cached) $ECHO_C" >&6
27859 if test "$cross_compiling" = yes; then
27860 ac_cv_func_closedir_void
=yes
27862 cat >conftest.
$ac_ext <<_ACEOF
27865 cat confdefs.h
>>conftest.
$ac_ext
27866 cat >>conftest.
$ac_ext <<_ACEOF
27867 /* end confdefs.h. */
27868 $ac_includes_default
27869 #include <$ac_header_dirent>
27870 #ifndef __cplusplus
27877 exit (closedir (opendir (".")) != 0);
27882 rm -f conftest
$ac_exeext
27883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27884 (eval $ac_link) 2>&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 ac_cv_func_closedir_void
=no
27895 echo "$as_me: program exited with status $ac_status" >&5
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.
$ac_ext >&5
27899 ( exit $ac_status )
27900 ac_cv_func_closedir_void
=yes
27902 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27905 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27906 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27907 if test $ac_cv_func_closedir_void = yes; then
27909 cat >>confdefs.h
<<\_ACEOF
27910 #define CLOSEDIR_VOID 1
27915 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
27916 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
27917 if test "${ac_cv_func_utime_null+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
27920 rm -f conftest.data
; >conftest.data
27921 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
27922 if test "$cross_compiling" = yes; then
27923 ac_cv_func_utime_null
=no
27925 cat >conftest.
$ac_ext <<_ACEOF
27928 cat confdefs.h
>>conftest.
$ac_ext
27929 cat >>conftest.
$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27931 $ac_includes_default
27936 exit (!(stat ("conftest.data", &s) == 0
27937 && utime ("conftest.data", (long *)0) == 0
27938 && stat ("conftest.data", &t) == 0
27939 && t.st_mtime >= s.st_mtime
27940 && t.st_mtime - s.st_mtime < 120));
27945 rm -f conftest
$ac_exeext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27947 (eval $ac_link) 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; }; then
27956 ac_cv_func_utime_null
=yes
27958 echo "$as_me: program exited with status $ac_status" >&5
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.
$ac_ext >&5
27962 ( exit $ac_status )
27963 ac_cv_func_utime_null
=no
27965 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27967 rm -f core core.
* *.core
27969 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
27970 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
27971 if test $ac_cv_func_utime_null = yes; then
27973 cat >>confdefs.h
<<\_ACEOF
27974 #define HAVE_UTIME_NULL 1
27978 rm -f conftest.data
27982 for ac_header
in utime.h
27984 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27986 echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27994 # Is the header compilable?
27995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27997 cat >conftest.
$ac_ext <<_ACEOF
28000 cat confdefs.h
>>conftest.
$ac_ext
28001 cat >>conftest.
$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28003 $ac_includes_default
28004 #include <$ac_header>
28006 rm -f conftest.
$ac_objext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28008 (eval $ac_compile) 2>&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try
='test -s conftest.$ac_objext'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; }; then
28018 ac_header_compiler
=yes
28020 echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.
$ac_ext >&5
28023 ac_header_compiler
=no
28025 rm -f conftest.
$ac_objext conftest.
$ac_ext
28026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28027 echo "${ECHO_T}$ac_header_compiler" >&6
28029 # Is the header present?
28030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28032 cat >conftest.
$ac_ext <<_ACEOF
28035 cat confdefs.h
>>conftest.
$ac_ext
28036 cat >>conftest.
$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28038 #include <$ac_header>
28040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28041 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28043 grep -v '^ *+' conftest.er1
>conftest.err
28045 cat conftest.err
>&5
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); } >/dev
/null
; then
28048 if test -s conftest.err
; then
28049 ac_cpp_err
=$ac_c_preproc_warn_flag
28056 if test -z "$ac_cpp_err"; then
28057 ac_header_preproc
=yes
28059 echo "$as_me: failed program was:" >&5
28060 sed 's/^/| /' conftest.
$ac_ext >&5
28062 ac_header_preproc
=no
28064 rm -f conftest.err conftest.
$ac_ext
28065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28066 echo "${ECHO_T}$ac_header_preproc" >&6
28068 # So? What about this header?
28069 case $ac_header_compiler:$ac_header_preproc in
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28077 ## ------------------------------------ ##
28078 ## Report this to bug-autoconf@gnu.org. ##
28079 ## ------------------------------------ ##
28082 sed "s/^/$as_me: WARNING: /" >&2
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28093 ## ------------------------------------ ##
28094 ## Report this to bug-autoconf@gnu.org. ##
28095 ## ------------------------------------ ##
28098 sed "s/^/$as_me: WARNING: /" >&2
28101 echo "$as_me:$LINENO: checking for $ac_header" >&5
28102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28104 echo $ECHO_N "(cached) $ECHO_C" >&6
28106 eval "$as_ac_Header=$ac_header_preproc"
28108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28113 cat >>confdefs.h
<<_ACEOF
28114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28124 if test $ac_cv_func_utime_null = no
; then
28125 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28126 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28127 if test "${ac_cv_func_utimes_null+set}" = set; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28130 rm -f conftest.data
; > conftest.data
28131 if test "$cross_compiling" = yes; then
28132 ac_cv_func_utimes_null
=no
28134 cat >conftest.
$ac_ext <<_ACEOF
28137 cat confdefs.h
>>conftest.
$ac_ext
28138 cat >>conftest.
$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28141 /* In case stat has been defined to rpl_stat, undef it here. */
28143 #include <sys/types.h>
28144 #include <sys/stat.h>
28147 exit(!(stat ("conftest.data", &s) == 0
28148 && utimes("conftest.data", (long *)0) == 0
28149 && stat("conftest.data", &t) == 0
28150 && t.st_mtime >= s.st_mtime
28151 && t.st_mtime - s.st_mtime < 120));
28154 rm -f conftest
$ac_exeext
28155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28156 (eval $ac_link) 2>&5
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; }; then
28165 ac_cv_func_utimes_null
=yes
28167 echo "$as_me: program exited with status $ac_status" >&5
28168 echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.
$ac_ext >&5
28171 ( exit $ac_status )
28172 ac_cv_func_utimes_null
=no
28174 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28176 rm -f core core.
* *.core
28178 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28179 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28181 if test $ac_cv_func_utimes_null = yes; then
28183 cat >>confdefs.h
<<\_ACEOF
28184 #define HAVE_UTIMES_NULL 1
28191 for ac_func
in utime
28193 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28194 echo "$as_me:$LINENO: checking for $ac_func" >&5
28195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28196 if eval "test \"\${$as_ac_var+set}\" = set"; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28199 cat >conftest.
$ac_ext <<_ACEOF
28202 cat confdefs.h
>>conftest.
$ac_ext
28203 cat >>conftest.
$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28205 /* System header to define __stub macros and hopefully few prototypes,
28206 which can conflict with char $ac_func (); below.
28207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208 <limits.h> exists even on freestanding compilers. */
28210 # include <limits.h>
28212 # include <assert.h>
28214 /* Override any gcc2 internal prototype to avoid an error. */
28219 /* We use char because int might match the return type of a gcc2
28220 builtin and then its argument prototype would still apply. */
28222 /* The GNU C library defines this for functions which it implements
28223 to always fail with ENOSYS. Some functions are actually named
28224 something starting with __ and the normal name is an alias. */
28225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28228 char (*f) () = $ac_func;
28237 return f != $ac_func;
28242 rm -f conftest.
$ac_objext conftest
$ac_exeext
28243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28244 (eval $ac_link) 2>&5
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); } &&
28248 { ac_try
='test -s conftest$ac_exeext'
28249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250 (eval $ac_try) 2>&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); }; }; then
28254 eval "$as_ac_var=yes"
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.
$ac_ext >&5
28259 eval "$as_ac_var=no"
28261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28265 if test `eval echo '${'$as_ac_var'}'` = yes; then
28266 cat >>confdefs.h
<<_ACEOF
28267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28271 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
28279 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28280 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28281 if test "${utils_cv_sys_open_max+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28285 if test "$cross_compiling" = yes; then
28286 utils_cv_sys_open_max
='cross compiling run-test in open-max.m4'
28288 cat >conftest.
$ac_ext <<_ACEOF
28291 cat confdefs.h
>>conftest.
$ac_ext
28292 cat >>conftest.
$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28296 #include <stdlib.h>
28297 #include <unistd.h>
28301 FILE *result = fopen ("conftest.omax", "w");
28303 /* Impose an arbitrary limit, in case some system has no
28304 effective limit on the number of simultaneously open files. */
28307 FILE *s = fopen ("conftest.op", "w");
28312 fprintf (result, "%d\n", i);
28313 exit (fclose (result) == EOF);
28317 rm -f conftest
$ac_exeext
28318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28319 (eval $ac_link) 2>&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28324 (eval $ac_try) 2>&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); }; }; then
28328 utils_cv_sys_open_max
=`cat conftest.omax`
28330 echo "$as_me: program exited with status $ac_status" >&5
28331 echo "$as_me: failed program was:" >&5
28332 sed 's/^/| /' conftest.
$ac_ext >&5
28334 ( exit $ac_status )
28335 utils_cv_sys_open_max
='internal error in open-max.m4'
28337 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28340 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28341 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28344 cat >>confdefs.h
<<_ACEOF
28345 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28350 echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
28351 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
28352 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28356 echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
28357 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
28358 if test "${ac_cv_have_decl_getcwd+set}" = set; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28361 cat >conftest.
$ac_ext <<_ACEOF
28364 cat confdefs.h
>>conftest.
$ac_ext
28365 cat >>conftest.
$ac_ext <<_ACEOF
28366 /* end confdefs.h. */
28367 $ac_includes_default
28372 char *p = (char *) getcwd;
28379 rm -f conftest.
$ac_objext
28380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28381 (eval $ac_compile) 2>&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } &&
28385 { ac_try
='test -s conftest.$ac_objext'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
28391 ac_cv_have_decl_getcwd
=yes
28393 echo "$as_me: failed program was:" >&5
28394 sed 's/^/| /' conftest.
$ac_ext >&5
28396 ac_cv_have_decl_getcwd
=no
28398 rm -f conftest.
$ac_objext conftest.
$ac_ext
28400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
28401 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
28402 if test $ac_cv_have_decl_getcwd = yes; then
28404 cat >>confdefs.h
<<_ACEOF
28405 #define HAVE_DECL_GETCWD 1
28410 cat >>confdefs.h
<<_ACEOF
28411 #define HAVE_DECL_GETCWD 0
28418 # Arrange for deletion of the temporary directory this test creates.
28419 ac_clean_files
="$ac_clean_files confdir3"
28420 if test "$cross_compiling" = yes; then
28421 gl_cv_func_getcwd_vs_path_max
=no
28423 cat >conftest.
$ac_ext <<_ACEOF
28426 cat confdefs.h
>>conftest.
$ac_ext
28427 cat >>conftest.
$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28430 #include <stdlib.h>
28431 #include <unistd.h>
28432 #include <string.h>
28433 #include <limits.h>
28434 #include <sys/stat.h>
28435 #include <sys/types.h>
28437 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
28441 # define CHAR_BIT 8
28444 /* The extra casts work around common compiler bugs. */
28445 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
28446 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
28447 It is necessary at least when t == time_t. */
28448 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
28449 ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
28450 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
28453 # define INT_MAX TYPE_MAXIMUM (int)
28457 /* There might be a better way to handle this case, but note:
28458 - the value shouldn't be anywhere near INT_MAX, and
28459 - the value shouldn't be so big that the local declaration, below,
28460 blows the stack. */
28461 # define PATH_MAX 40000
28464 /* The length of this name must be 8. */
28465 #define DIR_NAME "confdir3"
28470 /* The '9' comes from strlen (DIR_NAME) + 1. */
28471 #if INT_MAX - 9 <= PATH_MAX
28472 /* FIXME: Assuming there's a system for which this is true -- Hurd?,
28473 this should be done in a compile test. */
28476 char buf[PATH_MAX + 20];
28477 char *cwd = getcwd (buf, PATH_MAX);
28480 size_t n_chdirs = 0;
28485 cwd_len = strlen (cwd);
28492 cwd_len += 1 + strlen (DIR_NAME);
28493 /* If mkdir or chdir fails, be pessimistic and consider that
28494 as a failure, too. */
28495 if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
28500 if ((c = getcwd (buf, PATH_MAX)) == NULL)
28502 /* This allows any failure to indicate there is no bug.
28503 FIXME: check errno? */
28506 if ((len = strlen (c)) != cwd_len)
28512 if (PATH_MAX < len)
28516 /* Leaving behind such a deep directory is not polite.
28517 So clean up here, right away, even though the driving
28518 shell script would also clean up. */
28522 /* Unlink first, in case the chdir failed. */
28524 for (i = 0; i <= n_chdirs; i++)
28526 if (chdir ("..") < 0)
28537 rm -f conftest
$ac_exeext
28538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28539 (eval $ac_link) 2>&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28548 gl_cv_func_getcwd_vs_path_max
=yes
28550 echo "$as_me: program exited with status $ac_status" >&5
28551 echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.
$ac_ext >&5
28554 ( exit $ac_status )
28555 gl_cv_func_getcwd_vs_path_max
=no
28557 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28560 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
28561 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
28563 if test $gl_cv_func_getcwd_vs_path_max = yes; then
28564 LIBOBJS
="$LIBOBJS getcwd.$ac_objext"
28566 cat >>confdefs.h
<<\_ACEOF
28567 #define getcwd rpl_getcwd
28573 if test "X$prefix" = "XNONE"; then
28574 acl_final_prefix
="$ac_default_prefix"
28576 acl_final_prefix
="$prefix"
28578 if test "X$exec_prefix" = "XNONE"; then
28579 acl_final_exec_prefix
='${prefix}'
28581 acl_final_exec_prefix
="$exec_prefix"
28583 acl_save_prefix
="$prefix"
28584 prefix
="$acl_final_prefix"
28585 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
28586 prefix
="$acl_save_prefix"
28589 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28590 if test "${with_gnu_ld+set}" = set; then
28591 withval
="$with_gnu_ld"
28592 test "$withval" = no || with_gnu_ld
=yes
28597 if test "$GCC" = yes; then
28598 # Check if gcc -print-prog-name=ld gives a path.
28599 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28600 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28603 # gcc leaves a trailing carriage return which upsets mingw
28604 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28606 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
28609 # Accept absolute paths.
28610 [\\/]* |
[A-Za-z
]:[\\/]*)
28611 re_direlt
='/[^/][^/]*/\.\./'
28612 # Canonicalize the path of ld
28613 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
28614 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
28615 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
28617 test -z "$LD" && LD
="$ac_prog"
28620 # If it fails, then pretend we aren't using GCC.
28624 # If it is relative, then search for the first ld in PATH.
28625 with_gnu_ld
=unknown
28628 elif test "$with_gnu_ld" = yes; then
28629 echo "$as_me:$LINENO: checking for GNU ld" >&5
28630 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28632 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28633 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28635 if test "${acl_cv_path_LD+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28638 if test -z "$LD"; then
28639 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28640 for ac_dir
in $PATH; do
28641 test -z "$ac_dir" && ac_dir
=.
28642 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
28643 acl_cv_path_LD
="$ac_dir/$ac_prog"
28644 # Check to see if the program is GNU ld. I'd rather use --version,
28645 # but apparently some GNU ld's only accept -v.
28646 # Break only if it was the GNU/non-GNU ld that we prefer.
28647 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
28648 test "$with_gnu_ld" != no
&& break
28650 test "$with_gnu_ld" != yes && break
28656 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
28660 LD
="$acl_cv_path_LD"
28661 if test -n "$LD"; then
28662 echo "$as_me:$LINENO: result: $LD" >&5
28663 echo "${ECHO_T}$LD" >&6
28665 echo "$as_me:$LINENO: result: no" >&5
28666 echo "${ECHO_T}no" >&6
28668 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28669 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28670 { (exit 1); exit 1; }; }
28671 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28672 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28673 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28674 echo $ECHO_N "(cached) $ECHO_C" >&6
28676 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28677 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
28678 acl_cv_prog_gnu_ld
=yes
28680 acl_cv_prog_gnu_ld
=no
28683 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28684 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28685 with_gnu_ld
=$acl_cv_prog_gnu_ld
28689 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28690 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28691 if test "${acl_cv_rpath+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28695 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
28696 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28698 rm -f .
/conftest.sh
28702 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28703 echo "${ECHO_T}$acl_cv_rpath" >&6
28705 libext
="$acl_cv_libext"
28706 shlibext
="$acl_cv_shlibext"
28707 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
28708 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
28709 hardcode_direct
="$acl_cv_hardcode_direct"
28710 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
28711 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
28712 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
28713 # Check whether --enable-rpath or --disable-rpath was given.
28714 if test "${enable_rpath+set}" = set; then
28715 enableval
="$enable_rpath"
28729 acl_save_prefix
="$prefix"
28730 prefix
="$acl_final_prefix"
28731 acl_save_exec_prefix
="$exec_prefix"
28732 exec_prefix
="$acl_final_exec_prefix"
28734 eval additional_includedir
=\"$includedir\"
28735 eval additional_libdir
=\"$libdir\"
28737 exec_prefix
="$acl_save_exec_prefix"
28738 prefix
="$acl_save_prefix"
28741 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28742 if test "${with_libiconv_prefix+set}" = set; then
28743 withval
="$with_libiconv_prefix"
28745 if test "X$withval" = "Xno"; then
28748 if test "X$withval" = "X"; then
28750 acl_save_prefix
="$prefix"
28751 prefix
="$acl_final_prefix"
28752 acl_save_exec_prefix
="$exec_prefix"
28753 exec_prefix
="$acl_final_exec_prefix"
28755 eval additional_includedir
=\"$includedir\"
28756 eval additional_libdir
=\"$libdir\"
28758 exec_prefix
="$acl_save_exec_prefix"
28759 prefix
="$acl_save_prefix"
28762 additional_includedir
="$withval/include"
28763 additional_libdir
="$withval/lib"
28773 names_already_handled
=
28774 names_next_round
='iconv '
28775 while test -n "$names_next_round"; do
28776 names_this_round
="$names_next_round"
28778 for name
in $names_this_round; do
28780 for n
in $names_already_handled; do
28781 if test "$n" = "$name"; then
28782 already_handled
=yes
28786 if test -z "$already_handled"; then
28787 names_already_handled
="$names_already_handled $name"
28788 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28789 eval value
=\"\
$HAVE_LIB$uppername\"
28790 if test -n "$value"; then
28791 if test "$value" = yes; then
28792 eval value
=\"\
$LIB$uppername\"
28793 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
28794 eval value
=\"\
$LTLIB$uppername\"
28795 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
28804 if test $use_additional = yes; then
28805 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28806 found_dir
="$additional_libdir"
28807 found_so
="$additional_libdir/lib$name.$shlibext"
28808 if test -f "$additional_libdir/lib$name.la"; then
28809 found_la
="$additional_libdir/lib$name.la"
28812 if test -f "$additional_libdir/lib$name.$libext"; then
28813 found_dir
="$additional_libdir"
28814 found_a
="$additional_libdir/lib$name.$libext"
28815 if test -f "$additional_libdir/lib$name.la"; then
28816 found_la
="$additional_libdir/lib$name.la"
28821 if test "X$found_dir" = "X"; then
28822 for x
in $LDFLAGS $LTLIBICONV; do
28824 acl_save_prefix
="$prefix"
28825 prefix
="$acl_final_prefix"
28826 acl_save_exec_prefix
="$exec_prefix"
28827 exec_prefix
="$acl_final_exec_prefix"
28829 exec_prefix
="$acl_save_exec_prefix"
28830 prefix
="$acl_save_prefix"
28834 dir
=`echo "X$x" | sed -e 's/^X-L//'`
28835 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28837 found_so
="$dir/lib$name.$shlibext"
28838 if test -f "$dir/lib$name.la"; then
28839 found_la
="$dir/lib$name.la"
28842 if test -f "$dir/lib$name.$libext"; then
28844 found_a
="$dir/lib$name.$libext"
28845 if test -f "$dir/lib$name.la"; then
28846 found_la
="$dir/lib$name.la"
28852 if test "X$found_dir" != "X"; then
28857 if test "X$found_dir" != "X"; then
28858 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28859 if test "X$found_so" != "X"; then
28860 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
28861 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28864 for x
in $ltrpathdirs; do
28865 if test "X$x" = "X$found_dir"; then
28870 if test -z "$haveit"; then
28871 ltrpathdirs
="$ltrpathdirs $found_dir"
28873 if test "$hardcode_direct" = yes; then
28874 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28876 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
28877 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28879 for x
in $rpathdirs; do
28880 if test "X$x" = "X$found_dir"; then
28885 if test -z "$haveit"; then
28886 rpathdirs
="$rpathdirs $found_dir"
28890 for x
in $LDFLAGS $LIBICONV; do
28892 acl_save_prefix
="$prefix"
28893 prefix
="$acl_final_prefix"
28894 acl_save_exec_prefix
="$exec_prefix"
28895 exec_prefix
="$acl_final_exec_prefix"
28897 exec_prefix
="$acl_save_exec_prefix"
28898 prefix
="$acl_save_prefix"
28900 if test "X$x" = "X-L$found_dir"; then
28905 if test -z "$haveit"; then
28906 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28908 if test "$hardcode_minus_L" != no
; then
28909 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28911 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
28917 if test "X$found_a" != "X"; then
28918 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
28920 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28923 additional_includedir
=
28924 case "$found_dir" in
28926 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28927 additional_includedir
="$basedir/include"
28930 if test "X$additional_includedir" != "X"; then
28931 if test "X$additional_includedir" != "X/usr/include"; then
28933 if test "X$additional_includedir" = "X/usr/local/include"; then
28934 if test -n "$GCC"; then
28936 linux
*) haveit
=yes;;
28940 if test -z "$haveit"; then
28941 for x
in $CPPFLAGS $INCICONV; do
28943 acl_save_prefix
="$prefix"
28944 prefix
="$acl_final_prefix"
28945 acl_save_exec_prefix
="$exec_prefix"
28946 exec_prefix
="$acl_final_exec_prefix"
28948 exec_prefix
="$acl_save_exec_prefix"
28949 prefix
="$acl_save_prefix"
28951 if test "X$x" = "X-I$additional_includedir"; then
28956 if test -z "$haveit"; then
28957 if test -d "$additional_includedir"; then
28958 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28964 if test -n "$found_la"; then
28965 save_libdir
="$libdir"
28966 case "$found_la" in
28967 */* |
*\\*) .
"$found_la" ;;
28968 *) .
"./$found_la" ;;
28970 libdir
="$save_libdir"
28971 for dep
in $dependency_libs; do
28974 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
28975 if test "X$additional_libdir" != "X/usr/lib"; then
28977 if test "X$additional_libdir" = "X/usr/local/lib"; then
28978 if test -n "$GCC"; then
28980 linux
*) haveit
=yes;;
28984 if test -z "$haveit"; then
28986 for x
in $LDFLAGS $LIBICONV; do
28988 acl_save_prefix
="$prefix"
28989 prefix
="$acl_final_prefix"
28990 acl_save_exec_prefix
="$exec_prefix"
28991 exec_prefix
="$acl_final_exec_prefix"
28993 exec_prefix
="$acl_save_exec_prefix"
28994 prefix
="$acl_save_prefix"
28996 if test "X$x" = "X-L$additional_libdir"; then
29001 if test -z "$haveit"; then
29002 if test -d "$additional_libdir"; then
29003 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
29007 for x
in $LDFLAGS $LTLIBICONV; do
29009 acl_save_prefix
="$prefix"
29010 prefix
="$acl_final_prefix"
29011 acl_save_exec_prefix
="$exec_prefix"
29012 exec_prefix
="$acl_final_exec_prefix"
29014 exec_prefix
="$acl_save_exec_prefix"
29015 prefix
="$acl_save_prefix"
29017 if test "X$x" = "X-L$additional_libdir"; then
29022 if test -z "$haveit"; then
29023 if test -d "$additional_libdir"; then
29024 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
29031 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
29032 if test "$enable_rpath" != no
; then
29034 for x
in $rpathdirs; do
29035 if test "X$x" = "X$dir"; then
29040 if test -z "$haveit"; then
29041 rpathdirs
="$rpathdirs $dir"
29044 for x
in $ltrpathdirs; do
29045 if test "X$x" = "X$dir"; then
29050 if test -z "$haveit"; then
29051 ltrpathdirs
="$ltrpathdirs $dir"
29056 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29059 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29062 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
29063 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
29069 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
29070 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
29076 if test "X$rpathdirs" != "X"; then
29077 if test -n "$hardcode_libdir_separator"; then
29079 for found_dir
in $rpathdirs; do
29080 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29082 acl_save_libdir
="$libdir"
29084 eval flag
=\"$hardcode_libdir_flag_spec\"
29085 libdir
="$acl_save_libdir"
29086 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
29088 for found_dir
in $rpathdirs; do
29089 acl_save_libdir
="$libdir"
29090 libdir
="$found_dir"
29091 eval flag
=\"$hardcode_libdir_flag_spec\"
29092 libdir
="$acl_save_libdir"
29093 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
29097 if test "X$ltrpathdirs" != "X"; then
29098 for found_dir
in $ltrpathdirs; do
29099 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
29105 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
29106 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
29107 if test "${ac_cv_win_or_dos+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29111 cat >conftest.
$ac_ext <<_ACEOF
29114 cat confdefs.h
>>conftest.
$ac_ext
29115 cat >>conftest.
$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29121 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29122 neither MSDOS nor Windows
29128 rm -f conftest.
$ac_objext
29129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29130 (eval $ac_compile) 2>&5
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } &&
29134 { ac_try
='test -s conftest.$ac_objext'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
29140 ac_cv_win_or_dos
=yes
29142 echo "$as_me: failed program was:" >&5
29143 sed 's/^/| /' conftest.
$ac_ext >&5
29145 ac_cv_win_or_dos
=no
29147 rm -f conftest.
$ac_objext conftest.
$ac_ext
29150 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29151 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29153 if test x
"$ac_cv_win_or_dos" = xyes
; then
29154 ac_fs_accepts_drive_letter_prefix
=1
29155 ac_fs_backslash_is_file_name_separator
=1
29157 ac_fs_accepts_drive_letter_prefix
=0
29158 ac_fs_backslash_is_file_name_separator
=0
29165 cat >>confdefs.h
<<_ACEOF
29166 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29174 cat >>confdefs.h
<<_ACEOF
29175 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29184 for ac_header
in string.h sys
/param.h stddef.h
29186 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29188 echo "$as_me:$LINENO: checking for $ac_header" >&5
29189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29191 echo $ECHO_N "(cached) $ECHO_C" >&6
29193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29196 # Is the header compilable?
29197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29199 cat >conftest.
$ac_ext <<_ACEOF
29202 cat confdefs.h
>>conftest.
$ac_ext
29203 cat >>conftest.
$ac_ext <<_ACEOF
29204 /* end confdefs.h. */
29205 $ac_includes_default
29206 #include <$ac_header>
29208 rm -f conftest.
$ac_objext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29210 (eval $ac_compile) 2>&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try
='test -s conftest.$ac_objext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 ac_header_compiler
=yes
29222 echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.
$ac_ext >&5
29225 ac_header_compiler
=no
29227 rm -f conftest.
$ac_objext conftest.
$ac_ext
29228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29229 echo "${ECHO_T}$ac_header_compiler" >&6
29231 # Is the header present?
29232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29234 cat >conftest.
$ac_ext <<_ACEOF
29237 cat confdefs.h
>>conftest.
$ac_ext
29238 cat >>conftest.
$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29240 #include <$ac_header>
29242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29243 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29245 grep -v '^ *+' conftest.er1
>conftest.err
29247 cat conftest.err
>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } >/dev
/null
; then
29250 if test -s conftest.err
; then
29251 ac_cpp_err
=$ac_c_preproc_warn_flag
29258 if test -z "$ac_cpp_err"; then
29259 ac_header_preproc
=yes
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.
$ac_ext >&5
29264 ac_header_preproc
=no
29266 rm -f conftest.err conftest.
$ac_ext
29267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29268 echo "${ECHO_T}$ac_header_preproc" >&6
29270 # So? What about this header?
29271 case $ac_header_compiler:$ac_header_preproc in
29273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29279 ## ------------------------------------ ##
29280 ## Report this to bug-autoconf@gnu.org. ##
29281 ## ------------------------------------ ##
29284 sed "s/^/$as_me: WARNING: /" >&2
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29295 ## ------------------------------------ ##
29296 ## Report this to bug-autoconf@gnu.org. ##
29297 ## ------------------------------------ ##
29300 sed "s/^/$as_me: WARNING: /" >&2
29303 echo "$as_me:$LINENO: checking for $ac_header" >&5
29304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 eval "$as_ac_Header=$ac_header_preproc"
29310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29315 cat >>confdefs.h
<<_ACEOF
29316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29324 for ac_func
in resolvepath
29326 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29327 echo "$as_me:$LINENO: checking for $ac_func" >&5
29328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29329 if eval "test \"\${$as_ac_var+set}\" = set"; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 cat >conftest.
$ac_ext <<_ACEOF
29335 cat confdefs.h
>>conftest.
$ac_ext
29336 cat >>conftest.
$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29338 /* System header to define __stub macros and hopefully few prototypes,
29339 which can conflict with char $ac_func (); below.
29340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29341 <limits.h> exists even on freestanding compilers. */
29343 # include <limits.h>
29345 # include <assert.h>
29347 /* Override any gcc2 internal prototype to avoid an error. */
29352 /* We use char because int might match the return type of a gcc2
29353 builtin and then its argument prototype would still apply. */
29355 /* The GNU C library defines this for functions which it implements
29356 to always fail with ENOSYS. Some functions are actually named
29357 something starting with __ and the normal name is an alias. */
29358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29361 char (*f) () = $ac_func;
29370 return f != $ac_func;
29375 rm -f conftest.
$ac_objext conftest
$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377 (eval $ac_link) 2>&5
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); } &&
29381 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
29387 eval "$as_ac_var=yes"
29389 echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.
$ac_ext >&5
29392 eval "$as_ac_var=no"
29394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29398 if test `eval echo '${'$as_ac_var'}'` = yes; then
29399 cat >>confdefs.h
<<_ACEOF
29400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29408 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29409 # if the function name weren't so long. Besides, I would rather
29410 # not have underscores in file names.
29411 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29412 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29413 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29416 cat >conftest.
$ac_ext <<_ACEOF
29419 cat confdefs.h
>>conftest.
$ac_ext
29420 cat >>conftest.
$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29422 /* System header to define __stub macros and hopefully few prototypes,
29423 which can conflict with char canonicalize_file_name (); below.
29424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29425 <limits.h> exists even on freestanding compilers. */
29427 # include <limits.h>
29429 # include <assert.h>
29431 /* Override any gcc2 internal prototype to avoid an error. */
29436 /* We use char because int might match the return type of a gcc2
29437 builtin and then its argument prototype would still apply. */
29438 char canonicalize_file_name ();
29439 /* The GNU C library defines this for functions which it implements
29440 to always fail with ENOSYS. Some functions are actually named
29441 something starting with __ and the normal name is an alias. */
29442 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29445 char (*f) () = canonicalize_file_name;
29454 return f != canonicalize_file_name;
29459 rm -f conftest.
$ac_objext conftest
$ac_exeext
29460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29461 (eval $ac_link) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try
='test -s conftest$ac_exeext'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; }; then
29471 ac_cv_func_canonicalize_file_name
=yes
29473 echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.
$ac_ext >&5
29476 ac_cv_func_canonicalize_file_name
=no
29478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29480 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29481 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29482 if test $ac_cv_func_canonicalize_file_name = yes; then
29485 LIBOBJS
="$LIBOBJS canonicalize.$ac_objext"
29492 GNU_PACKAGE
="GNU $PACKAGE"
29494 cat >>confdefs.h
<<_ACEOF
29495 #define GNU_PACKAGE "$GNU_PACKAGE"
29501 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
29523 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29524 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29525 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29526 echo $ECHO_N "(cached) $ECHO_C" >&6
29528 cat >conftest.
$ac_ext <<_ACEOF
29531 cat confdefs.h
>>conftest.
$ac_ext
29532 cat >>conftest.
$ac_ext <<_ACEOF
29533 /* end confdefs.h. */
29534 $ac_includes_default
29535 #include <sys/stat.h>
29541 static struct stat ac_aggr;
29542 if (ac_aggr.st_author)
29548 rm -f conftest.
$ac_objext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29550 (eval $ac_compile) 2>&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try
='test -s conftest.$ac_objext'
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; }; then
29560 ac_cv_member_struct_stat_st_author
=yes
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.
$ac_ext >&5
29565 cat >conftest.
$ac_ext <<_ACEOF
29568 cat confdefs.h
>>conftest.
$ac_ext
29569 cat >>conftest.
$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 $ac_includes_default
29572 #include <sys/stat.h>
29578 static struct stat ac_aggr;
29579 if (sizeof ac_aggr.st_author)
29585 rm -f conftest.
$ac_objext
29586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29587 (eval $ac_compile) 2>&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } &&
29591 { ac_try
='test -s conftest.$ac_objext'
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597 ac_cv_member_struct_stat_st_author
=yes
29599 echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.
$ac_ext >&5
29602 ac_cv_member_struct_stat_st_author
=no
29604 rm -f conftest.
$ac_objext conftest.
$ac_ext
29606 rm -f conftest.
$ac_objext conftest.
$ac_ext
29608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29609 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29610 if test $ac_cv_member_struct_stat_st_author = yes; then
29612 cat >>confdefs.h
<<_ACEOF
29613 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29618 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29619 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29620 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29623 cat >conftest.
$ac_ext <<_ACEOF
29626 cat confdefs.h
>>conftest.
$ac_ext
29627 cat >>conftest.
$ac_ext <<_ACEOF
29628 /* end confdefs.h. */
29629 $ac_includes_default
29630 #include <sys/stat.h>
29636 static struct stat ac_aggr;
29637 if (ac_aggr.st_blksize)
29643 rm -f conftest.
$ac_objext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29645 (eval $ac_compile) 2>&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); } &&
29649 { ac_try
='test -s conftest.$ac_objext'
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 ac_cv_member_struct_stat_st_blksize
=yes
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.
$ac_ext >&5
29660 cat >conftest.
$ac_ext <<_ACEOF
29663 cat confdefs.h
>>conftest.
$ac_ext
29664 cat >>conftest.
$ac_ext <<_ACEOF
29665 /* end confdefs.h. */
29666 $ac_includes_default
29667 #include <sys/stat.h>
29673 static struct stat ac_aggr;
29674 if (sizeof ac_aggr.st_blksize)
29680 rm -f conftest.
$ac_objext
29681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29682 (eval $ac_compile) 2>&5
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } &&
29686 { ac_try
='test -s conftest.$ac_objext'
29687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688 (eval $ac_try) 2>&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
29692 ac_cv_member_struct_stat_st_blksize
=yes
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.
$ac_ext >&5
29697 ac_cv_member_struct_stat_st_blksize
=no
29699 rm -f conftest.
$ac_objext conftest.
$ac_ext
29701 rm -f conftest.
$ac_objext conftest.
$ac_ext
29703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29705 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29707 cat >>confdefs.h
<<_ACEOF
29708 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29730 echo "$as_me:$LINENO: checking for ino_t" >&5
29731 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29732 if test "${ac_cv_type_ino_t+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29735 cat >conftest.
$ac_ext <<_ACEOF
29738 cat confdefs.h
>>conftest.
$ac_ext
29739 cat >>conftest.
$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29747 if (sizeof (ino_t))
29753 rm -f conftest.
$ac_objext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29755 (eval $ac_compile) 2>&5
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); } &&
29759 { ac_try
='test -s conftest.$ac_objext'
29760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761 (eval $ac_try) 2>&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 ac_cv_type_ino_t
=yes
29767 echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.
$ac_ext >&5
29770 ac_cv_type_ino_t
=no
29772 rm -f conftest.
$ac_objext conftest.
$ac_ext
29774 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29775 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29776 if test $ac_cv_type_ino_t = yes; then
29780 cat >>confdefs.h
<<_ACEOF
29781 #define ino_t unsigned long
29787 echo "$as_me:$LINENO: checking for ssize_t" >&5
29788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29789 if test "${ac_cv_type_ssize_t+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 cat >conftest.
$ac_ext <<_ACEOF
29795 cat confdefs.h
>>conftest.
$ac_ext
29796 cat >>conftest.
$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 $ac_includes_default
29804 if (sizeof (ssize_t))
29810 rm -f conftest.
$ac_objext
29811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29812 (eval $ac_compile) 2>&5
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } &&
29816 { ac_try
='test -s conftest.$ac_objext'
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_type_ssize_t
=yes
29824 echo "$as_me: failed program was:" >&5
29825 sed 's/^/| /' conftest.
$ac_ext >&5
29827 ac_cv_type_ssize_t
=no
29829 rm -f conftest.
$ac_objext conftest.
$ac_ext
29831 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29832 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29833 if test $ac_cv_type_ssize_t = yes; then
29837 cat >>confdefs.h
<<_ACEOF
29838 #define ssize_t int
29843 echo "$as_me:$LINENO: checking for major_t" >&5
29844 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29845 if test "${ac_cv_type_major_t+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 cat >conftest.
$ac_ext <<_ACEOF
29851 cat confdefs.h
>>conftest.
$ac_ext
29852 cat >>conftest.
$ac_ext <<_ACEOF
29853 /* end confdefs.h. */
29854 $ac_includes_default
29860 if (sizeof (major_t))
29866 rm -f conftest.
$ac_objext
29867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29868 (eval $ac_compile) 2>&5
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); } &&
29872 { ac_try
='test -s conftest.$ac_objext'
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 ac_cv_type_major_t
=yes
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.
$ac_ext >&5
29883 ac_cv_type_major_t
=no
29885 rm -f conftest.
$ac_objext conftest.
$ac_ext
29887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29889 if test $ac_cv_type_major_t = yes; then
29893 cat >>confdefs.h
<<_ACEOF
29894 #define major_t unsigned int
29899 echo "$as_me:$LINENO: checking for minor_t" >&5
29900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29901 if test "${ac_cv_type_minor_t+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29904 cat >conftest.
$ac_ext <<_ACEOF
29907 cat confdefs.h
>>conftest.
$ac_ext
29908 cat >>conftest.
$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29910 $ac_includes_default
29916 if (sizeof (minor_t))
29922 rm -f conftest.
$ac_objext
29923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29924 (eval $ac_compile) 2>&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); } &&
29928 { ac_try
='test -s conftest.$ac_objext'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29934 ac_cv_type_minor_t
=yes
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.
$ac_ext >&5
29939 ac_cv_type_minor_t
=no
29941 rm -f conftest.
$ac_objext conftest.
$ac_ext
29943 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29944 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29945 if test $ac_cv_type_minor_t = yes; then
29949 cat >>confdefs.h
<<_ACEOF
29950 #define minor_t unsigned int
29965 # Assume we'll default to using the included regex.c.
29966 ac_use_included_regex
=yes
29968 # However, if the system regex support is good enough that it passes the
29969 # the following run test, then default to *not* using the included regex.c.
29970 # If cross compiling, assume the test would fail and use the included
29971 # regex.c. The first failing regular expression is from `Spencer ere
29972 # test #75' in grep-2.3.
29973 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29974 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29975 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29978 if test "$cross_compiling" = yes; then
29979 jm_cv_func_working_re_compile_pattern
=no
29981 cat >conftest.
$ac_ext <<_ACEOF
29984 cat confdefs.h
>>conftest.
$ac_ext
29985 cat >>conftest.
$ac_ext <<_ACEOF
29986 /* end confdefs.h. */
29988 #include <string.h>
29993 static struct re_pattern_buffer regex;
29995 struct re_registers regs;
29996 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29997 memset (®ex, 0, sizeof (regex));
29998 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
29999 /* This should fail with _Invalid character class name_ error. */
30003 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
30004 memset (®ex, 0, sizeof (regex));
30005 s = re_compile_pattern ("{1", 2, ®ex);
30010 /* The following example is derived from a problem report
30011 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
30012 memset (®ex, 0, sizeof (regex));
30013 s = re_compile_pattern ("[anù]*n", 7, ®ex);
30017 /* This should match, but doesn't for e.g. glibc-2.2.1. */
30018 if (re_match (®ex, "an", 2, 0, ®s) != 2)
30021 memset (®ex, 0, sizeof (regex));
30022 s = re_compile_pattern ("x", 1, ®ex);
30026 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
30027 work with a negative RANGE argument. */
30028 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
30035 rm -f conftest
$ac_exeext
30036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30037 (eval $ac_link) 2>&5
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 jm_cv_func_working_re_compile_pattern
=yes
30048 echo "$as_me: program exited with status $ac_status" >&5
30049 echo "$as_me: failed program was:" >&5
30050 sed 's/^/| /' conftest.
$ac_ext >&5
30052 ( exit $ac_status )
30053 jm_cv_func_working_re_compile_pattern
=no
30055 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30058 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
30059 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
30060 if test $jm_cv_func_working_re_compile_pattern = yes; then
30061 ac_use_included_regex
=no
30064 test -n "lib/regex.c" ||
{ { echo "$as_me:$LINENO: error: missing argument" >&5
30065 echo "$as_me: error: missing argument" >&2;}
30066 { (exit 1); exit 1; }; }
30070 # Check whether --with-included-regex or --without-included-regex was given.
30071 if test "${with_included_regex+set}" = set; then
30072 withval
="$with_included_regex"
30073 jm_with_regex
=$withval
30075 jm_with_regex
=$ac_use_included_regex
30077 if test "$jm_with_regex" = yes; then
30078 LIBOBJS
="$LIBOBJS regex.$ac_objext"
30113 for ac_func
in btowc
30115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30116 echo "$as_me:$LINENO: checking for $ac_func" >&5
30117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30118 if eval "test \"\${$as_ac_var+set}\" = set"; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30121 cat >conftest.
$ac_ext <<_ACEOF
30124 cat confdefs.h
>>conftest.
$ac_ext
30125 cat >>conftest.
$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 /* System header to define __stub macros and hopefully few prototypes,
30128 which can conflict with char $ac_func (); below.
30129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30130 <limits.h> exists even on freestanding compilers. */
30132 # include <limits.h>
30134 # include <assert.h>
30136 /* Override any gcc2 internal prototype to avoid an error. */
30141 /* We use char because int might match the return type of a gcc2
30142 builtin and then its argument prototype would still apply. */
30144 /* The GNU C library defines this for functions which it implements
30145 to always fail with ENOSYS. Some functions are actually named
30146 something starting with __ and the normal name is an alias. */
30147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30150 char (*f) () = $ac_func;
30159 return f != $ac_func;
30164 rm -f conftest.
$ac_objext conftest
$ac_exeext
30165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30166 (eval $ac_link) 2>&5
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); } &&
30170 { ac_try
='test -s conftest$ac_exeext'
30171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30172 (eval $ac_try) 2>&5
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); }; }; then
30176 eval "$as_ac_var=yes"
30178 echo "$as_me: failed program was:" >&5
30179 sed 's/^/| /' conftest.
$ac_ext >&5
30181 eval "$as_ac_var=no"
30183 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30187 if test `eval echo '${'$as_ac_var'}'` = yes; then
30188 cat >>confdefs.h
<<_ACEOF
30189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30240 # This is for od and stat, and any other program that
30241 # uses the PRI.MAX macros from inttypes.h.
30251 ac_have_func
=no
# yes means we've found a way to get the load average.
30253 # Make sure getloadavg.c is where it belongs, at configure-time.
30254 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30255 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30256 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30257 { (exit 1); exit 1; }; }
30261 # Check for getloadavg, but be sure not to touch the cache variable.
30262 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30263 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30264 if test "${ac_cv_func_getloadavg+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30267 cat >conftest.
$ac_ext <<_ACEOF
30270 cat confdefs.h
>>conftest.
$ac_ext
30271 cat >>conftest.
$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30273 /* System header to define __stub macros and hopefully few prototypes,
30274 which can conflict with char getloadavg (); below.
30275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30276 <limits.h> exists even on freestanding compilers. */
30278 # include <limits.h>
30280 # include <assert.h>
30282 /* Override any gcc2 internal prototype to avoid an error. */
30287 /* We use char because int might match the return type of a gcc2
30288 builtin and then its argument prototype would still apply. */
30289 char getloadavg ();
30290 /* The GNU C library defines this for functions which it implements
30291 to always fail with ENOSYS. Some functions are actually named
30292 something starting with __ and the normal name is an alias. */
30293 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30296 char (*f) () = getloadavg;
30305 return f != getloadavg;
30310 rm -f conftest.
$ac_objext conftest
$ac_exeext
30311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30312 (eval $ac_link) 2>&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); } &&
30316 { ac_try
='test -s conftest$ac_exeext'
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 ac_cv_func_getloadavg
=yes
30324 echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.
$ac_ext >&5
30327 ac_cv_func_getloadavg
=no
30329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30331 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30332 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30333 if test $ac_cv_func_getloadavg = yes; then
30338 ) && ac_have_func
=yes
30340 # On HPUX9, an unprivileged user can get load averages through this function.
30342 for ac_func
in pstat_getdynamic
30344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30345 echo "$as_me:$LINENO: checking for $ac_func" >&5
30346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30347 if eval "test \"\${$as_ac_var+set}\" = set"; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30350 cat >conftest.
$ac_ext <<_ACEOF
30353 cat confdefs.h
>>conftest.
$ac_ext
30354 cat >>conftest.
$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356 /* System header to define __stub macros and hopefully few prototypes,
30357 which can conflict with char $ac_func (); below.
30358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30359 <limits.h> exists even on freestanding compilers. */
30361 # include <limits.h>
30363 # include <assert.h>
30365 /* Override any gcc2 internal prototype to avoid an error. */
30370 /* We use char because int might match the return type of a gcc2
30371 builtin and then its argument prototype would still apply. */
30373 /* The GNU C library defines this for functions which it implements
30374 to always fail with ENOSYS. Some functions are actually named
30375 something starting with __ and the normal name is an alias. */
30376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30379 char (*f) () = $ac_func;
30388 return f != $ac_func;
30393 rm -f conftest.
$ac_objext conftest
$ac_exeext
30394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30395 (eval $ac_link) 2>&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } &&
30399 { ac_try
='test -s conftest$ac_exeext'
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 eval "$as_ac_var=yes"
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.
$ac_ext >&5
30410 eval "$as_ac_var=no"
30412 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30416 if test `eval echo '${'$as_ac_var'}'` = yes; then
30417 cat >>confdefs.h
<<_ACEOF
30418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30425 # Solaris has libkstat which does not require root.
30427 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30428 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30429 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30432 ac_check_lib_save_LIBS
=$LIBS
30433 LIBS
="-lkstat $LIBS"
30434 cat >conftest.
$ac_ext <<_ACEOF
30437 cat confdefs.h
>>conftest.
$ac_ext
30438 cat >>conftest.
$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30441 /* Override any gcc2 internal prototype to avoid an error. */
30445 /* We use char because int might match the return type of a gcc2
30446 builtin and then its argument prototype would still apply. */
30447 char kstat_open ();
30456 rm -f conftest.
$ac_objext conftest
$ac_exeext
30457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30458 (eval $ac_link) 2>&5
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); } &&
30462 { ac_try
='test -s conftest$ac_exeext'
30463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30464 (eval $ac_try) 2>&5
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); }; }; then
30468 ac_cv_lib_kstat_kstat_open
=yes
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.
$ac_ext >&5
30473 ac_cv_lib_kstat_kstat_open
=no
30475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30476 LIBS
=$ac_check_lib_save_LIBS
30478 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30479 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30480 if test $ac_cv_lib_kstat_kstat_open = yes; then
30481 cat >>confdefs.h
<<_ACEOF
30482 #define HAVE_LIBKSTAT 1
30485 LIBS
="-lkstat $LIBS"
30489 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
30491 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30492 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30493 # to get the right answer into the cache.
30494 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30495 if test $ac_have_func = no
; then
30496 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30497 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30498 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30499 echo $ECHO_N "(cached) $ECHO_C" >&6
30501 ac_check_lib_save_LIBS
=$LIBS
30503 cat >conftest.
$ac_ext <<_ACEOF
30506 cat confdefs.h
>>conftest.
$ac_ext
30507 cat >>conftest.
$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30510 /* Override any gcc2 internal prototype to avoid an error. */
30514 /* We use char because int might match the return type of a gcc2
30515 builtin and then its argument prototype would still apply. */
30525 rm -f conftest.
$ac_objext conftest
$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527 (eval $ac_link) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
30531 { ac_try
='test -s conftest$ac_exeext'
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 ac_cv_lib_elf_elf_begin
=yes
30539 echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.
$ac_ext >&5
30542 ac_cv_lib_elf_elf_begin
=no
30544 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30545 LIBS
=$ac_check_lib_save_LIBS
30547 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30548 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30549 if test $ac_cv_lib_elf_elf_begin = yes; then
30554 if test $ac_have_func = no
; then
30555 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30556 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30557 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30558 echo $ECHO_N "(cached) $ECHO_C" >&6
30560 ac_check_lib_save_LIBS
=$LIBS
30562 cat >conftest.
$ac_ext <<_ACEOF
30565 cat confdefs.h
>>conftest.
$ac_ext
30566 cat >>conftest.
$ac_ext <<_ACEOF
30567 /* end confdefs.h. */
30569 /* Override any gcc2 internal prototype to avoid an error. */
30573 /* We use char because int might match the return type of a gcc2
30574 builtin and then its argument prototype would still apply. */
30584 rm -f conftest.
$ac_objext conftest
$ac_exeext
30585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30586 (eval $ac_link) 2>&5
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); } &&
30590 { ac_try
='test -s conftest$ac_exeext'
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; }; then
30596 ac_cv_lib_kvm_kvm_open
=yes
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.
$ac_ext >&5
30601 ac_cv_lib_kvm_kvm_open
=no
30603 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30604 LIBS
=$ac_check_lib_save_LIBS
30606 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30607 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30608 if test $ac_cv_lib_kvm_kvm_open = yes; then
30612 # Check for the 4.4BSD definition of getloadavg.
30613 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30614 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30615 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30616 echo $ECHO_N "(cached) $ECHO_C" >&6
30618 ac_check_lib_save_LIBS
=$LIBS
30619 LIBS
="-lutil $LIBS"
30620 cat >conftest.
$ac_ext <<_ACEOF
30623 cat confdefs.h
>>conftest.
$ac_ext
30624 cat >>conftest.
$ac_ext <<_ACEOF
30625 /* end confdefs.h. */
30627 /* Override any gcc2 internal prototype to avoid an error. */
30631 /* We use char because int might match the return type of a gcc2
30632 builtin and then its argument prototype would still apply. */
30633 char getloadavg ();
30642 rm -f conftest.
$ac_objext conftest
$ac_exeext
30643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30644 (eval $ac_link) 2>&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
30648 { ac_try
='test -s conftest$ac_exeext'
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; }; then
30654 ac_cv_lib_util_getloadavg
=yes
30656 echo "$as_me: failed program was:" >&5
30657 sed 's/^/| /' conftest.
$ac_ext >&5
30659 ac_cv_lib_util_getloadavg
=no
30661 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30662 LIBS
=$ac_check_lib_save_LIBS
30664 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30665 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30666 if test $ac_cv_lib_util_getloadavg = yes; then
30667 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
30672 if test $ac_have_func = no
; then
30673 # There is a commonly available library for RS/6000 AIX.
30674 # Since it is not a standard part of AIX, it might be installed locally.
30675 ac_getloadavg_LIBS
=$LIBS
30676 LIBS
="-L/usr/local/lib $LIBS"
30677 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30678 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30679 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
30682 ac_check_lib_save_LIBS
=$LIBS
30683 LIBS
="-lgetloadavg $LIBS"
30684 cat >conftest.
$ac_ext <<_ACEOF
30687 cat confdefs.h
>>conftest.
$ac_ext
30688 cat >>conftest.
$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30691 /* Override any gcc2 internal prototype to avoid an error. */
30695 /* We use char because int might match the return type of a gcc2
30696 builtin and then its argument prototype would still apply. */
30697 char getloadavg ();
30706 rm -f conftest.
$ac_objext conftest
$ac_exeext
30707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30708 (eval $ac_link) 2>&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } &&
30712 { ac_try
='test -s conftest$ac_exeext'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30718 ac_cv_lib_getloadavg_getloadavg
=yes
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.
$ac_ext >&5
30723 ac_cv_lib_getloadavg_getloadavg
=no
30725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30726 LIBS
=$ac_check_lib_save_LIBS
30728 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30729 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30730 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30731 LIBS
="-lgetloadavg $LIBS"
30733 LIBS
=$ac_getloadavg_LIBS
30738 # Make sure it is really in the library, if we think we found it,
30739 # otherwise set up the replacement function.
30741 for ac_func
in getloadavg
30743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30744 echo "$as_me:$LINENO: checking for $ac_func" >&5
30745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30746 if eval "test \"\${$as_ac_var+set}\" = set"; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30749 cat >conftest.
$ac_ext <<_ACEOF
30752 cat confdefs.h
>>conftest.
$ac_ext
30753 cat >>conftest.
$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 /* System header to define __stub macros and hopefully few prototypes,
30756 which can conflict with char $ac_func (); below.
30757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30758 <limits.h> exists even on freestanding compilers. */
30760 # include <limits.h>
30762 # include <assert.h>
30764 /* Override any gcc2 internal prototype to avoid an error. */
30769 /* We use char because int might match the return type of a gcc2
30770 builtin and then its argument prototype would still apply. */
30772 /* The GNU C library defines this for functions which it implements
30773 to always fail with ENOSYS. Some functions are actually named
30774 something starting with __ and the normal name is an alias. */
30775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30778 char (*f) () = $ac_func;
30787 return f != $ac_func;
30792 rm -f conftest.
$ac_objext conftest
$ac_exeext
30793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30794 (eval $ac_link) 2>&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } &&
30798 { ac_try
='test -s conftest$ac_exeext'
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 eval "$as_ac_var=yes"
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.
$ac_ext >&5
30809 eval "$as_ac_var=no"
30811 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30815 if test `eval echo '${'$as_ac_var'}'` = yes; then
30816 cat >>confdefs.h
<<_ACEOF
30817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
30823 cat >>confdefs.h
<<\_ACEOF
30824 #define C_GETLOADAVG 1
30827 # Figure out what our getloadavg.c needs.
30829 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30830 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30831 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30832 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30835 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30836 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30838 # Is the header compilable?
30839 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30840 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30841 cat >conftest.
$ac_ext <<_ACEOF
30844 cat confdefs.h
>>conftest.
$ac_ext
30845 cat >>conftest.
$ac_ext <<_ACEOF
30846 /* end confdefs.h. */
30847 $ac_includes_default
30848 #include <sys/dg_sys_info.h>
30850 rm -f conftest.
$ac_objext
30851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30852 (eval $ac_compile) 2>&5
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); } &&
30856 { ac_try
='test -s conftest.$ac_objext'
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
30862 ac_header_compiler
=yes
30864 echo "$as_me: failed program was:" >&5
30865 sed 's/^/| /' conftest.
$ac_ext >&5
30867 ac_header_compiler
=no
30869 rm -f conftest.
$ac_objext conftest.
$ac_ext
30870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30871 echo "${ECHO_T}$ac_header_compiler" >&6
30873 # Is the header present?
30874 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30875 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30876 cat >conftest.
$ac_ext <<_ACEOF
30879 cat confdefs.h
>>conftest.
$ac_ext
30880 cat >>conftest.
$ac_ext <<_ACEOF
30881 /* end confdefs.h. */
30882 #include <sys/dg_sys_info.h>
30884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
30887 grep -v '^ *+' conftest.er1
>conftest.err
30889 cat conftest.err
>&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } >/dev
/null
; then
30892 if test -s conftest.err
; then
30893 ac_cpp_err
=$ac_c_preproc_warn_flag
30900 if test -z "$ac_cpp_err"; then
30901 ac_header_preproc
=yes
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.
$ac_ext >&5
30906 ac_header_preproc
=no
30908 rm -f conftest.err conftest.
$ac_ext
30909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30910 echo "${ECHO_T}$ac_header_preproc" >&6
30912 # So? What about this header?
30913 case $ac_header_compiler:$ac_header_preproc in
30915 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30916 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30917 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30918 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30921 ## ------------------------------------ ##
30922 ## Report this to bug-autoconf@gnu.org. ##
30923 ## ------------------------------------ ##
30926 sed "s/^/$as_me: WARNING: /" >&2
30929 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30930 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30931 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30932 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30933 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30934 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30937 ## ------------------------------------ ##
30938 ## Report this to bug-autoconf@gnu.org. ##
30939 ## ------------------------------------ ##
30942 sed "s/^/$as_me: WARNING: /" >&2
30945 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30946 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30947 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30950 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
30952 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30953 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30956 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30959 cat >>confdefs.h
<<\_ACEOF
30964 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30965 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30966 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30967 echo $ECHO_N "(cached) $ECHO_C" >&6
30969 ac_check_lib_save_LIBS
=$LIBS
30971 cat >conftest.
$ac_ext <<_ACEOF
30974 cat confdefs.h
>>conftest.
$ac_ext
30975 cat >>conftest.
$ac_ext <<_ACEOF
30976 /* end confdefs.h. */
30978 /* Override any gcc2 internal prototype to avoid an error. */
30982 /* We use char because int might match the return type of a gcc2
30983 builtin and then its argument prototype would still apply. */
30984 char dg_sys_info ();
30993 rm -f conftest.
$ac_objext conftest
$ac_exeext
30994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30995 (eval $ac_link) 2>&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } &&
30999 { ac_try
='test -s conftest$ac_exeext'
31000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001 (eval $ac_try) 2>&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 ac_cv_lib_dgc_dg_sys_info
=yes
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.
$ac_ext >&5
31010 ac_cv_lib_dgc_dg_sys_info
=no
31012 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31013 LIBS
=$ac_check_lib_save_LIBS
31015 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
31016 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
31017 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
31018 cat >>confdefs.h
<<_ACEOF
31019 #define HAVE_LIBDGC 1
31030 if test "${ac_cv_header_locale_h+set}" = set; then
31031 echo "$as_me:$LINENO: checking for locale.h" >&5
31032 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31033 if test "${ac_cv_header_locale_h+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31036 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31037 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31039 # Is the header compilable?
31040 echo "$as_me:$LINENO: checking locale.h usability" >&5
31041 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
31042 cat >conftest.
$ac_ext <<_ACEOF
31045 cat confdefs.h
>>conftest.
$ac_ext
31046 cat >>conftest.
$ac_ext <<_ACEOF
31047 /* end confdefs.h. */
31048 $ac_includes_default
31049 #include <locale.h>
31051 rm -f conftest.
$ac_objext
31052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31053 (eval $ac_compile) 2>&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); } &&
31057 { ac_try
='test -s conftest.$ac_objext'
31058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059 (eval $ac_try) 2>&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
31063 ac_header_compiler
=yes
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.
$ac_ext >&5
31068 ac_header_compiler
=no
31070 rm -f conftest.
$ac_objext conftest.
$ac_ext
31071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31072 echo "${ECHO_T}$ac_header_compiler" >&6
31074 # Is the header present?
31075 echo "$as_me:$LINENO: checking locale.h presence" >&5
31076 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
31077 cat >conftest.
$ac_ext <<_ACEOF
31080 cat confdefs.h
>>conftest.
$ac_ext
31081 cat >>conftest.
$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31083 #include <locale.h>
31085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31088 grep -v '^ *+' conftest.er1
>conftest.err
31090 cat conftest.err
>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } >/dev
/null
; then
31093 if test -s conftest.err
; then
31094 ac_cpp_err
=$ac_c_preproc_warn_flag
31101 if test -z "$ac_cpp_err"; then
31102 ac_header_preproc
=yes
31104 echo "$as_me: failed program was:" >&5
31105 sed 's/^/| /' conftest.
$ac_ext >&5
31107 ac_header_preproc
=no
31109 rm -f conftest.err conftest.
$ac_ext
31110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31111 echo "${ECHO_T}$ac_header_preproc" >&6
31113 # So? What about this header?
31114 case $ac_header_compiler:$ac_header_preproc in
31116 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31117 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31118 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31119 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31122 ## ------------------------------------ ##
31123 ## Report this to bug-autoconf@gnu.org. ##
31124 ## ------------------------------------ ##
31127 sed "s/^/$as_me: WARNING: /" >&2
31130 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31131 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31132 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31133 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31134 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31135 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31138 ## ------------------------------------ ##
31139 ## Report this to bug-autoconf@gnu.org. ##
31140 ## ------------------------------------ ##
31143 sed "s/^/$as_me: WARNING: /" >&2
31146 echo "$as_me:$LINENO: checking for locale.h" >&5
31147 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31148 if test "${ac_cv_header_locale_h+set}" = set; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31151 ac_cv_header_locale_h
=$ac_header_preproc
31153 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31154 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31160 for ac_func
in setlocale
31162 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31163 echo "$as_me:$LINENO: checking for $ac_func" >&5
31164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31165 if eval "test \"\${$as_ac_var+set}\" = set"; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31168 cat >conftest.
$ac_ext <<_ACEOF
31171 cat confdefs.h
>>conftest.
$ac_ext
31172 cat >>conftest.
$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31174 /* System header to define __stub macros and hopefully few prototypes,
31175 which can conflict with char $ac_func (); below.
31176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31177 <limits.h> exists even on freestanding compilers. */
31179 # include <limits.h>
31181 # include <assert.h>
31183 /* Override any gcc2 internal prototype to avoid an error. */
31188 /* We use char because int might match the return type of a gcc2
31189 builtin and then its argument prototype would still apply. */
31191 /* The GNU C library defines this for functions which it implements
31192 to always fail with ENOSYS. Some functions are actually named
31193 something starting with __ and the normal name is an alias. */
31194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31197 char (*f) () = $ac_func;
31206 return f != $ac_func;
31211 rm -f conftest.
$ac_objext conftest
$ac_exeext
31212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31213 (eval $ac_link) 2>&5
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } &&
31217 { ac_try
='test -s conftest$ac_exeext'
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; }; then
31223 eval "$as_ac_var=yes"
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.
$ac_ext >&5
31228 eval "$as_ac_var=no"
31230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31234 if test `eval echo '${'$as_ac_var'}'` = yes; then
31235 cat >>confdefs.h
<<_ACEOF
31236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31243 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31244 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
31245 # Irix 4.0.5F has the header but not the library.
31246 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
31249 cat >>confdefs.h
<<\_ACEOF
31255 if test $ac_have_func = no
; then
31256 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31257 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31258 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31259 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31262 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31263 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31265 # Is the header compilable?
31266 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31267 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31268 cat >conftest.
$ac_ext <<_ACEOF
31271 cat confdefs.h
>>conftest.
$ac_ext
31272 cat >>conftest.
$ac_ext <<_ACEOF
31273 /* end confdefs.h. */
31274 $ac_includes_default
31275 #include <inq_stats/cpustats.h>
31277 rm -f conftest.
$ac_objext
31278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31279 (eval $ac_compile) 2>&5
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); } &&
31283 { ac_try
='test -s conftest.$ac_objext'
31284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31285 (eval $ac_try) 2>&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); }; }; then
31289 ac_header_compiler
=yes
31291 echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.
$ac_ext >&5
31294 ac_header_compiler
=no
31296 rm -f conftest.
$ac_objext conftest.
$ac_ext
31297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31298 echo "${ECHO_T}$ac_header_compiler" >&6
31300 # Is the header present?
31301 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31302 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31303 cat >conftest.
$ac_ext <<_ACEOF
31306 cat confdefs.h
>>conftest.
$ac_ext
31307 cat >>conftest.
$ac_ext <<_ACEOF
31308 /* end confdefs.h. */
31309 #include <inq_stats/cpustats.h>
31311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31312 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31314 grep -v '^ *+' conftest.er1
>conftest.err
31316 cat conftest.err
>&5
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); } >/dev
/null
; then
31319 if test -s conftest.err
; then
31320 ac_cpp_err
=$ac_c_preproc_warn_flag
31327 if test -z "$ac_cpp_err"; then
31328 ac_header_preproc
=yes
31330 echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.
$ac_ext >&5
31333 ac_header_preproc
=no
31335 rm -f conftest.err conftest.
$ac_ext
31336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31337 echo "${ECHO_T}$ac_header_preproc" >&6
31339 # So? What about this header?
31340 case $ac_header_compiler:$ac_header_preproc in
31342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31343 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31344 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31345 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31348 ## ------------------------------------ ##
31349 ## Report this to bug-autoconf@gnu.org. ##
31350 ## ------------------------------------ ##
31353 sed "s/^/$as_me: WARNING: /" >&2
31356 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31357 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31358 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31359 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31360 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31361 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31364 ## ------------------------------------ ##
31365 ## Report this to bug-autoconf@gnu.org. ##
31366 ## ------------------------------------ ##
31369 sed "s/^/$as_me: WARNING: /" >&2
31372 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31373 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31375 echo $ECHO_N "(cached) $ECHO_C" >&6
31377 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
31379 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31380 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31383 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31386 cat >>confdefs.h
<<\_ACEOF
31391 cat >>confdefs.h
<<\_ACEOF
31400 if test $ac_have_func = no
; then
31401 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31402 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31403 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31404 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31407 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31408 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31410 # Is the header compilable?
31411 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31412 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31413 cat >conftest.
$ac_ext <<_ACEOF
31416 cat confdefs.h
>>conftest.
$ac_ext
31417 cat >>conftest.
$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31419 $ac_includes_default
31420 #include <sys/cpustats.h>
31422 rm -f conftest.
$ac_objext
31423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31424 (eval $ac_compile) 2>&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try
='test -s conftest.$ac_objext'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
31434 ac_header_compiler
=yes
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.
$ac_ext >&5
31439 ac_header_compiler
=no
31441 rm -f conftest.
$ac_objext conftest.
$ac_ext
31442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31443 echo "${ECHO_T}$ac_header_compiler" >&6
31445 # Is the header present?
31446 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31447 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31448 cat >conftest.
$ac_ext <<_ACEOF
31451 cat confdefs.h
>>conftest.
$ac_ext
31452 cat >>conftest.
$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31454 #include <sys/cpustats.h>
31456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31459 grep -v '^ *+' conftest.er1
>conftest.err
31461 cat conftest.err
>&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } >/dev
/null
; then
31464 if test -s conftest.err
; then
31465 ac_cpp_err
=$ac_c_preproc_warn_flag
31472 if test -z "$ac_cpp_err"; then
31473 ac_header_preproc
=yes
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.
$ac_ext >&5
31478 ac_header_preproc
=no
31480 rm -f conftest.err conftest.
$ac_ext
31481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31482 echo "${ECHO_T}$ac_header_preproc" >&6
31484 # So? What about this header?
31485 case $ac_header_compiler:$ac_header_preproc in
31487 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31488 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31489 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31490 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31493 ## ------------------------------------ ##
31494 ## Report this to bug-autoconf@gnu.org. ##
31495 ## ------------------------------------ ##
31498 sed "s/^/$as_me: WARNING: /" >&2
31501 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31502 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31504 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31506 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31509 ## ------------------------------------ ##
31510 ## Report this to bug-autoconf@gnu.org. ##
31511 ## ------------------------------------ ##
31514 sed "s/^/$as_me: WARNING: /" >&2
31517 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31518 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31519 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31522 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
31524 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31525 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31528 if test $ac_cv_header_sys_cpustats_h = yes; then
31529 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
31538 if test $ac_have_func = no
; then
31540 for ac_header
in mach
/mach.h
31542 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31544 echo "$as_me:$LINENO: checking for $ac_header" >&5
31545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31552 # Is the header compilable?
31553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31555 cat >conftest.
$ac_ext <<_ACEOF
31558 cat confdefs.h
>>conftest.
$ac_ext
31559 cat >>conftest.
$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 $ac_includes_default
31562 #include <$ac_header>
31564 rm -f conftest.
$ac_objext
31565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31566 (eval $ac_compile) 2>&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } &&
31570 { ac_try
='test -s conftest.$ac_objext'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_header_compiler
=yes
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.
$ac_ext >&5
31581 ac_header_compiler
=no
31583 rm -f conftest.
$ac_objext conftest.
$ac_ext
31584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31585 echo "${ECHO_T}$ac_header_compiler" >&6
31587 # Is the header present?
31588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31590 cat >conftest.
$ac_ext <<_ACEOF
31593 cat confdefs.h
>>conftest.
$ac_ext
31594 cat >>conftest.
$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 #include <$ac_header>
31598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31599 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31601 grep -v '^ *+' conftest.er1
>conftest.err
31603 cat conftest.err
>&5
31604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605 (exit $ac_status); } >/dev
/null
; then
31606 if test -s conftest.err
; then
31607 ac_cpp_err
=$ac_c_preproc_warn_flag
31614 if test -z "$ac_cpp_err"; then
31615 ac_header_preproc
=yes
31617 echo "$as_me: failed program was:" >&5
31618 sed 's/^/| /' conftest.
$ac_ext >&5
31620 ac_header_preproc
=no
31622 rm -f conftest.err conftest.
$ac_ext
31623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31624 echo "${ECHO_T}$ac_header_preproc" >&6
31626 # So? What about this header?
31627 case $ac_header_compiler:$ac_header_preproc in
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31635 ## ------------------------------------ ##
31636 ## Report this to bug-autoconf@gnu.org. ##
31637 ## ------------------------------------ ##
31640 sed "s/^/$as_me: WARNING: /" >&2
31643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31651 ## ------------------------------------ ##
31652 ## Report this to bug-autoconf@gnu.org. ##
31653 ## ------------------------------------ ##
31656 sed "s/^/$as_me: WARNING: /" >&2
31659 echo "$as_me:$LINENO: checking for $ac_header" >&5
31660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31664 eval "$as_ac_Header=$ac_header_preproc"
31666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31671 cat >>confdefs.h
<<_ACEOF
31672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31682 for ac_header
in nlist.h
31684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31686 echo "$as_me:$LINENO: checking for $ac_header" >&5
31687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31694 # Is the header compilable?
31695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31697 cat >conftest.
$ac_ext <<_ACEOF
31700 cat confdefs.h
>>conftest.
$ac_ext
31701 cat >>conftest.
$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31703 $ac_includes_default
31704 #include <$ac_header>
31706 rm -f conftest.
$ac_objext
31707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31708 (eval $ac_compile) 2>&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } &&
31712 { ac_try
='test -s conftest.$ac_objext'
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; }; then
31718 ac_header_compiler
=yes
31720 echo "$as_me: failed program was:" >&5
31721 sed 's/^/| /' conftest.
$ac_ext >&5
31723 ac_header_compiler
=no
31725 rm -f conftest.
$ac_objext conftest.
$ac_ext
31726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31727 echo "${ECHO_T}$ac_header_compiler" >&6
31729 # Is the header present?
31730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31732 cat >conftest.
$ac_ext <<_ACEOF
31735 cat confdefs.h
>>conftest.
$ac_ext
31736 cat >>conftest.
$ac_ext <<_ACEOF
31737 /* end confdefs.h. */
31738 #include <$ac_header>
31740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31743 grep -v '^ *+' conftest.er1
>conftest.err
31745 cat conftest.err
>&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } >/dev
/null
; then
31748 if test -s conftest.err
; then
31749 ac_cpp_err
=$ac_c_preproc_warn_flag
31756 if test -z "$ac_cpp_err"; then
31757 ac_header_preproc
=yes
31759 echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.
$ac_ext >&5
31762 ac_header_preproc
=no
31764 rm -f conftest.err conftest.
$ac_ext
31765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31766 echo "${ECHO_T}$ac_header_preproc" >&6
31768 # So? What about this header?
31769 case $ac_header_compiler:$ac_header_preproc in
31771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31777 ## ------------------------------------ ##
31778 ## Report this to bug-autoconf@gnu.org. ##
31779 ## ------------------------------------ ##
31782 sed "s/^/$as_me: WARNING: /" >&2
31785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31793 ## ------------------------------------ ##
31794 ## Report this to bug-autoconf@gnu.org. ##
31795 ## ------------------------------------ ##
31798 sed "s/^/$as_me: WARNING: /" >&2
31801 echo "$as_me:$LINENO: checking for $ac_header" >&5
31802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31804 echo $ECHO_N "(cached) $ECHO_C" >&6
31806 eval "$as_ac_Header=$ac_header_preproc"
31808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31813 cat >>confdefs.h
<<_ACEOF
31814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31816 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31817 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31818 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31821 cat >conftest.
$ac_ext <<_ACEOF
31824 cat confdefs.h
>>conftest.
$ac_ext
31825 cat >>conftest.
$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31832 static struct nlist ac_aggr;
31833 if (ac_aggr.n_un.n_name)
31839 rm -f conftest.
$ac_objext
31840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31841 (eval $ac_compile) 2>&5
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); } &&
31845 { ac_try
='test -s conftest.$ac_objext'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 ac_cv_member_struct_nlist_n_un_n_name
=yes
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.
$ac_ext >&5
31856 cat >conftest.
$ac_ext <<_ACEOF
31859 cat confdefs.h
>>conftest.
$ac_ext
31860 cat >>conftest.
$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31867 static struct nlist ac_aggr;
31868 if (sizeof ac_aggr.n_un.n_name)
31874 rm -f conftest.
$ac_objext
31875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31876 (eval $ac_compile) 2>&5
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); } &&
31880 { ac_try
='test -s conftest.$ac_objext'
31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882 (eval $ac_try) 2>&5
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; }; then
31886 ac_cv_member_struct_nlist_n_un_n_name
=yes
31888 echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.
$ac_ext >&5
31891 ac_cv_member_struct_nlist_n_un_n_name
=no
31893 rm -f conftest.
$ac_objext conftest.
$ac_ext
31895 rm -f conftest.
$ac_objext conftest.
$ac_ext
31897 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31898 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31899 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31901 cat >>confdefs.h
<<_ACEOF
31902 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31906 cat >>confdefs.h
<<\_ACEOF
31907 #define NLIST_NAME_UNION 1
31921 # Some definitions of getloadavg require that the program be installed setgid.
31922 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31923 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31924 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 cat >conftest.
$ac_ext <<_ACEOF
31930 cat confdefs.h
>>conftest.
$ac_ext
31931 cat >>conftest.
$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31934 #ifdef LDAV_PRIVILEGED
31935 Yowza Am I SETGID yet
31938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31939 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
31940 ac_cv_func_getloadavg_setgid
=yes
31942 ac_cv_func_getloadavg_setgid
=no
31947 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31948 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31949 if test $ac_cv_func_getloadavg_setgid = yes; then
31952 cat >>confdefs.h
<<\_ACEOF
31953 #define GETLOADAVG_PRIVILEGED 1
31960 if test $ac_cv_func_getloadavg_setgid = yes; then
31961 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31962 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31963 if test "${ac_cv_group_kmem+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31966 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
31967 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
31968 # If we got an error (system does not support symlinks), try without -L.
31969 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
31970 ac_cv_group_kmem
=`echo $ac_ls_output \
31971 | sed -ne 's/[ ][ ]*/ /g;
31972 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
31976 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31977 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31978 KMEM_GROUP
=$ac_cv_group_kmem
31980 if test "x$ac_save_LIBS" = x
; then
31981 GETLOADAVG_LIBS
=$LIBS
31983 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31995 for ac_func
in strcasecmp strncasecmp
31997 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31998 echo "$as_me:$LINENO: checking for $ac_func" >&5
31999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32000 if eval "test \"\${$as_ac_var+set}\" = set"; then
32001 echo $ECHO_N "(cached) $ECHO_C" >&6
32003 cat >conftest.
$ac_ext <<_ACEOF
32006 cat confdefs.h
>>conftest.
$ac_ext
32007 cat >>conftest.
$ac_ext <<_ACEOF
32008 /* end confdefs.h. */
32009 /* System header to define __stub macros and hopefully few prototypes,
32010 which can conflict with char $ac_func (); below.
32011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32012 <limits.h> exists even on freestanding compilers. */
32014 # include <limits.h>
32016 # include <assert.h>
32018 /* Override any gcc2 internal prototype to avoid an error. */
32023 /* We use char because int might match the return type of a gcc2
32024 builtin and then its argument prototype would still apply. */
32026 /* The GNU C library defines this for functions which it implements
32027 to always fail with ENOSYS. Some functions are actually named
32028 something starting with __ and the normal name is an alias. */
32029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32032 char (*f) () = $ac_func;
32041 return f != $ac_func;
32046 rm -f conftest.
$ac_objext conftest
$ac_exeext
32047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048 (eval $ac_link) 2>&5
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
32052 { ac_try
='test -s conftest$ac_exeext'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 eval "$as_ac_var=yes"
32060 echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.
$ac_ext >&5
32063 eval "$as_ac_var=no"
32065 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32069 if test `eval echo '${'$as_ac_var'}'` = yes; then
32070 cat >>confdefs.h
<<_ACEOF
32071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32075 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32081 for ac_func
in dup2
32083 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32084 echo "$as_me:$LINENO: checking for $ac_func" >&5
32085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32086 if eval "test \"\${$as_ac_var+set}\" = set"; then
32087 echo $ECHO_N "(cached) $ECHO_C" >&6
32089 cat >conftest.
$ac_ext <<_ACEOF
32092 cat confdefs.h
>>conftest.
$ac_ext
32093 cat >>conftest.
$ac_ext <<_ACEOF
32094 /* end confdefs.h. */
32095 /* System header to define __stub macros and hopefully few prototypes,
32096 which can conflict with char $ac_func (); below.
32097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32098 <limits.h> exists even on freestanding compilers. */
32100 # include <limits.h>
32102 # include <assert.h>
32104 /* Override any gcc2 internal prototype to avoid an error. */
32109 /* We use char because int might match the return type of a gcc2
32110 builtin and then its argument prototype would still apply. */
32112 /* The GNU C library defines this for functions which it implements
32113 to always fail with ENOSYS. Some functions are actually named
32114 something starting with __ and the normal name is an alias. */
32115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32118 char (*f) () = $ac_func;
32127 return f != $ac_func;
32132 rm -f conftest.
$ac_objext conftest
$ac_exeext
32133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32134 (eval $ac_link) 2>&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try
='test -s conftest$ac_exeext'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 eval "$as_ac_var=yes"
32146 echo "$as_me: failed program was:" >&5
32147 sed 's/^/| /' conftest.
$ac_ext >&5
32149 eval "$as_ac_var=no"
32151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32155 if test `eval echo '${'$as_ac_var'}'` = yes; then
32156 cat >>confdefs.h
<<_ACEOF
32157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32161 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32168 for ac_func
in gethostname getusershell
32170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32171 echo "$as_me:$LINENO: checking for $ac_func" >&5
32172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32173 if eval "test \"\${$as_ac_var+set}\" = set"; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32176 cat >conftest.
$ac_ext <<_ACEOF
32179 cat confdefs.h
>>conftest.
$ac_ext
32180 cat >>conftest.
$ac_ext <<_ACEOF
32181 /* end confdefs.h. */
32182 /* System header to define __stub macros and hopefully few prototypes,
32183 which can conflict with char $ac_func (); below.
32184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185 <limits.h> exists even on freestanding compilers. */
32187 # include <limits.h>
32189 # include <assert.h>
32191 /* Override any gcc2 internal prototype to avoid an error. */
32196 /* We use char because int might match the return type of a gcc2
32197 builtin and then its argument prototype would still apply. */
32199 /* The GNU C library defines this for functions which it implements
32200 to always fail with ENOSYS. Some functions are actually named
32201 something starting with __ and the normal name is an alias. */
32202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32205 char (*f) () = $ac_func;
32214 return f != $ac_func;
32219 rm -f conftest.
$ac_objext conftest
$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221 (eval $ac_link) 2>&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } &&
32225 { ac_try
='test -s conftest$ac_exeext'
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; }; then
32231 eval "$as_ac_var=yes"
32233 echo "$as_me: failed program was:" >&5
32234 sed 's/^/| /' conftest.
$ac_ext >&5
32236 eval "$as_ac_var=no"
32238 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32242 if test `eval echo '${'$as_ac_var'}'` = yes; then
32243 cat >>confdefs.h
<<_ACEOF
32244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32248 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32254 for ac_func
in sig2str
32256 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32257 echo "$as_me:$LINENO: checking for $ac_func" >&5
32258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32259 if eval "test \"\${$as_ac_var+set}\" = set"; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32262 cat >conftest.
$ac_ext <<_ACEOF
32265 cat confdefs.h
>>conftest.
$ac_ext
32266 cat >>conftest.
$ac_ext <<_ACEOF
32267 /* end confdefs.h. */
32268 /* System header to define __stub macros and hopefully few prototypes,
32269 which can conflict with char $ac_func (); below.
32270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32271 <limits.h> exists even on freestanding compilers. */
32273 # include <limits.h>
32275 # include <assert.h>
32277 /* Override any gcc2 internal prototype to avoid an error. */
32282 /* We use char because int might match the return type of a gcc2
32283 builtin and then its argument prototype would still apply. */
32285 /* The GNU C library defines this for functions which it implements
32286 to always fail with ENOSYS. Some functions are actually named
32287 something starting with __ and the normal name is an alias. */
32288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32291 char (*f) () = $ac_func;
32300 return f != $ac_func;
32305 rm -f conftest.
$ac_objext conftest
$ac_exeext
32306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32307 (eval $ac_link) 2>&5
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } &&
32311 { ac_try
='test -s conftest$ac_exeext'
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; }; then
32317 eval "$as_ac_var=yes"
32319 echo "$as_me: failed program was:" >&5
32320 sed 's/^/| /' conftest.
$ac_ext >&5
32322 eval "$as_ac_var=no"
32324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32328 if test `eval echo '${'$as_ac_var'}'` = yes; then
32329 cat >>confdefs.h
<<_ACEOF
32330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32334 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32344 for ac_func
in strcspn stpcpy strstr strtol strtoul
32346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32347 echo "$as_me:$LINENO: checking for $ac_func" >&5
32348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32349 if eval "test \"\${$as_ac_var+set}\" = set"; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 cat >conftest.
$ac_ext <<_ACEOF
32355 cat confdefs.h
>>conftest.
$ac_ext
32356 cat >>conftest.
$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 /* System header to define __stub macros and hopefully few prototypes,
32359 which can conflict with char $ac_func (); below.
32360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32361 <limits.h> exists even on freestanding compilers. */
32363 # include <limits.h>
32365 # include <assert.h>
32367 /* Override any gcc2 internal prototype to avoid an error. */
32372 /* We use char because int might match the return type of a gcc2
32373 builtin and then its argument prototype would still apply. */
32375 /* The GNU C library defines this for functions which it implements
32376 to always fail with ENOSYS. Some functions are actually named
32377 something starting with __ and the normal name is an alias. */
32378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32381 char (*f) () = $ac_func;
32390 return f != $ac_func;
32395 rm -f conftest.
$ac_objext conftest
$ac_exeext
32396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32397 (eval $ac_link) 2>&5
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); } &&
32401 { ac_try
='test -s conftest$ac_exeext'
32402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32403 (eval $ac_try) 2>&5
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); }; }; then
32407 eval "$as_ac_var=yes"
32409 echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.
$ac_ext >&5
32412 eval "$as_ac_var=no"
32414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32418 if test `eval echo '${'$as_ac_var'}'` = yes; then
32419 cat >>confdefs.h
<<_ACEOF
32420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32424 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32430 for ac_func
in strpbrk
32432 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32433 echo "$as_me:$LINENO: checking for $ac_func" >&5
32434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32435 if eval "test \"\${$as_ac_var+set}\" = set"; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32438 cat >conftest.
$ac_ext <<_ACEOF
32441 cat confdefs.h
>>conftest.
$ac_ext
32442 cat >>conftest.
$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32444 /* System header to define __stub macros and hopefully few prototypes,
32445 which can conflict with char $ac_func (); below.
32446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447 <limits.h> exists even on freestanding compilers. */
32449 # include <limits.h>
32451 # include <assert.h>
32453 /* Override any gcc2 internal prototype to avoid an error. */
32458 /* We use char because int might match the return type of a gcc2
32459 builtin and then its argument prototype would still apply. */
32461 /* The GNU C library defines this for functions which it implements
32462 to always fail with ENOSYS. Some functions are actually named
32463 something starting with __ and the normal name is an alias. */
32464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32467 char (*f) () = $ac_func;
32476 return f != $ac_func;
32481 rm -f conftest.
$ac_objext conftest
$ac_exeext
32482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32483 (eval $ac_link) 2>&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); } &&
32487 { ac_try
='test -s conftest$ac_exeext'
32488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32489 (eval $ac_try) 2>&5
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; }; then
32493 eval "$as_ac_var=yes"
32495 echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.
$ac_ext >&5
32498 eval "$as_ac_var=no"
32500 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32504 if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h
<<_ACEOF
32506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32510 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32521 for ac_func
in euidaccess memcmp
rmdir rpmatch strndup strverscmp
32523 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32524 echo "$as_me:$LINENO: checking for $ac_func" >&5
32525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32526 if eval "test \"\${$as_ac_var+set}\" = set"; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32529 cat >conftest.
$ac_ext <<_ACEOF
32532 cat confdefs.h
>>conftest.
$ac_ext
32533 cat >>conftest.
$ac_ext <<_ACEOF
32534 /* end confdefs.h. */
32535 /* System header to define __stub macros and hopefully few prototypes,
32536 which can conflict with char $ac_func (); below.
32537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32538 <limits.h> exists even on freestanding compilers. */
32540 # include <limits.h>
32542 # include <assert.h>
32544 /* Override any gcc2 internal prototype to avoid an error. */
32549 /* We use char because int might match the return type of a gcc2
32550 builtin and then its argument prototype would still apply. */
32552 /* The GNU C library defines this for functions which it implements
32553 to always fail with ENOSYS. Some functions are actually named
32554 something starting with __ and the normal name is an alias. */
32555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32558 char (*f) () = $ac_func;
32567 return f != $ac_func;
32572 rm -f conftest.
$ac_objext conftest
$ac_exeext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32574 (eval $ac_link) 2>&5
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } &&
32578 { ac_try
='test -s conftest$ac_exeext'
32579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580 (eval $ac_try) 2>&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); }; }; then
32584 eval "$as_ac_var=yes"
32586 echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.
$ac_ext >&5
32589 eval "$as_ac_var=no"
32591 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32595 if test `eval echo '${'$as_ac_var'}'` = yes; then
32596 cat >>confdefs.h
<<_ACEOF
32597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32601 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32607 for ac_func
in atexit
32609 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610 echo "$as_me:$LINENO: checking for $ac_func" >&5
32611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612 if eval "test \"\${$as_ac_var+set}\" = set"; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32615 cat >conftest.
$ac_ext <<_ACEOF
32618 cat confdefs.h
>>conftest.
$ac_ext
32619 cat >>conftest.
$ac_ext <<_ACEOF
32620 /* end confdefs.h. */
32621 /* System header to define __stub macros and hopefully few prototypes,
32622 which can conflict with char $ac_func (); below.
32623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32624 <limits.h> exists even on freestanding compilers. */
32626 # include <limits.h>
32628 # include <assert.h>
32630 /* Override any gcc2 internal prototype to avoid an error. */
32635 /* We use char because int might match the return type of a gcc2
32636 builtin and then its argument prototype would still apply. */
32638 /* The GNU C library defines this for functions which it implements
32639 to always fail with ENOSYS. Some functions are actually named
32640 something starting with __ and the normal name is an alias. */
32641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32644 char (*f) () = $ac_func;
32653 return f != $ac_func;
32658 rm -f conftest.
$ac_objext conftest
$ac_exeext
32659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32660 (eval $ac_link) 2>&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); } &&
32664 { ac_try
='test -s conftest$ac_exeext'
32665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32666 (eval $ac_try) 2>&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); }; }; then
32670 eval "$as_ac_var=yes"
32672 echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.
$ac_ext >&5
32675 eval "$as_ac_var=no"
32677 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32681 if test `eval echo '${'$as_ac_var'}'` = yes; then
32682 cat >>confdefs.h
<<_ACEOF
32683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32687 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32693 for ac_func
in getpass
32695 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32696 echo "$as_me:$LINENO: checking for $ac_func" >&5
32697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32698 if eval "test \"\${$as_ac_var+set}\" = set"; then
32699 echo $ECHO_N "(cached) $ECHO_C" >&6
32701 cat >conftest.
$ac_ext <<_ACEOF
32704 cat confdefs.h
>>conftest.
$ac_ext
32705 cat >>conftest.
$ac_ext <<_ACEOF
32706 /* end confdefs.h. */
32707 /* System header to define __stub macros and hopefully few prototypes,
32708 which can conflict with char $ac_func (); below.
32709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32710 <limits.h> exists even on freestanding compilers. */
32712 # include <limits.h>
32714 # include <assert.h>
32716 /* Override any gcc2 internal prototype to avoid an error. */
32721 /* We use char because int might match the return type of a gcc2
32722 builtin and then its argument prototype would still apply. */
32724 /* The GNU C library defines this for functions which it implements
32725 to always fail with ENOSYS. Some functions are actually named
32726 something starting with __ and the normal name is an alias. */
32727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32730 char (*f) () = $ac_func;
32739 return f != $ac_func;
32744 rm -f conftest.
$ac_objext conftest
$ac_exeext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32746 (eval $ac_link) 2>&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 (exit $ac_status); } &&
32750 { ac_try
='test -s conftest$ac_exeext'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; }; then
32756 eval "$as_ac_var=yes"
32758 echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.
$ac_ext >&5
32761 eval "$as_ac_var=no"
32763 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32767 if test `eval echo '${'$as_ac_var'}'` = yes; then
32768 cat >>confdefs.h
<<_ACEOF
32769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32773 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32779 # raise is used by at least sort and ls.
32781 for ac_func
in raise
32783 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32784 echo "$as_me:$LINENO: checking for $ac_func" >&5
32785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32786 if eval "test \"\${$as_ac_var+set}\" = set"; then
32787 echo $ECHO_N "(cached) $ECHO_C" >&6
32789 cat >conftest.
$ac_ext <<_ACEOF
32792 cat confdefs.h
>>conftest.
$ac_ext
32793 cat >>conftest.
$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32795 /* System header to define __stub macros and hopefully few prototypes,
32796 which can conflict with char $ac_func (); below.
32797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32798 <limits.h> exists even on freestanding compilers. */
32800 # include <limits.h>
32802 # include <assert.h>
32804 /* Override any gcc2 internal prototype to avoid an error. */
32809 /* We use char because int might match the return type of a gcc2
32810 builtin and then its argument prototype would still apply. */
32812 /* The GNU C library defines this for functions which it implements
32813 to always fail with ENOSYS. Some functions are actually named
32814 something starting with __ and the normal name is an alias. */
32815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32818 char (*f) () = $ac_func;
32827 return f != $ac_func;
32832 rm -f conftest.
$ac_objext conftest
$ac_exeext
32833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32834 (eval $ac_link) 2>&5
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); } &&
32838 { ac_try
='test -s conftest$ac_exeext'
32839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32840 (eval $ac_try) 2>&5
32842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843 (exit $ac_status); }; }; then
32844 eval "$as_ac_var=yes"
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.
$ac_ext >&5
32849 eval "$as_ac_var=no"
32851 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32855 if test `eval echo '${'$as_ac_var'}'` = yes; then
32856 cat >>confdefs.h
<<_ACEOF
32857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32861 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32868 for ac_func
in strdup
32870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32871 echo "$as_me:$LINENO: checking for $ac_func" >&5
32872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32873 if eval "test \"\${$as_ac_var+set}\" = set"; then
32874 echo $ECHO_N "(cached) $ECHO_C" >&6
32876 cat >conftest.
$ac_ext <<_ACEOF
32879 cat confdefs.h
>>conftest.
$ac_ext
32880 cat >>conftest.
$ac_ext <<_ACEOF
32881 /* end confdefs.h. */
32882 /* System header to define __stub macros and hopefully few prototypes,
32883 which can conflict with char $ac_func (); below.
32884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32885 <limits.h> exists even on freestanding compilers. */
32887 # include <limits.h>
32889 # include <assert.h>
32891 /* Override any gcc2 internal prototype to avoid an error. */
32896 /* We use char because int might match the return type of a gcc2
32897 builtin and then its argument prototype would still apply. */
32899 /* The GNU C library defines this for functions which it implements
32900 to always fail with ENOSYS. Some functions are actually named
32901 something starting with __ and the normal name is an alias. */
32902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32905 char (*f) () = $ac_func;
32914 return f != $ac_func;
32919 rm -f conftest.
$ac_objext conftest
$ac_exeext
32920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921 (eval $ac_link) 2>&5
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); } &&
32925 { ac_try
='test -s conftest$ac_exeext'
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 eval "$as_ac_var=yes"
32933 echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.
$ac_ext >&5
32936 eval "$as_ac_var=no"
32938 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32942 if test `eval echo '${'$as_ac_var'}'` = yes; then
32943 cat >>confdefs.h
<<_ACEOF
32944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32948 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32959 for ac_func
in memchr memcpy memmove memrchr memset
32961 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32962 echo "$as_me:$LINENO: checking for $ac_func" >&5
32963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32964 if eval "test \"\${$as_ac_var+set}\" = set"; then
32965 echo $ECHO_N "(cached) $ECHO_C" >&6
32967 cat >conftest.
$ac_ext <<_ACEOF
32970 cat confdefs.h
>>conftest.
$ac_ext
32971 cat >>conftest.
$ac_ext <<_ACEOF
32972 /* end confdefs.h. */
32973 /* System header to define __stub macros and hopefully few prototypes,
32974 which can conflict with char $ac_func (); below.
32975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32976 <limits.h> exists even on freestanding compilers. */
32978 # include <limits.h>
32980 # include <assert.h>
32982 /* Override any gcc2 internal prototype to avoid an error. */
32987 /* We use char because int might match the return type of a gcc2
32988 builtin and then its argument prototype would still apply. */
32990 /* The GNU C library defines this for functions which it implements
32991 to always fail with ENOSYS. Some functions are actually named
32992 something starting with __ and the normal name is an alias. */
32993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32996 char (*f) () = $ac_func;
33005 return f != $ac_func;
33010 rm -f conftest.
$ac_objext conftest
$ac_exeext
33011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33012 (eval $ac_link) 2>&5
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } &&
33016 { ac_try
='test -s conftest$ac_exeext'
33017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018 (eval $ac_try) 2>&5
33020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021 (exit $ac_status); }; }; then
33022 eval "$as_ac_var=yes"
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.
$ac_ext >&5
33027 eval "$as_ac_var=no"
33029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33033 if test `eval echo '${'$as_ac_var'}'` = yes; then
33034 cat >>confdefs.h
<<_ACEOF
33035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33039 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
33045 for ac_func
in getpagesize
33047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33048 echo "$as_me:$LINENO: checking for $ac_func" >&5
33049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33050 if eval "test \"\${$as_ac_var+set}\" = set"; then
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33053 cat >conftest.
$ac_ext <<_ACEOF
33056 cat confdefs.h
>>conftest.
$ac_ext
33057 cat >>conftest.
$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33059 /* System header to define __stub macros and hopefully few prototypes,
33060 which can conflict with char $ac_func (); below.
33061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33062 <limits.h> exists even on freestanding compilers. */
33064 # include <limits.h>
33066 # include <assert.h>
33068 /* Override any gcc2 internal prototype to avoid an error. */
33073 /* We use char because int might match the return type of a gcc2
33074 builtin and then its argument prototype would still apply. */
33076 /* The GNU C library defines this for functions which it implements
33077 to always fail with ENOSYS. Some functions are actually named
33078 something starting with __ and the normal name is an alias. */
33079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33082 char (*f) () = $ac_func;
33091 return f != $ac_func;
33096 rm -f conftest.
$ac_objext conftest
$ac_exeext
33097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33098 (eval $ac_link) 2>&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try
='test -s conftest$ac_exeext'
33103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33104 (eval $ac_try) 2>&5
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); }; }; then
33108 eval "$as_ac_var=yes"
33110 echo "$as_me: failed program was:" >&5
33111 sed 's/^/| /' conftest.
$ac_ext >&5
33113 eval "$as_ac_var=no"
33115 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33119 if test `eval echo '${'$as_ac_var'}'` = yes; then
33120 cat >>confdefs.h
<<_ACEOF
33121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33130 # By default, argmatch should fail calling usage (1).
33132 cat >>confdefs.h
<<\_ACEOF
33133 #define ARGMATCH_DIE usage (1)
33137 cat >>confdefs.h
<<\_ACEOF
33138 #define ARGMATCH_DIE_DECL extern void usage ()
33142 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33143 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33144 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33147 ac_cv_func_setvbuf_reversed
=no
33148 cat >conftest.
$ac_ext <<_ACEOF
33151 cat confdefs.h
>>conftest.
$ac_ext
33152 cat >>conftest.
$ac_ext <<_ACEOF
33153 /* end confdefs.h. */
33156 int (setvbuf) (FILE *, int, char *, size_t);
33161 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33166 rm -f conftest.
$ac_objext conftest
$ac_exeext
33167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33168 (eval $ac_link) 2>&5
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); } &&
33172 { ac_try
='test -s conftest$ac_exeext'
33173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33174 (eval $ac_try) 2>&5
33176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177 (exit $ac_status); }; }; then
33178 cat >conftest.
$ac_ext <<_ACEOF
33181 cat confdefs.h
>>conftest.
$ac_ext
33182 cat >>conftest.
$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33186 int (setvbuf) (FILE *, int, char *, size_t);
33191 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33196 rm -f conftest.
$ac_objext conftest
$ac_exeext
33197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33198 (eval $ac_link) 2>&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); } &&
33202 { ac_try
='test -s conftest$ac_exeext'
33203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204 (eval $ac_try) 2>&5
33206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); }; }; then
33208 # It compiles and links either way, so it must not be declared
33209 # with a prototype and most likely this is a K&R C compiler.
33211 if test "$cross_compiling" = yes; then
33212 : # Assume setvbuf is not reversed when cross-compiling.
33214 cat >conftest.
$ac_ext <<_ACEOF
33217 cat confdefs.h
>>conftest.
$ac_ext
33218 cat >>conftest.
$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33224 /* This call has the arguments reversed.
33225 A reversed system may check and see that the address of buf
33226 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
33228 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33231 exit (0); /* Non-reversed systems SEGV here. */
33236 rm -f conftest
$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238 (eval $ac_link) 2>&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 (eval $ac_try) 2>&5
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); }; }; then
33247 ac_cv_func_setvbuf_reversed
=yes
33249 echo "$as_me: program exited with status $ac_status" >&5
33250 echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.
$ac_ext >&5
33253 ( exit $ac_status )
33254 rm -f core core.
* *.core
33256 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33258 ac_cv_func_setvbuf_reversed
=yes
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.
$ac_ext >&5
33264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33266 echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.
$ac_ext >&5
33270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33272 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33273 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33274 if test $ac_cv_func_setvbuf_reversed = yes; then
33276 cat >>confdefs.h
<<\_ACEOF
33277 #define SETVBUF_REVERSED 1
33283 # used by sleep and shred
33284 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33285 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33287 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
33288 # programs in the package would end up linked with that potentially-shared
33289 # library, inducing unnecessary run-time overhead.
33290 fetish_saved_libs
=$LIBS
33292 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33293 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33294 if test "${ac_cv_search_clock_gettime+set}" = set; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33298 ac_func_search_save_LIBS
=$LIBS
33299 ac_cv_search_clock_gettime
=no
33300 cat >conftest.
$ac_ext <<_ACEOF
33303 cat confdefs.h
>>conftest.
$ac_ext
33304 cat >>conftest.
$ac_ext <<_ACEOF
33305 /* end confdefs.h. */
33307 /* Override any gcc2 internal prototype to avoid an error. */
33311 /* We use char because int might match the return type of a gcc2
33312 builtin and then its argument prototype would still apply. */
33313 char clock_gettime ();
33322 rm -f conftest.
$ac_objext conftest
$ac_exeext
33323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33324 (eval $ac_link) 2>&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } &&
33328 { ac_try
='test -s conftest$ac_exeext'
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; }; then
33334 ac_cv_search_clock_gettime
='none required'
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.
$ac_ext >&5
33340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33341 if test "$ac_cv_search_clock_gettime" = no
; then
33342 for ac_lib
in rt posix4
; do
33343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
33344 cat >conftest.
$ac_ext <<_ACEOF
33347 cat confdefs.h
>>conftest.
$ac_ext
33348 cat >>conftest.
$ac_ext <<_ACEOF
33349 /* end confdefs.h. */
33351 /* Override any gcc2 internal prototype to avoid an error. */
33355 /* We use char because int might match the return type of a gcc2
33356 builtin and then its argument prototype would still apply. */
33357 char clock_gettime ();
33366 rm -f conftest.
$ac_objext conftest
$ac_exeext
33367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33368 (eval $ac_link) 2>&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); } &&
33372 { ac_try
='test -s conftest$ac_exeext'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33378 ac_cv_search_clock_gettime
="-l$ac_lib"; break
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.
$ac_ext >&5
33384 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33387 LIBS
=$ac_func_search_save_LIBS
33390 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33391 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33393 if test "$ac_cv_search_clock_gettime" = no
; then :
33396 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33399 LIBS
="$ac_cv_search_clock_gettime $LIBS"
33400 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
33407 for ac_func
in clock_gettime clock_settime
33409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410 echo "$as_me:$LINENO: checking for $ac_func" >&5
33411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33412 if eval "test \"\${$as_ac_var+set}\" = set"; then
33413 echo $ECHO_N "(cached) $ECHO_C" >&6
33415 cat >conftest.
$ac_ext <<_ACEOF
33418 cat confdefs.h
>>conftest.
$ac_ext
33419 cat >>conftest.
$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 /* System header to define __stub macros and hopefully few prototypes,
33422 which can conflict with char $ac_func (); below.
33423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33424 <limits.h> exists even on freestanding compilers. */
33426 # include <limits.h>
33428 # include <assert.h>
33430 /* Override any gcc2 internal prototype to avoid an error. */
33435 /* We use char because int might match the return type of a gcc2
33436 builtin and then its argument prototype would still apply. */
33438 /* The GNU C library defines this for functions which it implements
33439 to always fail with ENOSYS. Some functions are actually named
33440 something starting with __ and the normal name is an alias. */
33441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33444 char (*f) () = $ac_func;
33453 return f != $ac_func;
33458 rm -f conftest.
$ac_objext conftest
$ac_exeext
33459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33460 (eval $ac_link) 2>&5
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); } &&
33464 { ac_try
='test -s conftest$ac_exeext'
33465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466 (eval $ac_try) 2>&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; }; then
33470 eval "$as_ac_var=yes"
33472 echo "$as_me: failed program was:" >&5
33473 sed 's/^/| /' conftest.
$ac_ext >&5
33475 eval "$as_ac_var=no"
33477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33481 if test `eval echo '${'$as_ac_var'}'` = yes; then
33482 cat >>confdefs.h
<<_ACEOF
33483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33489 LIBS
=$fetish_saved_libs
33491 for ac_func
in gettimeofday
33493 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33494 echo "$as_me:$LINENO: checking for $ac_func" >&5
33495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33496 if eval "test \"\${$as_ac_var+set}\" = set"; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33499 cat >conftest.
$ac_ext <<_ACEOF
33502 cat confdefs.h
>>conftest.
$ac_ext
33503 cat >>conftest.
$ac_ext <<_ACEOF
33504 /* end confdefs.h. */
33505 /* System header to define __stub macros and hopefully few prototypes,
33506 which can conflict with char $ac_func (); below.
33507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33508 <limits.h> exists even on freestanding compilers. */
33510 # include <limits.h>
33512 # include <assert.h>
33514 /* Override any gcc2 internal prototype to avoid an error. */
33519 /* We use char because int might match the return type of a gcc2
33520 builtin and then its argument prototype would still apply. */
33522 /* The GNU C library defines this for functions which it implements
33523 to always fail with ENOSYS. Some functions are actually named
33524 something starting with __ and the normal name is an alias. */
33525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33528 char (*f) () = $ac_func;
33537 return f != $ac_func;
33542 rm -f conftest.
$ac_objext conftest
$ac_exeext
33543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33544 (eval $ac_link) 2>&5
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); } &&
33548 { ac_try
='test -s conftest$ac_exeext'
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 eval "$as_ac_var=yes"
33556 echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.
$ac_ext >&5
33559 eval "$as_ac_var=no"
33561 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33565 if test `eval echo '${'$as_ac_var'}'` = yes; then
33566 cat >>confdefs.h
<<_ACEOF
33567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33577 for ac_header
in string.h stdlib.h
33579 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33581 echo "$as_me:$LINENO: checking for $ac_header" >&5
33582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33589 # Is the header compilable?
33590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33592 cat >conftest.
$ac_ext <<_ACEOF
33595 cat confdefs.h
>>conftest.
$ac_ext
33596 cat >>conftest.
$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33598 $ac_includes_default
33599 #include <$ac_header>
33601 rm -f conftest.
$ac_objext
33602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33603 (eval $ac_compile) 2>&5
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); } &&
33607 { ac_try
='test -s conftest.$ac_objext'
33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609 (eval $ac_try) 2>&5
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_header_compiler
=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.
$ac_ext >&5
33618 ac_header_compiler
=no
33620 rm -f conftest.
$ac_objext conftest.
$ac_ext
33621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622 echo "${ECHO_T}$ac_header_compiler" >&6
33624 # Is the header present?
33625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33627 cat >conftest.
$ac_ext <<_ACEOF
33630 cat confdefs.h
>>conftest.
$ac_ext
33631 cat >>conftest.
$ac_ext <<_ACEOF
33632 /* end confdefs.h. */
33633 #include <$ac_header>
33635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33636 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
33638 grep -v '^ *+' conftest.er1
>conftest.err
33640 cat conftest.err
>&5
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } >/dev
/null
; then
33643 if test -s conftest.err
; then
33644 ac_cpp_err
=$ac_c_preproc_warn_flag
33651 if test -z "$ac_cpp_err"; then
33652 ac_header_preproc
=yes
33654 echo "$as_me: failed program was:" >&5
33655 sed 's/^/| /' conftest.
$ac_ext >&5
33657 ac_header_preproc
=no
33659 rm -f conftest.err conftest.
$ac_ext
33660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33661 echo "${ECHO_T}$ac_header_preproc" >&6
33663 # So? What about this header?
33664 case $ac_header_compiler:$ac_header_preproc in
33666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33672 ## ------------------------------------ ##
33673 ## Report this to bug-autoconf@gnu.org. ##
33674 ## ------------------------------------ ##
33677 sed "s/^/$as_me: WARNING: /" >&2
33680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33688 ## ------------------------------------ ##
33689 ## Report this to bug-autoconf@gnu.org. ##
33690 ## ------------------------------------ ##
33693 sed "s/^/$as_me: WARNING: /" >&2
33696 echo "$as_me:$LINENO: checking for $ac_header" >&5
33697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33701 eval "$as_ac_Header=$ac_header_preproc"
33703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33708 cat >>confdefs.h
<<_ACEOF
33709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33716 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33717 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33718 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33719 echo $ECHO_N "(cached) $ECHO_C" >&6
33721 if test "$cross_compiling" = yes; then
33722 jm_cv_func_gettimeofday_clobber
=yes
33724 cat >conftest.
$ac_ext <<_ACEOF
33727 cat confdefs.h
>>conftest.
$ac_ext
33728 cat >>conftest.
$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33733 # include <string.h>
33736 #if TIME_WITH_SYS_TIME
33737 # include <sys/time.h>
33740 # if HAVE_SYS_TIME_H
33741 # include <sys/time.h>
33748 # include <stdlib.h>
33756 struct tm saved_lt;
33758 lt = localtime (&t);
33760 gettimeofday (&tv, NULL);
33761 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33768 rm -f conftest
$ac_exeext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33770 (eval $ac_link) 2>&5
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775 (eval $ac_try) 2>&5
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); }; }; then
33779 jm_cv_func_gettimeofday_clobber
=no
33781 echo "$as_me: program exited with status $ac_status" >&5
33782 echo "$as_me: failed program was:" >&5
33783 sed 's/^/| /' conftest.
$ac_ext >&5
33785 ( exit $ac_status )
33786 jm_cv_func_gettimeofday_clobber
=yes
33788 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33792 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33793 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33794 if test $jm_cv_func_gettimeofday_clobber = yes; then
33795 LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
33797 cat >>confdefs.h
<<\_ACEOF
33798 #define localtime rpl_localtime
33802 cat >>confdefs.h
<<\_ACEOF
33803 #define gettimeofday rpl_gettimeofday
33807 cat >>confdefs.h
<<\_ACEOF
33808 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33877 echo "$as_me:$LINENO: checking for $ac_func" >&5
33878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33879 if eval "test \"\${$as_ac_var+set}\" = set"; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33882 cat >conftest.
$ac_ext <<_ACEOF
33885 cat confdefs.h
>>conftest.
$ac_ext
33886 cat >>conftest.
$ac_ext <<_ACEOF
33887 /* end confdefs.h. */
33888 /* System header to define __stub macros and hopefully few prototypes,
33889 which can conflict with char $ac_func (); below.
33890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33891 <limits.h> exists even on freestanding compilers. */
33893 # include <limits.h>
33895 # include <assert.h>
33897 /* Override any gcc2 internal prototype to avoid an error. */
33902 /* We use char because int might match the return type of a gcc2
33903 builtin and then its argument prototype would still apply. */
33905 /* The GNU C library defines this for functions which it implements
33906 to always fail with ENOSYS. Some functions are actually named
33907 something starting with __ and the normal name is an alias. */
33908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33911 char (*f) () = $ac_func;
33920 return f != $ac_func;
33925 rm -f conftest.
$ac_objext conftest
$ac_exeext
33926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33927 (eval $ac_link) 2>&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
33931 { ac_try
='test -s conftest$ac_exeext'
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33937 eval "$as_ac_var=yes"
33939 echo "$as_me: failed program was:" >&5
33940 sed 's/^/| /' conftest.
$ac_ext >&5
33942 eval "$as_ac_var=no"
33944 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33948 if test `eval echo '${'$as_ac_var'}'` = yes; then
33949 cat >>confdefs.h
<<_ACEOF
33950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33960 for ac_func
in setreuid setregid
33962 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963 echo "$as_me:$LINENO: checking for $ac_func" >&5
33964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33965 if eval "test \"\${$as_ac_var+set}\" = set"; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 cat >conftest.
$ac_ext <<_ACEOF
33971 cat confdefs.h
>>conftest.
$ac_ext
33972 cat >>conftest.
$ac_ext <<_ACEOF
33973 /* end confdefs.h. */
33974 /* System header to define __stub macros and hopefully few prototypes,
33975 which can conflict with char $ac_func (); below.
33976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33977 <limits.h> exists even on freestanding compilers. */
33979 # include <limits.h>
33981 # include <assert.h>
33983 /* Override any gcc2 internal prototype to avoid an error. */
33988 /* We use char because int might match the return type of a gcc2
33989 builtin and then its argument prototype would still apply. */
33991 /* The GNU C library defines this for functions which it implements
33992 to always fail with ENOSYS. Some functions are actually named
33993 something starting with __ and the normal name is an alias. */
33994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33997 char (*f) () = $ac_func;
34006 return f != $ac_func;
34011 rm -f conftest.
$ac_objext conftest
$ac_exeext
34012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34013 (eval $ac_link) 2>&5
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
34017 { ac_try
='test -s conftest$ac_exeext'
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 eval "$as_ac_var=yes"
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.
$ac_ext >&5
34028 eval "$as_ac_var=no"
34030 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34034 if test `eval echo '${'$as_ac_var'}'` = yes; then
34035 cat >>confdefs.h
<<_ACEOF
34036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34043 am_getline_needs_run_time_check
=no
34044 echo "$as_me:$LINENO: checking for getline" >&5
34045 echo $ECHO_N "checking for getline... $ECHO_C" >&6
34046 if test "${ac_cv_func_getline+set}" = set; then
34047 echo $ECHO_N "(cached) $ECHO_C" >&6
34049 cat >conftest.
$ac_ext <<_ACEOF
34052 cat confdefs.h
>>conftest.
$ac_ext
34053 cat >>conftest.
$ac_ext <<_ACEOF
34054 /* end confdefs.h. */
34055 /* System header to define __stub macros and hopefully few prototypes,
34056 which can conflict with char getline (); below.
34057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34058 <limits.h> exists even on freestanding compilers. */
34060 # include <limits.h>
34062 # include <assert.h>
34064 /* Override any gcc2 internal prototype to avoid an error. */
34069 /* We use char because int might match the return type of a gcc2
34070 builtin and then its argument prototype would still apply. */
34072 /* The GNU C library defines this for functions which it implements
34073 to always fail with ENOSYS. Some functions are actually named
34074 something starting with __ and the normal name is an alias. */
34075 #if defined (__stub_getline) || defined (__stub___getline)
34078 char (*f) () = getline;
34087 return f != getline;
34092 rm -f conftest.
$ac_objext conftest
$ac_exeext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34094 (eval $ac_link) 2>&5
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); } &&
34098 { ac_try
='test -s conftest$ac_exeext'
34099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100 (eval $ac_try) 2>&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; }; then
34104 ac_cv_func_getline
=yes
34106 echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.
$ac_ext >&5
34109 ac_cv_func_getline
=no
34111 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34113 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
34114 echo "${ECHO_T}$ac_cv_func_getline" >&6
34115 if test $ac_cv_func_getline = yes; then
34116 am_getline_needs_run_time_check
=yes
34118 am_cv_func_working_getline
=no
34121 if test $am_getline_needs_run_time_check = yes; then
34122 echo "$as_me:$LINENO: checking for working getline function" >&5
34123 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
34124 if test "${am_cv_func_working_getline+set}" = set; then
34125 echo $ECHO_N "(cached) $ECHO_C" >&6
34127 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
34128 if test "$cross_compiling" = yes; then
34129 am_cv_func_working_getline
=no
34131 cat >conftest.
$ac_ext <<_ACEOF
34134 cat confdefs.h
>>conftest.
$ac_ext
34135 cat >>conftest.
$ac_ext <<_ACEOF
34136 /* end confdefs.h. */
34138 # include <stdio.h>
34139 # include <sys/types.h>
34140 # include <string.h>
34142 { /* Based on a test program from Karl Heuer. */
34146 FILE *in = fopen ("./conftest.data", "r");
34149 len = getline (&line, &siz, in);
34150 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34154 rm -f conftest
$ac_exeext
34155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34156 (eval $ac_link) 2>&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161 (eval $ac_try) 2>&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); }; }; then
34165 am_cv_func_working_getline
=yes
34167 echo "$as_me: program exited with status $ac_status" >&5
34168 echo "$as_me: failed program was:" >&5
34169 sed 's/^/| /' conftest.
$ac_ext >&5
34171 ( exit $ac_status )
34172 am_cv_func_working_getline
=no
34174 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34177 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34178 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34181 if test $am_cv_func_working_getline = no
; then
34182 LIBOBJS
="$LIBOBJS getline.$ac_objext"
34185 if test $am_cv_func_working_getline != yes; then
34187 for ac_func
in getdelim
34189 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34190 echo "$as_me:$LINENO: checking for $ac_func" >&5
34191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34192 if eval "test \"\${$as_ac_var+set}\" = set"; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34195 cat >conftest.
$ac_ext <<_ACEOF
34198 cat confdefs.h
>>conftest.
$ac_ext
34199 cat >>conftest.
$ac_ext <<_ACEOF
34200 /* end confdefs.h. */
34201 /* System header to define __stub macros and hopefully few prototypes,
34202 which can conflict with char $ac_func (); below.
34203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34204 <limits.h> exists even on freestanding compilers. */
34206 # include <limits.h>
34208 # include <assert.h>
34210 /* Override any gcc2 internal prototype to avoid an error. */
34215 /* We use char because int might match the return type of a gcc2
34216 builtin and then its argument prototype would still apply. */
34218 /* The GNU C library defines this for functions which it implements
34219 to always fail with ENOSYS. Some functions are actually named
34220 something starting with __ and the normal name is an alias. */
34221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34224 char (*f) () = $ac_func;
34233 return f != $ac_func;
34238 rm -f conftest.
$ac_objext conftest
$ac_exeext
34239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34240 (eval $ac_link) 2>&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); } &&
34244 { ac_try
='test -s conftest$ac_exeext'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34250 eval "$as_ac_var=yes"
34252 echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.
$ac_ext >&5
34255 eval "$as_ac_var=no"
34257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34261 if test `eval echo '${'$as_ac_var'}'` = yes; then
34262 cat >>confdefs.h
<<_ACEOF
34263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34270 echo "$as_me:$LINENO: checking for obstacks" >&5
34271 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34272 if test "${ac_cv_func_obstack+set}" = set; then
34273 echo $ECHO_N "(cached) $ECHO_C" >&6
34275 cat >conftest.
$ac_ext <<_ACEOF
34278 cat confdefs.h
>>conftest.
$ac_ext
34279 cat >>conftest.
$ac_ext <<_ACEOF
34280 /* end confdefs.h. */
34281 #include "obstack.h"
34285 struct obstack *mem; obstack_free(mem,(char *) 0)
34290 rm -f conftest.
$ac_objext conftest
$ac_exeext
34291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34292 (eval $ac_link) 2>&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } &&
34296 { ac_try
='test -s conftest$ac_exeext'
34297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34298 (eval $ac_try) 2>&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); }; }; then
34302 ac_cv_func_obstack
=yes
34304 echo "$as_me: failed program was:" >&5
34305 sed 's/^/| /' conftest.
$ac_ext >&5
34307 ac_cv_func_obstack
=no
34309 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34311 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34312 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34313 if test $ac_cv_func_obstack = yes; then
34315 cat >>confdefs.h
<<\_ACEOF
34316 #define HAVE_OBSTACK 1
34320 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
34324 echo "$as_me:$LINENO: checking for working strtod" >&5
34325 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34326 if test "${ac_cv_func_strtod+set}" = set; then
34327 echo $ECHO_N "(cached) $ECHO_C" >&6
34329 if test "$cross_compiling" = yes; then
34330 ac_cv_func_strtod
=no
34332 cat >conftest.
$ac_ext <<_ACEOF
34335 cat confdefs.h
>>conftest.
$ac_ext
34336 cat >>conftest.
$ac_ext <<_ACEOF
34337 /* end confdefs.h. */
34344 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
34345 char *string = " +69";
34348 value = strtod (string, &term);
34349 if (value != 69 || term != (string + 4))
34354 /* Under Solaris 2.4, strtod returns the wrong value for the
34355 terminating character under some conditions. */
34356 char *string = "NaN";
34358 strtod (string, &term);
34359 if (term != string && *(term - 1) == 0)
34366 rm -f conftest
$ac_exeext
34367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34368 (eval $ac_link) 2>&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373 (eval $ac_try) 2>&5
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); }; }; then
34377 ac_cv_func_strtod
=yes
34379 echo "$as_me: program exited with status $ac_status" >&5
34380 echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.
$ac_ext >&5
34383 ( exit $ac_status )
34384 ac_cv_func_strtod
=no
34386 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34389 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34390 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34391 if test $ac_cv_func_strtod = no
; then
34392 LIBOBJS
="$LIBOBJS strtod.$ac_objext"
34393 echo "$as_me:$LINENO: checking for pow" >&5
34394 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34395 if test "${ac_cv_func_pow+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34398 cat >conftest.
$ac_ext <<_ACEOF
34401 cat confdefs.h
>>conftest.
$ac_ext
34402 cat >>conftest.
$ac_ext <<_ACEOF
34403 /* end confdefs.h. */
34404 /* System header to define __stub macros and hopefully few prototypes,
34405 which can conflict with char pow (); below.
34406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34407 <limits.h> exists even on freestanding compilers. */
34409 # include <limits.h>
34411 # include <assert.h>
34413 /* Override any gcc2 internal prototype to avoid an error. */
34418 /* We use char because int might match the return type of a gcc2
34419 builtin and then its argument prototype would still apply. */
34421 /* The GNU C library defines this for functions which it implements
34422 to always fail with ENOSYS. Some functions are actually named
34423 something starting with __ and the normal name is an alias. */
34424 #if defined (__stub_pow) || defined (__stub___pow)
34427 char (*f) () = pow;
34441 rm -f conftest.
$ac_objext conftest
$ac_exeext
34442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34443 (eval $ac_link) 2>&5
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } &&
34447 { ac_try
='test -s conftest$ac_exeext'
34448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34449 (eval $ac_try) 2>&5
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); }; }; then
34455 echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.
$ac_ext >&5
34460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34462 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34463 echo "${ECHO_T}$ac_cv_func_pow" >&6
34465 if test $ac_cv_func_pow = no
; then
34466 echo "$as_me:$LINENO: checking for pow in -lm" >&5
34467 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34468 if test "${ac_cv_lib_m_pow+set}" = set; then
34469 echo $ECHO_N "(cached) $ECHO_C" >&6
34471 ac_check_lib_save_LIBS
=$LIBS
34473 cat >conftest.
$ac_ext <<_ACEOF
34476 cat confdefs.h
>>conftest.
$ac_ext
34477 cat >>conftest.
$ac_ext <<_ACEOF
34478 /* end confdefs.h. */
34480 /* Override any gcc2 internal prototype to avoid an error. */
34484 /* We use char because int might match the return type of a gcc2
34485 builtin and then its argument prototype would still apply. */
34495 rm -f conftest.
$ac_objext conftest
$ac_exeext
34496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34497 (eval $ac_link) 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } &&
34501 { ac_try
='test -s conftest$ac_exeext'
34502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503 (eval $ac_try) 2>&5
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); }; }; then
34507 ac_cv_lib_m_pow
=yes
34509 echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.
$ac_ext >&5
34514 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34515 LIBS
=$ac_check_lib_save_LIBS
34517 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34518 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34519 if test $ac_cv_lib_m_pow = yes; then
34522 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34523 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34533 # See if linking `seq' requires -lm.
34534 # It does on nearly every system. The single exception (so far) is
34535 # BeOS which has all the math functions in the normal runtime library
34536 # and doesn't have a separate math library.
34540 static double x, y;
34544 cat >conftest.
$ac_ext <<_ACEOF
34547 cat confdefs.h
>>conftest.
$ac_ext
34548 cat >>conftest.
$ac_ext <<_ACEOF
34549 /* end confdefs.h. */
34559 rm -f conftest.
$ac_objext conftest
$ac_exeext
34560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34561 (eval $ac_link) 2>&5
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); } &&
34565 { ac_try
='test -s conftest$ac_exeext'
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34573 echo "$as_me: failed program was:" >&5
34574 sed 's/^/| /' conftest.
$ac_ext >&5
34576 ac_seq_save_LIBS
="$LIBS"
34578 cat >conftest.
$ac_ext <<_ACEOF
34581 cat confdefs.h
>>conftest.
$ac_ext
34582 cat >>conftest.
$ac_ext <<_ACEOF
34583 /* end confdefs.h. */
34593 rm -f conftest.
$ac_objext conftest
$ac_exeext
34594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34595 (eval $ac_link) 2>&5
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } &&
34599 { ac_try
='test -s conftest$ac_exeext'
34600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34601 (eval $ac_try) 2>&5
34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604 (exit $ac_status); }; }; then
34607 echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.
$ac_ext >&5
34611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34612 LIBS
="$ac_seq_save_LIBS"
34615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34618 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34619 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34620 if test "${am_cv_langinfo_codeset+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34623 cat >conftest.
$ac_ext <<_ACEOF
34626 cat confdefs.h
>>conftest.
$ac_ext
34627 cat >>conftest.
$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 #include <langinfo.h>
34633 char* cs = nl_langinfo(CODESET);
34638 rm -f conftest.
$ac_objext conftest
$ac_exeext
34639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640 (eval $ac_link) 2>&5
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } &&
34644 { ac_try
='test -s conftest$ac_exeext'
34645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646 (eval $ac_try) 2>&5
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); }; }; then
34650 am_cv_langinfo_codeset
=yes
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.
$ac_ext >&5
34655 am_cv_langinfo_codeset
=no
34657 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34660 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34661 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34662 if test $am_cv_langinfo_codeset = yes; then
34664 cat >>confdefs.h
<<\_ACEOF
34665 #define HAVE_LANGINFO_CODESET 1
34671 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34672 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34673 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34674 echo $ECHO_N "(cached) $ECHO_C" >&6
34676 cat >conftest.
$ac_ext <<_ACEOF
34679 cat confdefs.h
>>conftest.
$ac_ext
34680 cat >>conftest.
$ac_ext <<_ACEOF
34681 /* end confdefs.h. */
34683 #include <features.h>
34684 #ifdef __GNU_LIBRARY__
34685 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34692 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
34693 ac_cv_gnu_library_2_1
=yes
34695 ac_cv_gnu_library_2_1
=no
34702 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34703 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34705 GLIBC21
="$ac_cv_gnu_library_2_1"
34713 am_save_CPPFLAGS
="$CPPFLAGS"
34715 for element
in $INCICONV; do
34717 for x
in $CPPFLAGS; do
34719 acl_save_prefix
="$prefix"
34720 prefix
="$acl_final_prefix"
34721 acl_save_exec_prefix
="$exec_prefix"
34722 exec_prefix
="$acl_final_exec_prefix"
34724 exec_prefix
="$acl_save_exec_prefix"
34725 prefix
="$acl_save_prefix"
34727 if test "X$x" = "X$element"; then
34732 if test -z "$haveit"; then
34733 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
34738 echo "$as_me:$LINENO: checking for iconv" >&5
34739 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34740 if test "${am_cv_func_iconv+set}" = set; then
34741 echo $ECHO_N "(cached) $ECHO_C" >&6
34744 am_cv_func_iconv
="no, consider installing GNU libiconv"
34746 cat >conftest.
$ac_ext <<_ACEOF
34749 cat confdefs.h
>>conftest.
$ac_ext
34750 cat >>conftest.
$ac_ext <<_ACEOF
34751 /* end confdefs.h. */
34752 #include <stdlib.h>
34757 iconv_t cd = iconv_open("","");
34758 iconv(cd,NULL,NULL,NULL,NULL);
34764 rm -f conftest.
$ac_objext conftest
$ac_exeext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34766 (eval $ac_link) 2>&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
34770 { ac_try
='test -s conftest$ac_exeext'
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; }; then
34776 am_cv_func_iconv
=yes
34778 echo "$as_me: failed program was:" >&5
34779 sed 's/^/| /' conftest.
$ac_ext >&5
34782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34783 if test "$am_cv_func_iconv" != yes; then
34784 am_save_LIBS
="$LIBS"
34785 LIBS
="$LIBS $LIBICONV"
34786 cat >conftest.
$ac_ext <<_ACEOF
34789 cat confdefs.h
>>conftest.
$ac_ext
34790 cat >>conftest.
$ac_ext <<_ACEOF
34791 /* end confdefs.h. */
34792 #include <stdlib.h>
34797 iconv_t cd = iconv_open("","");
34798 iconv(cd,NULL,NULL,NULL,NULL);
34804 rm -f conftest.
$ac_objext conftest
$ac_exeext
34805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34806 (eval $ac_link) 2>&5
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
34810 { ac_try
='test -s conftest$ac_exeext'
34811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34812 (eval $ac_try) 2>&5
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); }; }; then
34816 am_cv_lib_iconv
=yes
34817 am_cv_func_iconv
=yes
34819 echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.
$ac_ext >&5
34823 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34824 LIBS
="$am_save_LIBS"
34828 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34829 echo "${ECHO_T}$am_cv_func_iconv" >&6
34830 if test "$am_cv_func_iconv" = yes; then
34832 cat >>confdefs.h
<<\_ACEOF
34833 #define HAVE_ICONV 1
34837 if test "$am_cv_lib_iconv" = yes; then
34838 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34839 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34840 echo "$as_me:$LINENO: result: $LIBICONV" >&5
34841 echo "${ECHO_T}$LIBICONV" >&6
34843 CPPFLAGS
="$am_save_CPPFLAGS"
34850 if test "$am_cv_func_iconv" = yes; then
34851 echo "$as_me:$LINENO: checking for iconv declaration" >&5
34852 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34853 if test "${am_cv_proto_iconv+set}" = set; then
34854 echo $ECHO_N "(cached) $ECHO_C" >&6
34857 cat >conftest.
$ac_ext <<_ACEOF
34860 cat confdefs.h
>>conftest.
$ac_ext
34861 cat >>conftest.
$ac_ext <<_ACEOF
34862 /* end confdefs.h. */
34864 #include <stdlib.h>
34870 #if defined(__STDC__) || defined(__cplusplus)
34871 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34884 rm -f conftest.
$ac_objext
34885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34886 (eval $ac_compile) 2>&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
34890 { ac_try
='test -s conftest.$ac_objext'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; }; then
34896 am_cv_proto_iconv_arg1
=""
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.
$ac_ext >&5
34901 am_cv_proto_iconv_arg1
="const"
34903 rm -f conftest.
$ac_objext conftest.
$ac_ext
34904 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);"
34907 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34908 echo "$as_me:$LINENO: result: ${ac_t:-
34909 }$am_cv_proto_iconv" >&5
34910 echo "${ECHO_T}${ac_t:-
34911 }$am_cv_proto_iconv" >&6
34913 cat >>confdefs.h
<<_ACEOF
34914 #define ICONV_CONST $am_cv_proto_iconv_arg1
34919 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34920 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34921 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34925 if test "$cross_compiling" = yes; then
34926 jm_cv_func_unlink_busy_text
=no
34929 cat >conftest.
$ac_ext <<_ACEOF
34932 cat confdefs.h
>>conftest.
$ac_ext
34933 cat >>conftest.
$ac_ext <<_ACEOF
34934 /* end confdefs.h. */
34942 exit (unlink (argv[0]));
34946 rm -f conftest
$ac_exeext
34947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 (eval $ac_link) 2>&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953 (eval $ac_try) 2>&5
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; }; then
34957 jm_cv_func_unlink_busy_text
=yes
34959 echo "$as_me: program exited with status $ac_status" >&5
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.
$ac_ext >&5
34963 ( exit $ac_status )
34964 jm_cv_func_unlink_busy_text
=no
34966 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34971 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34972 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34974 if test $jm_cv_func_unlink_busy_text = no
; then
34975 INSTALL
=$ac_install_sh
34979 # These tests are for df.
34983 for ac_func
in listmntent getmntinfo
34985 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34986 echo "$as_me:$LINENO: checking for $ac_func" >&5
34987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34988 if eval "test \"\${$as_ac_var+set}\" = set"; then
34989 echo $ECHO_N "(cached) $ECHO_C" >&6
34991 cat >conftest.
$ac_ext <<_ACEOF
34994 cat confdefs.h
>>conftest.
$ac_ext
34995 cat >>conftest.
$ac_ext <<_ACEOF
34996 /* end confdefs.h. */
34997 /* System header to define __stub macros and hopefully few prototypes,
34998 which can conflict with char $ac_func (); below.
34999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35000 <limits.h> exists even on freestanding compilers. */
35002 # include <limits.h>
35004 # include <assert.h>
35006 /* Override any gcc2 internal prototype to avoid an error. */
35011 /* We use char because int might match the return type of a gcc2
35012 builtin and then its argument prototype would still apply. */
35014 /* The GNU C library defines this for functions which it implements
35015 to always fail with ENOSYS. Some functions are actually named
35016 something starting with __ and the normal name is an alias. */
35017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35020 char (*f) () = $ac_func;
35029 return f != $ac_func;
35034 rm -f conftest.
$ac_objext conftest
$ac_exeext
35035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35036 (eval $ac_link) 2>&5
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); } &&
35040 { ac_try
='test -s conftest$ac_exeext'
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; }; then
35046 eval "$as_ac_var=yes"
35048 echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.
$ac_ext >&5
35051 eval "$as_ac_var=no"
35053 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35057 if test `eval echo '${'$as_ac_var'}'` = yes; then
35058 cat >>confdefs.h
<<_ACEOF
35059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070 for ac_header
in mntent.h sys
/param.h sys
/ucred.h sys
/mount.h sys
/fs_types.h
35072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35074 echo "$as_me:$LINENO: checking for $ac_header" >&5
35075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35077 echo $ECHO_N "(cached) $ECHO_C" >&6
35079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35082 # Is the header compilable?
35083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35085 cat >conftest.
$ac_ext <<_ACEOF
35088 cat confdefs.h
>>conftest.
$ac_ext
35089 cat >>conftest.
$ac_ext <<_ACEOF
35090 /* end confdefs.h. */
35091 $ac_includes_default
35092 #include <$ac_header>
35094 rm -f conftest.
$ac_objext
35095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35096 (eval $ac_compile) 2>&5
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
35100 { ac_try
='test -s conftest.$ac_objext'
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; }; then
35106 ac_header_compiler
=yes
35108 echo "$as_me: failed program was:" >&5
35109 sed 's/^/| /' conftest.
$ac_ext >&5
35111 ac_header_compiler
=no
35113 rm -f conftest.
$ac_objext conftest.
$ac_ext
35114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35115 echo "${ECHO_T}$ac_header_compiler" >&6
35117 # Is the header present?
35118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35120 cat >conftest.
$ac_ext <<_ACEOF
35123 cat confdefs.h
>>conftest.
$ac_ext
35124 cat >>conftest.
$ac_ext <<_ACEOF
35125 /* end confdefs.h. */
35126 #include <$ac_header>
35128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35129 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35131 grep -v '^ *+' conftest.er1
>conftest.err
35133 cat conftest.err
>&5
35134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35135 (exit $ac_status); } >/dev
/null
; then
35136 if test -s conftest.err
; then
35137 ac_cpp_err
=$ac_c_preproc_warn_flag
35144 if test -z "$ac_cpp_err"; then
35145 ac_header_preproc
=yes
35147 echo "$as_me: failed program was:" >&5
35148 sed 's/^/| /' conftest.
$ac_ext >&5
35150 ac_header_preproc
=no
35152 rm -f conftest.err conftest.
$ac_ext
35153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35154 echo "${ECHO_T}$ac_header_preproc" >&6
35156 # So? What about this header?
35157 case $ac_header_compiler:$ac_header_preproc in
35159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35165 ## ------------------------------------ ##
35166 ## Report this to bug-autoconf@gnu.org. ##
35167 ## ------------------------------------ ##
35170 sed "s/^/$as_me: WARNING: /" >&2
35173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35181 ## ------------------------------------ ##
35182 ## Report this to bug-autoconf@gnu.org. ##
35183 ## ------------------------------------ ##
35186 sed "s/^/$as_me: WARNING: /" >&2
35189 echo "$as_me:$LINENO: checking for $ac_header" >&5
35190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35192 echo $ECHO_N "(cached) $ECHO_C" >&6
35194 eval "$as_ac_Header=$ac_header_preproc"
35196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35201 cat >>confdefs.h
<<_ACEOF
35202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35209 getfsstat_includes
="\
35210 $ac_includes_default
35211 #if HAVE_SYS_PARAM_H
35212 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35214 #if HAVE_SYS_UCRED_H
35215 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35217 #if HAVE_SYS_MOUNT_H
35218 # include <sys/mount.h>
35220 #if HAVE_SYS_FS_TYPES_H
35221 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35224 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35225 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35226 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35227 echo $ECHO_N "(cached) $ECHO_C" >&6
35229 cat >conftest.
$ac_ext <<_ACEOF
35232 cat confdefs.h
>>conftest.
$ac_ext
35233 cat >>conftest.
$ac_ext <<_ACEOF
35234 /* end confdefs.h. */
35235 $getfsstat_includes
35240 static struct fsstat ac_aggr;
35241 if (ac_aggr.f_fstypename)
35247 rm -f conftest.
$ac_objext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35249 (eval $ac_compile) 2>&5
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); } &&
35253 { ac_try
='test -s conftest.$ac_objext'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; }; then
35259 ac_cv_member_struct_fsstat_f_fstypename
=yes
35261 echo "$as_me: failed program was:" >&5
35262 sed 's/^/| /' conftest.
$ac_ext >&5
35264 cat >conftest.
$ac_ext <<_ACEOF
35267 cat confdefs.h
>>conftest.
$ac_ext
35268 cat >>conftest.
$ac_ext <<_ACEOF
35269 /* end confdefs.h. */
35270 $getfsstat_includes
35275 static struct fsstat ac_aggr;
35276 if (sizeof ac_aggr.f_fstypename)
35282 rm -f conftest.
$ac_objext
35283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35284 (eval $ac_compile) 2>&5
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); } &&
35288 { ac_try
='test -s conftest.$ac_objext'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 ac_cv_member_struct_fsstat_f_fstypename
=yes
35296 echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.
$ac_ext >&5
35299 ac_cv_member_struct_fsstat_f_fstypename
=no
35301 rm -f conftest.
$ac_objext conftest.
$ac_ext
35303 rm -f conftest.
$ac_objext conftest.
$ac_ext
35305 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35306 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35307 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35309 cat >>confdefs.h
<<_ACEOF
35310 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35317 # Determine how to get the list of mounted filesystems.
35318 ac_list_mounted_fs
=
35320 # If the getmntent function is available but not in the standard library,
35321 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35322 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35323 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35324 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35325 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35326 echo $ECHO_N "(cached) $ECHO_C" >&6
35328 ac_check_lib_save_LIBS
=$LIBS
35330 cat >conftest.
$ac_ext <<_ACEOF
35333 cat confdefs.h
>>conftest.
$ac_ext
35334 cat >>conftest.
$ac_ext <<_ACEOF
35335 /* end confdefs.h. */
35337 /* Override any gcc2 internal prototype to avoid an error. */
35341 /* We use char because int might match the return type of a gcc2
35342 builtin and then its argument prototype would still apply. */
35352 rm -f conftest.
$ac_objext conftest
$ac_exeext
35353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35354 (eval $ac_link) 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); } &&
35358 { ac_try
='test -s conftest$ac_exeext'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 ac_cv_lib_sun_getmntent
=yes
35366 echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.
$ac_ext >&5
35369 ac_cv_lib_sun_getmntent
=no
35371 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35372 LIBS
=$ac_check_lib_save_LIBS
35374 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35375 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35376 if test $ac_cv_lib_sun_getmntent = yes; then
35379 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35380 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35381 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35384 ac_check_lib_save_LIBS
=$LIBS
35386 cat >conftest.
$ac_ext <<_ACEOF
35389 cat confdefs.h
>>conftest.
$ac_ext
35390 cat >>conftest.
$ac_ext <<_ACEOF
35391 /* end confdefs.h. */
35393 /* Override any gcc2 internal prototype to avoid an error. */
35397 /* We use char because int might match the return type of a gcc2
35398 builtin and then its argument prototype would still apply. */
35408 rm -f conftest.
$ac_objext conftest
$ac_exeext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35410 (eval $ac_link) 2>&5
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); } &&
35414 { ac_try
='test -s conftest$ac_exeext'
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; }; then
35420 ac_cv_lib_seq_getmntent
=yes
35422 echo "$as_me: failed program was:" >&5
35423 sed 's/^/| /' conftest.
$ac_ext >&5
35425 ac_cv_lib_seq_getmntent
=no
35427 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35428 LIBS
=$ac_check_lib_save_LIBS
35430 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35431 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35432 if test $ac_cv_lib_seq_getmntent = yes; then
35435 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35436 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35437 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35438 echo $ECHO_N "(cached) $ECHO_C" >&6
35440 ac_check_lib_save_LIBS
=$LIBS
35442 cat >conftest.
$ac_ext <<_ACEOF
35445 cat confdefs.h
>>conftest.
$ac_ext
35446 cat >>conftest.
$ac_ext <<_ACEOF
35447 /* end confdefs.h. */
35449 /* Override any gcc2 internal prototype to avoid an error. */
35453 /* We use char because int might match the return type of a gcc2
35454 builtin and then its argument prototype would still apply. */
35464 rm -f conftest.
$ac_objext conftest
$ac_exeext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35466 (eval $ac_link) 2>&5
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); } &&
35470 { ac_try
='test -s conftest$ac_exeext'
35471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472 (eval $ac_try) 2>&5
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); }; }; then
35476 ac_cv_lib_gen_getmntent
=yes
35478 echo "$as_me: failed program was:" >&5
35479 sed 's/^/| /' conftest.
$ac_ext >&5
35481 ac_cv_lib_gen_getmntent
=no
35483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35484 LIBS
=$ac_check_lib_save_LIBS
35486 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35487 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35488 if test $ac_cv_lib_gen_getmntent = yes; then
35497 for ac_func
in getmntent
35499 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35500 echo "$as_me:$LINENO: checking for $ac_func" >&5
35501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35502 if eval "test \"\${$as_ac_var+set}\" = set"; then
35503 echo $ECHO_N "(cached) $ECHO_C" >&6
35505 cat >conftest.
$ac_ext <<_ACEOF
35508 cat confdefs.h
>>conftest.
$ac_ext
35509 cat >>conftest.
$ac_ext <<_ACEOF
35510 /* end confdefs.h. */
35511 /* System header to define __stub macros and hopefully few prototypes,
35512 which can conflict with char $ac_func (); below.
35513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35514 <limits.h> exists even on freestanding compilers. */
35516 # include <limits.h>
35518 # include <assert.h>
35520 /* Override any gcc2 internal prototype to avoid an error. */
35525 /* We use char because int might match the return type of a gcc2
35526 builtin and then its argument prototype would still apply. */
35528 /* The GNU C library defines this for functions which it implements
35529 to always fail with ENOSYS. Some functions are actually named
35530 something starting with __ and the normal name is an alias. */
35531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35534 char (*f) () = $ac_func;
35543 return f != $ac_func;
35548 rm -f conftest.
$ac_objext conftest
$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550 (eval $ac_link) 2>&5
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); } &&
35554 { ac_try
='test -s conftest$ac_exeext'
35555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556 (eval $ac_try) 2>&5
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); }; }; then
35560 eval "$as_ac_var=yes"
35562 echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.
$ac_ext >&5
35565 eval "$as_ac_var=no"
35567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35571 if test `eval echo '${'$as_ac_var'}'` = yes; then
35572 cat >>confdefs.h
<<_ACEOF
35573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35581 # This test must precede the ones for getmntent because Unicos-9 is
35582 # reported to have the getmntent function, but its support is incompatible
35583 # with other getmntent implementations.
35585 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35586 # `CRAY' below since that goes against the whole autoconf philosophy. But
35587 # I think there is too great a chance that some non-Cray system has a
35588 # function named listmntent to risk the false positive.
35590 if test -z "$ac_list_mounted_fs"; then
35592 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35593 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35594 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35595 echo $ECHO_N "(cached) $ECHO_C" >&6
35597 fu_cv_sys_mounted_cray_listmntent
=no
35598 cat >conftest.
$ac_ext <<_ACEOF
35601 cat confdefs.h
>>conftest.
$ac_ext
35602 cat >>conftest.
$ac_ext <<_ACEOF
35603 /* end confdefs.h. */
35609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35610 $EGREP "yes" >/dev
/null
2>&1; then
35611 test $ac_cv_func_listmntent = yes \
35612 && fu_cv_sys_mounted_cray_listmntent
=yes
35621 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35622 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35623 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35624 ac_list_mounted_fs
=found
35626 cat >>confdefs.h
<<\_ACEOF
35627 #define MOUNTED_LISTMNTENT 1
35633 if test $ac_cv_func_getmntent = yes; then
35635 # This system has the getmntent function.
35636 # Determine whether it's the one-argument variant or the two-argument one.
35638 if test -z "$ac_list_mounted_fs"; then
35639 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35640 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35641 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35642 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35643 echo $ECHO_N "(cached) $ECHO_C" >&6
35645 cat >conftest.
$ac_ext <<_ACEOF
35648 cat confdefs.h
>>conftest.
$ac_ext
35649 cat >>conftest.
$ac_ext <<_ACEOF
35650 /* end confdefs.h. */
35652 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35655 #include <mntent.h>
35656 #if !defined MOUNTED
35657 # if defined _PATH_MOUNTED /* GNU libc */
35658 # define MOUNTED _PATH_MOUNTED
35660 # if defined MNT_MNTTAB /* HP-UX. */
35661 # define MOUNTED MNT_MNTTAB
35663 # if defined MNTTABNAME /* Dynix. */
35664 # define MOUNTED MNTTABNAME
35671 struct mntent *mnt = 0; char *table = MOUNTED;
35676 rm -f conftest.
$ac_objext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35678 (eval $ac_compile) 2>&5
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); } &&
35682 { ac_try
='test -s conftest.$ac_objext'
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; }; then
35688 fu_cv_sys_mounted_getmntent1
=yes
35690 echo "$as_me: failed program was:" >&5
35691 sed 's/^/| /' conftest.
$ac_ext >&5
35693 fu_cv_sys_mounted_getmntent1
=no
35695 rm -f conftest.
$ac_objext conftest.
$ac_ext
35698 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35699 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35700 if test $fu_cv_sys_mounted_getmntent1 = yes; then
35701 ac_list_mounted_fs
=found
35703 cat >>confdefs.h
<<\_ACEOF
35704 #define MOUNTED_GETMNTENT1 1
35710 if test -z "$ac_list_mounted_fs"; then
35712 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35713 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35714 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35717 cat >conftest.
$ac_ext <<_ACEOF
35720 cat confdefs.h
>>conftest.
$ac_ext
35721 cat >>conftest.
$ac_ext <<_ACEOF
35722 /* end confdefs.h. */
35723 #include <sys/mnttab.h>
35726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35727 $EGREP "getmntent" >/dev
/null
2>&1; then
35728 fu_cv_sys_mounted_getmntent2
=yes
35730 fu_cv_sys_mounted_getmntent2
=no
35736 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35737 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35738 if test $fu_cv_sys_mounted_getmntent2 = yes; then
35739 ac_list_mounted_fs
=found
35741 cat >>confdefs.h
<<\_ACEOF
35742 #define MOUNTED_GETMNTENT2 1
35750 if test -z "$ac_list_mounted_fs"; then
35751 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35752 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35754 echo "$as_me:$LINENO: checking for getfsstat function" >&5
35755 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35756 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35757 echo $ECHO_N "(cached) $ECHO_C" >&6
35759 cat >conftest.
$ac_ext <<_ACEOF
35762 cat confdefs.h
>>conftest.
$ac_ext
35763 cat >>conftest.
$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35766 #include <sys/types.h>
35767 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35768 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35770 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35772 $getfsstat_includes
35777 struct statfs *stats;
35778 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35779 char *t = FS_TYPE (*stats);
35784 rm -f conftest.
$ac_objext conftest
$ac_exeext
35785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35786 (eval $ac_link) 2>&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try
='test -s conftest$ac_exeext'
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; }; then
35796 fu_cv_sys_mounted_getfsstat
=yes
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.
$ac_ext >&5
35801 fu_cv_sys_mounted_getfsstat
=no
35803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35806 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35807 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35808 if test $fu_cv_sys_mounted_getfsstat = yes; then
35809 ac_list_mounted_fs
=found
35811 cat >>confdefs.h
<<\_ACEOF
35812 #define MOUNTED_GETFSSTAT 1
35818 if test -z "$ac_list_mounted_fs"; then
35820 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35821 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35822 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35823 echo $ECHO_N "(cached) $ECHO_C" >&6
35825 cat >conftest.
$ac_ext <<_ACEOF
35828 cat confdefs.h
>>conftest.
$ac_ext
35829 cat >>conftest.
$ac_ext <<_ACEOF
35830 /* end confdefs.h. */
35831 #include <fshelp.h>
35833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35836 grep -v '^ *+' conftest.er1
>conftest.err
35838 cat conftest.err
>&5
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); } >/dev
/null
; then
35841 if test -s conftest.err
; then
35842 ac_cpp_err
=$ac_c_preproc_warn_flag
35849 if test -z "$ac_cpp_err"; then
35850 fu_cv_sys_mounted_vmount
=yes
35852 echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.
$ac_ext >&5
35855 fu_cv_sys_mounted_vmount
=no
35857 rm -f conftest.err conftest.
$ac_ext
35860 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35861 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35862 if test $fu_cv_sys_mounted_vmount = yes; then
35863 ac_list_mounted_fs
=found
35865 cat >>confdefs.h
<<\_ACEOF
35866 #define MOUNTED_VMOUNT 1
35872 if test -z "$ac_list_mounted_fs"; then
35874 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35875 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35876 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35877 echo $ECHO_N "(cached) $ECHO_C" >&6
35879 cat >conftest.
$ac_ext <<_ACEOF
35882 cat confdefs.h
>>conftest.
$ac_ext
35883 cat >>conftest.
$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35886 #include <sys/statfs.h>
35887 #include <sys/fstyp.h>
35888 #include <mnttab.h>
35890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35893 grep -v '^ *+' conftest.er1
>conftest.err
35895 cat conftest.err
>&5
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); } >/dev
/null
; then
35898 if test -s conftest.err
; then
35899 ac_cpp_err
=$ac_c_preproc_warn_flag
35906 if test -z "$ac_cpp_err"; then
35907 fu_cv_sys_mounted_fread_fstyp
=yes
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.
$ac_ext >&5
35912 fu_cv_sys_mounted_fread_fstyp
=no
35914 rm -f conftest.err conftest.
$ac_ext
35917 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35918 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35919 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35920 ac_list_mounted_fs
=found
35922 cat >>confdefs.h
<<\_ACEOF
35923 #define MOUNTED_FREAD_FSTYP 1
35929 if test -z "$ac_list_mounted_fs"; then
35930 # 4.4BSD and DEC OSF/1.
35931 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35932 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35933 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35937 test "$ac_cv_func_getmntinfo" = yes \
35938 && fu_cv_sys_mounted_getmntinfo
=yes \
35939 || fu_cv_sys_mounted_getmntinfo
=no
35943 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35944 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35945 if test $fu_cv_sys_mounted_getmntinfo = yes; then
35946 ac_list_mounted_fs
=found
35948 cat >>confdefs.h
<<\_ACEOF
35949 #define MOUNTED_GETMNTINFO 1
35955 if test -z "$ac_list_mounted_fs"; then
35957 echo "$as_me:$LINENO: checking for getmnt function" >&5
35958 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35959 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35960 echo $ECHO_N "(cached) $ECHO_C" >&6
35962 cat >conftest.
$ac_ext <<_ACEOF
35965 cat confdefs.h
>>conftest.
$ac_ext
35966 cat >>conftest.
$ac_ext <<_ACEOF
35967 /* end confdefs.h. */
35969 #include <sys/fs_types.h>
35970 #include <sys/mount.h>
35972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35973 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35975 grep -v '^ *+' conftest.er1
>conftest.err
35977 cat conftest.err
>&5
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); } >/dev
/null
; then
35980 if test -s conftest.err
; then
35981 ac_cpp_err
=$ac_c_preproc_warn_flag
35988 if test -z "$ac_cpp_err"; then
35989 fu_cv_sys_mounted_getmnt
=yes
35991 echo "$as_me: failed program was:" >&5
35992 sed 's/^/| /' conftest.
$ac_ext >&5
35994 fu_cv_sys_mounted_getmnt
=no
35996 rm -f conftest.err conftest.
$ac_ext
35999 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
36000 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
36001 if test $fu_cv_sys_mounted_getmnt = yes; then
36002 ac_list_mounted_fs
=found
36004 cat >>confdefs.h
<<\_ACEOF
36005 #define MOUNTED_GETMNT 1
36011 if test -z "$ac_list_mounted_fs"; then
36015 for ac_func
in next_dev fs_stat_dev
36017 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36018 echo "$as_me:$LINENO: checking for $ac_func" >&5
36019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36020 if eval "test \"\${$as_ac_var+set}\" = set"; then
36021 echo $ECHO_N "(cached) $ECHO_C" >&6
36023 cat >conftest.
$ac_ext <<_ACEOF
36026 cat confdefs.h
>>conftest.
$ac_ext
36027 cat >>conftest.
$ac_ext <<_ACEOF
36028 /* end confdefs.h. */
36029 /* System header to define __stub macros and hopefully few prototypes,
36030 which can conflict with char $ac_func (); below.
36031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36032 <limits.h> exists even on freestanding compilers. */
36034 # include <limits.h>
36036 # include <assert.h>
36038 /* Override any gcc2 internal prototype to avoid an error. */
36043 /* We use char because int might match the return type of a gcc2
36044 builtin and then its argument prototype would still apply. */
36046 /* The GNU C library defines this for functions which it implements
36047 to always fail with ENOSYS. Some functions are actually named
36048 something starting with __ and the normal name is an alias. */
36049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36052 char (*f) () = $ac_func;
36061 return f != $ac_func;
36066 rm -f conftest.
$ac_objext conftest
$ac_exeext
36067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36068 (eval $ac_link) 2>&5
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); } &&
36072 { ac_try
='test -s conftest$ac_exeext'
36073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074 (eval $ac_try) 2>&5
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); }; }; then
36078 eval "$as_ac_var=yes"
36080 echo "$as_me: failed program was:" >&5
36081 sed 's/^/| /' conftest.
$ac_ext >&5
36083 eval "$as_ac_var=no"
36085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36089 if test `eval echo '${'$as_ac_var'}'` = yes; then
36090 cat >>confdefs.h
<<_ACEOF
36091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36098 for ac_header
in fs_info.h
36100 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36102 echo "$as_me:$LINENO: checking for $ac_header" >&5
36103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36110 # Is the header compilable?
36111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36113 cat >conftest.
$ac_ext <<_ACEOF
36116 cat confdefs.h
>>conftest.
$ac_ext
36117 cat >>conftest.
$ac_ext <<_ACEOF
36118 /* end confdefs.h. */
36119 $ac_includes_default
36120 #include <$ac_header>
36122 rm -f conftest.
$ac_objext
36123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36124 (eval $ac_compile) 2>&5
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); } &&
36128 { ac_try
='test -s conftest.$ac_objext'
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; }; then
36134 ac_header_compiler
=yes
36136 echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.
$ac_ext >&5
36139 ac_header_compiler
=no
36141 rm -f conftest.
$ac_objext conftest.
$ac_ext
36142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36143 echo "${ECHO_T}$ac_header_compiler" >&6
36145 # Is the header present?
36146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36148 cat >conftest.
$ac_ext <<_ACEOF
36151 cat confdefs.h
>>conftest.
$ac_ext
36152 cat >>conftest.
$ac_ext <<_ACEOF
36153 /* end confdefs.h. */
36154 #include <$ac_header>
36156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36159 grep -v '^ *+' conftest.er1
>conftest.err
36161 cat conftest.err
>&5
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } >/dev
/null
; then
36164 if test -s conftest.err
; then
36165 ac_cpp_err
=$ac_c_preproc_warn_flag
36172 if test -z "$ac_cpp_err"; then
36173 ac_header_preproc
=yes
36175 echo "$as_me: failed program was:" >&5
36176 sed 's/^/| /' conftest.
$ac_ext >&5
36178 ac_header_preproc
=no
36180 rm -f conftest.err conftest.
$ac_ext
36181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36182 echo "${ECHO_T}$ac_header_preproc" >&6
36184 # So? What about this header?
36185 case $ac_header_compiler:$ac_header_preproc in
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36193 ## ------------------------------------ ##
36194 ## Report this to bug-autoconf@gnu.org. ##
36195 ## ------------------------------------ ##
36198 sed "s/^/$as_me: WARNING: /" >&2
36201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36209 ## ------------------------------------ ##
36210 ## Report this to bug-autoconf@gnu.org. ##
36211 ## ------------------------------------ ##
36214 sed "s/^/$as_me: WARNING: /" >&2
36217 echo "$as_me:$LINENO: checking for $ac_header" >&5
36218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36220 echo $ECHO_N "(cached) $ECHO_C" >&6
36222 eval "$as_ac_Header=$ac_header_preproc"
36224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36229 cat >>confdefs.h
<<_ACEOF
36230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36237 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36238 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36239 if test $ac_cv_header_fs_info_h = yes \
36240 && test $ac_cv_func_next_dev = yes \
36241 && test $ac_cv_func_fs_stat_dev = yes; then
36246 echo "$as_me:$LINENO: result: $fu_result" >&5
36247 echo "${ECHO_T}$fu_result" >&6
36248 if test $fu_result = yes; then
36249 ac_list_mounted_fs
=found
36251 cat >>confdefs.h
<<\_ACEOF
36252 #define MOUNTED_FS_STAT_DEV 1
36258 if test -z "$ac_list_mounted_fs"; then
36260 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36261 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36262 if test "${fu_cv_sys_mounted_fread+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36265 cat >conftest.
$ac_ext <<_ACEOF
36268 cat confdefs.h
>>conftest.
$ac_ext
36269 cat >>conftest.
$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36271 #include <mnttab.h>
36273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36276 grep -v '^ *+' conftest.er1
>conftest.err
36278 cat conftest.err
>&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 (exit $ac_status); } >/dev
/null
; then
36281 if test -s conftest.err
; then
36282 ac_cpp_err
=$ac_c_preproc_warn_flag
36289 if test -z "$ac_cpp_err"; then
36290 fu_cv_sys_mounted_fread
=yes
36292 echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.
$ac_ext >&5
36295 fu_cv_sys_mounted_fread
=no
36297 rm -f conftest.err conftest.
$ac_ext
36300 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36301 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36302 if test $fu_cv_sys_mounted_fread = yes; then
36303 ac_list_mounted_fs
=found
36305 cat >>confdefs.h
<<\_ACEOF
36306 #define MOUNTED_FREAD 1
36312 if test -z "$ac_list_mounted_fs"; then
36313 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36314 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36315 { (exit 1); exit 1; }; }
36316 # FIXME -- no need to abort building the whole package
36317 # Can't build mountlist.c or anything that needs its functions
36320 if test $ac_list_mounted_fs = found
; then
36321 list_mounted_fs
=yes
36329 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36330 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36331 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36335 cat >conftest.
$ac_ext <<_ACEOF
36338 cat confdefs.h
>>conftest.
$ac_ext
36339 cat >>conftest.
$ac_ext <<_ACEOF
36340 /* end confdefs.h. */
36342 #include <sys/param.h>
36343 #include <sys/types.h>
36344 #include <sys/mount.h>
36349 struct statfs s; int i = sizeof s.f_fstypename;
36354 rm -f conftest.
$ac_objext
36355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36356 (eval $ac_compile) 2>&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } &&
36360 { ac_try
='test -s conftest.$ac_objext'
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; }; then
36366 fu_cv_sys_f_fstypename_in_statfs
=yes
36368 echo "$as_me: failed program was:" >&5
36369 sed 's/^/| /' conftest.
$ac_ext >&5
36371 fu_cv_sys_f_fstypename_in_statfs
=no
36374 rm -f conftest.
$ac_objext conftest.
$ac_ext
36378 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36379 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36381 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36383 cat >>confdefs.h
<<\_ACEOF
36384 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36392 echo "checking how to get filesystem space usage..."
36393 ac_fsusage_space
=no
36395 # Perform only the link test since it seems there are no variants of the
36396 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
36397 # because that got a false positive on SCO OSR5. Adding the declaration
36398 # of a `struct statvfs' causes this test to fail (as it should) on such
36399 # systems. That system is reported to work fine with STAT_STATFS4 which
36400 # is what it gets when this test fails.
36401 if test $ac_fsusage_space = no
; then
36403 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36404 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36405 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36406 echo $ECHO_N "(cached) $ECHO_C" >&6
36408 cat >conftest.
$ac_ext <<_ACEOF
36411 cat confdefs.h
>>conftest.
$ac_ext
36412 cat >>conftest.
$ac_ext <<_ACEOF
36413 /* end confdefs.h. */
36414 #include <sys/types.h>
36416 Do not use statvfs on systems with GNU libc, because that function stats
36417 all preceding entries in /proc/mounts, and that makes df hang if even
36418 one of the corresponding file systems is hard-mounted, but not available.
36420 #include <sys/statvfs.h>
36424 struct statvfs fsd; statvfs (0, &fsd);
36429 rm -f conftest.
$ac_objext conftest
$ac_exeext
36430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36431 (eval $ac_link) 2>&5
36433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434 (exit $ac_status); } &&
36435 { ac_try
='test -s conftest$ac_exeext'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; }; then
36441 fu_cv_sys_stat_statvfs
=yes
36443 echo "$as_me: failed program was:" >&5
36444 sed 's/^/| /' conftest.
$ac_ext >&5
36446 fu_cv_sys_stat_statvfs
=no
36448 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36450 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36451 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36452 if test $fu_cv_sys_stat_statvfs = yes; then
36453 ac_fsusage_space
=yes
36455 cat >>confdefs.h
<<\_ACEOF
36456 #define STAT_STATVFS 1
36462 if test $ac_fsusage_space = no
; then
36463 # DEC Alpha running OSF/1
36464 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36465 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36466 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36467 echo $ECHO_N "(cached) $ECHO_C" >&6
36469 if test "$cross_compiling" = yes; then
36470 fu_cv_sys_stat_statfs3_osf1
=no
36472 cat >conftest.
$ac_ext <<_ACEOF
36475 cat confdefs.h
>>conftest.
$ac_ext
36476 cat >>conftest.
$ac_ext <<_ACEOF
36477 /* end confdefs.h. */
36479 #include <sys/param.h>
36480 #include <sys/types.h>
36481 #include <sys/mount.h>
36486 exit (statfs (".", &fsd, sizeof (struct statfs)));
36489 rm -f conftest
$ac_exeext
36490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36491 (eval $ac_link) 2>&5
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36496 (eval $ac_try) 2>&5
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); }; }; then
36500 fu_cv_sys_stat_statfs3_osf1
=yes
36502 echo "$as_me: program exited with status $ac_status" >&5
36503 echo "$as_me: failed program was:" >&5
36504 sed 's/^/| /' conftest.
$ac_ext >&5
36506 ( exit $ac_status )
36507 fu_cv_sys_stat_statfs3_osf1
=no
36509 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36513 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36514 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36515 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36516 ac_fsusage_space
=yes
36518 cat >>confdefs.h
<<\_ACEOF
36519 #define STAT_STATFS3_OSF1 1
36525 if test $ac_fsusage_space = no
; then
36527 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36528 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36529 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36530 echo $ECHO_N "(cached) $ECHO_C" >&6
36532 if test "$cross_compiling" = yes; then
36533 fu_cv_sys_stat_statfs2_bsize
=no
36535 cat >conftest.
$ac_ext <<_ACEOF
36538 cat confdefs.h
>>conftest.
$ac_ext
36539 cat >>conftest.
$ac_ext <<_ACEOF
36540 /* end confdefs.h. */
36542 #ifdef HAVE_SYS_PARAM_H
36543 #include <sys/param.h>
36545 #ifdef HAVE_SYS_MOUNT_H
36546 #include <sys/mount.h>
36548 #ifdef HAVE_SYS_VFS_H
36549 #include <sys/vfs.h>
36555 exit (statfs (".", &fsd));
36558 rm -f conftest
$ac_exeext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36560 (eval $ac_link) 2>&5
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; }; then
36569 fu_cv_sys_stat_statfs2_bsize
=yes
36571 echo "$as_me: program exited with status $ac_status" >&5
36572 echo "$as_me: failed program was:" >&5
36573 sed 's/^/| /' conftest.
$ac_ext >&5
36575 ( exit $ac_status )
36576 fu_cv_sys_stat_statfs2_bsize
=no
36578 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36582 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36583 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36584 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36585 ac_fsusage_space
=yes
36587 cat >>confdefs.h
<<\_ACEOF
36588 #define STAT_STATFS2_BSIZE 1
36594 if test $ac_fsusage_space = no
; then
36596 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36597 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36598 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36599 echo $ECHO_N "(cached) $ECHO_C" >&6
36601 if test "$cross_compiling" = yes; then
36602 fu_cv_sys_stat_statfs4
=no
36604 cat >conftest.
$ac_ext <<_ACEOF
36607 cat confdefs.h
>>conftest.
$ac_ext
36608 cat >>conftest.
$ac_ext <<_ACEOF
36609 /* end confdefs.h. */
36610 #include <sys/types.h>
36611 #include <sys/statfs.h>
36615 exit (statfs (".", &fsd, sizeof fsd, 0));
36618 rm -f conftest
$ac_exeext
36619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36620 (eval $ac_link) 2>&5
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625 (eval $ac_try) 2>&5
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); }; }; then
36629 fu_cv_sys_stat_statfs4
=yes
36631 echo "$as_me: program exited with status $ac_status" >&5
36632 echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.
$ac_ext >&5
36635 ( exit $ac_status )
36636 fu_cv_sys_stat_statfs4
=no
36638 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36642 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36643 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36644 if test $fu_cv_sys_stat_statfs4 = yes; then
36645 ac_fsusage_space
=yes
36647 cat >>confdefs.h
<<\_ACEOF
36648 #define STAT_STATFS4 1
36654 if test $ac_fsusage_space = no
; then
36655 # 4.4BSD and NetBSD
36656 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36657 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36658 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36661 if test "$cross_compiling" = yes; then
36662 fu_cv_sys_stat_statfs2_fsize
=no
36664 cat >conftest.
$ac_ext <<_ACEOF
36667 cat confdefs.h
>>conftest.
$ac_ext
36668 cat >>conftest.
$ac_ext <<_ACEOF
36669 /* end confdefs.h. */
36670 #include <sys/types.h>
36671 #ifdef HAVE_SYS_PARAM_H
36672 #include <sys/param.h>
36674 #ifdef HAVE_SYS_MOUNT_H
36675 #include <sys/mount.h>
36681 exit (statfs (".", &fsd));
36684 rm -f conftest
$ac_exeext
36685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36686 (eval $ac_link) 2>&5
36688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36691 (eval $ac_try) 2>&5
36693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694 (exit $ac_status); }; }; then
36695 fu_cv_sys_stat_statfs2_fsize
=yes
36697 echo "$as_me: program exited with status $ac_status" >&5
36698 echo "$as_me: failed program was:" >&5
36699 sed 's/^/| /' conftest.
$ac_ext >&5
36701 ( exit $ac_status )
36702 fu_cv_sys_stat_statfs2_fsize
=no
36704 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36708 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36709 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36710 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36711 ac_fsusage_space
=yes
36713 cat >>confdefs.h
<<\_ACEOF
36714 #define STAT_STATFS2_FSIZE 1
36720 if test $ac_fsusage_space = no
; then
36722 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36723 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36724 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36725 echo $ECHO_N "(cached) $ECHO_C" >&6
36727 if test "$cross_compiling" = yes; then
36728 fu_cv_sys_stat_fs_data
=no
36730 cat >conftest.
$ac_ext <<_ACEOF
36733 cat confdefs.h
>>conftest.
$ac_ext
36734 cat >>conftest.
$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 #include <sys/types.h>
36737 #ifdef HAVE_SYS_PARAM_H
36738 #include <sys/param.h>
36740 #ifdef HAVE_SYS_MOUNT_H
36741 #include <sys/mount.h>
36743 #ifdef HAVE_SYS_FS_TYPES_H
36744 #include <sys/fs_types.h>
36748 struct fs_data fsd;
36749 /* Ultrix's statfs returns 1 for success,
36750 0 for not mounted, -1 for failure. */
36751 exit (statfs (".", &fsd) != 1);
36754 rm -f conftest
$ac_exeext
36755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36756 (eval $ac_link) 2>&5
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761 (eval $ac_try) 2>&5
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); }; }; then
36765 fu_cv_sys_stat_fs_data
=yes
36767 echo "$as_me: program exited with status $ac_status" >&5
36768 echo "$as_me: failed program was:" >&5
36769 sed 's/^/| /' conftest.
$ac_ext >&5
36771 ( exit $ac_status )
36772 fu_cv_sys_stat_fs_data
=no
36774 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36778 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36779 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36780 if test $fu_cv_sys_stat_fs_data = yes; then
36781 ac_fsusage_space
=yes
36783 cat >>confdefs.h
<<\_ACEOF
36784 #define STAT_STATFS2_FS_DATA 1
36790 if test $ac_fsusage_space = no
; then
36792 cat >conftest.
$ac_ext <<_ACEOF
36795 cat confdefs.h
>>conftest.
$ac_ext
36796 cat >>conftest.
$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 #include <sys/filsys.h>
36801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36804 grep -v '^ *+' conftest.er1
>conftest.err
36806 cat conftest.err
>&5
36807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808 (exit $ac_status); } >/dev
/null
; then
36809 if test -s conftest.err
; then
36810 ac_cpp_err
=$ac_c_preproc_warn_flag
36817 if test -z "$ac_cpp_err"; then
36819 cat >>confdefs.h
<<\_ACEOF
36820 #define STAT_READ_FILSYS 1
36823 ac_fsusage_space
=yes
36825 echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.
$ac_ext >&5
36830 rm -f conftest.err conftest.
$ac_ext
36833 if test $ac_fsusage_space = yes; then
36841 if test $list_mounted_fs = yes && test $space = yes; then
36843 LIBOBJS
="$LIBOBJS fsusage.$ac_objext"
36844 LIBOBJS
="$LIBOBJS mountlist.$ac_objext"
36849 # If any of these functions don't exist (e.g. DJGPP 2.03),
36850 # use the corresponding stub.
36851 echo "$as_me:$LINENO: checking for fchown" >&5
36852 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
36853 if test "${ac_cv_func_fchown+set}" = set; then
36854 echo $ECHO_N "(cached) $ECHO_C" >&6
36856 cat >conftest.
$ac_ext <<_ACEOF
36859 cat confdefs.h
>>conftest.
$ac_ext
36860 cat >>conftest.
$ac_ext <<_ACEOF
36861 /* end confdefs.h. */
36862 /* System header to define __stub macros and hopefully few prototypes,
36863 which can conflict with char fchown (); below.
36864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36865 <limits.h> exists even on freestanding compilers. */
36867 # include <limits.h>
36869 # include <assert.h>
36871 /* Override any gcc2 internal prototype to avoid an error. */
36876 /* We use char because int might match the return type of a gcc2
36877 builtin and then its argument prototype would still apply. */
36879 /* The GNU C library defines this for functions which it implements
36880 to always fail with ENOSYS. Some functions are actually named
36881 something starting with __ and the normal name is an alias. */
36882 #if defined (__stub_fchown) || defined (__stub___fchown)
36885 char (*f) () = fchown;
36894 return f != fchown;
36899 rm -f conftest.
$ac_objext conftest
$ac_exeext
36900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36901 (eval $ac_link) 2>&5
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } &&
36905 { ac_try
='test -s conftest$ac_exeext'
36906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907 (eval $ac_try) 2>&5
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); }; }; then
36911 ac_cv_func_fchown
=yes
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.
$ac_ext >&5
36916 ac_cv_func_fchown
=no
36918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36920 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
36921 echo "${ECHO_T}$ac_cv_func_fchown" >&6
36922 if test $ac_cv_func_fchown = yes; then
36925 LIBOBJS
="$LIBOBJS fchown-stub.$ac_objext"
36928 echo "$as_me:$LINENO: checking for lstat" >&5
36929 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
36930 if test "${ac_cv_func_lstat+set}" = set; then
36931 echo $ECHO_N "(cached) $ECHO_C" >&6
36933 cat >conftest.
$ac_ext <<_ACEOF
36936 cat confdefs.h
>>conftest.
$ac_ext
36937 cat >>conftest.
$ac_ext <<_ACEOF
36938 /* end confdefs.h. */
36939 /* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char lstat (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36944 # include <limits.h>
36946 # include <assert.h>
36948 /* Override any gcc2 internal prototype to avoid an error. */
36953 /* We use char because int might match the return type of a gcc2
36954 builtin and then its argument prototype would still apply. */
36956 /* The GNU C library defines this for functions which it implements
36957 to always fail with ENOSYS. Some functions are actually named
36958 something starting with __ and the normal name is an alias. */
36959 #if defined (__stub_lstat) || defined (__stub___lstat)
36962 char (*f) () = lstat;
36976 rm -f conftest.
$ac_objext conftest
$ac_exeext
36977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36978 (eval $ac_link) 2>&5
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); } &&
36982 { ac_try
='test -s conftest$ac_exeext'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; }; then
36988 ac_cv_func_lstat
=yes
36990 echo "$as_me: failed program was:" >&5
36991 sed 's/^/| /' conftest.
$ac_ext >&5
36993 ac_cv_func_lstat
=no
36995 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36997 echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
36998 echo "${ECHO_T}$ac_cv_func_lstat" >&6
36999 if test $ac_cv_func_lstat = yes; then
37002 LIBOBJS
="$LIBOBJS lstat-stub.$ac_objext"
37005 echo "$as_me:$LINENO: checking for readlink" >&5
37006 echo $ECHO_N "checking for readlink... $ECHO_C" >&6
37007 if test "${ac_cv_func_readlink+set}" = set; then
37008 echo $ECHO_N "(cached) $ECHO_C" >&6
37010 cat >conftest.
$ac_ext <<_ACEOF
37013 cat confdefs.h
>>conftest.
$ac_ext
37014 cat >>conftest.
$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37016 /* System header to define __stub macros and hopefully few prototypes,
37017 which can conflict with char readlink (); below.
37018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37019 <limits.h> exists even on freestanding compilers. */
37021 # include <limits.h>
37023 # include <assert.h>
37025 /* Override any gcc2 internal prototype to avoid an error. */
37030 /* We use char because int might match the return type of a gcc2
37031 builtin and then its argument prototype would still apply. */
37033 /* The GNU C library defines this for functions which it implements
37034 to always fail with ENOSYS. Some functions are actually named
37035 something starting with __ and the normal name is an alias. */
37036 #if defined (__stub_readlink) || defined (__stub___readlink)
37039 char (*f) () = readlink;
37048 return f != readlink;
37053 rm -f conftest.
$ac_objext conftest
$ac_exeext
37054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37055 (eval $ac_link) 2>&5
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); } &&
37059 { ac_try
='test -s conftest$ac_exeext'
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 ac_cv_func_readlink
=yes
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.
$ac_ext >&5
37070 ac_cv_func_readlink
=no
37072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37074 echo "$as_me:$LINENO: result: $ac_cv_func_readlink" >&5
37075 echo "${ECHO_T}$ac_cv_func_readlink" >&6
37076 if test $ac_cv_func_readlink = yes; then
37079 LIBOBJS
="$LIBOBJS readlink-stub.$ac_objext"
37085 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
37086 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
37087 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
37088 echo $ECHO_N "(cached) $ECHO_C" >&6
37090 cat >conftest.
$ac_ext <<_ACEOF
37093 cat confdefs.h
>>conftest.
$ac_ext
37094 cat >>conftest.
$ac_ext <<_ACEOF
37095 /* end confdefs.h. */
37096 #include <sys/types.h>
37097 #include <termios.h>
37103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37104 $EGREP "yes" >/dev
/null
2>&1; then
37105 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
37107 ac_cv_sys_tiocgwinsz_in_termios_h
=no
37112 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
37113 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
37115 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
37116 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
37117 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
37118 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37121 cat >conftest.
$ac_ext <<_ACEOF
37124 cat confdefs.h
>>conftest.
$ac_ext
37125 cat >>conftest.
$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 #include <sys/types.h>
37128 #include <sys/ioctl.h>
37134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37135 $EGREP "yes" >/dev
/null
2>&1; then
37136 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
37138 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
37143 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
37144 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
37146 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
37148 cat >>confdefs.h
<<\_ACEOF
37149 #define GWINSZ_IN_SYS_IOCTL 1
37155 echo "$as_me:$LINENO: checking POSIX termios" >&5
37156 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37157 if test "${ac_cv_sys_posix_termios+set}" = set; then
37158 echo $ECHO_N "(cached) $ECHO_C" >&6
37160 cat >conftest.
$ac_ext <<_ACEOF
37163 cat confdefs.h
>>conftest.
$ac_ext
37164 cat >>conftest.
$ac_ext <<_ACEOF
37165 /* end confdefs.h. */
37166 #include <sys/types.h>
37167 #include <unistd.h>
37168 #include <termios.h>
37173 /* SunOS 4.0.3 has termios.h but not the library calls. */
37179 rm -f conftest.
$ac_objext conftest
$ac_exeext
37180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37181 (eval $ac_link) 2>&5
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } &&
37185 { ac_try
='test -s conftest$ac_exeext'
37186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37187 (eval $ac_try) 2>&5
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); }; }; then
37191 ac_cv_sys_posix_termios
=yes
37193 echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.
$ac_ext >&5
37196 ac_cv_sys_posix_termios
=no
37198 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37200 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37201 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37204 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
37205 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
37206 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
37207 echo $ECHO_N "(cached) $ECHO_C" >&6
37209 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
37210 if test $ac_cv_sys_posix_termios = yes; then
37211 cat >conftest.
$ac_ext <<_ACEOF
37214 cat confdefs.h
>>conftest.
$ac_ext
37215 cat >>conftest.
$ac_ext <<_ACEOF
37216 /* end confdefs.h. */
37217 #include <termios.h>
37222 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
37227 rm -f conftest.
$ac_objext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37229 (eval $ac_compile) 2>&5
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); } &&
37233 { ac_try
='test -s conftest.$ac_objext'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; }; then
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.
$ac_ext >&5
37245 rm -f conftest.
$ac_objext conftest.
$ac_ext
37247 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
37248 cat >conftest.
$ac_ext <<_ACEOF
37251 cat confdefs.h
>>conftest.
$ac_ext
37252 cat >>conftest.
$ac_ext <<_ACEOF
37253 /* end confdefs.h. */
37254 #include <sys/ptem.h>
37263 rm -f conftest.
$ac_objext
37264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37265 (eval $ac_compile) 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
37277 echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.
$ac_ext >&5
37280 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
37282 rm -f conftest.
$ac_objext conftest.
$ac_ext
37285 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
37286 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
37287 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
37289 cat >>confdefs.h
<<\_ACEOF
37290 #define WINSIZE_IN_PTEM 1
37295 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
37296 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
37297 # enable the work-around code in fsusage.c.
37298 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
37299 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
37300 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
37301 echo $ECHO_N "(cached) $ECHO_C" >&6
37303 cat >conftest.
$ac_ext <<_ACEOF
37306 cat confdefs.h
>>conftest.
$ac_ext
37307 cat >>conftest.
$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37310 #if !defined(sun) && !defined(__sun)
37311 choke -- this is a workaround for a Sun-specific problem
37313 #include <sys/types.h>
37314 #include <sys/vfs.h>
37318 struct statfs t; long c = *(t.f_spare);
37323 rm -f conftest.
$ac_objext
37324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37325 (eval $ac_compile) 2>&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); } &&
37329 { ac_try
='test -s conftest.$ac_objext'
37330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37331 (eval $ac_try) 2>&5
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); }; }; then
37335 fu_cv_sys_truncating_statfs
=yes
37337 echo "$as_me: failed program was:" >&5
37338 sed 's/^/| /' conftest.
$ac_ext >&5
37340 fu_cv_sys_truncating_statfs
=no
37342 rm -f conftest.
$ac_objext conftest.
$ac_ext
37345 if test $fu_cv_sys_truncating_statfs = yes; then
37347 cat >>confdefs.h
<<\_ACEOF
37348 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37352 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37353 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37355 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37356 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37357 if test "${utils_cv_localtime_cache+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37360 if test x
$ac_cv_func_tzset = xyes
; then
37361 if test "$cross_compiling" = yes; then
37362 # If we have tzset, assume the worst when cross-compiling.
37363 utils_cv_localtime_cache
=yes
37365 cat >conftest.
$ac_ext <<_ACEOF
37368 cat confdefs.h
>>conftest.
$ac_ext
37369 cat >>conftest.
$ac_ext <<_ACEOF
37370 /* end confdefs.h. */
37373 # include <stdlib.h>
37375 extern char **environ;
37379 for (to = from = environ; (*to = *from); from++)
37380 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37385 time_t now = time ((time_t *) 0);
37386 int hour_GMT0, hour_unset;
37387 if (putenv ("TZ=GMT0") != 0)
37389 hour_GMT0 = localtime (&now)->tm_hour;
37391 hour_unset = localtime (&now)->tm_hour;
37392 if (putenv ("TZ=PST8") != 0)
37394 if (localtime (&now)->tm_hour == hour_GMT0)
37397 if (localtime (&now)->tm_hour != hour_unset)
37402 rm -f conftest
$ac_exeext
37403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37404 (eval $ac_link) 2>&5
37406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; }; then
37413 utils_cv_localtime_cache
=no
37415 echo "$as_me: program exited with status $ac_status" >&5
37416 echo "$as_me: failed program was:" >&5
37417 sed 's/^/| /' conftest.
$ac_ext >&5
37419 ( exit $ac_status )
37420 utils_cv_localtime_cache
=yes
37422 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
37425 # If we lack tzset, report that localtime does not cache TZ,
37426 # since we can't invalidate the cache if we don't have tzset.
37427 utils_cv_localtime_cache
=no
37430 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37431 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37432 if test $utils_cv_localtime_cache = yes; then
37434 cat >>confdefs.h
<<\_ACEOF
37435 #define LOCALTIME_CACHE 1
37440 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37442 for ac_func
in initgroups
37444 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37445 echo "$as_me:$LINENO: checking for $ac_func" >&5
37446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37447 if eval "test \"\${$as_ac_var+set}\" = set"; then
37448 echo $ECHO_N "(cached) $ECHO_C" >&6
37450 cat >conftest.
$ac_ext <<_ACEOF
37453 cat confdefs.h
>>conftest.
$ac_ext
37454 cat >>conftest.
$ac_ext <<_ACEOF
37455 /* end confdefs.h. */
37456 /* System header to define __stub macros and hopefully few prototypes,
37457 which can conflict with char $ac_func (); below.
37458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37459 <limits.h> exists even on freestanding compilers. */
37461 # include <limits.h>
37463 # include <assert.h>
37465 /* Override any gcc2 internal prototype to avoid an error. */
37470 /* We use char because int might match the return type of a gcc2
37471 builtin and then its argument prototype would still apply. */
37473 /* The GNU C library defines this for functions which it implements
37474 to always fail with ENOSYS. Some functions are actually named
37475 something starting with __ and the normal name is an alias. */
37476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37479 char (*f) () = $ac_func;
37488 return f != $ac_func;
37493 rm -f conftest.
$ac_objext conftest
$ac_exeext
37494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37495 (eval $ac_link) 2>&5
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); } &&
37499 { ac_try
='test -s conftest$ac_exeext'
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 eval "$as_ac_var=yes"
37507 echo "$as_me: failed program was:" >&5
37508 sed 's/^/| /' conftest.
$ac_ext >&5
37510 eval "$as_ac_var=no"
37512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37516 if test `eval echo '${'$as_ac_var'}'` = yes; then
37517 cat >>confdefs.h
<<_ACEOF
37518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37524 if test $ac_cv_func_initgroups = no
; then
37526 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37527 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37528 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37529 echo $ECHO_N "(cached) $ECHO_C" >&6
37531 ac_check_lib_save_LIBS
=$LIBS
37533 cat >conftest.
$ac_ext <<_ACEOF
37536 cat confdefs.h
>>conftest.
$ac_ext
37537 cat >>conftest.
$ac_ext <<_ACEOF
37538 /* end confdefs.h. */
37540 /* Override any gcc2 internal prototype to avoid an error. */
37544 /* We use char because int might match the return type of a gcc2
37545 builtin and then its argument prototype would still apply. */
37546 char initgroups ();
37555 rm -f conftest.
$ac_objext conftest
$ac_exeext
37556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37557 (eval $ac_link) 2>&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } &&
37561 { ac_try
='test -s conftest$ac_exeext'
37562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563 (eval $ac_try) 2>&5
37565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); }; }; then
37567 ac_cv_lib_os_initgroups
=yes
37569 echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.
$ac_ext >&5
37572 ac_cv_lib_os_initgroups
=no
37574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37575 LIBS
=$ac_check_lib_save_LIBS
37577 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37578 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37579 if test $ac_cv_lib_os_initgroups = yes; then
37580 cat >>confdefs.h
<<_ACEOF
37581 #define HAVE_LIBOS 1
37591 for ac_func
in syslog
37593 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37594 echo "$as_me:$LINENO: checking for $ac_func" >&5
37595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37596 if eval "test \"\${$as_ac_var+set}\" = set"; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37599 cat >conftest.
$ac_ext <<_ACEOF
37602 cat confdefs.h
>>conftest.
$ac_ext
37603 cat >>conftest.
$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37605 /* System header to define __stub macros and hopefully few prototypes,
37606 which can conflict with char $ac_func (); below.
37607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37608 <limits.h> exists even on freestanding compilers. */
37610 # include <limits.h>
37612 # include <assert.h>
37614 /* Override any gcc2 internal prototype to avoid an error. */
37619 /* We use char because int might match the return type of a gcc2
37620 builtin and then its argument prototype would still apply. */
37622 /* The GNU C library defines this for functions which it implements
37623 to always fail with ENOSYS. Some functions are actually named
37624 something starting with __ and the normal name is an alias. */
37625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37628 char (*f) () = $ac_func;
37637 return f != $ac_func;
37642 rm -f conftest.
$ac_objext conftest
$ac_exeext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37644 (eval $ac_link) 2>&5
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } &&
37648 { ac_try
='test -s conftest$ac_exeext'
37649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37650 (eval $ac_try) 2>&5
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); }; }; then
37654 eval "$as_ac_var=yes"
37656 echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.
$ac_ext >&5
37659 eval "$as_ac_var=no"
37661 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666 cat >>confdefs.h
<<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37673 if test $ac_cv_func_syslog = no
; then
37674 # syslog is not in the default libraries. See if it's in some other.
37675 for lib
in bsd socket inet
; do
37676 as_ac_Lib
=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37677 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37678 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37679 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37680 echo $ECHO_N "(cached) $ECHO_C" >&6
37682 ac_check_lib_save_LIBS
=$LIBS
37683 LIBS
="-l$lib $LIBS"
37684 cat >conftest.
$ac_ext <<_ACEOF
37687 cat confdefs.h
>>conftest.
$ac_ext
37688 cat >>conftest.
$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37691 /* Override any gcc2 internal prototype to avoid an error. */
37695 /* We use char because int might match the return type of a gcc2
37696 builtin and then its argument prototype would still apply. */
37706 rm -f conftest.
$ac_objext conftest
$ac_exeext
37707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37708 (eval $ac_link) 2>&5
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); } &&
37712 { ac_try
='test -s conftest$ac_exeext'
37713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37714 (eval $ac_try) 2>&5
37716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717 (exit $ac_status); }; }; then
37718 eval "$as_ac_Lib=yes"
37720 echo "$as_me: failed program was:" >&5
37721 sed 's/^/| /' conftest.
$ac_ext >&5
37723 eval "$as_ac_Lib=no"
37725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37726 LIBS
=$ac_check_lib_save_LIBS
37728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37729 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37732 cat >>confdefs.h
<<\_ACEOF
37733 #define HAVE_SYSLOG 1
37736 LIBS
="$LIBS -l$lib"; break
37742 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37743 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37744 if test "${utils_cv_func_setpriority+set}" = set; then
37745 echo $ECHO_N "(cached) $ECHO_C" >&6
37747 cat >conftest.
$ac_ext <<_ACEOF
37750 cat confdefs.h
>>conftest.
$ac_ext
37751 cat >>conftest.
$ac_ext <<_ACEOF
37752 /* end confdefs.h. */
37753 #include <sys/time.h>
37754 #include <sys/resource.h>
37758 setpriority(0, 0, 0);
37763 rm -f conftest.
$ac_objext conftest
$ac_exeext
37764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37765 (eval $ac_link) 2>&5
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); } &&
37769 { ac_try
='test -s conftest$ac_exeext'
37770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771 (eval $ac_try) 2>&5
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); }; }; then
37775 utils_cv_func_setpriority
=yes
37777 echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.
$ac_ext >&5
37780 utils_cv_func_setpriority
=no
37782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37785 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37786 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37787 if test $utils_cv_func_setpriority = yes; then
37788 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
37789 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
37790 MAN
="$MAN nice.1 nohup.1"
37792 echo "$as_me:$LINENO: checking for nice function" >&5
37793 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37794 if test "${utils_cv_func_nice+set}" = set; then
37795 echo $ECHO_N "(cached) $ECHO_C" >&6
37797 cat >conftest.
$ac_ext <<_ACEOF
37800 cat confdefs.h
>>conftest.
$ac_ext
37801 cat >>conftest.
$ac_ext <<_ACEOF
37802 /* end confdefs.h. */
37812 rm -f conftest.
$ac_objext conftest
$ac_exeext
37813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37814 (eval $ac_link) 2>&5
37816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817 (exit $ac_status); } &&
37818 { ac_try
='test -s conftest$ac_exeext'
37819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37820 (eval $ac_try) 2>&5
37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823 (exit $ac_status); }; }; then
37824 utils_cv_func_nice
=yes
37826 echo "$as_me: failed program was:" >&5
37827 sed 's/^/| /' conftest.
$ac_ext >&5
37829 utils_cv_func_nice
=no
37831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37834 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37835 echo "${ECHO_T}$utils_cv_func_nice" >&6
37836 if test $utils_cv_func_nice = yes; then
37838 cat >>confdefs.h
<<\_ACEOF
37839 #define NICE_PRIORITY 1
37842 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
37843 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
37844 MAN
="$MAN nice.1 nohup.1"
37851 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
37852 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS pinky users who"
37853 MAN
="$MAN pinky.1 users.1 who.1"
37857 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37858 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37859 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37860 echo $ECHO_N "(cached) $ECHO_C" >&6
37862 cat >conftest.
$ac_ext <<_ACEOF
37865 cat confdefs.h
>>conftest.
$ac_ext
37866 cat >>conftest.
$ac_ext <<_ACEOF
37867 /* end confdefs.h. */
37868 #include <sys/types.h>
37873 struct utmp ut; ut.ut_host;
37878 rm -f conftest.
$ac_objext conftest
$ac_exeext
37879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37880 (eval $ac_link) 2>&5
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
37884 { ac_try
='test -s conftest$ac_exeext'
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; }; then
37890 su_cv_func_ut_host_in_utmp
=yes
37892 echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.
$ac_ext >&5
37895 su_cv_func_ut_host_in_utmp
=no
37897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37900 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37901 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37902 if test $su_cv_func_ut_host_in_utmp = yes; then
37905 cat >>confdefs.h
<<\_ACEOF
37906 #define HAVE_UT_HOST 1
37911 if test -z "$have_ut_host"; then
37912 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37913 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37914 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37915 echo $ECHO_N "(cached) $ECHO_C" >&6
37917 cat >conftest.
$ac_ext <<_ACEOF
37920 cat confdefs.h
>>conftest.
$ac_ext
37921 cat >>conftest.
$ac_ext <<_ACEOF
37922 /* end confdefs.h. */
37923 #include <sys/types.h>
37928 struct utmpx ut; ut.ut_host;
37933 rm -f conftest.
$ac_objext conftest
$ac_exeext
37934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37935 (eval $ac_link) 2>&5
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); } &&
37939 { ac_try
='test -s conftest$ac_exeext'
37940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37941 (eval $ac_try) 2>&5
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); }; }; then
37945 su_cv_func_ut_host_in_utmpx
=yes
37947 echo "$as_me: failed program was:" >&5
37948 sed 's/^/| /' conftest.
$ac_ext >&5
37950 su_cv_func_ut_host_in_utmpx
=no
37952 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37955 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37956 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37957 if test $su_cv_func_ut_host_in_utmpx = yes; then
37959 cat >>confdefs.h
<<\_ACEOF
37960 #define HAVE_UTMPX_H 1
37964 cat >>confdefs.h
<<\_ACEOF
37965 #define HAVE_UT_HOST 1
37973 for ac_func
in sysctl
37975 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37978 if eval "test \"\${$as_ac_var+set}\" = set"; then
37979 echo $ECHO_N "(cached) $ECHO_C" >&6
37981 cat >conftest.
$ac_ext <<_ACEOF
37984 cat confdefs.h
>>conftest.
$ac_ext
37985 cat >>conftest.
$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 /* System header to define __stub macros and hopefully few prototypes,
37988 which can conflict with char $ac_func (); below.
37989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37990 <limits.h> exists even on freestanding compilers. */
37992 # include <limits.h>
37994 # include <assert.h>
37996 /* Override any gcc2 internal prototype to avoid an error. */
38001 /* We use char because int might match the return type of a gcc2
38002 builtin and then its argument prototype would still apply. */
38004 /* The GNU C library defines this for functions which it implements
38005 to always fail with ENOSYS. Some functions are actually named
38006 something starting with __ and the normal name is an alias. */
38007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38010 char (*f) () = $ac_func;
38019 return f != $ac_func;
38024 rm -f conftest.
$ac_objext conftest
$ac_exeext
38025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38026 (eval $ac_link) 2>&5
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); } &&
38030 { ac_try
='test -s conftest$ac_exeext'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; }; then
38036 eval "$as_ac_var=yes"
38038 echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.
$ac_ext >&5
38041 eval "$as_ac_var=no"
38043 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38047 if test `eval echo '${'$as_ac_var'}'` = yes; then
38048 cat >>confdefs.h
<<_ACEOF
38049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38056 for ac_header
in sys
/sysctl.h
38058 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38060 echo "$as_me:$LINENO: checking for $ac_header" >&5
38061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38063 echo $ECHO_N "(cached) $ECHO_C" >&6
38065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38068 # Is the header compilable?
38069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38071 cat >conftest.
$ac_ext <<_ACEOF
38074 cat confdefs.h
>>conftest.
$ac_ext
38075 cat >>conftest.
$ac_ext <<_ACEOF
38076 /* end confdefs.h. */
38077 $ac_includes_default
38078 #include <$ac_header>
38080 rm -f conftest.
$ac_objext
38081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38082 (eval $ac_compile) 2>&5
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); } &&
38086 { ac_try
='test -s conftest.$ac_objext'
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; }; then
38092 ac_header_compiler
=yes
38094 echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.
$ac_ext >&5
38097 ac_header_compiler
=no
38099 rm -f conftest.
$ac_objext conftest.
$ac_ext
38100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38101 echo "${ECHO_T}$ac_header_compiler" >&6
38103 # Is the header present?
38104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38106 cat >conftest.
$ac_ext <<_ACEOF
38109 cat confdefs.h
>>conftest.
$ac_ext
38110 cat >>conftest.
$ac_ext <<_ACEOF
38111 /* end confdefs.h. */
38112 #include <$ac_header>
38114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38115 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
38117 grep -v '^ *+' conftest.er1
>conftest.err
38119 cat conftest.err
>&5
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); } >/dev
/null
; then
38122 if test -s conftest.err
; then
38123 ac_cpp_err
=$ac_c_preproc_warn_flag
38130 if test -z "$ac_cpp_err"; then
38131 ac_header_preproc
=yes
38133 echo "$as_me: failed program was:" >&5
38134 sed 's/^/| /' conftest.
$ac_ext >&5
38136 ac_header_preproc
=no
38138 rm -f conftest.err conftest.
$ac_ext
38139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38140 echo "${ECHO_T}$ac_header_preproc" >&6
38142 # So? What about this header?
38143 case $ac_header_compiler:$ac_header_preproc in
38145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38151 ## ------------------------------------ ##
38152 ## Report this to bug-autoconf@gnu.org. ##
38153 ## ------------------------------------ ##
38156 sed "s/^/$as_me: WARNING: /" >&2
38159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38167 ## ------------------------------------ ##
38168 ## Report this to bug-autoconf@gnu.org. ##
38169 ## ------------------------------------ ##
38172 sed "s/^/$as_me: WARNING: /" >&2
38175 echo "$as_me:$LINENO: checking for $ac_header" >&5
38176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38180 eval "$as_ac_Header=$ac_header_preproc"
38182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38187 cat >>confdefs.h
<<_ACEOF
38188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38195 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
38196 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
38197 if test "${gnulib_cv_have_boot_time+set}" = set; then
38198 echo $ECHO_N "(cached) $ECHO_C" >&6
38201 cat >conftest.
$ac_ext <<_ACEOF
38204 cat confdefs.h
>>conftest.
$ac_ext
38205 cat >>conftest.
$ac_ext <<_ACEOF
38206 /* end confdefs.h. */
38207 $ac_includes_default
38208 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
38209 # include <sys/param.h> /* needed for OpenBSD 3.0 */
38210 # include <sys/sysctl.h>
38212 #ifdef HAVE_UTMPX_H
38213 # include <utmpx.h>
38222 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
38223 /* your system *does* have the infrastructure to determine boot time */
38225 please_tell_us_how_to_determine_boot_time_on_your_system
38232 rm -f conftest.
$ac_objext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38234 (eval $ac_compile) 2>&5
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); } &&
38238 { ac_try
='test -s conftest.$ac_objext'
38239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38240 (eval $ac_try) 2>&5
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); }; }; then
38244 gnulib_cv_have_boot_time
=yes
38246 echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.
$ac_ext >&5
38249 gnulib_cv_have_boot_time
=no
38251 rm -f conftest.
$ac_objext conftest.
$ac_ext
38254 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
38255 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
38256 if test $gnulib_cv_have_boot_time = yes; then
38257 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uptime" MAN
="$MAN uptime.1"
38262 echo "$as_me:$LINENO: checking POSIX termios" >&5
38263 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
38264 if test "${ac_cv_sys_posix_termios+set}" = set; then
38265 echo $ECHO_N "(cached) $ECHO_C" >&6
38267 cat >conftest.
$ac_ext <<_ACEOF
38270 cat confdefs.h
>>conftest.
$ac_ext
38271 cat >>conftest.
$ac_ext <<_ACEOF
38272 /* end confdefs.h. */
38273 #include <sys/types.h>
38274 #include <unistd.h>
38275 #include <termios.h>
38280 /* SunOS 4.0.3 has termios.h but not the library calls. */
38286 rm -f conftest.
$ac_objext conftest
$ac_exeext
38287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38288 (eval $ac_link) 2>&5
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); } &&
38292 { ac_try
='test -s conftest$ac_exeext'
38293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294 (eval $ac_try) 2>&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); }; }; then
38298 ac_cv_sys_posix_termios
=yes
38300 echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.
$ac_ext >&5
38303 ac_cv_sys_posix_termios
=no
38305 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38307 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
38308 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
38311 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38312 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38313 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38314 echo $ECHO_N "(cached) $ECHO_C" >&6
38316 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
38318 if test $ac_cv_sys_posix_termios = yes; then
38319 cat >conftest.
$ac_ext <<_ACEOF
38322 cat confdefs.h
>>conftest.
$ac_ext
38323 cat >>conftest.
$ac_ext <<_ACEOF
38324 /* end confdefs.h. */
38325 #include <sys/types.h>
38326 # include <termios.h>
38332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38333 $EGREP "yes" >/dev
/null
2>&1; then
38334 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
38341 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38342 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38345 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38346 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38347 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38350 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=no
38352 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
; then
38353 cat >conftest.
$ac_ext <<_ACEOF
38356 cat confdefs.h
>>conftest.
$ac_ext
38357 cat >>conftest.
$ac_ext <<_ACEOF
38358 /* end confdefs.h. */
38359 #include <sys/types.h>
38360 # include <sys/ioctl.h>
38366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38367 $EGREP "yes" >/dev
/null
2>&1; then
38368 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=yes
38375 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38376 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38377 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38379 cat >>confdefs.h
<<\_ACEOF
38380 #define GWINSZ_IN_SYS_IOCTL 1
38386 if test $ac_cv_sys_posix_termios = yes; then
38387 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS stty" MAN
="$MAN stty.1"
38389 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38390 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38391 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38392 echo $ECHO_N "(cached) $ECHO_C" >&6
38394 cat >conftest.
$ac_ext <<_ACEOF
38397 cat confdefs.h
>>conftest.
$ac_ext
38398 cat >>conftest.
$ac_ext <<_ACEOF
38399 /* end confdefs.h. */
38400 #include <termios.h>
38405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38406 $EGREP "yes" >/dev
/null
2>&1; then
38407 su_cv_sys_termios_needs_xopen_source
=no
38409 cat >conftest.
$ac_ext <<_ACEOF
38412 cat confdefs.h
>>conftest.
$ac_ext
38413 cat >>conftest.
$ac_ext <<_ACEOF
38414 /* end confdefs.h. */
38415 #define _XOPEN_SOURCE
38416 #include <termios.h>
38421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38422 $EGREP "yes" >/dev
/null
2>&1; then
38423 su_cv_sys_termios_needs_xopen_source
=yes
38425 su_cv_sys_termios_needs_xopen_source
=no
38434 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38435 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38436 test $su_cv_sys_termios_needs_xopen_source = yes &&
38438 cat >>confdefs.h
<<\_ACEOF
38439 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38443 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38444 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38445 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38448 cat >conftest.
$ac_ext <<_ACEOF
38451 cat confdefs.h
>>conftest.
$ac_ext
38452 cat >>conftest.
$ac_ext <<_ACEOF
38453 /* end confdefs.h. */
38454 #if TERMIOS_NEEDS_XOPEN_SOURCE
38455 #define _XOPEN_SOURCE
38457 #include <sys/types.h>
38458 #include <termios.h>
38462 struct termios t; t.c_line;
38467 rm -f conftest.
$ac_objext conftest
$ac_exeext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38469 (eval $ac_link) 2>&5
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); } &&
38473 { ac_try
='test -s conftest$ac_exeext'
38474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38475 (eval $ac_try) 2>&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); }; }; then
38479 su_cv_sys_c_line_in_termios
=yes
38481 echo "$as_me: failed program was:" >&5
38482 sed 's/^/| /' conftest.
$ac_ext >&5
38484 su_cv_sys_c_line_in_termios
=no
38486 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38489 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38490 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38491 test $su_cv_sys_c_line_in_termios = yes \
38493 cat >>confdefs.h
<<\_ACEOF
38494 #define HAVE_C_LINE 1
38499 # FIXME: note that this macro appears above, too.
38500 # I'm leaving it here for now. This whole thing needs to be modernized...
38502 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38503 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38504 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38505 echo $ECHO_N "(cached) $ECHO_C" >&6
38507 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
38508 if test $ac_cv_sys_posix_termios = yes; then
38509 cat >conftest.
$ac_ext <<_ACEOF
38512 cat confdefs.h
>>conftest.
$ac_ext
38513 cat >>conftest.
$ac_ext <<_ACEOF
38514 /* end confdefs.h. */
38515 #include <termios.h>
38520 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38525 rm -f conftest.
$ac_objext
38526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38527 (eval $ac_compile) 2>&5
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); } &&
38531 { ac_try
='test -s conftest.$ac_objext'
38532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533 (eval $ac_try) 2>&5
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); }; }; then
38539 echo "$as_me: failed program was:" >&5
38540 sed 's/^/| /' conftest.
$ac_ext >&5
38543 rm -f conftest.
$ac_objext conftest.
$ac_ext
38545 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38546 cat >conftest.
$ac_ext <<_ACEOF
38549 cat confdefs.h
>>conftest.
$ac_ext
38550 cat >>conftest.
$ac_ext <<_ACEOF
38551 /* end confdefs.h. */
38552 #include <sys/ptem.h>
38561 rm -f conftest.
$ac_objext
38562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38563 (eval $ac_compile) 2>&5
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); } &&
38567 { ac_try
='test -s conftest.$ac_objext'
38568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38569 (eval $ac_try) 2>&5
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); }; }; then
38575 echo "$as_me: failed program was:" >&5
38576 sed 's/^/| /' conftest.
$ac_ext >&5
38578 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
38580 rm -f conftest.
$ac_objext conftest.
$ac_ext
38583 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38584 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38585 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38587 cat >>confdefs.h
<<\_ACEOF
38588 #define WINSIZE_IN_PTEM 1
38594 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38595 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38596 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38599 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
38601 if test $ac_cv_sys_posix_termios = yes; then
38602 cat >conftest.
$ac_ext <<_ACEOF
38605 cat confdefs.h
>>conftest.
$ac_ext
38606 cat >>conftest.
$ac_ext <<_ACEOF
38607 /* end confdefs.h. */
38608 #include <sys/types.h>
38609 # include <termios.h>
38615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38616 $EGREP "yes" >/dev
/null
2>&1; then
38617 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
38624 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38625 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38628 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
&& \
38629 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no
; then
38630 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38631 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38632 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38633 echo $ECHO_N "(cached) $ECHO_C" >&6
38635 cat >conftest.
$ac_ext <<_ACEOF
38638 cat confdefs.h
>>conftest.
$ac_ext
38639 cat >>conftest.
$ac_ext <<_ACEOF
38640 /* end confdefs.h. */
38641 #include <sys/types.h>
38642 #ifdef WINSIZE_IN_PTEM
38643 # include <sys/stream.h>
38644 # include <sys/ptem.h>
38646 #include <sys/ioctl.h>
38647 #include <sys/tty.h>
38648 #include <sys/pty.h>
38652 int x = TIOCGWINSZ;
38657 rm -f conftest.
$ac_objext conftest
$ac_exeext
38658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38659 (eval $ac_link) 2>&5
38661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38662 (exit $ac_status); } &&
38663 { ac_try
='test -s conftest$ac_exeext'
38664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665 (eval $ac_try) 2>&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); }; }; then
38669 su_cv_sys_tiocgwinsz_in_sys_pty_h
=yes
38671 echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.
$ac_ext >&5
38674 su_cv_sys_tiocgwinsz_in_sys_pty_h
=no
38676 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38679 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38680 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38682 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38684 cat >>confdefs.h
<<\_ACEOF
38685 #define GWINSZ_IN_SYS_PTY 1
38691 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38692 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38693 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38694 echo $ECHO_N "(cached) $ECHO_C" >&6
38696 cat >conftest.
$ac_ext <<_ACEOF
38699 cat confdefs.h
>>conftest.
$ac_ext
38700 cat >>conftest.
$ac_ext <<_ACEOF
38701 /* end confdefs.h. */
38702 $ac_includes_default
38707 char *p = (char *) strsignal;
38714 rm -f conftest.
$ac_objext
38715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38716 (eval $ac_compile) 2>&5
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } &&
38720 { ac_try
='test -s conftest.$ac_objext'
38721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722 (eval $ac_try) 2>&5
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); }; }; then
38726 ac_cv_have_decl_strsignal
=yes
38728 echo "$as_me: failed program was:" >&5
38729 sed 's/^/| /' conftest.
$ac_ext >&5
38731 ac_cv_have_decl_strsignal
=no
38733 rm -f conftest.
$ac_objext conftest.
$ac_ext
38735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38736 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38737 if test $ac_cv_have_decl_strsignal = yes; then
38739 cat >>confdefs.h
<<_ACEOF
38740 #define HAVE_DECL_STRSIGNAL 1
38745 cat >>confdefs.h
<<_ACEOF
38746 #define HAVE_DECL_STRSIGNAL 0
38751 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38752 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38753 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38754 echo $ECHO_N "(cached) $ECHO_C" >&6
38756 cat >conftest.
$ac_ext <<_ACEOF
38759 cat confdefs.h
>>conftest.
$ac_ext
38760 cat >>conftest.
$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38762 $ac_includes_default
38767 char *p = (char *) strtoimax;
38774 rm -f conftest.
$ac_objext
38775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38776 (eval $ac_compile) 2>&5
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } &&
38780 { ac_try
='test -s conftest.$ac_objext'
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 ac_cv_have_decl_strtoimax
=yes
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.
$ac_ext >&5
38791 ac_cv_have_decl_strtoimax
=no
38793 rm -f conftest.
$ac_objext conftest.
$ac_ext
38795 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38796 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38797 if test $ac_cv_have_decl_strtoimax = yes; then
38799 cat >>confdefs.h
<<_ACEOF
38800 #define HAVE_DECL_STRTOIMAX 1
38805 cat >>confdefs.h
<<_ACEOF
38806 #define HAVE_DECL_STRTOIMAX 0
38811 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38812 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38813 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38814 echo $ECHO_N "(cached) $ECHO_C" >&6
38816 cat >conftest.
$ac_ext <<_ACEOF
38819 cat confdefs.h
>>conftest.
$ac_ext
38820 cat >>conftest.
$ac_ext <<_ACEOF
38821 /* end confdefs.h. */
38822 $ac_includes_default
38826 #ifndef sys_siglist
38827 char *p = (char *) sys_siglist;
38834 rm -f conftest.
$ac_objext
38835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38836 (eval $ac_compile) 2>&5
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); } &&
38840 { ac_try
='test -s conftest.$ac_objext'
38841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842 (eval $ac_try) 2>&5
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); }; }; then
38846 ac_cv_have_decl_sys_siglist
=yes
38848 echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.
$ac_ext >&5
38851 ac_cv_have_decl_sys_siglist
=no
38853 rm -f conftest.
$ac_objext conftest.
$ac_ext
38855 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38856 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38857 if test $ac_cv_have_decl_sys_siglist = yes; then
38859 cat >>confdefs.h
<<_ACEOF
38860 #define HAVE_DECL_SYS_SIGLIST 1
38865 cat >>confdefs.h
<<_ACEOF
38866 #define HAVE_DECL_SYS_SIGLIST 0
38871 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38872 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38873 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38874 echo $ECHO_N "(cached) $ECHO_C" >&6
38876 cat >conftest.
$ac_ext <<_ACEOF
38879 cat confdefs.h
>>conftest.
$ac_ext
38880 cat >>conftest.
$ac_ext <<_ACEOF
38881 /* end confdefs.h. */
38882 $ac_includes_default
38886 #ifndef _sys_siglist
38887 char *p = (char *) _sys_siglist;
38894 rm -f conftest.
$ac_objext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38896 (eval $ac_compile) 2>&5
38898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899 (exit $ac_status); } &&
38900 { ac_try
='test -s conftest.$ac_objext'
38901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38902 (eval $ac_try) 2>&5
38904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905 (exit $ac_status); }; }; then
38906 ac_cv_have_decl__sys_siglist
=yes
38908 echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.
$ac_ext >&5
38911 ac_cv_have_decl__sys_siglist
=no
38913 rm -f conftest.
$ac_objext conftest.
$ac_ext
38915 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38916 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38917 if test $ac_cv_have_decl__sys_siglist = yes; then
38919 cat >>confdefs.h
<<_ACEOF
38920 #define HAVE_DECL__SYS_SIGLIST 1
38925 cat >>confdefs.h
<<_ACEOF
38926 #define HAVE_DECL__SYS_SIGLIST 0
38936 # Check for libypsec.a on Dolphin M88K machines.
38938 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38939 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38940 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38941 echo $ECHO_N "(cached) $ECHO_C" >&6
38943 ac_check_lib_save_LIBS
=$LIBS
38944 LIBS
="-lypsec $LIBS"
38945 cat >conftest.
$ac_ext <<_ACEOF
38948 cat confdefs.h
>>conftest.
$ac_ext
38949 cat >>conftest.
$ac_ext <<_ACEOF
38950 /* end confdefs.h. */
38961 rm -f conftest.
$ac_objext conftest
$ac_exeext
38962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38963 (eval $ac_link) 2>&5
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); } &&
38967 { ac_try
='test -s conftest$ac_exeext'
38968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38969 (eval $ac_try) 2>&5
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); }; }; then
38973 ac_cv_lib_ypsec_main
=yes
38975 echo "$as_me: failed program was:" >&5
38976 sed 's/^/| /' conftest.
$ac_ext >&5
38978 ac_cv_lib_ypsec_main
=no
38980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38981 LIBS
=$ac_check_lib_save_LIBS
38983 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38984 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38985 if test $ac_cv_lib_ypsec_main = yes; then
38986 cat >>confdefs.h
<<_ACEOF
38987 #define HAVE_LIBYPSEC 1
38990 LIBS
="-lypsec $LIBS"
38995 # m88k running dgux 5.4 needs this
38997 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38998 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38999 if test "${ac_cv_lib_ldgc_main+set}" = set; then
39000 echo $ECHO_N "(cached) $ECHO_C" >&6
39002 ac_check_lib_save_LIBS
=$LIBS
39003 LIBS
="-lldgc $LIBS"
39004 cat >conftest.
$ac_ext <<_ACEOF
39007 cat confdefs.h
>>conftest.
$ac_ext
39008 cat >>conftest.
$ac_ext <<_ACEOF
39009 /* end confdefs.h. */
39020 rm -f conftest.
$ac_objext conftest
$ac_exeext
39021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39022 (eval $ac_link) 2>&5
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); } &&
39026 { ac_try
='test -s conftest$ac_exeext'
39027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028 (eval $ac_try) 2>&5
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); }; }; then
39032 ac_cv_lib_ldgc_main
=yes
39034 echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.
$ac_ext >&5
39037 ac_cv_lib_ldgc_main
=no
39039 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39040 LIBS
=$ac_check_lib_save_LIBS
39042 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
39043 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
39044 if test $ac_cv_lib_ldgc_main = yes; then
39045 cat >>confdefs.h
<<_ACEOF
39046 #define HAVE_LIBLDGC 1
39049 LIBS
="-lldgc $LIBS"
39054 # Some programs need to link with -lm. printf does if it uses
39055 # lib/strtod.c which uses pow. And seq uses the math functions,
39056 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
39058 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
39059 # Check for these math functions used by seq.
39060 ac_su_saved_lib
="$LIBS"
39065 for ac_func
in floor modf rint
39067 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39068 echo "$as_me:$LINENO: checking for $ac_func" >&5
39069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39070 if eval "test \"\${$as_ac_var+set}\" = set"; then
39071 echo $ECHO_N "(cached) $ECHO_C" >&6
39073 cat >conftest.
$ac_ext <<_ACEOF
39076 cat confdefs.h
>>conftest.
$ac_ext
39077 cat >>conftest.
$ac_ext <<_ACEOF
39078 /* end confdefs.h. */
39079 /* System header to define __stub macros and hopefully few prototypes,
39080 which can conflict with char $ac_func (); below.
39081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39082 <limits.h> exists even on freestanding compilers. */
39084 # include <limits.h>
39086 # include <assert.h>
39088 /* Override any gcc2 internal prototype to avoid an error. */
39093 /* We use char because int might match the return type of a gcc2
39094 builtin and then its argument prototype would still apply. */
39096 /* The GNU C library defines this for functions which it implements
39097 to always fail with ENOSYS. Some functions are actually named
39098 something starting with __ and the normal name is an alias. */
39099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39102 char (*f) () = $ac_func;
39111 return f != $ac_func;
39116 rm -f conftest.
$ac_objext conftest
$ac_exeext
39117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39118 (eval $ac_link) 2>&5
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } &&
39122 { ac_try
='test -s conftest$ac_exeext'
39123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124 (eval $ac_try) 2>&5
39126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127 (exit $ac_status); }; }; then
39128 eval "$as_ac_var=yes"
39130 echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.
$ac_ext >&5
39133 eval "$as_ac_var=no"
39135 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39139 if test `eval echo '${'$as_ac_var'}'` = yes; then
39140 cat >>confdefs.h
<<_ACEOF
39141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39147 LIBS
="$ac_su_saved_lib"
39151 for ac_func
in sqrt
39153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39154 echo "$as_me:$LINENO: checking for $ac_func" >&5
39155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39156 if eval "test \"\${$as_ac_var+set}\" = set"; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39159 cat >conftest.
$ac_ext <<_ACEOF
39162 cat confdefs.h
>>conftest.
$ac_ext
39163 cat >>conftest.
$ac_ext <<_ACEOF
39164 /* end confdefs.h. */
39165 /* System header to define __stub macros and hopefully few prototypes,
39166 which can conflict with char $ac_func (); below.
39167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39168 <limits.h> exists even on freestanding compilers. */
39170 # include <limits.h>
39172 # include <assert.h>
39174 /* Override any gcc2 internal prototype to avoid an error. */
39179 /* We use char because int might match the return type of a gcc2
39180 builtin and then its argument prototype would still apply. */
39182 /* The GNU C library defines this for functions which it implements
39183 to always fail with ENOSYS. Some functions are actually named
39184 something starting with __ and the normal name is an alias. */
39185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39188 char (*f) () = $ac_func;
39197 return f != $ac_func;
39202 rm -f conftest.
$ac_objext conftest
$ac_exeext
39203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39204 (eval $ac_link) 2>&5
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); } &&
39208 { ac_try
='test -s conftest$ac_exeext'
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; }; then
39214 eval "$as_ac_var=yes"
39216 echo "$as_me: failed program was:" >&5
39217 sed 's/^/| /' conftest.
$ac_ext >&5
39219 eval "$as_ac_var=no"
39221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39225 if test `eval echo '${'$as_ac_var'}'` = yes; then
39226 cat >>confdefs.h
<<_ACEOF
39227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39233 if test $ac_cv_func_sqrt = no
; then
39234 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
39235 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
39236 if test "${ac_cv_lib_m_sqrt+set}" = set; then
39237 echo $ECHO_N "(cached) $ECHO_C" >&6
39239 ac_check_lib_save_LIBS
=$LIBS
39241 cat >conftest.
$ac_ext <<_ACEOF
39244 cat confdefs.h
>>conftest.
$ac_ext
39245 cat >>conftest.
$ac_ext <<_ACEOF
39246 /* end confdefs.h. */
39248 /* Override any gcc2 internal prototype to avoid an error. */
39252 /* We use char because int might match the return type of a gcc2
39253 builtin and then its argument prototype would still apply. */
39263 rm -f conftest.
$ac_objext conftest
$ac_exeext
39264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39265 (eval $ac_link) 2>&5
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); } &&
39269 { ac_try
='test -s conftest$ac_exeext'
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 ac_cv_lib_m_sqrt
=yes
39277 echo "$as_me: failed program was:" >&5
39278 sed 's/^/| /' conftest.
$ac_ext >&5
39280 ac_cv_lib_m_sqrt
=no
39282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39283 LIBS
=$ac_check_lib_save_LIBS
39285 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
39286 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
39287 if test $ac_cv_lib_m_sqrt = yes; then
39295 for ac_func
in fesetround
39297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39298 echo "$as_me:$LINENO: checking for $ac_func" >&5
39299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39300 if eval "test \"\${$as_ac_var+set}\" = set"; then
39301 echo $ECHO_N "(cached) $ECHO_C" >&6
39303 cat >conftest.
$ac_ext <<_ACEOF
39306 cat confdefs.h
>>conftest.
$ac_ext
39307 cat >>conftest.
$ac_ext <<_ACEOF
39308 /* end confdefs.h. */
39309 /* System header to define __stub macros and hopefully few prototypes,
39310 which can conflict with char $ac_func (); below.
39311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39312 <limits.h> exists even on freestanding compilers. */
39314 # include <limits.h>
39316 # include <assert.h>
39318 /* Override any gcc2 internal prototype to avoid an error. */
39323 /* We use char because int might match the return type of a gcc2
39324 builtin and then its argument prototype would still apply. */
39326 /* The GNU C library defines this for functions which it implements
39327 to always fail with ENOSYS. Some functions are actually named
39328 something starting with __ and the normal name is an alias. */
39329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39332 char (*f) () = $ac_func;
39341 return f != $ac_func;
39346 rm -f conftest.
$ac_objext conftest
$ac_exeext
39347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39348 (eval $ac_link) 2>&5
39350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351 (exit $ac_status); } &&
39352 { ac_try
='test -s conftest$ac_exeext'
39353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354 (eval $ac_try) 2>&5
39356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357 (exit $ac_status); }; }; then
39358 eval "$as_ac_var=yes"
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.
$ac_ext >&5
39363 eval "$as_ac_var=no"
39365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39369 if test `eval echo '${'$as_ac_var'}'` = yes; then
39370 cat >>confdefs.h
<<_ACEOF
39371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39377 if test $ac_cv_func_fesetround = no
; then
39378 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39379 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39380 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39381 echo $ECHO_N "(cached) $ECHO_C" >&6
39383 ac_check_lib_save_LIBS
=$LIBS
39385 cat >conftest.
$ac_ext <<_ACEOF
39388 cat confdefs.h
>>conftest.
$ac_ext
39389 cat >>conftest.
$ac_ext <<_ACEOF
39390 /* end confdefs.h. */
39392 /* Override any gcc2 internal prototype to avoid an error. */
39396 /* We use char because int might match the return type of a gcc2
39397 builtin and then its argument prototype would still apply. */
39398 char fesetround ();
39407 rm -f conftest.
$ac_objext conftest
$ac_exeext
39408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39409 (eval $ac_link) 2>&5
39411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39412 (exit $ac_status); } &&
39413 { ac_try
='test -s conftest$ac_exeext'
39414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39415 (eval $ac_try) 2>&5
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); }; }; then
39419 ac_cv_lib_m_fesetround
=yes
39421 echo "$as_me: failed program was:" >&5
39422 sed 's/^/| /' conftest.
$ac_ext >&5
39424 ac_cv_lib_m_fesetround
=no
39426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39427 LIBS
=$ac_check_lib_save_LIBS
39429 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39430 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39431 if test $ac_cv_lib_m_fesetround = yes; then
39432 FESETROUND_LIBM
=-lm
39437 # The -lsun library is required for YP support on Irix-4.0.5 systems.
39438 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39440 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39441 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39442 if test "${ac_cv_search_yp_match+set}" = set; then
39443 echo $ECHO_N "(cached) $ECHO_C" >&6
39446 ac_func_search_save_LIBS
=$LIBS
39447 ac_cv_search_yp_match
=no
39448 cat >conftest.
$ac_ext <<_ACEOF
39451 cat confdefs.h
>>conftest.
$ac_ext
39452 cat >>conftest.
$ac_ext <<_ACEOF
39453 /* end confdefs.h. */
39455 /* Override any gcc2 internal prototype to avoid an error. */
39459 /* We use char because int might match the return type of a gcc2
39460 builtin and then its argument prototype would still apply. */
39470 rm -f conftest.
$ac_objext conftest
$ac_exeext
39471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39472 (eval $ac_link) 2>&5
39474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475 (exit $ac_status); } &&
39476 { ac_try
='test -s conftest$ac_exeext'
39477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478 (eval $ac_try) 2>&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); }; }; then
39482 ac_cv_search_yp_match
='none required'
39484 echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.
$ac_ext >&5
39488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39489 if test "$ac_cv_search_yp_match" = no
; then
39490 for ac_lib
in sun ypsec
; do
39491 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39492 cat >conftest.
$ac_ext <<_ACEOF
39495 cat confdefs.h
>>conftest.
$ac_ext
39496 cat >>conftest.
$ac_ext <<_ACEOF
39497 /* end confdefs.h. */
39499 /* Override any gcc2 internal prototype to avoid an error. */
39503 /* We use char because int might match the return type of a gcc2
39504 builtin and then its argument prototype would still apply. */
39514 rm -f conftest.
$ac_objext conftest
$ac_exeext
39515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39516 (eval $ac_link) 2>&5
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); } &&
39520 { ac_try
='test -s conftest$ac_exeext'
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; }; then
39526 ac_cv_search_yp_match
="-l$ac_lib"; break
39528 echo "$as_me: failed program was:" >&5
39529 sed 's/^/| /' conftest.
$ac_ext >&5
39532 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39535 LIBS
=$ac_func_search_save_LIBS
39538 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39539 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39541 if test "$ac_cv_search_yp_match" = no
; then :
39544 if test "$ac_cv_search_yp_match" = 'none required'; then :
39547 LIBS
="$ac_cv_search_yp_match $LIBS"
39553 # SysV needs -lsec, older versions of Linux need -lshadow for
39554 # shadow passwords. UnixWare 7 needs -lgen.
39556 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39557 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39558 if test "${ac_cv_search_getspnam+set}" = set; then
39559 echo $ECHO_N "(cached) $ECHO_C" >&6
39562 ac_func_search_save_LIBS
=$LIBS
39563 ac_cv_search_getspnam
=no
39564 cat >conftest.
$ac_ext <<_ACEOF
39567 cat confdefs.h
>>conftest.
$ac_ext
39568 cat >>conftest.
$ac_ext <<_ACEOF
39569 /* end confdefs.h. */
39571 /* Override any gcc2 internal prototype to avoid an error. */
39575 /* We use char because int might match the return type of a gcc2
39576 builtin and then its argument prototype would still apply. */
39586 rm -f conftest.
$ac_objext conftest
$ac_exeext
39587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39588 (eval $ac_link) 2>&5
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } &&
39592 { ac_try
='test -s conftest$ac_exeext'
39593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594 (eval $ac_try) 2>&5
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); }; }; then
39598 ac_cv_search_getspnam
='none required'
39600 echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.
$ac_ext >&5
39604 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39605 if test "$ac_cv_search_getspnam" = no
; then
39606 for ac_lib
in shadow sec gen
; do
39607 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39608 cat >conftest.
$ac_ext <<_ACEOF
39611 cat confdefs.h
>>conftest.
$ac_ext
39612 cat >>conftest.
$ac_ext <<_ACEOF
39613 /* end confdefs.h. */
39615 /* Override any gcc2 internal prototype to avoid an error. */
39619 /* We use char because int might match the return type of a gcc2
39620 builtin and then its argument prototype would still apply. */
39630 rm -f conftest.
$ac_objext conftest
$ac_exeext
39631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39632 (eval $ac_link) 2>&5
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); } &&
39636 { ac_try
='test -s conftest$ac_exeext'
39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; }; then
39642 ac_cv_search_getspnam
="-l$ac_lib"; break
39644 echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.
$ac_ext >&5
39648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39651 LIBS
=$ac_func_search_save_LIBS
39654 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39655 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39657 if test "$ac_cv_search_getspnam" = no
; then :
39660 if test "$ac_cv_search_getspnam" = 'none required'; then :
39663 LIBS
="$ac_cv_search_getspnam $LIBS"
39670 for ac_header
in shadow.h
39672 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39674 echo "$as_me:$LINENO: checking for $ac_header" >&5
39675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39682 # Is the header compilable?
39683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39685 cat >conftest.
$ac_ext <<_ACEOF
39688 cat confdefs.h
>>conftest.
$ac_ext
39689 cat >>conftest.
$ac_ext <<_ACEOF
39690 /* end confdefs.h. */
39691 $ac_includes_default
39692 #include <$ac_header>
39694 rm -f conftest.
$ac_objext
39695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39696 (eval $ac_compile) 2>&5
39698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699 (exit $ac_status); } &&
39700 { ac_try
='test -s conftest.$ac_objext'
39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39702 (eval $ac_try) 2>&5
39704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); }; }; then
39706 ac_header_compiler
=yes
39708 echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.
$ac_ext >&5
39711 ac_header_compiler
=no
39713 rm -f conftest.
$ac_objext conftest.
$ac_ext
39714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39715 echo "${ECHO_T}$ac_header_compiler" >&6
39717 # Is the header present?
39718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39720 cat >conftest.
$ac_ext <<_ACEOF
39723 cat confdefs.h
>>conftest.
$ac_ext
39724 cat >>conftest.
$ac_ext <<_ACEOF
39725 /* end confdefs.h. */
39726 #include <$ac_header>
39728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
39731 grep -v '^ *+' conftest.er1
>conftest.err
39733 cat conftest.err
>&5
39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735 (exit $ac_status); } >/dev
/null
; then
39736 if test -s conftest.err
; then
39737 ac_cpp_err
=$ac_c_preproc_warn_flag
39744 if test -z "$ac_cpp_err"; then
39745 ac_header_preproc
=yes
39747 echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.
$ac_ext >&5
39750 ac_header_preproc
=no
39752 rm -f conftest.err conftest.
$ac_ext
39753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39754 echo "${ECHO_T}$ac_header_preproc" >&6
39756 # So? What about this header?
39757 case $ac_header_compiler:$ac_header_preproc in
39759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39765 ## ------------------------------------ ##
39766 ## Report this to bug-autoconf@gnu.org. ##
39767 ## ------------------------------------ ##
39770 sed "s/^/$as_me: WARNING: /" >&2
39773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39781 ## ------------------------------------ ##
39782 ## Report this to bug-autoconf@gnu.org. ##
39783 ## ------------------------------------ ##
39786 sed "s/^/$as_me: WARNING: /" >&2
39789 echo "$as_me:$LINENO: checking for $ac_header" >&5
39790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39794 eval "$as_ac_Header=$ac_header_preproc"
39796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39801 cat >>confdefs.h
<<_ACEOF
39802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39810 # Requirements for su.c.
39812 $ac_includes_default
39814 # include <shadow.h>
39817 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39818 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39819 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39820 echo $ECHO_N "(cached) $ECHO_C" >&6
39822 cat >conftest.
$ac_ext <<_ACEOF
39825 cat confdefs.h
>>conftest.
$ac_ext
39826 cat >>conftest.
$ac_ext <<_ACEOF
39827 /* end confdefs.h. */
39833 static struct spwd ac_aggr;
39834 if (ac_aggr.sp_pwdp)
39840 rm -f conftest.
$ac_objext
39841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39842 (eval $ac_compile) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); } &&
39846 { ac_try
='test -s conftest.$ac_objext'
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852 ac_cv_member_struct_spwd_sp_pwdp
=yes
39854 echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.
$ac_ext >&5
39857 cat >conftest.
$ac_ext <<_ACEOF
39860 cat confdefs.h
>>conftest.
$ac_ext
39861 cat >>conftest.
$ac_ext <<_ACEOF
39862 /* end confdefs.h. */
39868 static struct spwd ac_aggr;
39869 if (sizeof ac_aggr.sp_pwdp)
39875 rm -f conftest.
$ac_objext
39876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39877 (eval $ac_compile) 2>&5
39879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39880 (exit $ac_status); } &&
39881 { ac_try
='test -s conftest.$ac_objext'
39882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39883 (eval $ac_try) 2>&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); }; }; then
39887 ac_cv_member_struct_spwd_sp_pwdp
=yes
39889 echo "$as_me: failed program was:" >&5
39890 sed 's/^/| /' conftest.
$ac_ext >&5
39892 ac_cv_member_struct_spwd_sp_pwdp
=no
39894 rm -f conftest.
$ac_objext conftest.
$ac_ext
39896 rm -f conftest.
$ac_objext conftest.
$ac_ext
39898 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39899 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39900 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39902 cat >>confdefs.h
<<_ACEOF
39903 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39910 for ac_func
in getspnam
39912 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39913 echo "$as_me:$LINENO: checking for $ac_func" >&5
39914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39915 if eval "test \"\${$as_ac_var+set}\" = set"; then
39916 echo $ECHO_N "(cached) $ECHO_C" >&6
39918 cat >conftest.
$ac_ext <<_ACEOF
39921 cat confdefs.h
>>conftest.
$ac_ext
39922 cat >>conftest.
$ac_ext <<_ACEOF
39923 /* end confdefs.h. */
39924 /* System header to define __stub macros and hopefully few prototypes,
39925 which can conflict with char $ac_func (); below.
39926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39927 <limits.h> exists even on freestanding compilers. */
39929 # include <limits.h>
39931 # include <assert.h>
39933 /* Override any gcc2 internal prototype to avoid an error. */
39938 /* We use char because int might match the return type of a gcc2
39939 builtin and then its argument prototype would still apply. */
39941 /* The GNU C library defines this for functions which it implements
39942 to always fail with ENOSYS. Some functions are actually named
39943 something starting with __ and the normal name is an alias. */
39944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39947 char (*f) () = $ac_func;
39956 return f != $ac_func;
39961 rm -f conftest.
$ac_objext conftest
$ac_exeext
39962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39963 (eval $ac_link) 2>&5
39965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); } &&
39967 { ac_try
='test -s conftest$ac_exeext'
39968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39969 (eval $ac_try) 2>&5
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); }; }; then
39973 eval "$as_ac_var=yes"
39975 echo "$as_me: failed program was:" >&5
39976 sed 's/^/| /' conftest.
$ac_ext >&5
39978 eval "$as_ac_var=no"
39980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39984 if test `eval echo '${'$as_ac_var'}'` = yes; then
39985 cat >>confdefs.h
<<_ACEOF
39986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39993 # SCO-ODT-3.0 is reported to need -lufc for crypt.
39994 # NetBSD needs -lcrypt for crypt.
39995 ac_su_saved_lib
="$LIBS"
39997 echo "$as_me:$LINENO: checking for library containing crypt" >&5
39998 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39999 if test "${ac_cv_search_crypt+set}" = set; then
40000 echo $ECHO_N "(cached) $ECHO_C" >&6
40003 ac_func_search_save_LIBS
=$LIBS
40004 ac_cv_search_crypt
=no
40005 cat >conftest.
$ac_ext <<_ACEOF
40008 cat confdefs.h
>>conftest.
$ac_ext
40009 cat >>conftest.
$ac_ext <<_ACEOF
40010 /* end confdefs.h. */
40012 /* Override any gcc2 internal prototype to avoid an error. */
40016 /* We use char because int might match the return type of a gcc2
40017 builtin and then its argument prototype would still apply. */
40027 rm -f conftest.
$ac_objext conftest
$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029 (eval $ac_link) 2>&5
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } &&
40033 { ac_try
='test -s conftest$ac_exeext'
40034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40035 (eval $ac_try) 2>&5
40037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038 (exit $ac_status); }; }; then
40039 ac_cv_search_crypt
='none required'
40041 echo "$as_me: failed program was:" >&5
40042 sed 's/^/| /' conftest.
$ac_ext >&5
40045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40046 if test "$ac_cv_search_crypt" = no
; then
40047 for ac_lib
in ufc
crypt; do
40048 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
40049 cat >conftest.
$ac_ext <<_ACEOF
40052 cat confdefs.h
>>conftest.
$ac_ext
40053 cat >>conftest.
$ac_ext <<_ACEOF
40054 /* end confdefs.h. */
40056 /* Override any gcc2 internal prototype to avoid an error. */
40060 /* We use char because int might match the return type of a gcc2
40061 builtin and then its argument prototype would still apply. */
40071 rm -f conftest.
$ac_objext conftest
$ac_exeext
40072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40073 (eval $ac_link) 2>&5
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); } &&
40077 { ac_try
='test -s conftest$ac_exeext'
40078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079 (eval $ac_try) 2>&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); }; }; then
40083 ac_cv_search_crypt
="-l$ac_lib"; break
40085 echo "$as_me: failed program was:" >&5
40086 sed 's/^/| /' conftest.
$ac_ext >&5
40089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40092 LIBS
=$ac_func_search_save_LIBS
40095 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
40096 echo "${ECHO_T}$ac_cv_search_crypt" >&6
40098 if test "$ac_cv_search_crypt" = no
; then :
40101 if test "$ac_cv_search_crypt" = 'none required'; then :
40104 LIBS
="$ac_cv_search_crypt $LIBS"
40105 LIB_CRYPT
="$ac_cv_search_crypt"
40109 LIBS
="$ac_su_saved_lib"
40115 if test -n "$ac_aux_dir"; then
40116 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
40118 if test -z "$MKINSTALLDIRS"; then
40119 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
40126 # Extract the first word of "msgfmt", so it can be a program name with args.
40127 set dummy msgfmt
; ac_word
=$2
40128 echo "$as_me:$LINENO: checking for $ac_word" >&5
40129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40130 if test "${ac_cv_path_MSGFMT+set}" = set; then
40131 echo $ECHO_N "(cached) $ECHO_C" >&6
40135 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
40138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
40139 for ac_dir
in $PATH; do
40140 test -z "$ac_dir" && ac_dir
=.
40141 if test -f $ac_dir/$ac_word; then
40142 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
40143 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40144 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
40150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
40154 MSGFMT
="$ac_cv_path_MSGFMT"
40155 if test "$MSGFMT" != ":"; then
40156 echo "$as_me:$LINENO: result: $MSGFMT" >&5
40157 echo "${ECHO_T}$MSGFMT" >&6
40159 echo "$as_me:$LINENO: result: no" >&5
40160 echo "${ECHO_T}no" >&6
40163 # Extract the first word of "gmsgfmt", so it can be a program name with args.
40164 set dummy gmsgfmt
; ac_word
=$2
40165 echo "$as_me:$LINENO: checking for $ac_word" >&5
40166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40167 if test "${ac_cv_path_GMSGFMT+set}" = set; then
40168 echo $ECHO_N "(cached) $ECHO_C" >&6
40172 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
40175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
40176 for as_dir
in $PATH
40179 test -z "$as_dir" && as_dir
=.
40180 for ac_exec_ext
in '' $ac_executable_extensions; do
40181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40182 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
40183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
40193 GMSGFMT
=$ac_cv_path_GMSGFMT
40195 if test -n "$GMSGFMT"; then
40196 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
40197 echo "${ECHO_T}$GMSGFMT" >&6
40199 echo "$as_me:$LINENO: result: no" >&5
40200 echo "${ECHO_T}no" >&6
40204 # Extract the first word of "xgettext", so it can be a program name with args.
40205 set dummy xgettext
; ac_word
=$2
40206 echo "$as_me:$LINENO: checking for $ac_word" >&5
40207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40208 if test "${ac_cv_path_XGETTEXT+set}" = set; then
40209 echo $ECHO_N "(cached) $ECHO_C" >&6
40211 case "$XGETTEXT" in
40213 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
40216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
40217 for ac_dir
in $PATH; do
40218 test -z "$ac_dir" && ac_dir
=.
40219 if test -f $ac_dir/$ac_word; then
40220 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
40221 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40222 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
40228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
40232 XGETTEXT
="$ac_cv_path_XGETTEXT"
40233 if test "$XGETTEXT" != ":"; then
40234 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
40235 echo "${ECHO_T}$XGETTEXT" >&6
40237 echo "$as_me:$LINENO: result: no" >&5
40238 echo "${ECHO_T}no" >&6
40243 # Extract the first word of "msgmerge", so it can be a program name with args.
40244 set dummy msgmerge
; ac_word
=$2
40245 echo "$as_me:$LINENO: checking for $ac_word" >&5
40246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40247 if test "${ac_cv_path_MSGMERGE+set}" = set; then
40248 echo $ECHO_N "(cached) $ECHO_C" >&6
40250 case "$MSGMERGE" in
40252 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
40255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
40256 for ac_dir
in $PATH; do
40257 test -z "$ac_dir" && ac_dir
=.
40258 if test -f $ac_dir/$ac_word; then
40259 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
40260 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
40266 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
40270 MSGMERGE
="$ac_cv_path_MSGMERGE"
40271 if test "$MSGMERGE" != ":"; then
40272 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
40273 echo "${ECHO_T}$MSGMERGE" >&6
40275 echo "$as_me:$LINENO: result: no" >&5
40276 echo "${ECHO_T}no" >&6
40280 if test "$GMSGFMT" != ":"; then
40281 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
40282 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40285 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40286 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40287 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40292 if test "$XGETTEXT" != ":"; then
40293 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
40294 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40297 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40298 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40304 ac_config_commands
="$ac_config_commands default-1"
40322 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40323 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40324 # Check whether --enable-nls or --disable-nls was given.
40325 if test "${enable_nls+set}" = set; then
40326 enableval
="$enable_nls"
40331 echo "$as_me:$LINENO: result: $USE_NLS" >&5
40332 echo "${ECHO_T}$USE_NLS" >&6
40340 if test "$USE_NLS" = "yes"; then
40341 gt_use_preinstalled_gnugettext
=no
40348 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40349 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40350 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40353 cat >conftest.
$ac_ext <<_ACEOF
40356 cat confdefs.h
>>conftest.
$ac_ext
40357 cat >>conftest.
$ac_ext <<_ACEOF
40358 /* end confdefs.h. */
40359 #include <libintl.h>
40360 extern int _nl_msg_cat_cntr;
40361 extern int *_nl_domain_bindings;
40365 bindtextdomain ("", "");
40366 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40371 rm -f conftest.
$ac_objext conftest
$ac_exeext
40372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40373 (eval $ac_link) 2>&5
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } &&
40377 { ac_try
='test -s conftest$ac_exeext'
40378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40379 (eval $ac_try) 2>&5
40381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382 (exit $ac_status); }; }; then
40383 gt_cv_func_gnugettext2_libc
=yes
40385 echo "$as_me: failed program was:" >&5
40386 sed 's/^/| /' conftest.
$ac_ext >&5
40388 gt_cv_func_gnugettext2_libc
=no
40390 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40392 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40393 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40395 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40401 am_save_CPPFLAGS
="$CPPFLAGS"
40403 for element
in $INCICONV; do
40405 for x
in $CPPFLAGS; do
40407 acl_save_prefix
="$prefix"
40408 prefix
="$acl_final_prefix"
40409 acl_save_exec_prefix
="$exec_prefix"
40410 exec_prefix
="$acl_final_exec_prefix"
40412 exec_prefix
="$acl_save_exec_prefix"
40413 prefix
="$acl_save_prefix"
40415 if test "X$x" = "X$element"; then
40420 if test -z "$haveit"; then
40421 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
40426 echo "$as_me:$LINENO: checking for iconv" >&5
40427 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40428 if test "${am_cv_func_iconv+set}" = set; then
40429 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 am_cv_func_iconv
="no, consider installing GNU libiconv"
40434 cat >conftest.
$ac_ext <<_ACEOF
40437 cat confdefs.h
>>conftest.
$ac_ext
40438 cat >>conftest.
$ac_ext <<_ACEOF
40439 /* end confdefs.h. */
40440 #include <stdlib.h>
40445 iconv_t cd = iconv_open("","");
40446 iconv(cd,NULL,NULL,NULL,NULL);
40452 rm -f conftest.
$ac_objext conftest
$ac_exeext
40453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40454 (eval $ac_link) 2>&5
40456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40457 (exit $ac_status); } &&
40458 { ac_try
='test -s conftest$ac_exeext'
40459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40460 (eval $ac_try) 2>&5
40462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463 (exit $ac_status); }; }; then
40464 am_cv_func_iconv
=yes
40466 echo "$as_me: failed program was:" >&5
40467 sed 's/^/| /' conftest.
$ac_ext >&5
40470 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40471 if test "$am_cv_func_iconv" != yes; then
40472 am_save_LIBS
="$LIBS"
40473 LIBS
="$LIBS $LIBICONV"
40474 cat >conftest.
$ac_ext <<_ACEOF
40477 cat confdefs.h
>>conftest.
$ac_ext
40478 cat >>conftest.
$ac_ext <<_ACEOF
40479 /* end confdefs.h. */
40480 #include <stdlib.h>
40485 iconv_t cd = iconv_open("","");
40486 iconv(cd,NULL,NULL,NULL,NULL);
40492 rm -f conftest.
$ac_objext conftest
$ac_exeext
40493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40494 (eval $ac_link) 2>&5
40496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497 (exit $ac_status); } &&
40498 { ac_try
='test -s conftest$ac_exeext'
40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40500 (eval $ac_try) 2>&5
40502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); }; }; then
40504 am_cv_lib_iconv
=yes
40505 am_cv_func_iconv
=yes
40507 echo "$as_me: failed program was:" >&5
40508 sed 's/^/| /' conftest.
$ac_ext >&5
40511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40512 LIBS
="$am_save_LIBS"
40516 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40517 echo "${ECHO_T}$am_cv_func_iconv" >&6
40518 if test "$am_cv_func_iconv" = yes; then
40520 cat >>confdefs.h
<<\_ACEOF
40521 #define HAVE_ICONV 1
40525 if test "$am_cv_lib_iconv" = yes; then
40526 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40527 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40528 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40529 echo "${ECHO_T}$LIBICONV" >&6
40531 CPPFLAGS
="$am_save_CPPFLAGS"
40543 acl_save_prefix
="$prefix"
40544 prefix
="$acl_final_prefix"
40545 acl_save_exec_prefix
="$exec_prefix"
40546 exec_prefix
="$acl_final_exec_prefix"
40548 eval additional_includedir
=\"$includedir\"
40549 eval additional_libdir
=\"$libdir\"
40551 exec_prefix
="$acl_save_exec_prefix"
40552 prefix
="$acl_save_prefix"
40555 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40556 if test "${with_libintl_prefix+set}" = set; then
40557 withval
="$with_libintl_prefix"
40559 if test "X$withval" = "Xno"; then
40562 if test "X$withval" = "X"; then
40564 acl_save_prefix
="$prefix"
40565 prefix
="$acl_final_prefix"
40566 acl_save_exec_prefix
="$exec_prefix"
40567 exec_prefix
="$acl_final_exec_prefix"
40569 eval additional_includedir
=\"$includedir\"
40570 eval additional_libdir
=\"$libdir\"
40572 exec_prefix
="$acl_save_exec_prefix"
40573 prefix
="$acl_save_prefix"
40576 additional_includedir
="$withval/include"
40577 additional_libdir
="$withval/lib"
40587 names_already_handled
=
40588 names_next_round
='intl '
40589 while test -n "$names_next_round"; do
40590 names_this_round
="$names_next_round"
40592 for name
in $names_this_round; do
40594 for n
in $names_already_handled; do
40595 if test "$n" = "$name"; then
40596 already_handled
=yes
40600 if test -z "$already_handled"; then
40601 names_already_handled
="$names_already_handled $name"
40602 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40603 eval value
=\"\
$HAVE_LIB$uppername\"
40604 if test -n "$value"; then
40605 if test "$value" = yes; then
40606 eval value
=\"\
$LIB$uppername\"
40607 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
40608 eval value
=\"\
$LTLIB$uppername\"
40609 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
40618 if test $use_additional = yes; then
40619 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40620 found_dir
="$additional_libdir"
40621 found_so
="$additional_libdir/lib$name.$shlibext"
40622 if test -f "$additional_libdir/lib$name.la"; then
40623 found_la
="$additional_libdir/lib$name.la"
40626 if test -f "$additional_libdir/lib$name.$libext"; then
40627 found_dir
="$additional_libdir"
40628 found_a
="$additional_libdir/lib$name.$libext"
40629 if test -f "$additional_libdir/lib$name.la"; then
40630 found_la
="$additional_libdir/lib$name.la"
40635 if test "X$found_dir" = "X"; then
40636 for x
in $LDFLAGS $LTLIBINTL; do
40638 acl_save_prefix
="$prefix"
40639 prefix
="$acl_final_prefix"
40640 acl_save_exec_prefix
="$exec_prefix"
40641 exec_prefix
="$acl_final_exec_prefix"
40643 exec_prefix
="$acl_save_exec_prefix"
40644 prefix
="$acl_save_prefix"
40648 dir
=`echo "X$x" | sed -e 's/^X-L//'`
40649 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40651 found_so
="$dir/lib$name.$shlibext"
40652 if test -f "$dir/lib$name.la"; then
40653 found_la
="$dir/lib$name.la"
40656 if test -f "$dir/lib$name.$libext"; then
40658 found_a
="$dir/lib$name.$libext"
40659 if test -f "$dir/lib$name.la"; then
40660 found_la
="$dir/lib$name.la"
40666 if test "X$found_dir" != "X"; then
40671 if test "X$found_dir" != "X"; then
40672 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40673 if test "X$found_so" != "X"; then
40674 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
40675 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40678 for x
in $ltrpathdirs; do
40679 if test "X$x" = "X$found_dir"; then
40684 if test -z "$haveit"; then
40685 ltrpathdirs
="$ltrpathdirs $found_dir"
40687 if test "$hardcode_direct" = yes; then
40688 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40690 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
40691 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40693 for x
in $rpathdirs; do
40694 if test "X$x" = "X$found_dir"; then
40699 if test -z "$haveit"; then
40700 rpathdirs
="$rpathdirs $found_dir"
40704 for x
in $LDFLAGS $LIBINTL; do
40706 acl_save_prefix
="$prefix"
40707 prefix
="$acl_final_prefix"
40708 acl_save_exec_prefix
="$exec_prefix"
40709 exec_prefix
="$acl_final_exec_prefix"
40711 exec_prefix
="$acl_save_exec_prefix"
40712 prefix
="$acl_save_prefix"
40714 if test "X$x" = "X-L$found_dir"; then
40719 if test -z "$haveit"; then
40720 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40722 if test "$hardcode_minus_L" != no
; then
40723 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40725 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
40731 if test "X$found_a" != "X"; then
40732 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
40734 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40737 additional_includedir
=
40738 case "$found_dir" in
40740 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40741 additional_includedir
="$basedir/include"
40744 if test "X$additional_includedir" != "X"; then
40745 if test "X$additional_includedir" != "X/usr/include"; then
40747 if test "X$additional_includedir" = "X/usr/local/include"; then
40748 if test -n "$GCC"; then
40750 linux
*) haveit
=yes;;
40754 if test -z "$haveit"; then
40755 for x
in $CPPFLAGS $INCINTL; do
40757 acl_save_prefix
="$prefix"
40758 prefix
="$acl_final_prefix"
40759 acl_save_exec_prefix
="$exec_prefix"
40760 exec_prefix
="$acl_final_exec_prefix"
40762 exec_prefix
="$acl_save_exec_prefix"
40763 prefix
="$acl_save_prefix"
40765 if test "X$x" = "X-I$additional_includedir"; then
40770 if test -z "$haveit"; then
40771 if test -d "$additional_includedir"; then
40772 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40778 if test -n "$found_la"; then
40779 save_libdir
="$libdir"
40780 case "$found_la" in
40781 */* |
*\\*) .
"$found_la" ;;
40782 *) .
"./$found_la" ;;
40784 libdir
="$save_libdir"
40785 for dep
in $dependency_libs; do
40788 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
40789 if test "X$additional_libdir" != "X/usr/lib"; then
40791 if test "X$additional_libdir" = "X/usr/local/lib"; then
40792 if test -n "$GCC"; then
40794 linux
*) haveit
=yes;;
40798 if test -z "$haveit"; then
40800 for x
in $LDFLAGS $LIBINTL; do
40802 acl_save_prefix
="$prefix"
40803 prefix
="$acl_final_prefix"
40804 acl_save_exec_prefix
="$exec_prefix"
40805 exec_prefix
="$acl_final_exec_prefix"
40807 exec_prefix
="$acl_save_exec_prefix"
40808 prefix
="$acl_save_prefix"
40810 if test "X$x" = "X-L$additional_libdir"; then
40815 if test -z "$haveit"; then
40816 if test -d "$additional_libdir"; then
40817 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40821 for x
in $LDFLAGS $LTLIBINTL; do
40823 acl_save_prefix
="$prefix"
40824 prefix
="$acl_final_prefix"
40825 acl_save_exec_prefix
="$exec_prefix"
40826 exec_prefix
="$acl_final_exec_prefix"
40828 exec_prefix
="$acl_save_exec_prefix"
40829 prefix
="$acl_save_prefix"
40831 if test "X$x" = "X-L$additional_libdir"; then
40836 if test -z "$haveit"; then
40837 if test -d "$additional_libdir"; then
40838 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40845 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
40846 if test "$enable_rpath" != no
; then
40848 for x
in $rpathdirs; do
40849 if test "X$x" = "X$dir"; then
40854 if test -z "$haveit"; then
40855 rpathdirs
="$rpathdirs $dir"
40858 for x
in $ltrpathdirs; do
40859 if test "X$x" = "X$dir"; then
40864 if test -z "$haveit"; then
40865 ltrpathdirs
="$ltrpathdirs $dir"
40870 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40873 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40876 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
40877 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40883 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
40884 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40890 if test "X$rpathdirs" != "X"; then
40891 if test -n "$hardcode_libdir_separator"; then
40893 for found_dir
in $rpathdirs; do
40894 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40896 acl_save_libdir
="$libdir"
40898 eval flag
=\"$hardcode_libdir_flag_spec\"
40899 libdir
="$acl_save_libdir"
40900 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
40902 for found_dir
in $rpathdirs; do
40903 acl_save_libdir
="$libdir"
40904 libdir
="$found_dir"
40905 eval flag
=\"$hardcode_libdir_flag_spec\"
40906 libdir
="$acl_save_libdir"
40907 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
40911 if test "X$ltrpathdirs" != "X"; then
40912 for found_dir
in $ltrpathdirs; do
40913 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40917 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40918 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40919 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40920 echo $ECHO_N "(cached) $ECHO_C" >&6
40922 gt_save_CPPFLAGS
="$CPPFLAGS"
40923 CPPFLAGS
="$CPPFLAGS $INCINTL"
40924 gt_save_LIBS
="$LIBS"
40925 LIBS
="$LIBS $LIBINTL"
40926 cat >conftest.
$ac_ext <<_ACEOF
40929 cat confdefs.h
>>conftest.
$ac_ext
40930 cat >>conftest.
$ac_ext <<_ACEOF
40931 /* end confdefs.h. */
40932 #include <libintl.h>
40933 extern int _nl_msg_cat_cntr;
40938 const char *_nl_expand_alias ();
40942 bindtextdomain ("", "");
40943 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40948 rm -f conftest.
$ac_objext conftest
$ac_exeext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40950 (eval $ac_link) 2>&5
40952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953 (exit $ac_status); } &&
40954 { ac_try
='test -s conftest$ac_exeext'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; }; then
40960 gt_cv_func_gnugettext2_libintl
=yes
40962 echo "$as_me: failed program was:" >&5
40963 sed 's/^/| /' conftest.
$ac_ext >&5
40965 gt_cv_func_gnugettext2_libintl
=no
40967 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40968 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40969 LIBS
="$LIBS $LIBICONV"
40970 cat >conftest.
$ac_ext <<_ACEOF
40973 cat confdefs.h
>>conftest.
$ac_ext
40974 cat >>conftest.
$ac_ext <<_ACEOF
40975 /* end confdefs.h. */
40976 #include <libintl.h>
40977 extern int _nl_msg_cat_cntr;
40982 const char *_nl_expand_alias ();
40986 bindtextdomain ("", "");
40987 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40992 rm -f conftest.
$ac_objext conftest
$ac_exeext
40993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40994 (eval $ac_link) 2>&5
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); } &&
40998 { ac_try
='test -s conftest$ac_exeext'
40999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41000 (eval $ac_try) 2>&5
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); }; }; then
41004 LIBINTL
="$LIBINTL $LIBICONV"
41005 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
41006 gt_cv_func_gnugettext2_libintl
=yes
41009 echo "$as_me: failed program was:" >&5
41010 sed 's/^/| /' conftest.
$ac_ext >&5
41013 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
41015 CPPFLAGS
="$gt_save_CPPFLAGS"
41016 LIBS
="$gt_save_LIBS"
41018 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
41019 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
41022 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
41023 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
41024 && test "$PACKAGE" != gettext; }; then
41025 gt_use_preinstalled_gnugettext
=yes
41034 if test "$gt_use_preinstalled_gnugettext" = "yes" \
41035 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
41037 cat >>confdefs.h
<<\_ACEOF
41038 #define ENABLE_NLS 1
41046 if test "$USE_NLS" = "yes"; then
41048 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
41049 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
41050 echo "$as_me:$LINENO: checking how to link with libintl" >&5
41051 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
41052 echo "$as_me:$LINENO: result: $LIBINTL" >&5
41053 echo "${ECHO_T}$LIBINTL" >&6
41055 for element
in $INCINTL; do
41057 for x
in $CPPFLAGS; do
41059 acl_save_prefix
="$prefix"
41060 prefix
="$acl_final_prefix"
41061 acl_save_exec_prefix
="$exec_prefix"
41062 exec_prefix
="$acl_final_exec_prefix"
41064 exec_prefix
="$acl_save_exec_prefix"
41065 prefix
="$acl_save_prefix"
41067 if test "X$x" = "X$element"; then
41072 if test -z "$haveit"; then
41073 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
41080 cat >>confdefs.h
<<\_ACEOF
41081 #define HAVE_GETTEXT 1
41085 cat >>confdefs.h
<<\_ACEOF
41086 #define HAVE_DCGETTEXT 1
41096 INTLLIBS
="$LIBINTL"
41105 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"
41107 cat >confcache
<<\_ACEOF
41108 # This file is a shell script that caches the results of configure
41109 # tests run on this system so they can be shared between configure
41110 # scripts and configure runs, see configure's option --config-cache.
41111 # It is not useful on other systems. If it contains results you don't
41112 # want to keep, you may remove or edit it.
41114 # config.status only pays attention to the cache file if you give it
41115 # the --recheck option to rerun configure.
41117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41119 # following values.
41123 # The following way of writing the cache mishandles newlines in values,
41124 # but we know of no workaround that is simple, portable, and efficient.
41125 # So, don't put newlines in cache variables' values.
41126 # Ultrix sh set writes to stderr and can't be redirected directly,
41127 # and sets the high bit in the cache file unless we assign to the vars.
41130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41132 # `set' does not quote correctly, so add quotes (double-quote
41133 # substitution turns \\\\ into \\, and sed turns \\ into \).
41136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41139 # `set' quotes correctly as required by POSIX, so do not add quotes.
41141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41152 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
41153 if test -w $cache_file; then
41154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41155 cat confcache
>$cache_file
41157 echo "not updating unwritable cache $cache_file"
41162 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
41163 # Let make expand exec_prefix.
41164 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
41166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41168 # trailing colons and then remove the whole line if VPATH becomes empty
41169 # (actually we leave an empty line to preserve line numbers).
41170 if test "x$srcdir" = x.
; then
41171 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
41172 s/:*\$(srcdir):*/:/;
41173 s/:*\${srcdir}:*/:/;
41175 s/^\([^=]*=[ ]*\):*/\1/;
41181 DEFS
=-DHAVE_CONFIG_H
41185 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
41186 # 1. Remove the extension, and $U if already installed.
41187 ac_i
=`echo "$ac_i" |
41188 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41190 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
41191 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
41193 LIBOBJS
=$ac_libobjs
41195 LTLIBOBJS
=$ac_ltlibobjs
41198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41199 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
41200 Usually this means the macro was only invoked conditionally." >&5
41201 echo "$as_me: error: conditional \"AMDEP\" was never defined.
41202 Usually this means the macro was only invoked conditionally." >&2;}
41203 { (exit 1); exit 1; }; }
41205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41206 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41207 Usually this means the macro was only invoked conditionally." >&5
41208 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41209 Usually this means the macro was only invoked conditionally." >&2;}
41210 { (exit 1); exit 1; }; }
41213 : ${CONFIG_STATUS=./config.status}
41214 ac_clean_files_save
=$ac_clean_files
41215 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
41216 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41217 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41218 cat >$CONFIG_STATUS <<_ACEOF
41220 # Generated by $as_me.
41221 # Run this file to recreate the current configuration.
41222 # Compiler output produced by configure, useful for debugging
41223 # configure, is in config.log if it exists.
41226 ac_cs_recheck=false
41228 SHELL=\${CONFIG_SHELL-$SHELL}
41231 cat >>$CONFIG_STATUS <<\_ACEOF
41232 ## --------------------- ##
41233 ## M4sh Initialization. ##
41234 ## --------------------- ##
41236 # Be Bourne compatible
41237 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
41240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41241 # is contrary to our usage. Disable this feature.
41242 alias -g '${1+"$@"}'='"$@"'
41243 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
41247 # Support unset when possible.
41248 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
41255 # Work around bugs in pre-3.0 UWIN ksh.
41256 $as_unset ENV MAIL MAILPATH
41263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41265 LC_TELEPHONE LC_TIME
41267 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
41268 eval $as_var=C
; export $as_var
41274 # Required to use basename.
41275 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41281 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
41282 as_basename
=basename
41288 # Name of the executable.
41289 as_me
=`$as_basename "$0" ||
41290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41291 X"$0" : 'X\(//\)$' \| \
41292 X"$0" : 'X\(/\)$' \| \
41293 . : '\(.\)' 2>/dev/null ||
41295 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41296 /^X\/\(\/\/\)$/{ s//\1/; q; }
41297 /^X\/\(\/\).*/{ s//\1/; q; }
41301 # PATH needs CR, and LINENO needs CR and PATH.
41302 # Avoid depending upon Character Ranges.
41303 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41304 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41305 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41306 as_cr_digits
='0123456789'
41307 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41309 # The user is always right.
41310 if test "${PATH_SEPARATOR+set}" != set; then
41311 echo "#! /bin/sh" >conf$$.sh
41312 echo "exit 0" >>conf$$.sh
41314 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
41323 as_lineno_1
=$LINENO
41324 as_lineno_2
=$LINENO
41325 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
41326 test "x$as_lineno_1" != "x$as_lineno_2" &&
41327 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
41328 # Find who we are. Look in the path if we contain no path at all
41331 *[\\/]* ) as_myself
=$0 ;;
41332 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
41333 for as_dir
in $PATH
41336 test -z "$as_dir" && as_dir
=.
41337 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
41342 # We did not find ourselves, most probably we were run as `sh COMMAND'
41343 # in which case we are not to be found in the path.
41344 if test "x$as_myself" = x
; then
41347 if test ! -f "$as_myself"; then
41348 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41350 { (exit 1); exit 1; }; }
41352 case $CONFIG_SHELL in
41354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
41355 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
41358 test -z "$as_dir" && as_dir
=.
41359 for as_base
in sh bash ksh sh5
; do
41362 if ("$as_dir/$as_base" -c '
41363 as_lineno_1=$LINENO
41364 as_lineno_2=$LINENO
41365 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41366 test "x$as_lineno_1" != "x$as_lineno_2" &&
41367 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
41368 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
41369 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
41370 CONFIG_SHELL
=$as_dir/$as_base
41371 export CONFIG_SHELL
41372 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41381 # uniformly replaced by the line number. The first 'sed' inserts a
41382 # line-number line before each line; the second 'sed' does the real
41383 # work. The second script uses 'N' to pair each line-number line
41384 # with the numbered line, and appends trailing '-' during
41385 # substitution so that $LINENO is not a special case at line end.
41386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41387 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41388 sed '=' <$as_myself |
41393 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41396 s,^['$as_cr_digits']*\n,,
41397 ' >$as_me.lineno
&&
41398 chmod +x
$as_me.lineno ||
41399 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41401 { (exit 1); exit 1; }; }
41403 # Don't try to exec as it changes $[0], causing all sort of problems
41404 # (the dirname of $[0] is not the place where we might find the
41405 # original and so on. Autoconf is especially sensible to this).
41407 # Exit status is that of the last command.
41412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41413 *c
*,-n*) ECHO_N
= ECHO_C
='
41415 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
41416 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
41419 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41425 rm -f conf$$ conf$$.exe conf$$.
file
41427 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41428 # We could just check for DJGPP; but this test a) works b) is more generic
41429 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41430 if test -f conf$$.exe
; then
41431 # Don't use ln at all; we don't have any links
41436 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41441 rm -f conf$$ conf$$.exe conf$$.
file
41443 if mkdir
-p .
2>/dev
/null
; then
41449 as_executable_p
="test -f"
41451 # Sed expression to map a string onto a valid CPP name.
41452 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41454 # Sed expression to map a string onto a valid variable name.
41455 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41459 # We need space, tab and new line, in precisely that order.
41469 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41470 # report actual input values of CONFIG_FILES etc. instead of their
41471 # values after options handling. Logging --version etc. is OK.
41475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41476 ## Running $as_me. ##
41481 This file was extended by GNU coreutils $as_me 4.5.10, which was
41482 generated by GNU Autoconf 2.57. Invocation command line was
41484 CONFIG_FILES = $CONFIG_FILES
41485 CONFIG_HEADERS = $CONFIG_HEADERS
41486 CONFIG_LINKS = $CONFIG_LINKS
41487 CONFIG_COMMANDS = $CONFIG_COMMANDS
41491 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41495 # Files that config.status was made for.
41496 if test -n "$ac_config_files"; then
41497 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41500 if test -n "$ac_config_headers"; then
41501 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41504 if test -n "$ac_config_links"; then
41505 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41508 if test -n "$ac_config_commands"; then
41509 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41512 cat >>$CONFIG_STATUS <<\_ACEOF
41515 \`$as_me' instantiates files from templates according to the
41516 current configuration.
41518 Usage: $0 [OPTIONS] [FILE]...
41520 -h, --help print this help, then exit
41521 -V, --version print version number, then exit
41522 -q, --quiet do not print progress messages
41523 -d, --debug don't remove temporary files
41524 --recheck update $as_me by reconfiguring in the same conditions
41525 --file=FILE[:TEMPLATE]
41526 instantiate the configuration file FILE
41527 --header=FILE[:TEMPLATE]
41528 instantiate the configuration header FILE
41530 Configuration files:
41533 Configuration headers:
41536 Configuration links:
41539 Configuration commands:
41542 Report bugs to <bug-autoconf@gnu.org>."
41545 cat >>$CONFIG_STATUS <<_ACEOF
41547 GNU coreutils config.status 4.5.10
41548 configured by $0, generated by GNU Autoconf 2.57,
41549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41551 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41552 Free Software Foundation, Inc.
41553 This config.status script is free software; the Free Software Foundation
41554 gives unlimited permission to copy, distribute and modify it."
41559 cat >>$CONFIG_STATUS <<\_ACEOF
41560 # If no file are specified by the user, then we need to provide default
41561 # value. By we need to know if files were specified by the user.
41567 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
41568 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
41576 *) # This is not an option, so the user has probably given explicit
41579 ac_need_defaults
=false
;;
41583 # Handling of the options.
41585 cat >>$CONFIG_STATUS <<\_ACEOF
41586 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41588 --version |
--vers* |
-V )
41589 echo "$ac_cs_version"; exit 0 ;;
41591 # Conflict between --help and --header
41592 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41593 Try \`$0 --help' for more information." >&5
41594 echo "$as_me: error: ambiguous option: $1
41595 Try \`$0 --help' for more information." >&2;}
41596 { (exit 1); exit 1; }; };;
41597 --help |
--hel |
-h )
41598 echo "$ac_cs_usage"; exit 0 ;;
41599 --debug |
--d* |
-d )
41601 --file |
--fil |
--fi |
--f )
41603 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
41604 ac_need_defaults
=false
;;
41605 --header |
--heade |
--head |
--hea )
41607 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
41608 ac_need_defaults
=false
;;
41609 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41610 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41613 # This is an error.
41614 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41615 Try \`$0 --help' for more information." >&5
41616 echo "$as_me: error: unrecognized option: $1
41617 Try \`$0 --help' for more information." >&2;}
41618 { (exit 1); exit 1; }; } ;;
41620 *) ac_config_targets
="$ac_config_targets $1" ;;
41626 ac_configure_extra_args
=
41628 if $ac_cs_silent; then
41630 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41634 cat >>$CONFIG_STATUS <<_ACEOF
41635 if \$ac_cs_recheck; then
41636 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41637 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41642 cat >>$CONFIG_STATUS <<_ACEOF
41644 # INIT-COMMANDS section.
41647 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41648 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41649 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41651 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41652 # Capture the value of LINGUAS because we need it to compute CATALOGS.
41653 LINGUAS="${LINGUAS-%UNSET%}"
41660 cat >>$CONFIG_STATUS <<\_ACEOF
41661 for ac_config_target
in $ac_config_targets
41663 case "$ac_config_target" in
41664 # Handling of arguments.
41665 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
41666 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
41667 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
41668 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
41669 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
41670 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
41671 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
41672 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
41673 "tests/basename/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/basename/Makefile" ;;
41674 "tests/chgrp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chgrp/Makefile" ;;
41675 "tests/chmod/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chmod/Makefile" ;;
41676 "tests/chown/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chown/Makefile" ;;
41677 "tests/cp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cp/Makefile" ;;
41678 "tests/cut/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cut/Makefile" ;;
41679 "tests/date/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/date/Makefile" ;;
41680 "tests/dd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dd/Makefile" ;;
41681 "tests/dircolors/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dircolors/Makefile" ;;
41682 "tests/du/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/du/Makefile" ;;
41683 "tests/expr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/expr/Makefile" ;;
41684 "tests/factor/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/factor/Makefile" ;;
41685 "tests/fmt/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/fmt/Makefile" ;;
41686 "tests/head/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/head/Makefile" ;;
41687 "tests/install/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/install/Makefile" ;;
41688 "tests/join/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/join/Makefile" ;;
41689 "tests/ln/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ln/Makefile" ;;
41690 "tests/ls-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls-2/Makefile" ;;
41691 "tests/ls/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls/Makefile" ;;
41692 "tests/md5sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/md5sum/Makefile" ;;
41693 "tests/misc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/misc/Makefile" ;;
41694 "tests/mkdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mkdir/Makefile" ;;
41695 "tests/mv/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mv/Makefile" ;;
41696 "tests/od/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/od/Makefile" ;;
41697 "tests/pr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/pr/Makefile" ;;
41698 "tests/rm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rm/Makefile" ;;
41699 "tests/rmdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rmdir/Makefile" ;;
41700 "tests/seq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/seq/Makefile" ;;
41701 "tests/sha1sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41702 "tests/shred/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/shred/Makefile" ;;
41703 "tests/sort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sort/Makefile" ;;
41704 "tests/stty/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/stty/Makefile" ;;
41705 "tests/sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sum/Makefile" ;;
41706 "tests/tac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tac/Makefile" ;;
41707 "tests/tail-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail-2/Makefile" ;;
41708 "tests/tail/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail/Makefile" ;;
41709 "tests/test/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/test/Makefile" ;;
41710 "tests/touch/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/touch/Makefile" ;;
41711 "tests/tr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tr/Makefile" ;;
41712 "tests/tsort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tsort/Makefile" ;;
41713 "tests/unexpand/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/unexpand/Makefile" ;;
41714 "tests/uniq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/uniq/Makefile" ;;
41715 "tests/wc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/wc/Makefile" ;;
41716 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41717 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41718 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41719 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
41720 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
41721 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
41722 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41724 { (exit 1); exit 1; }; };;
41728 # If the user did not use the arguments to specify the items to instantiate,
41729 # then the envvar interface is used. Set only those that are not.
41730 # We use the long form for the default assignment because of an extremely
41731 # bizarre bug on SunOS 4.1.3.
41732 if $ac_need_defaults; then
41733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
41734 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
41735 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
41736 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
41739 # Have a temporary directory for convenience. Make it in the build tree
41740 # simply because there is no reason to put it here, and in addition,
41741 # creating and moving files from /tmp can sometimes cause problems.
41742 # Create a temporary directory, and hook for its removal unless debugging.
41745 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41746 trap '{ (exit 1); exit 1; }' 1 2 13 15
41749 # Create a (secure) tmp directory for tmp files.
41752 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41753 test -n "$tmp" && test -d "$tmp"
41756 tmp
=.
/confstat$$
-$RANDOM
41757 (umask 077 && mkdir
$tmp)
41760 echo "$me: cannot create a temporary directory in ." >&2
41761 { (exit 1); exit 1; }
41766 cat >>$CONFIG_STATUS <<_ACEOF
41769 # CONFIG_FILES section.
41772 # No need to generate the scripts if there are no CONFIG_FILES.
41773 # This happens for instance when ./config.status config.h
41774 if test -n "\$CONFIG_FILES"; then
41775 # Protect against being on the right side of a sed subst in config.status.
41776 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41777 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41778 s,@SHELL@,$SHELL,;t t
41779 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41780 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41781 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41782 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41783 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41784 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41785 s,@exec_prefix@,$exec_prefix,;t t
41786 s,@prefix@,$prefix,;t t
41787 s,@program_transform_name@,$program_transform_name,;t t
41788 s,@bindir@,$bindir,;t t
41789 s,@sbindir@,$sbindir,;t t
41790 s,@libexecdir@,$libexecdir,;t t
41791 s,@datadir@,$datadir,;t t
41792 s,@sysconfdir@,$sysconfdir,;t t
41793 s,@sharedstatedir@,$sharedstatedir,;t t
41794 s,@localstatedir@,$localstatedir,;t t
41795 s,@libdir@,$libdir,;t t
41796 s,@includedir@,$includedir,;t t
41797 s,@oldincludedir@,$oldincludedir,;t t
41798 s,@infodir@,$infodir,;t t
41799 s,@mandir@,$mandir,;t t
41800 s,@build_alias@,$build_alias,;t t
41801 s,@host_alias@,$host_alias,;t t
41802 s,@target_alias@,$target_alias,;t t
41803 s,@DEFS@,$DEFS,;t t
41804 s,@ECHO_C@,$ECHO_C,;t t
41805 s,@ECHO_N@,$ECHO_N,;t t
41806 s,@ECHO_T@,$ECHO_T,;t t
41807 s,@LIBS@,$LIBS,;t t
41808 s,@build@,$build,;t t
41809 s,@build_cpu@,$build_cpu,;t t
41810 s,@build_vendor@,$build_vendor,;t t
41811 s,@build_os@,$build_os,;t t
41812 s,@host@,$host,;t t
41813 s,@host_cpu@,$host_cpu,;t t
41814 s,@host_vendor@,$host_vendor,;t t
41815 s,@host_os@,$host_os,;t t
41816 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41817 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41818 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41819 s,@CYGPATH_W@,$CYGPATH_W,;t t
41820 s,@PACKAGE@,$PACKAGE,;t t
41821 s,@VERSION@,$VERSION,;t t
41822 s,@ACLOCAL@,$ACLOCAL,;t t
41823 s,@AUTOCONF@,$AUTOCONF,;t t
41824 s,@AUTOMAKE@,$AUTOMAKE,;t t
41825 s,@AUTOHEADER@,$AUTOHEADER,;t t
41826 s,@MAKEINFO@,$MAKEINFO,;t t
41827 s,@AMTAR@,$AMTAR,;t t
41828 s,@install_sh@,$install_sh,;t t
41829 s,@STRIP@,$STRIP,;t t
41830 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41831 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41833 s,@SET_MAKE@,$SET_MAKE,;t t
41834 s,@am__leading_dot@,$am__leading_dot,;t t
41835 s,@PERL@,$PERL,;t t
41837 s,@CFLAGS@,$CFLAGS,;t t
41838 s,@LDFLAGS@,$LDFLAGS,;t t
41839 s,@CPPFLAGS@,$CPPFLAGS,;t t
41840 s,@ac_ct_CC@,$ac_ct_CC,;t t
41841 s,@EXEEXT@,$EXEEXT,;t t
41842 s,@OBJEXT@,$OBJEXT,;t t
41843 s,@DEPDIR@,$DEPDIR,;t t
41844 s,@am__include@,$am__include,;t t
41845 s,@am__quote@,$am__quote,;t t
41846 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41847 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41848 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41849 s,@CCDEPMODE@,$CCDEPMODE,;t t
41850 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41851 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41853 s,@EGREP@,$EGREP,;t t
41854 s,@RANLIB@,$RANLIB,;t t
41855 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41856 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41857 s,@HELP2MAN@,$HELP2MAN,;t t
41858 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41859 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41861 s,@DF_PROG@,$DF_PROG,;t t
41863 s,@ANSI2KNR@,$ANSI2KNR,;t t
41864 s,@LIBOBJS@,$LIBOBJS,;t t
41865 s,@ALLOCA@,$ALLOCA,;t t
41866 s,@YACC@,$YACC,;t t
41867 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41868 s,@NEED_SETGID@,$NEED_SETGID,;t t
41869 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41870 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41871 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41872 s,@POW_LIB@,$POW_LIB,;t t
41873 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41874 s,@GLIBC21@,$GLIBC21,;t t
41875 s,@LIBICONV@,$LIBICONV,;t t
41876 s,@LTLIBICONV@,$LTLIBICONV,;t t
41877 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41878 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41879 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41880 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41881 s,@MSGFMT@,$MSGFMT,;t t
41882 s,@GMSGFMT@,$GMSGFMT,;t t
41883 s,@XGETTEXT@,$XGETTEXT,;t t
41884 s,@MSGMERGE@,$MSGMERGE,;t t
41885 s,@USE_NLS@,$USE_NLS,;t t
41886 s,@INTLLIBS@,$INTLLIBS,;t t
41887 s,@LIBINTL@,$LIBINTL,;t t
41888 s,@LTLIBINTL@,$LTLIBINTL,;t t
41889 s,@POSUB@,$POSUB,;t t
41890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41895 cat >>$CONFIG_STATUS <<\_ACEOF
41896 # Split the substitutions into bite-sized pieces for seds with
41897 # small command number limits, like on Digital OSF/1 and HP-UX.
41898 ac_max_sed_lines
=48
41899 ac_sed_frag
=1 # Number of current file.
41900 ac_beg
=1 # First line for current file.
41901 ac_end
=$ac_max_sed_lines # Line after last line for current file.
41904 while $ac_more_lines; do
41905 if test $ac_beg -gt 1; then
41906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
41908 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
41910 if test ! -s $tmp/subs.frag
; then
41911 ac_more_lines
=false
41913 # The purpose of the label and of the branching condition is to
41914 # speed up the sed processing (if there are no `@' at all, there
41915 # is no need to browse any of the substitutions).
41916 # These are the two extra sed commands mentioned above.
41918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
41919 if test -z "$ac_sed_cmds"; then
41920 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
41922 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41924 ac_sed_frag
=`expr $ac_sed_frag + 1`
41926 ac_end
=`expr $ac_end + $ac_max_sed_lines`
41929 if test -z "$ac_sed_cmds"; then
41932 fi # test -n "$CONFIG_FILES"
41935 cat >>$CONFIG_STATUS <<\_ACEOF
41936 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
41937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41939 - |
*:- |
*:-:* ) # input from stdin
41941 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41942 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41943 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41944 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41945 * ) ac_file_in
=$ac_file.
in ;;
41948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41949 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
41950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41951 X"$ac_file" : 'X\(//\)[^/]' \| \
41952 X"$ac_file" : 'X\(//\)$' \| \
41953 X"$ac_file" : 'X\(/\)' \| \
41954 . : '\(.\)' 2>/dev/null ||
41956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41958 /^X\(\/\/\)$/{ s//\1/; q; }
41959 /^X\(\/\).*/{ s//\1/; q; }
41961 { if $as_mkdir_p; then
41966 while test ! -d "$as_dir"; do
41967 as_dirs
="$as_dir $as_dirs"
41968 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
41969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41970 X"$as_dir" : 'X\(//\)[^/]' \| \
41971 X"$as_dir" : 'X\(//\)$' \| \
41972 X"$as_dir" : 'X\(/\)' \| \
41973 . : '\(.\)' 2>/dev/null ||
41975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41977 /^X\(\/\/\)$/{ s//\1/; q; }
41978 /^X\(\/\).*/{ s//\1/; q; }
41981 test ! -n "$as_dirs" || mkdir
$as_dirs
41982 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41984 { (exit 1); exit 1; }; }; }
41988 if test "$ac_dir" != .
; then
41989 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41990 # A "../" for each directory in $ac_dir_suffix.
41991 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41993 ac_dir_suffix
= ac_top_builddir
=
41997 .
) # No --srcdir option. We are building in place.
41999 if test -z "$ac_top_builddir"; then
42002 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
42004 [\\/]* | ?
:[\\/]* ) # Absolute path.
42005 ac_srcdir
=$srcdir$ac_dir_suffix;
42006 ac_top_srcdir
=$srcdir ;;
42007 *) # Relative path.
42008 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
42009 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
42011 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42013 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
42014 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42015 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42016 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42020 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42021 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
42024 if test x
"$ac_file" != x-
; then
42025 { echo "$as_me:$LINENO: creating $ac_file" >&5
42026 echo "$as_me: creating $ac_file" >&6;}
42029 # Let's still pretend it is `configure' which instantiates (i.e., don't
42030 # use $as_me), people would be surprised to read:
42031 # /* config.h. Generated by config.status. */
42032 if test x
"$ac_file" = x-
; then
42035 configure_input
="$ac_file. "
42037 configure_input
=$configure_input"Generated from `echo $ac_file_in |
42038 sed 's,.*/,,'` by configure."
42040 # First look for the input files in the build tree, otherwise in the
42042 ac_file_inputs
=`IFS=:
42043 for f in $ac_file_in; do
42045 -) echo $tmp/stdin ;;
42047 # Absolute (can't be DOS-style, as IFS=:)
42048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42049 echo "$as_me: error: cannot find input file: $f" >&2;}
42050 { (exit 1); exit 1; }; }
42053 if test -f "$f"; then
42056 elif test -f "$srcdir/$f"; then
42061 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42062 echo "$as_me: error: cannot find input file: $f" >&2;}
42063 { (exit 1); exit 1; }; }
42066 done` ||
{ (exit 1); exit 1; }
42068 cat >>$CONFIG_STATUS <<_ACEOF
42072 cat >>$CONFIG_STATUS <<\_ACEOF
42074 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42075 s
,@configure_input@
,$configure_input,;t t
42076 s
,@srcdir@
,$ac_srcdir,;t t
42077 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
42078 s
,@top_srcdir@
,$ac_top_srcdir,;t t
42079 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
42080 s
,@builddir@
,$ac_builddir,;t t
42081 s
,@abs_builddir@
,$ac_abs_builddir,;t t
42082 s
,@top_builddir@
,$ac_top_builddir,;t t
42083 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
42084 s
,@INSTALL@
,$ac_INSTALL,;t t
42085 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42087 if test x"$ac_file" != x-; then
42088 mv $tmp/out $ac_file
42096 cat >>$CONFIG_STATUS <<\_ACEOF
42099 # CONFIG_HEADER section.
42102 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
42103 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42105 # ac_d sets the value in "#define NAME VALUE" lines.
42106 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42107 ac_dB
='[ ].*$,\1#\2'
42110 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42111 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42112 ac_uB
='$,\1#\2define\3'
42116 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
42117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42119 - |
*:- |
*:-:* ) # input from stdin
42121 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42122 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
42123 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42124 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
42125 * ) ac_file_in
=$ac_file.
in ;;
42128 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
42129 echo "$as_me: creating $ac_file" >&6;}
42131 # First look for the input files in the build tree, otherwise in the
42133 ac_file_inputs
=`IFS=:
42134 for f in $ac_file_in; do
42136 -) echo $tmp/stdin ;;
42138 # Absolute (can't be DOS-style, as IFS=:)
42139 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42140 echo "$as_me: error: cannot find input file: $f" >&2;}
42141 { (exit 1); exit 1; }; }
42144 if test -f "$f"; then
42147 elif test -f "$srcdir/$f"; then
42152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42153 echo "$as_me: error: cannot find input file: $f" >&2;}
42154 { (exit 1); exit 1; }; }
42157 done` ||
{ (exit 1); exit 1; }
42158 # Remove the trailing spaces.
42159 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42163 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42164 # `conftest.undefs', that substitutes the proper values into
42165 # config.h.in to produce config.h. The first handles `#define'
42166 # templates, and the second `#undef' templates.
42167 # And first: Protect against being on the right side of a sed subst in
42168 # config.status. Protect against being in an unquoted here document
42169 # in config.status.
42170 rm -f conftest.defines conftest.undefs
42171 # Using a here document instead of a string reduces the quoting nightmare.
42172 # Putting comments in sed scripts is not portable.
42174 # `end' is used to avoid that the second main sed command (meant for
42175 # 0-ary CPP macros) applies to n-ary macro definitions.
42176 # See the Autoconf documentation for `clear'.
42177 cat >confdef2sed.
sed <<\_ACEOF
42182 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42184 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42187 # If some macros were called several times there might be several times
42188 # the same #defines, which is useless. Nevertheless, we may not want to
42189 # sort them, since we want the *last* AC-DEFINE to be honored.
42190 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42191 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42192 rm -f confdef2sed.sed
42194 # This sed command replaces #undef with comments. This is necessary, for
42195 # example, in the case of _POSIX_SOURCE, which is predefined and required
42196 # on some systems where configure will not decide to define it.
42197 cat >>conftest.undefs <<\_ACEOF
42198 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42201 # Break up conftest.defines because some shells have a limit on the size
42202 # of here documents, and old seds have small limits too (100 cmds).
42203 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42204 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42205 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42206 echo ' :' >>$CONFIG_STATUS
42207 rm -f conftest.tail
42208 while grep . conftest.defines >/dev/null
42210 # Write a limited-size here document to $tmp/defines.sed.
42211 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42212 # Speed up: don't consider the non `#define' lines.
42213 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42214 # Work around the forget-to-reset-the-flag bug.
42215 echo 't clr' >>$CONFIG_STATUS
42216 echo ': clr' >>$CONFIG_STATUS
42217 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
42219 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42221 mv $tmp/out $tmp/in
42223 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
42224 rm -f conftest.defines
42225 mv conftest.
tail conftest.defines
42227 rm -f conftest.defines
42228 echo ' fi # grep' >>$CONFIG_STATUS
42229 echo >>$CONFIG_STATUS
42231 # Break up conftest.undefs because some shells have a limit on the size
42232 # of here documents, and old seds have small limits too (100 cmds).
42233 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42234 rm -f conftest.
tail
42235 while grep . conftest.undefs
>/dev
/null
42237 # Write a limited-size here document to $tmp/undefs.sed.
42238 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42239 # Speed up: don't consider the non
`#undef'
42240 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42241 # Work around the forget-to-reset-the-flag bug.
42242 echo 't clr' >>$CONFIG_STATUS
42243 echo ': clr' >>$CONFIG_STATUS
42244 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42246 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42248 mv $tmp/out $tmp/in
42250 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42251 rm -f conftest.undefs
42252 mv conftest.tail conftest.undefs
42254 rm -f conftest.undefs
42256 cat >>$CONFIG_STATUS <<\_ACEOF
42257 # Let's still pretend it is `configure
' which instantiates (i.e., don't
42258 # use $as_me), people would be surprised to read:
42259 # /* config.h. Generated by config.status. */
42260 if test x
"$ac_file" = x-
; then
42261 echo "/* Generated by configure. */" >$tmp/config.h
42263 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42265 cat $tmp/in >>$tmp/config.h
42267 if test x
"$ac_file" != x-
; then
42268 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
42269 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42270 echo "$as_me: $ac_file is unchanged" >&6;}
42272 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
42273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42274 X"$ac_file" : 'X\(//\)[^/]' \| \
42275 X"$ac_file" : 'X\(//\)$' \| \
42276 X"$ac_file" : 'X\(/\)' \| \
42277 . : '\(.\)' 2>/dev/null ||
42279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42281 /^X\(\/\/\)$/{ s//\1/; q; }
42282 /^X\(\/\).*/{ s//\1/; q; }
42284 { if $as_mkdir_p; then
42289 while test ! -d "$as_dir"; do
42290 as_dirs
="$as_dir $as_dirs"
42291 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42293 X"$as_dir" : 'X\(//\)[^/]' \| \
42294 X"$as_dir" : 'X\(//\)$' \| \
42295 X"$as_dir" : 'X\(/\)' \| \
42296 . : '\(.\)' 2>/dev/null ||
42298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42300 /^X\(\/\/\)$/{ s//\1/; q; }
42301 /^X\(\/\).*/{ s//\1/; q; }
42304 test ! -n "$as_dirs" || mkdir
$as_dirs
42305 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42307 { (exit 1); exit 1; }; }; }
42310 mv $tmp/config.h
$ac_file
42314 rm -f $tmp/config.h
42316 # Compute $ac_file's index in $config_headers.
42318 for _am_header
in $config_headers :; do
42319 case $_am_header in
42320 $ac_file |
$ac_file:* )
42323 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42326 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42328 X$ac_file : 'X\(//\)[^/]' \| \
42329 X$ac_file : 'X\(//\)$' \| \
42330 X$ac_file : 'X\(/\)' \| \
42331 . : '\(.\)' 2>/dev/null ||
42333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42335 /^X\(\/\/\)$/{ s//\1/; q; }
42336 /^X\(\/\).*/{ s//\1/; q; }
42337 s/.*/./; q'`/stamp-h
$_am_stamp_count
42340 cat >>$CONFIG_STATUS <<\_ACEOF
42343 # CONFIG_LINKS section.
42346 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
42347 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
42348 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42350 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42351 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42353 if test ! -r $srcdir/$ac_source; then
42354 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42355 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42356 { (exit 1); exit 1; }; }
42360 # Make relative symlinks.
42361 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
42362 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42363 X"$ac_dest" : 'X\(//\)[^/]' \| \
42364 X"$ac_dest" : 'X\(//\)$' \| \
42365 X"$ac_dest" : 'X\(/\)' \| \
42366 . : '\(.\)' 2>/dev/null ||
42368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42370 /^X\(\/\/\)$/{ s//\1/; q; }
42371 /^X\(\/\).*/{ s//\1/; q; }
42373 { if $as_mkdir_p; then
42374 mkdir
-p "$ac_dest_dir"
42376 as_dir
="$ac_dest_dir"
42378 while test ! -d "$as_dir"; do
42379 as_dirs
="$as_dir $as_dirs"
42380 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42382 X"$as_dir" : 'X\(//\)[^/]' \| \
42383 X"$as_dir" : 'X\(//\)$' \| \
42384 X"$as_dir" : 'X\(/\)' \| \
42385 . : '\(.\)' 2>/dev/null ||
42387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42389 /^X\(\/\/\)$/{ s//\1/; q; }
42390 /^X\(\/\).*/{ s//\1/; q; }
42393 test ! -n "$as_dirs" || mkdir
$as_dirs
42394 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42395 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42396 { (exit 1); exit 1; }; }; }
42400 if test "$ac_dest_dir" != .
; then
42401 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42402 # A "../" for each directory in $ac_dir_suffix.
42403 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42405 ac_dir_suffix
= ac_top_builddir
=
42409 .
) # No --srcdir option. We are building in place.
42411 if test -z "$ac_top_builddir"; then
42414 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
42416 [\\/]* | ?
:[\\/]* ) # Absolute path.
42417 ac_srcdir
=$srcdir$ac_dir_suffix;
42418 ac_top_srcdir
=$srcdir ;;
42419 *) # Relative path.
42420 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
42421 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
42423 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42425 ac_abs_builddir
=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42426 ac_abs_top_builddir
=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42427 ac_abs_srcdir
=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42428 ac_abs_top_srcdir
=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42432 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
42433 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
42436 # Try a symlink, then a hard link, then a copy.
42437 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
42438 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
42439 cp -p $srcdir/$ac_source $ac_dest ||
42440 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42441 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42442 { (exit 1); exit 1; }; }
42445 cat >>$CONFIG_STATUS <<\_ACEOF
42448 # CONFIG_COMMANDS section.
42450 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
42451 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
42452 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42453 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
42454 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42455 X"$ac_dest" : 'X\(//\)[^/]' \| \
42456 X"$ac_dest" : 'X\(//\)$' \| \
42457 X"$ac_dest" : 'X\(/\)' \| \
42458 . : '\(.\)' 2>/dev/null ||
42460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42462 /^X\(\/\/\)$/{ s//\1/; q; }
42463 /^X\(\/\).*/{ s//\1/; q; }
42467 if test "$ac_dir" != .
; then
42468 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42469 # A "../" for each directory in $ac_dir_suffix.
42470 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42472 ac_dir_suffix
= ac_top_builddir
=
42476 .
) # No --srcdir option. We are building in place.
42478 if test -z "$ac_top_builddir"; then
42481 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
42483 [\\/]* | ?
:[\\/]* ) # Absolute path.
42484 ac_srcdir
=$srcdir$ac_dir_suffix;
42485 ac_top_srcdir
=$srcdir ;;
42486 *) # Relative path.
42487 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
42488 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
42490 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42492 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
42493 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42494 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42495 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42498 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42499 echo "$as_me: executing $ac_dest commands" >&6;}
42501 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
42502 # Strip MF so we end up with the name of the file.
42503 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42504 # Check whether this is an Automake generated Makefile or not.
42505 # We used to match only the files named `Makefile.in', but
42506 # some people rename them; so instead we look at the file content.
42507 # Grep'ing the first line is not enough: some people post-process
42508 # each Makefile.in and add a new line on top of each file to say so.
42509 # So let's grep whole file.
42510 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
42511 dirpart
=`(dirname "$mf") 2>/dev/null ||
42512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42513 X"$mf" : 'X\(//\)[^/]' \| \
42514 X"$mf" : 'X\(//\)$' \| \
42515 X"$mf" : 'X\(/\)' \| \
42516 . : '\(.\)' 2>/dev/null ||
42518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42520 /^X\(\/\/\)$/{ s//\1/; q; }
42521 /^X\(\/\).*/{ s//\1/; q; }
42526 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
42527 # Extract the definition of DEP_FILES from the Makefile without
42529 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42530 test -z "$DEPDIR" && continue
42531 # When using ansi2knr, U may be empty or an underscore; expand it
42532 U
=`sed -n -e '/^U = / s///p' < "$mf"`
42533 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
42534 # We invoke sed twice because it is the simplest approach to
42535 # changing $(DEPDIR) to its actual value in the expansion.
42536 for file in `sed -n -e '
42537 /^DEP_FILES = .*\\\\$/ {
42546 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42547 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42548 # Make sure the directory exists.
42549 test -f "$dirpart/$file" && continue
42550 fdir
=`(dirname "$file") 2>/dev/null ||
42551 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42552 X"$file" : 'X\(//\)[^/]' \| \
42553 X"$file" : 'X\(//\)$' \| \
42554 X"$file" : 'X\(/\)' \| \
42555 . : '\(.\)' 2>/dev/null ||
42557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42559 /^X\(\/\/\)$/{ s//\1/; q; }
42560 /^X\(\/\).*/{ s//\1/; q; }
42562 { if $as_mkdir_p; then
42563 mkdir
-p $dirpart/$fdir
42565 as_dir
=$dirpart/$fdir
42567 while test ! -d "$as_dir"; do
42568 as_dirs
="$as_dir $as_dirs"
42569 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42571 X"$as_dir" : 'X\(//\)[^/]' \| \
42572 X"$as_dir" : 'X\(//\)$' \| \
42573 X"$as_dir" : 'X\(/\)' \| \
42574 . : '\(.\)' 2>/dev/null ||
42576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42578 /^X\(\/\/\)$/{ s//\1/; q; }
42579 /^X\(\/\).*/{ s//\1/; q; }
42582 test ! -n "$as_dirs" || mkdir
$as_dirs
42583 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42584 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42585 { (exit 1); exit 1; }; }; }
42587 # echo "creating $dirpart/$file"
42588 echo '# dummy' > "$dirpart/$file"
42593 for ac_file
in $CONFIG_FILES; do
42594 # Support "outfile[:infile[:infile...]]"
42596 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
42598 # PO directories have a Makefile.in generated from Makefile.in.in.
42599 case "$ac_file" in */Makefile.
in)
42600 # Adjust a relative srcdir.
42601 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42602 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
42603 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42604 # In autoconf-2.13 it is called $ac_given_srcdir.
42605 # In autoconf-2.50 it is called $srcdir.
42606 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
42607 case "$ac_given_srcdir" in
42608 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
42609 /*) top_srcdir
="$ac_given_srcdir" ;;
42610 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
42612 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42613 rm -f "$ac_dir/POTFILES"
42614 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
42615 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42616 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42617 # on $ac_dir but don't depend on user-specified configuration
42619 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42620 # The LINGUAS file contains the set of available languages.
42621 if test -n "$ALL_LINGUAS"; then
42622 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
42624 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42625 # Hide the ALL_LINGUAS assigment from automake.
42626 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42628 case "$ac_given_srcdir" in
42630 *) srcdirpre
='$(srcdir)/' ;;
42636 for lang
in $ALL_LINGUAS; do
42637 POFILES
="$POFILES $srcdirpre$lang.po"
42638 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
42639 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
42640 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
42642 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42643 # environment variable.
42645 if test -n "$ALL_LINGUAS"; then
42646 for presentlang
in $ALL_LINGUAS; do
42648 if test "%UNSET%" != "$LINGUAS"; then
42649 desiredlanguages
="$LINGUAS"
42651 desiredlanguages
="$ALL_LINGUAS"
42653 for desiredlang
in $desiredlanguages; do
42654 # Use the presentlang catalog if desiredlang is
42655 # a. equal to presentlang, or
42656 # b. a variant of presentlang (because in this case,
42657 # presentlang can be used as a fallback for messages
42658 # which are not translated in the desiredlang catalog).
42659 case "$desiredlang" in
42660 "$presentlang"*) useit
=yes;;
42663 if test $useit = yes; then
42664 INST_LINGUAS
="$INST_LINGUAS $presentlang"
42669 if test -n "$INST_LINGUAS"; then
42670 for lang
in $INST_LINGUAS; do
42671 CATALOGS
="$CATALOGS $lang.gmo"
42674 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
42675 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42676 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
42677 if test -f "$f"; then
42679 *.orig |
*.bak |
*~
) ;;
42680 *) cat "$f" >> "$ac_dir/Makefile" ;;
42692 cat >>$CONFIG_STATUS <<\_ACEOF
42694 { (exit 0); exit 0; }
42696 chmod +x
$CONFIG_STATUS
42697 ac_clean_files
=$ac_clean_files_save
42700 # configure is writing to config.log, and then calls config.status.
42701 # config.status does its own redirection, appending to config.log.
42702 # Unfortunately, on DOS this fails, as config.log is still kept open
42703 # by configure, so config.status won't be able to write to it; its
42704 # output is simply discarded. So we exec the FD to /dev/null,
42705 # effectively closing config.log, so it can be properly (re)opened and
42706 # appended to by config.status. When coming back to configure, we
42707 # need to make the FD available again.
42708 if test "$no_create" != yes; then
42710 ac_config_status_args
=
42711 test "$silent" = yes &&
42712 ac_config_status_args
="$ac_config_status_args --quiet"
42714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
42716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42717 # would make configure fail if this is the last instruction.
42718 $ac_cs_success ||
{ (exit 1); exit 1; }