2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.7.
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.7'
272 PACKAGE_STRING
='GNU coreutils 4.5.7'
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 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.7 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.7:";;
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.7
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.7, 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 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status
; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1615 CYGPATH_W
='cygpath -w'
1622 # Define the identity of the package.
1627 cat >>confdefs.h
<<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1632 cat >>confdefs.h
<<_ACEOF
1633 #define VERSION "$VERSION"
1636 # Some tools Automake needs.
1638 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1655 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'. However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no
; then
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$STRIP"; then
1671 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir
=.
1678 for ac_exec_ext
in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 STRIP
=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691 echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1699 if test -z "$ac_cv_prog_STRIP"; then
1701 # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip
; ac_word
=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$ac_ct_STRIP"; then
1709 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir
=.
1716 for ac_exec_ext
in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_STRIP
="strip"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1728 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1739 STRIP
="$ac_cv_prog_STRIP"
1743 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1745 # We need awk for the "check" target. The system "awk" is bad on
1752 cat >>confdefs.h
<<\_ACEOF
1753 #define _GNU_SOURCE 1
1758 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760 if test "${PERL+set}" = set; then
1761 # `PERL' is set in the user's environment.
1762 candidate_perl_names
="$PERL"
1765 candidate_perl_names
='perl perl5'
1771 PERL
="$missing_dir/missing perl"
1772 for perl
in $candidate_perl_names; do
1773 # Run test in a subshell; some versions of sh will print an error if
1774 # an executable is not found, even if stderr is redirected.
1775 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev
/null
2>&1; then
1782 echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784 test $found = no
&& { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786 a usable version of the Perl File::Compare module. As a result,
1787 you may be unable to run a few tests or to regenerate certain
1788 files if you modify the sources from which they are derived.
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792 a usable version of the Perl File::Compare module. As a result,
1793 you may be unable to run a few tests or to regenerate certain
1794 files if you modify the sources from which they are derived.
1798 ac_cpp
='$CPP $CPPFLAGS'
1799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC
="$CC" # Let the user override the test.
1813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir
=.
1818 for ac_exec_ext
in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1839 if test -z "$ac_cv_prog_CC"; then
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc
; ac_word
=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir
=.
1856 for ac_exec_ext
in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC
="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC
="$CC" # Let the user override the test.
1893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir
=.
1898 for ac_exec_ext
in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc
; ac_word
=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir
=.
1936 for ac_exec_ext
in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC
="cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1962 if test -z "$CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc
; ac_word
=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir
=.
1979 for ac_exec_ext
in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982 ac_prog_rejected
=yes
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy
$ac_cv_prog_CC
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2001 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2007 if test -n "$CC"; then
2008 echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC
="$CC" # Let the user override the test.
2030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir
=.
2035 for ac_exec_ext
in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CC" && break
2058 if test -z "$CC"; then
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy
$ac_prog; ac_word
=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir
=.
2077 for ac_exec_ext
in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC
="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CC" && break
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C compiler version" >&5
2115 ac_compiler
=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.
$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2136 cat confdefs.h
>>conftest.
$ac_ext
2137 cat >>conftest.
$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save
=$ac_clean_files
2149 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2171 test -f "$ac_file" ||
continue
2173 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.
$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext
=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try
='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe
; then
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2240 ac_clean_files
=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file
in conftest.exe conftest conftest.
*; do
2260 test -f "$ac_file" ||
continue
2262 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2263 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest
$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.
$ac_ext
2282 EXEEXT
=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.
$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2293 cat confdefs.h
>>conftest.
$ac_ext
2294 cat >>conftest.
$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2314 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.
$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT
=$ac_cv_objext
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.
$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2344 cat confdefs.h
>>conftest.
$ac_ext
2345 cat >>conftest.
$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2359 rm -f conftest.
$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try
='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.
$ac_ext >&5
2378 rm -f conftest.
$ac_objext conftest.
$ac_ext
2379 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS
=${CFLAGS+set}
2386 ac_save_CFLAGS
=$CFLAGS
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 cat >conftest.
$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2397 cat confdefs.h
>>conftest.
$ac_ext
2398 cat >>conftest.
$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2409 rm -f conftest.
$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try
='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.
$ac_ext >&5
2428 rm -f conftest.
$ac_objext conftest.
$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS
=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2441 if test "$GCC" = yes; then
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 ac_cv_prog_cc_stdc
=no
2454 cat >conftest.
$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h
>>conftest.
$ac_ext
2459 cat >>conftest.
$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2479 s = g (p, va_arg (v,int));
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC
="$ac_save_CC $ac_arg"
2507 rm -f conftest.
$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc
=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.
$ac_ext >&5
2526 rm -f conftest.
$ac_objext
2528 rm -f conftest.
$ac_ext conftest.
$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.
$ac_ext <<_ACEOF
2552 rm -f conftest.
$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try
='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration
in \
2566 '#include <stdlib.h>' \
2567 'extern "C" void std::exit (int) throw (); using std::exit;' \
2568 'extern "C" void std::exit (int); using std::exit;' \
2569 'extern "C" void exit (int) throw ();' \
2570 'extern "C" void exit (int);' \
2573 cat >conftest.
$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2577 cat confdefs.h
>>conftest.
$ac_ext
2578 cat >>conftest.
$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2590 rm -f conftest.
$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try
='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.
$ac_ext >&5
2609 rm -f conftest.
$ac_objext conftest.
$ac_ext
2610 cat >conftest.
$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h
>>conftest.
$ac_ext
2615 cat >>conftest.
$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 rm -f conftest.
$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try
='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.
$ac_ext >&5
2644 rm -f conftest.
$ac_objext conftest.
$ac_ext
2647 if test -n "$ac_declaration"; then
2648 echo '#ifdef __cplusplus' >>confdefs.h
2649 echo $ac_declaration >>confdefs.h
2650 echo '#endif' >>confdefs.h
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.
$ac_ext >&5
2658 rm -f conftest.
$ac_objext conftest.
$ac_ext
2660 ac_cpp
='$CPP $CPPFLAGS'
2661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2664 rm -f .deps
2>/dev
/null
2665 mkdir .deps
2>/dev
/null
2666 if test -d .deps
; then
2669 # MS-DOS does not allow filenames that begin with a dot.
2672 rmdir .deps
2>/dev
/null
2675 ac_config_commands
="$ac_config_commands depfiles"
2678 am_make
=${MAKE-make}
2679 cat > confinc
<< 'END'
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include
=.include
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval
="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno
; then
2722 am_depcomp
="$ac_aux_dir/depcomp"
2727 if test "x$enable_dependency_tracking" != xno; then
2738 depcc
="$CC" am_compiler_list
=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2757 am_cv_CC_dependencies_compiler_type
=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode
in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes
; then
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode
=$depmode \
2785 source=conftest.c object
=conftest.o \
2786 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2787 $SHELL .
/depcomp
$depcc -c -o conftest.o conftest.c
>/dev
/null
2>&1 &&
2788 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2789 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2790 am_cv_CC_dependencies_compiler_type
=$depmode
2798 am_cv_CC_dependencies_compiler_type
=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
2812 am__fastdepCC_FALSE
='#'
2814 am__fastdepCC_TRUE
='#'
2815 am__fastdepCC_FALSE
=
2820 ac_cpp
='$CPP $CPPFLAGS'
2821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2830 if test -z "$CPP"; then
2831 if test "${ac_cv_prog_CPP+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 # Double quotes because CPP needs to be expanded
2835 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2838 for ac_c_preproc_warn_flag
in '' yes
2840 # Use a header file that comes with gcc, so configuring glibc
2841 # with a fresh cross-compiler works.
2842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843 # <limits.h> exists even on freestanding compilers.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >conftest.
$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2850 cat confdefs.h
>>conftest.
$ac_ext
2851 cat >>conftest.
$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2854 # include <limits.h>
2856 # include <assert.h>
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1
>conftest.err
2865 cat conftest.err
>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev
/null
; then
2868 if test -s conftest.err
; then
2869 ac_cpp_err
=$ac_c_preproc_warn_flag
2876 if test -z "$ac_cpp_err"; then
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.
$ac_ext >&5
2882 # Broken: fails on valid input.
2885 rm -f conftest.err conftest.
$ac_ext
2887 # OK, works on sane cases. Now check whether non-existent headers
2888 # can be detected and how.
2889 cat >conftest.
$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2893 cat confdefs.h
>>conftest.
$ac_ext
2894 cat >>conftest.
$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 #include <ac_nonexistent.h>
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1
>conftest.err
2903 cat conftest.err
>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev
/null
; then
2906 if test -s conftest.err
; then
2907 ac_cpp_err
=$ac_c_preproc_warn_flag
2914 if test -z "$ac_cpp_err"; then
2915 # Broken: success on invalid input.
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.
$ac_ext >&5
2921 # Passes both tests.
2925 rm -f conftest.err conftest.
$ac_ext
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.
$ac_ext
2930 if $ac_preproc_ok; then
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2945 for ac_c_preproc_warn_flag
in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat >conftest.
$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2957 cat confdefs.h
>>conftest.
$ac_ext
2958 cat >>conftest.
$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2961 # include <limits.h>
2963 # include <assert.h>
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2970 grep -v '^ *+' conftest.er1
>conftest.err
2972 cat conftest.err
>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev
/null
; then
2975 if test -s conftest.err
; then
2976 ac_cpp_err
=$ac_c_preproc_warn_flag
2983 if test -z "$ac_cpp_err"; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.
$ac_ext >&5
2989 # Broken: fails on valid input.
2992 rm -f conftest.err conftest.
$ac_ext
2994 # OK, works on sane cases. Now check whether non-existent headers
2995 # can be detected and how.
2996 cat >conftest.
$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h
>>conftest.
$ac_ext
3001 cat >>conftest.
$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ac_nonexistent.h>
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3008 grep -v '^ *+' conftest.er1
>conftest.err
3010 cat conftest.err
>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } >/dev
/null
; then
3013 if test -s conftest.err
; then
3014 ac_cpp_err
=$ac_c_preproc_warn_flag
3021 if test -z "$ac_cpp_err"; then
3022 # Broken: success on invalid input.
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.
$ac_ext >&5
3028 # Passes both tests.
3032 rm -f conftest.err conftest.
$ac_ext
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.
$ac_ext
3037 if $ac_preproc_ok; then
3040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3048 ac_cpp
='$CPP $CPPFLAGS'
3049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3061 then ac_cv_prog_egrep
='grep -E'
3062 else ac_cv_prog_egrep
='egrep'
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067 EGREP
=$ac_cv_prog_egrep
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_pattern
="Autoconf.*'x'"
3077 cat >conftest.
$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h
>>conftest.
$ac_ext
3082 cat >>conftest.
$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3089 ac_cv_prog_gcc_traditional
=yes
3091 ac_cv_prog_gcc_traditional
=no
3096 if test $ac_cv_prog_gcc_traditional = no
; then
3097 cat >conftest.
$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3101 cat confdefs.h
>>conftest.
$ac_ext
3102 cat >>conftest.
$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3109 ac_cv_prog_gcc_traditional
=yes
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117 if test $ac_cv_prog_gcc_traditional = yes; then
3118 CC
="$CC -traditional"
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$RANLIB"; then
3131 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir
=.
3138 for ac_exec_ext
in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 RANLIB
=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151 echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160 ac_ct_RANLIB
=$RANLIB
3161 # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib
; ac_word
=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 if test -n "$ac_ct_RANLIB"; then
3169 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 for ac_exec_ext
in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3188 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 RANLIB
=$ac_ct_RANLIB
3199 RANLIB
="$ac_cv_prog_RANLIB"
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3209 cat confdefs.h
>>conftest.
$ac_ext
3210 cat >>conftest.
$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 $EGREP "yes" >/dev
/null
2>&1; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h
<<\_ACEOF
3222 #define _ALL_SOURCE 1
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 cat >conftest.
$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3241 cat confdefs.h
>>conftest.
$ac_ext
3242 cat >>conftest.
$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_header_stdc
=yes
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3274 ac_cv_header_stdc
=no
3276 rm -f conftest.
$ac_objext conftest.
$ac_ext
3278 if test $ac_cv_header_stdc = yes; then
3279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280 cat >conftest.
$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3284 cat confdefs.h
>>conftest.
$ac_ext
3285 cat >>conftest.
$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev
/null
2>&1; then
3294 ac_cv_header_stdc
=no
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat >conftest.
$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3306 cat confdefs.h
>>conftest.
$ac_ext
3307 cat >>conftest.
$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 $EGREP "free" >/dev
/null
2>&1; then
3316 ac_cv_header_stdc
=no
3322 if test $ac_cv_header_stdc = yes; then
3323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324 if test "$cross_compiling" = yes; then
3327 cat >conftest.
$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3331 cat confdefs.h
>>conftest.
$ac_ext
3332 cat >>conftest.
$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 # define ISLOWER(c) \
3340 (('a' <= (c) && (c) <= 'i') \
3341 || ('j' <= (c) && (c) <= 'r') \
3342 || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3351 for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i))
3353 || toupper (i) != TOUPPER (i))
3358 rm -f conftest
$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3371 echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.
$ac_ext >&5
3376 ac_cv_header_stdc
=no
3378 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3386 cat >>confdefs.h
<<\_ACEOF
3387 #define STDC_HEADERS 1
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3402 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3403 inttypes.h stdint.h unistd.h
3405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.
$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3415 cat confdefs.h
>>conftest.
$ac_ext
3416 cat >>conftest.
$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3420 #include <$ac_header>
3422 rm -f conftest.
$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try
='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.
$ac_objext conftest.
$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h
<<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3464 # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.
$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3471 cat confdefs.h
>>conftest.
$ac_ext
3472 cat >>conftest.
$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 $ac_includes_default
3475 #include <minix/config.h>
3477 rm -f conftest.
$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try
='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler
=yes
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.
$ac_ext >&5
3494 ac_header_compiler
=no
3496 rm -f conftest.
$ac_objext conftest.
$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.
$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3507 cat confdefs.h
>>conftest.
$ac_ext
3508 cat >>conftest.
$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <minix/config.h>
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1
>conftest.err
3517 cat conftest.err
>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev
/null
; then
3520 if test -s conftest.err
; then
3521 ac_cpp_err
=$ac_c_preproc_warn_flag
3528 if test -z "$ac_cpp_err"; then
3529 ac_header_preproc
=yes
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 ac_header_preproc
=no
3536 rm -f conftest.err conftest.
$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3540 # So? What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3543 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3554 sed "s/^/$as_me: WARNING: /" >&2
3557 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3570 sed "s/^/$as_me: WARNING: /" >&2
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_header_minix_config_h
=$ac_header_preproc
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3584 if test $ac_cv_header_minix_config_h = yes; then
3591 if test "$MINIX" = yes; then
3593 cat >>confdefs.h
<<\_ACEOF
3594 #define _POSIX_SOURCE 1
3598 cat >>confdefs.h
<<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3603 cat >>confdefs.h
<<\_ACEOF
3611 for ac_func
in uname
3613 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 cat >conftest.
$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3623 cat confdefs.h
>>conftest.
$ac_ext
3624 cat >>conftest.
$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func (); below.
3628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 <limits.h> exists even on freestanding compilers. */
3631 # include <limits.h>
3633 # include <assert.h>
3635 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3649 char (*f) () = $ac_func;
3658 return f != $ac_func;
3663 rm -f conftest.
$ac_objext conftest
$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665 (eval $ac_link) 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try
='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 eval "$as_ac_var=yes"
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.
$ac_ext >&5
3680 eval "$as_ac_var=no"
3682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687 cat >>confdefs.h
<<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3690 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uname" MAN
="$MAN uname.1"
3695 for ac_func
in chroot
3697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h
>>conftest.
$ac_ext
3708 cat >>conftest.
$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func (); below.
3712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 <limits.h> exists even on freestanding compilers. */
3715 # include <limits.h>
3717 # include <assert.h>
3719 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733 char (*f) () = $ac_func;
3742 return f != $ac_func;
3747 rm -f conftest.
$ac_objext conftest
$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try
='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.
$ac_ext >&5
3764 eval "$as_ac_var=no"
3766 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771 cat >>confdefs.h
<<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3774 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS chroot" MAN
="$MAN chroot.1"
3779 for ac_func
in gethostid
3781 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 cat >conftest.
$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3791 cat confdefs.h
>>conftest.
$ac_ext
3792 cat >>conftest.
$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char $ac_func (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3799 # include <limits.h>
3801 # include <assert.h>
3803 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 char (*f) () = $ac_func;
3826 return f != $ac_func;
3831 rm -f conftest.
$ac_objext conftest
$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try
='test -s conftest$ac_exeext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 eval "$as_ac_var=yes"
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.
$ac_ext >&5
3848 eval "$as_ac_var=no"
3850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855 cat >>confdefs.h
<<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3858 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS hostid" MAN
="$MAN hostid.1"
3864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 ac_check_lib_save_LIBS
=$LIBS
3870 LIBS
="-lcposix $LIBS"
3871 cat >conftest.
$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3875 cat confdefs.h
>>conftest.
$ac_ext
3876 cat >>conftest.
$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3894 rm -f conftest.
$ac_objext conftest
$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896 (eval $ac_link) 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try
='test -s conftest$ac_exeext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_lib_cposix_strerror
=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.
$ac_ext >&5
3911 ac_cv_lib_cposix_strerror
=no
3913 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3914 LIBS
=$ac_check_lib_save_LIBS
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919 LIBS
="$LIBS -lcposix"
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926 enableval
="$enable_largefile"
3929 if test "$enable_largefile" != no
; then
3931 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_sys_largefile_CC
=no
3937 if test "$GCC" != yes; then
3940 # IRIX 6.2 and later do not support large files by default,
3941 # so use the C compiler's -n32 option if that helps.
3942 cat >conftest.
$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3946 cat confdefs.h
>>conftest.
$ac_ext
3947 cat >>conftest.
$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
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
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.
$ac_ext >&5
3984 rm -f conftest.
$ac_objext
3986 rm -f conftest.
$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try
='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_sys_largefile_CC
=' -n32'; break
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.
$ac_ext >&5
4004 rm -f conftest.
$ac_objext
4008 rm -f conftest.
$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013 if test "$ac_cv_sys_largefile_CC" != no
; then
4014 CC
=$CC$ac_cv_sys_largefile_CC
4017 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 ac_cv_sys_file_offset_bits
=no
4024 cat >conftest.
$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4028 cat confdefs.h
>>conftest.
$ac_ext
4029 cat >>conftest.
$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 /* Check that off_t can represent 2**63 - 1 correctly.
4033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034 since some C++ compilers masquerading as C compilers
4035 incorrectly reject 9223372036854775807. */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038 && LARGE_OFF_T % 2147483647 == 1)
4048 rm -f conftest.
$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try
='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.
$ac_ext >&5
4066 rm -f conftest.
$ac_objext conftest.
$ac_ext
4067 cat >conftest.
$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4071 cat confdefs.h
>>conftest.
$ac_ext
4072 cat >>conftest.
$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076 /* Check that off_t can represent 2**63 - 1 correctly.
4077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078 since some C++ compilers masquerading as C compilers
4079 incorrectly reject 9223372036854775807. */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082 && LARGE_OFF_T % 2147483647 == 1)
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try
='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_sys_file_offset_bits
=64; break
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.
$ac_ext >&5
4110 rm -f conftest.
$ac_objext conftest.
$ac_ext
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no
; then
4118 cat >>confdefs.h
<<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4124 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cv_sys_large_files
=no
4131 cat >conftest.
$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4135 cat confdefs.h
>>conftest.
$ac_ext
4136 cat >>conftest.
$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4155 rm -f conftest.
$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try
='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.
$ac_ext >&5
4173 rm -f conftest.
$ac_objext conftest.
$ac_ext
4174 cat >conftest.
$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4178 cat confdefs.h
>>conftest.
$ac_ext
4179 cat >>conftest.
$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183 /* Check that off_t can represent 2**63 - 1 correctly.
4184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185 since some C++ compilers masquerading as C compilers
4186 incorrectly reject 9223372036854775807. */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189 && LARGE_OFF_T % 2147483647 == 1)
4199 rm -f conftest.
$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try
='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_sys_large_files
=1; break
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4217 rm -f conftest.
$ac_objext conftest.
$ac_ext
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no
; then
4225 cat >>confdefs.h
<<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 am_cv_prog_cc_stdc
=no
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX -qlanglvl=ansi
4246 # Ultrix and OSF/1 -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions -Aa -D_HPUX_SOURCE
4249 # SVR4 -Xc -D__EXTENSIONS__
4250 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC
="$ac_save_CC $ac_arg"
4253 cat >conftest.
$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4278 s = g (p, va_arg (v,int));
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 rm -f conftest.
$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 am_cv_prog_cc_stdc
="$ac_arg"; break
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.
$ac_ext >&5
4317 rm -f conftest.
$ac_objext conftest.
$ac_ext
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324 echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4327 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4330 case "x$am_cv_prog_cc_stdc" in
4332 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no
; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4343 cat >>confdefs.h
<<\_ACEOF
4344 #define PROTOTYPES 1
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 U
=_ ANSI2KNR
=.
/ansi2knr
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.
$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4363 cat confdefs.h
>>conftest.
$ac_ext
4364 cat >>conftest.
$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4379 rm -f conftest.
$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try
='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 ac_cv_header_stdc
=yes
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.
$ac_ext >&5
4396 ac_cv_header_stdc
=no
4398 rm -f conftest.
$ac_objext conftest.
$ac_ext
4400 if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402 cat >conftest.
$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4406 cat confdefs.h
>>conftest.
$ac_ext
4407 cat >>conftest.
$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev
/null
2>&1; then
4416 ac_cv_header_stdc
=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.
$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev
/null
2>&1; then
4438 ac_cv_header_stdc
=no
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4449 cat >conftest.
$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4453 cat confdefs.h
>>conftest.
$ac_ext
4454 cat >>conftest.
$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4480 rm -f conftest
$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4498 ac_cv_header_stdc
=no
4500 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h
<<\_ACEOF
4509 #define STDC_HEADERS 1
4515 for ac_header
in string.h
4517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4527 # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.
$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 #include <$ac_header>
4540 rm -f conftest.
$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_header_compiler
=yes
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.
$ac_ext >&5
4557 ac_header_compiler
=no
4559 rm -f conftest.
$ac_objext conftest.
$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.
$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <$ac_header>
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1
>conftest.err
4580 cat conftest.err
>&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev
/null
; then
4583 if test -s conftest.err
; then
4584 ac_cpp_err
=$ac_c_preproc_warn_flag
4591 if test -z "$ac_cpp_err"; then
4592 ac_header_preproc
=yes
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.
$ac_ext >&5
4597 ac_header_preproc
=no
4599 rm -f conftest.err conftest.
$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4603 # So? What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4617 sed "s/^/$as_me: WARNING: /" >&2
4620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4633 sed "s/^/$as_me: WARNING: /" >&2
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 eval "$as_ac_Header=$ac_header_preproc"
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h
<<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.
$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4667 cat confdefs.h
>>conftest.
$ac_ext
4668 cat >>conftest.
$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4684 rm -f conftest.
$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try
='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.
$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4701 cat confdefs.h
>>conftest.
$ac_ext
4702 cat >>conftest.
$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4710 #if BYTE_ORDER != BIG_ENDIAN
4718 rm -f conftest.
$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try
='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_c_bigendian
=yes
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.
$ac_ext >&5
4735 ac_cv_c_bigendian
=no
4737 rm -f conftest.
$ac_objext conftest.
$ac_ext
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.
$ac_ext >&5
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744 # try to guess the endianness by grepping values into an object file
4745 ac_cv_c_bigendian
=unknown
4746 cat >conftest.
$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4762 _ascii (); _ebcdic ();
4767 rm -f conftest.
$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try
='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4780 ac_cv_c_bigendian
=yes
4782 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4783 if test "$ac_cv_c_bigendian" = unknown
; then
4784 ac_cv_c_bigendian
=no
4786 # finding both strings is unlikely to happen, but who knows?
4787 ac_cv_c_bigendian
=unknown
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.
$ac_ext >&5
4795 rm -f conftest.
$ac_objext conftest.
$ac_ext
4797 cat >conftest.
$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4801 cat confdefs.h
>>conftest.
$ac_ext
4802 cat >>conftest.
$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4807 /* Are we little or big endian? From Harbison&Steele. */
4811 char c[sizeof (long)];
4814 exit (u.c[sizeof (long) - 1] == 1);
4817 rm -f conftest
$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_c_bigendian
=no
4830 echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.
$ac_ext >&5
4835 ac_cv_c_bigendian
=yes
4837 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4840 rm -f conftest.
$ac_objext conftest.
$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4847 cat >>confdefs.h
<<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4854 { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 cat >conftest.
$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4877 /* FIXME: Include the comments suggested by Paul. */
4879 /* Ultrix mips cc rejects this. */
4880 typedef int charset[2];
4882 /* SunOS 4.1.1 cc rejects this. */
4883 char const *const *ccp;
4885 /* NEC SVR4.0.2 mips cc rejects this. */
4886 struct point {int x, y;};
4887 static struct point const zero = {0,0};
4888 /* AIX XL C 1.02.0.0 rejects this.
4889 It does not let you subtract one const X* pointer from another in
4890 an arm of an if-expression whose if-part is not a constant
4892 const char *g = "string";
4893 ccp = &g + (g ? g-g : 0);
4894 /* HPUX 7.0 cc rejects these. */
4897 ccp = (char const *const *) p;
4898 { /* SCO 3.2v4 cc rejects this. */
4900 char const *s = 0 ? (char *) 0 : (char const *) 0;
4904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4906 const int *foo = &x[0];
4909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910 typedef const int *iptr;
4914 { /* AIX XL C 1.02.0.0 rejects this saying
4915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916 struct s { int j; const int *ap[3]; };
4917 struct s *b; b->j = 5;
4919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4928 rm -f conftest.
$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try
='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4947 rm -f conftest.
$ac_objext conftest.
$ac_ext
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no
; then
4953 cat >>confdefs.h
<<\_ACEOF
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 cat >conftest.
$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4968 cat confdefs.h
>>conftest.
$ac_ext
4969 cat >>conftest.
$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4982 rm -f conftest.
$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try
='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_c_volatile
=yes
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
5001 rm -f conftest.
$ac_objext conftest.
$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no
; then
5007 cat >>confdefs.h
<<\_ACEOF
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 for ac_kw
in inline __inline__ __inline
; do
5020 cat >conftest.
$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5034 rm -f conftest.
$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try
='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_c_inline
=$ac_kw; break
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.
$ac_ext >&5
5052 rm -f conftest.
$ac_objext conftest.
$ac_ext
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5061 cat >>confdefs.h
<<\_ACEOF
5065 *) cat >>confdefs.h
<<_ACEOF
5066 #define inline $ac_cv_c_inline
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 cat >conftest.
$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5080 cat confdefs.h
>>conftest.
$ac_ext
5081 cat >>conftest.
$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5084 long double foo = 0.0;
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5089 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5097 rm -f conftest.
$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try
='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_cv_c_long_double
=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 ac_cv_c_long_double
=no
5116 rm -f conftest.
$ac_objext conftest.
$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5122 cat >>confdefs.h
<<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5216 # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.
$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5229 rm -f conftest.
$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try
='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_header_compiler
=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 ac_header_compiler
=no
5248 rm -f conftest.
$ac_objext conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.
$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5259 cat confdefs.h
>>conftest.
$ac_ext
5260 cat >>conftest.
$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1
>conftest.err
5269 cat conftest.err
>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev
/null
; then
5272 if test -s conftest.err
; then
5273 ac_cpp_err
=$ac_c_preproc_warn_flag
5280 if test -z "$ac_cpp_err"; then
5281 ac_header_preproc
=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.
$ac_ext >&5
5286 ac_header_preproc
=no
5288 rm -f conftest.err conftest.
$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5306 sed "s/^/$as_me: WARNING: /" >&2
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 eval "$as_ac_Header=$ac_header_preproc"
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h
<<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5353 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.
$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5378 rm -f conftest.
$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try
='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 eval "$as_ac_Header=yes"
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.
$ac_ext >&5
5395 eval "$as_ac_Header=no"
5397 rm -f conftest.
$ac_objext conftest.
$ac_ext
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h
<<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5406 ac_header_dirent
=$ac_hdr; break
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h
; then
5413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_func_search_save_LIBS
=$LIBS
5420 ac_cv_search_opendir
=no
5421 cat >conftest.
$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5444 rm -f conftest.
$ac_objext conftest
$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -s conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_search_opendir
='none required'
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5463 if test "$ac_cv_search_opendir" = no
; then
5464 for ac_lib
in dir
; do
5465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5466 cat >conftest.
$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5489 rm -f conftest.
$ac_objext conftest
$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try
='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_search_opendir
="-l$ac_lib"; break
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.
$ac_ext >&5
5507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5510 LIBS
=$ac_func_search_save_LIBS
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5516 if test "$ac_cv_search_opendir" = no
; then :
5519 if test "$ac_cv_search_opendir" = 'none required'; then :
5522 LIBS
="$ac_cv_search_opendir $LIBS"
5529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_func_search_save_LIBS
=$LIBS
5536 ac_cv_search_opendir
=no
5537 cat >conftest.
$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5541 cat confdefs.h
>>conftest.
$ac_ext
5542 cat >>conftest.
$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5560 rm -f conftest.
$ac_objext conftest
$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try
='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_search_opendir
='none required'
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.
$ac_ext >&5
5578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5579 if test "$ac_cv_search_opendir" = no
; then
5581 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5582 cat >conftest.
$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h
>>conftest.
$ac_ext
5587 cat >>conftest.
$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5605 rm -f conftest.
$ac_objext conftest
$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try
='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_search_opendir
="-l$ac_lib"; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.
$ac_ext >&5
5623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5626 LIBS
=$ac_func_search_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5632 if test "$ac_cv_search_opendir" = no
; then :
5635 if test "$ac_cv_search_opendir" = 'none required'; then :
5638 LIBS
="$ac_cv_search_opendir $LIBS"
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.
$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5654 cat confdefs.h
>>conftest.
$ac_ext
5655 cat >>conftest.
$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5668 rm -f conftest.
$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try
='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_member_struct_stat_st_blocks
=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.
$ac_ext >&5
5685 cat >conftest.
$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5689 cat confdefs.h
>>conftest.
$ac_ext
5690 cat >>conftest.
$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5703 rm -f conftest.
$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try
='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_member_struct_stat_st_blocks
=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.
$ac_ext >&5
5720 ac_cv_member_struct_stat_st_blocks
=no
5722 rm -f conftest.
$ac_objext conftest.
$ac_ext
5724 rm -f conftest.
$ac_objext conftest.
$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5730 cat >>confdefs.h
<<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5740 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cat >conftest.
$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5753 cat confdefs.h
>>conftest.
$ac_ext
5754 cat >>conftest.
$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5762 struct tm *tp; tp->tm_sec;
5767 rm -f conftest.
$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try
='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_struct_tm
=time.h
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 ac_cv_struct_tm
=sys
/time.h
5786 rm -f conftest.
$ac_objext conftest.
$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys
/time.h
; then
5792 cat >>confdefs.h
<<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.
$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5824 rm -f conftest.
$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_member_struct_tm_tm_zone
=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.
$ac_ext >&5
5841 cat >conftest.
$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5862 rm -f conftest.
$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_member_struct_tm_tm_zone
=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_cv_member_struct_tm_tm_zone
=no
5881 rm -f conftest.
$ac_objext conftest.
$ac_ext
5883 rm -f conftest.
$ac_objext conftest.
$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5889 cat >>confdefs.h
<<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5898 cat >>confdefs.h
<<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5903 echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 cat >conftest.
$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5912 cat confdefs.h
>>conftest.
$ac_ext
5913 cat >>conftest.
$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 #ifndef tzname /* For SGI. */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5928 rm -f conftest.
$ac_objext conftest
$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try
='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_var_tzname
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5947 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951 if test $ac_cv_var_tzname = yes; then
5953 cat >>confdefs.h
<<\_ACEOF
5954 #define HAVE_TZNAME 1
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 cat >conftest.
$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "You lose" >/dev
/null
2>&1; then
6002 ac_cv_header_stat_broken
=yes
6004 ac_cv_header_stat_broken
=no
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6013 cat >>confdefs.h
<<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 ac_save_CPPFLAGS
="$CPPFLAGS"
6025 ac_cv_struct_st_mtim_nsec
=no
6026 # tv_nsec -- the usual case
6027 # _tv_nsec -- Solaris 2.6, if
6028 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029 # && !defined __EXTENSIONS__)
6030 # st__tim.tv_nsec -- UnixWare 2.1.2
6031 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
6032 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033 cat >conftest.
$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6050 rm -f conftest.
$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try
='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_struct_st_mtim_nsec
=$ac_val; break
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.
$ac_ext >&5
6068 rm -f conftest.
$ac_objext conftest.
$ac_ext
6070 CPPFLAGS
="$ac_save_CPPFLAGS"
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6075 if test $ac_cv_struct_st_mtim_nsec != no
; then
6077 cat >>confdefs.h
<<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.
$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6101 struct stat s; s.st_dm_mode;
6106 rm -f conftest.
$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try
='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_struct_st_dm_mode
=yes
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.
$ac_ext >&5
6123 ac_cv_struct_st_dm_mode
=no
6125 rm -f conftest.
$ac_objext conftest.
$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6130 if test $ac_cv_struct_st_dm_mode = yes; then
6132 cat >>confdefs.h
<<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.
$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6148 cat confdefs.h
>>conftest.
$ac_ext
6149 cat >>conftest.
$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6158 if ((struct tm *) 0)
6164 rm -f conftest.
$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try
='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_header_time
=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.
$ac_ext >&5
6181 ac_cv_header_time
=no
6183 rm -f conftest.
$ac_objext conftest.
$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6189 cat >>confdefs.h
<<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6197 echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cat >conftest.
$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 # if TIME_WITH_SYS_TIME
6211 # include <sys/time.h>
6214 # if HAVE_SYS_TIME_H
6215 # include <sys/time.h>
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
6229 rm -f conftest.
$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try
='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 fu_cv_sys_struct_timespec
=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.
$ac_ext >&5
6246 fu_cv_sys_struct_timespec
=no
6248 rm -f conftest.
$ac_objext conftest.
$ac_ext
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6254 if test $fu_cv_sys_struct_timespec = yes; then
6256 cat >>confdefs.h
<<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 cat >conftest.
$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6271 cat confdefs.h
>>conftest.
$ac_ext
6272 cat >>conftest.
$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <sys/types.h>
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "uid_t" >/dev
/null
2>&1; then
6279 ac_cv_type_uid_t
=yes
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no
; then
6290 cat >>confdefs.h
<<\_ACEOF
6295 cat >>confdefs.h
<<\_ACEOF
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_type_getgroups
=cross
6309 cat >conftest.
$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6313 cat confdefs.h
>>conftest.
$ac_ext
6314 cat >>conftest.
$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 /* Thanks to Mike Rendell for this test. */
6317 #include <sys/types.h>
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6327 union { gid_t gval; long lval; } val;
6330 for (i = 0; i < NGID; i++)
6331 gidset[i] = val.gval;
6332 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6334 /* Exit non-zero if getgroups seems to require an array of ints. This
6335 happens when gid_t is short but getgroups modifies an array of ints. */
6336 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6339 rm -f conftest
$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_type_getgroups
=gid_t
6352 echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_cv_type_getgroups
=int
6359 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6361 if test $ac_cv_type_getgroups = cross
; then
6362 cat >conftest.
$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6374 ac_cv_type_getgroups
=gid_t
6376 ac_cv_type_getgroups
=int
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6385 cat >>confdefs.h
<<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 cat >conftest.
$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6399 cat confdefs.h
>>conftest.
$ac_ext
6400 cat >>conftest.
$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6408 if (sizeof (mode_t))
6414 rm -f conftest.
$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_type_mode_t
=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.
$ac_ext >&5
6431 ac_cv_type_mode_t
=no
6433 rm -f conftest.
$ac_objext conftest.
$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6441 cat >>confdefs.h
<<_ACEOF
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 cat >conftest.
$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6456 cat confdefs.h
>>conftest.
$ac_ext
6457 cat >>conftest.
$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6471 rm -f conftest.
$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try
='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_type_off_t
=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.
$ac_ext >&5
6490 rm -f conftest.
$ac_objext conftest.
$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6498 cat >>confdefs.h
<<_ACEOF
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.
$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6513 cat confdefs.h
>>conftest.
$ac_ext
6514 cat >>conftest.
$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
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_pid_t
=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6547 rm -f conftest.
$ac_objext conftest.
$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6555 cat >>confdefs.h
<<_ACEOF
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.
$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6570 cat confdefs.h
>>conftest.
$ac_ext
6571 cat >>conftest.
$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6581 void (*signal ()) ();
6592 rm -f conftest.
$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try
='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_type_signal
=void
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.
$ac_ext >&5
6609 ac_cv_type_signal
=int
6611 rm -f conftest.
$ac_objext conftest.
$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6616 cat >>confdefs.h
<<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 cat >conftest.
$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6630 cat confdefs.h
>>conftest.
$ac_ext
6631 cat >>conftest.
$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6639 if (sizeof (size_t))
6645 rm -f conftest.
$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try
='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_cv_type_size_t
=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.
$ac_ext >&5
6662 ac_cv_type_size_t
=no
6664 rm -f conftest.
$ac_objext conftest.
$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6672 cat >>confdefs.h
<<_ACEOF
6673 #define size_t unsigned
6679 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.
$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6688 cat confdefs.h
>>conftest.
$ac_ext
6689 cat >>conftest.
$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 unsigned long long ull = 1; int i = 63;
6695 unsigned long long ullmax = (unsigned long long) -1;
6696 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6701 rm -f conftest.
$ac_objext conftest
$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try
='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_type_unsigned_long_long
=yes
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.
$ac_ext >&5
6718 ac_cv_type_unsigned_long_long
=no
6720 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724 if test $ac_cv_type_unsigned_long_long = yes; then
6726 cat >>confdefs.h
<<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6734 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.
$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6743 cat confdefs.h
>>conftest.
$ac_ext
6744 cat >>conftest.
$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6750 if ((uintmax_t *) 0)
6752 if (sizeof (uintmax_t))
6758 rm -f conftest.
$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_type_uintmax_t
=yes
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.
$ac_ext >&5
6775 ac_cv_type_uintmax_t
=no
6777 rm -f conftest.
$ac_objext conftest.
$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6784 test $ac_cv_type_unsigned_long_long = yes \
6785 && ac_type
='unsigned long long' \
6786 || ac_type
='unsigned long'
6788 cat >>confdefs.h
<<_ACEOF
6789 #define uintmax_t $ac_type
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.
$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6811 return makedev(0, 0);
6816 rm -f conftest.
$ac_objext conftest
$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try
='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_header_sys_types_h_makedev
=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.
$ac_ext >&5
6833 ac_cv_header_sys_types_h_makedev
=no
6835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6841 if test $ac_cv_header_sys_types_h_makedev = no
; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6851 # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.
$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6864 rm -f conftest.
$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try
='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_header_compiler
=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.
$ac_ext >&5
6881 ac_header_compiler
=no
6883 rm -f conftest.
$ac_objext conftest.
$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.
$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6894 cat confdefs.h
>>conftest.
$ac_ext
6895 cat >>conftest.
$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/mkdev.h>
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6902 grep -v '^ *+' conftest.er1
>conftest.err
6904 cat conftest.err
>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } >/dev
/null
; then
6907 if test -s conftest.err
; then
6908 ac_cpp_err
=$ac_c_preproc_warn_flag
6915 if test -z "$ac_cpp_err"; then
6916 ac_header_preproc
=yes
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.
$ac_ext >&5
6921 ac_header_preproc
=no
6923 rm -f conftest.err conftest.
$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6927 # So? What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6930 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6941 sed "s/^/$as_me: WARNING: /" >&2
6944 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6957 sed "s/^/$as_me: WARNING: /" >&2
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6973 cat >>confdefs.h
<<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6981 if test $ac_cv_header_sys_mkdev_h = no
; then
6982 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6991 # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.
$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6998 cat confdefs.h
>>conftest.
$ac_ext
6999 cat >>conftest.
$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7004 rm -f conftest.
$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try
='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_header_compiler
=yes
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.
$ac_ext >&5
7021 ac_header_compiler
=no
7023 rm -f conftest.
$ac_objext conftest.
$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7034 cat confdefs.h
>>conftest.
$ac_ext
7035 cat >>conftest.
$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/sysmacros.h>
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1
>conftest.err
7044 cat conftest.err
>&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev
/null
; then
7047 if test -s conftest.err
; then
7048 ac_cpp_err
=$ac_c_preproc_warn_flag
7055 if test -z "$ac_cpp_err"; then
7056 ac_header_preproc
=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 ac_header_preproc
=no
7063 rm -f conftest.err conftest.
$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7067 # So? What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7070 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7081 sed "s/^/$as_me: WARNING: /" >&2
7084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7097 sed "s/^/$as_me: WARNING: /" >&2
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7113 cat >>confdefs.h
<<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7124 # for constant arguments. Useless!
7125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7127 if test "${ac_cv_working_alloca_h+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 cat >conftest.
$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7134 cat confdefs.h
>>conftest.
$ac_ext
7135 cat >>conftest.
$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7141 char *p = (char *) alloca (2 * sizeof (int));
7146 rm -f conftest.
$ac_objext conftest
$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try
='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_working_alloca_h
=yes
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.
$ac_ext >&5
7163 ac_cv_working_alloca_h
=no
7165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7168 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7169 if test $ac_cv_working_alloca_h = yes; then
7171 cat >>confdefs.h
<<\_ACEOF
7172 #define HAVE_ALLOCA_H 1
7177 echo "$as_me:$LINENO: checking for alloca" >&5
7178 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7179 if test "${ac_cv_func_alloca_works+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.
$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7186 cat confdefs.h
>>conftest.
$ac_ext
7187 cat >>conftest.
$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7190 # define alloca __builtin_alloca
7193 # include <malloc.h>
7194 # define alloca _alloca
7197 # include <alloca.h>
7202 # ifndef alloca /* predefined by HP cc +Olibcalls */
7213 char *p = (char *) alloca (1);
7218 rm -f conftest.
$ac_objext conftest
$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try
='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_func_alloca_works
=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7235 ac_cv_func_alloca_works
=no
7237 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7239 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7240 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7242 if test $ac_cv_func_alloca_works = yes; then
7244 cat >>confdefs.h
<<\_ACEOF
7245 #define HAVE_ALLOCA 1
7249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7250 # that cause trouble. Some versions do not even contain alloca or
7251 # contain a buggy version. If you still want to use their alloca,
7252 # use ar to extract alloca.o from them instead of compiling alloca.c.
7254 ALLOCA
=alloca.
$ac_objext
7256 cat >>confdefs.h
<<\_ACEOF
7261 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7262 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7263 if test "${ac_cv_os_cray+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.
$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7270 cat confdefs.h
>>conftest.
$ac_ext
7271 cat >>conftest.
$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #if defined(CRAY) && ! defined(CRAY2)
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "webecray" >/dev
/null
2>&1; then
7289 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7290 echo "${ECHO_T}$ac_cv_os_cray" >&6
7291 if test $ac_cv_os_cray = yes; then
7292 for ac_func
in _getb67 GETB67 getb67
; do
7293 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_func" >&5
7295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_var+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 cat >conftest.
$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7303 cat confdefs.h
>>conftest.
$ac_ext
7304 cat >>conftest.
$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 /* System header to define __stub macros and hopefully few prototypes,
7307 which can conflict with char $ac_func (); below.
7308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309 <limits.h> exists even on freestanding compilers. */
7311 # include <limits.h>
7313 # include <assert.h>
7315 /* Override any gcc2 internal prototype to avoid an error. */
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 char (*f) () = $ac_func;
7338 return f != $ac_func;
7343 rm -f conftest.
$ac_objext conftest
$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try
='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7360 eval "$as_ac_var=no"
7362 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7368 cat >>confdefs.h
<<_ACEOF
7369 #define CRAY_STACKSEG_END $ac_func
7378 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7379 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7380 if test "${ac_cv_c_stack_direction+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 if test "$cross_compiling" = yes; then
7384 ac_cv_c_stack_direction
=0
7386 cat >conftest.
$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7390 cat confdefs.h
>>conftest.
$ac_ext
7391 cat >>conftest.
$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7394 find_stack_direction ()
7396 static char *addr = 0;
7401 return find_stack_direction ();
7404 return (&dummy > addr) ? 1 : -1;
7410 exit (find_stack_direction () < 0);
7413 rm -f conftest
$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_c_stack_direction
=1
7426 echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.
$ac_ext >&5
7431 ac_cv_c_stack_direction
=-1
7433 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7439 cat >>confdefs.h
<<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7448 for ac_header
in limits.h
7450 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.
$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7467 cat confdefs.h
>>conftest.
$ac_ext
7468 cat >>conftest.
$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7471 #include <$ac_header>
7473 rm -f conftest.
$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475 (eval $ac_compile) 2>&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try
='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_header_compiler
=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7490 ac_header_compiler
=no
7492 rm -f conftest.
$ac_objext conftest.
$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6
7496 # Is the header present?
7497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7499 cat >conftest.
$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7503 cat confdefs.h
>>conftest.
$ac_ext
7504 cat >>conftest.
$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #include <$ac_header>
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1
>conftest.err
7513 cat conftest.err
>&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } >/dev
/null
; then
7516 if test -s conftest.err
; then
7517 ac_cpp_err
=$ac_c_preproc_warn_flag
7524 if test -z "$ac_cpp_err"; then
7525 ac_header_preproc
=yes
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.
$ac_ext >&5
7530 ac_header_preproc
=no
7532 rm -f conftest.err conftest.
$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7536 # So? What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7545 ## ------------------------------------ ##
7546 ## Report this to bug-autoconf@gnu.org. ##
7547 ## ------------------------------------ ##
7550 sed "s/^/$as_me: WARNING: /" >&2
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7561 ## ------------------------------------ ##
7562 ## Report this to bug-autoconf@gnu.org. ##
7563 ## ------------------------------------ ##
7566 sed "s/^/$as_me: WARNING: /" >&2
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 eval "$as_ac_Header=$ac_header_preproc"
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h
<<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7592 for ac_header
in string.h
7594 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.
$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7615 #include <$ac_header>
7617 rm -f conftest.
$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try
='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler
=yes
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.
$ac_ext >&5
7634 ac_header_compiler
=no
7636 rm -f conftest.
$ac_objext conftest.
$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.
$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7647 cat confdefs.h
>>conftest.
$ac_ext
7648 cat >>conftest.
$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <$ac_header>
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7655 grep -v '^ *+' conftest.er1
>conftest.err
7657 cat conftest.err
>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } >/dev
/null
; then
7660 if test -s conftest.err
; then
7661 ac_cpp_err
=$ac_c_preproc_warn_flag
7668 if test -z "$ac_cpp_err"; then
7669 ac_header_preproc
=yes
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.
$ac_ext >&5
7674 ac_header_preproc
=no
7676 rm -f conftest.err conftest.
$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7680 # So? What about this header?
7681 case $ac_header_compiler:$ac_header_preproc in
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7689 ## ------------------------------------ ##
7690 ## Report this to bug-autoconf@gnu.org. ##
7691 ## ------------------------------------ ##
7694 sed "s/^/$as_me: WARNING: /" >&2
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7705 ## ------------------------------------ ##
7706 ## Report this to bug-autoconf@gnu.org. ##
7707 ## ------------------------------------ ##
7710 sed "s/^/$as_me: WARNING: /" >&2
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 eval "$as_ac_Header=$ac_header_preproc"
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725 cat >>confdefs.h
<<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 for ac_header
in wchar.h
7738 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.
$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 #include <$ac_header>
7761 rm -f conftest.
$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try
='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler
=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.
$ac_ext >&5
7778 ac_header_compiler
=no
7780 rm -f conftest.
$ac_objext conftest.
$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7787 cat >conftest.
$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1
>conftest.err
7801 cat conftest.err
>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev
/null
; then
7804 if test -s conftest.err
; then
7805 ac_cpp_err
=$ac_c_preproc_warn_flag
7812 if test -z "$ac_cpp_err"; then
7813 ac_header_preproc
=yes
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.
$ac_ext >&5
7818 ac_header_preproc
=no
7820 rm -f conftest.err conftest.
$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7824 # So? What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7838 sed "s/^/$as_me: WARNING: /" >&2
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7854 sed "s/^/$as_me: WARNING: /" >&2
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 eval "$as_ac_Header=$ac_header_preproc"
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869 cat >>confdefs.h
<<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 for ac_header
in wctype.h
7882 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7892 # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.
$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7899 cat confdefs.h
>>conftest.
$ac_ext
7900 cat >>conftest.
$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 #include <$ac_header>
7905 rm -f conftest.
$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try
='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_header_compiler
=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.
$ac_ext >&5
7922 ac_header_compiler
=no
7924 rm -f conftest.
$ac_objext conftest.
$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7931 cat >conftest.
$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <$ac_header>
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev
/null
; then
7948 if test -s conftest.err
; then
7949 ac_cpp_err
=$ac_c_preproc_warn_flag
7956 if test -z "$ac_cpp_err"; then
7957 ac_header_preproc
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7962 ac_header_preproc
=no
7964 rm -f conftest.err conftest.
$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7968 # So? What about this header?
7969 case $ac_header_compiler:$ac_header_preproc in
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7977 ## ------------------------------------ ##
7978 ## Report this to bug-autoconf@gnu.org. ##
7979 ## ------------------------------------ ##
7982 sed "s/^/$as_me: WARNING: /" >&2
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7993 ## ------------------------------------ ##
7994 ## Report this to bug-autoconf@gnu.org. ##
7995 ## ------------------------------------ ##
7998 sed "s/^/$as_me: WARNING: /" >&2
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 eval "$as_ac_Header=$ac_header_preproc"
8008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8013 cat >>confdefs.h
<<_ACEOF
8014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 for ac_func
in isascii
8026 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 echo "$as_me:$LINENO: checking for $ac_func" >&5
8028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8029 if eval "test \"\${$as_ac_var+set}\" = set"; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 cat >conftest.
$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func (); below.
8041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042 <limits.h> exists even on freestanding compilers. */
8044 # include <limits.h>
8046 # include <assert.h>
8048 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 char (*f) () = $ac_func;
8071 return f != $ac_func;
8076 rm -f conftest.
$ac_objext conftest
$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "$as_ac_var=yes"
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.
$ac_ext >&5
8093 eval "$as_ac_var=no"
8095 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100 cat >>confdefs.h
<<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8110 for ac_func
in mempcpy
8112 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.
$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8130 # include <limits.h>
8132 # include <assert.h>
8134 /* Override any gcc2 internal prototype to avoid an error. */
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8148 char (*f) () = $ac_func;
8157 return f != $ac_func;
8162 rm -f conftest.
$ac_objext conftest
$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try
='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 eval "$as_ac_var=yes"
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.
$ac_ext >&5
8179 eval "$as_ac_var=no"
8181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186 cat >>confdefs.h
<<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8195 echo "$as_me:$LINENO: checking host operating system" >&5
8196 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8197 if test "${utils_cv_host_operating_system+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 # These operating system names do not use the default heuristic below.
8203 # They are in reverse order, so that more-specific prefixes come first.
8204 winnt
*) os
='Windows NT';;
8206 sysv
*) os
='Unix System V';;
8207 superux
*) os
='SUPER-UX';;
8208 sunos
*) os
='SunOS';;
8210 sco
*) os
='SCO Unix';;
8211 riscos
*) os
='RISC OS';;
8212 riscix
*) os
='RISCiX';;
8216 plan9
*) os
='Plan 9';;
8219 openbsd
*) os
='OpenBSD';;
8220 nsk
*) os
='NonStop Kernel';;
8221 nonstopux
*) os
='NonStop-UX';;
8222 netbsd
*) os
='NetBSD';;
8223 msdosdjgpp
*) os
='DJGPP';;
8224 mpeix
*) os
='MPE/iX';;
8226 mingw
*) os
='MinGW';;
8227 lynxos
*) os
='LynxOS';;
8228 linux
*) os
='GNU/Linux';;
8232 freebsd
*-gnu*) os
='GNU/FreeBSD';;
8233 freebsd
*) os
='FreeBSD';;
8235 bsdi
*) os
='BSD/OS';;
8239 atheos
*) os
='AtheOS';;
8240 amigaos
*) os
='Amiga OS';;
8243 # The default heuristic takes the initial alphabetic string
8244 # from $host_os, but capitalizes its first letter.
8247 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8249 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8253 # If $host_os does not start with an alphabetic string, use it unchanged.
8257 utils_cv_host_operating_system
=$os
8259 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8260 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8262 cat >>confdefs.h
<<_ACEOF
8263 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8267 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8268 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8269 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 # Arrange for deletion of the temporary directory this test might create.
8274 ac_clean_files
="$ac_clean_files confdir-slash"
8275 if test "$cross_compiling" = yes; then
8276 utils_cv_func_mkdir_trailing_slash_bug
=yes
8279 cat >conftest.
$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 # include <sys/types.h>
8288 # include <sys/stat.h>
8289 # include <stdlib.h>
8292 rmdir ("confdir-slash");
8293 exit (mkdir ("confdir-slash/", 0700));
8297 rm -f conftest
$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 utils_cv_func_mkdir_trailing_slash_bug
=no
8310 echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.
$ac_ext >&5
8315 utils_cv_func_mkdir_trailing_slash_bug
=yes
8317 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8322 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8323 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8325 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8326 LIBOBJS
="$LIBOBJS mkdir.$ac_objext"
8328 cat >>confdefs.h
<<\_ACEOF
8329 #define mkdir rpl_mkdir
8335 # getdate.y works with bison only.
8336 : ${YACC='bison -y'}
8340 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8341 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8342 # Check whether --enable-assert or --disable-assert was given.
8343 if test "${enable_assert+set}" = set; then
8344 enableval
="$enable_assert"
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8348 cat >>confdefs.h
<<\_ACEOF
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8360 for ac_header
in utime.h
8362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 # Is the header compilable?
8373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8375 cat >conftest.
$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8385 rm -f conftest.
$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try
='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_header_compiler
=yes
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.
$ac_ext >&5
8402 ac_header_compiler
=no
8404 rm -f conftest.
$ac_objext conftest.
$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8406 echo "${ECHO_T}$ac_header_compiler" >&6
8408 # Is the header present?
8409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8411 cat >conftest.
$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8415 cat confdefs.h
>>conftest.
$ac_ext
8416 cat >>conftest.
$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <$ac_header>
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1
>conftest.err
8425 cat conftest.err
>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev
/null
; then
8428 if test -s conftest.err
; then
8429 ac_cpp_err
=$ac_c_preproc_warn_flag
8436 if test -z "$ac_cpp_err"; then
8437 ac_header_preproc
=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.
$ac_ext >&5
8442 ac_header_preproc
=no
8444 rm -f conftest.err conftest.
$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6
8448 # So? What about this header?
8449 case $ac_header_compiler:$ac_header_preproc in
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8457 ## ------------------------------------ ##
8458 ## Report this to bug-autoconf@gnu.org. ##
8459 ## ------------------------------------ ##
8462 sed "s/^/$as_me: WARNING: /" >&2
8465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8473 ## ------------------------------------ ##
8474 ## Report this to bug-autoconf@gnu.org. ##
8475 ## ------------------------------------ ##
8478 sed "s/^/$as_me: WARNING: /" >&2
8481 echo "$as_me:$LINENO: checking for $ac_header" >&5
8482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 eval "$as_ac_Header=$ac_header_preproc"
8488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h
<<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8504 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.
$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8511 cat confdefs.h
>>conftest.
$ac_ext
8512 cat >>conftest.
$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 #ifdef TIME_WITH_SYS_TIME
8516 # include <sys/time.h>
8519 # ifdef HAVE_SYS_TIME_H
8520 # include <sys/time.h>
8532 static struct utimbuf x; x.actime = x.modtime;
8537 rm -f conftest.
$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 fu_cv_sys_struct_utimbuf
=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8554 fu_cv_sys_struct_utimbuf
=no
8556 rm -f conftest.
$ac_objext conftest.
$ac_ext
8559 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8560 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8562 if test $fu_cv_sys_struct_utimbuf = yes; then
8564 cat >>confdefs.h
<<\_ACEOF
8565 #define HAVE_STRUCT_UTIMBUF 1
8570 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8571 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8572 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 cat >conftest.
$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8579 cat confdefs.h
>>conftest.
$ac_ext
8580 cat >>conftest.
$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 #ifdef HAVE_DIRENT_H
8585 # include <dirent.h>
8586 #else /* not HAVE_DIRENT_H */
8587 # define dirent direct
8588 # ifdef HAVE_SYS_NDIR_H
8589 # include <sys/ndir.h>
8590 # endif /* HAVE_SYS_NDIR_H */
8591 # ifdef HAVE_SYS_DIR_H
8592 # include <sys/dir.h>
8593 # endif /* HAVE_SYS_DIR_H */
8596 # endif /* HAVE_NDIR_H */
8597 #endif /* HAVE_DIRENT_H */
8602 struct dirent dp; dp.d_type = 0;
8607 rm -f conftest.
$ac_objext conftest
$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try
='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 jm_cv_struct_dirent_d_type
=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.
$ac_ext >&5
8624 jm_cv_struct_dirent_d_type
=no
8626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8631 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8632 if test $jm_cv_struct_dirent_d_type = yes; then
8634 cat >>confdefs.h
<<\_ACEOF
8635 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8641 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8642 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8643 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.
$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h
>>conftest.
$ac_ext
8651 cat >>conftest.
$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #ifdef HAVE_DIRENT_H
8656 # include <dirent.h>
8657 #else /* not HAVE_DIRENT_H */
8658 # define dirent direct
8659 # ifdef HAVE_SYS_NDIR_H
8660 # include <sys/ndir.h>
8661 # endif /* HAVE_SYS_NDIR_H */
8662 # ifdef HAVE_SYS_DIR_H
8663 # include <sys/dir.h>
8664 # endif /* HAVE_SYS_DIR_H */
8667 # endif /* HAVE_NDIR_H */
8668 #endif /* HAVE_DIRENT_H */
8673 struct dirent dp; dp.d_ino = 0;
8678 rm -f conftest.
$ac_objext conftest
$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try
='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 jm_cv_struct_dirent_d_ino
=yes
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.
$ac_ext >&5
8695 jm_cv_struct_dirent_d_ino
=no
8697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8701 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8702 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8703 if test $jm_cv_struct_dirent_d_ino = yes; then
8705 cat >>confdefs.h
<<\_ACEOF
8706 #define D_INO_IN_DIRENT 1
8724 for ac_header
in grp.h memory.h
pwd.h string.h
strings.h stdlib.h \
8725 unistd.h sys
/time.h utmp.h utmpx.h
8727 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729 echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8737 # Is the header compilable?
8738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8740 cat >conftest.
$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8744 cat confdefs.h
>>conftest.
$ac_ext
8745 cat >>conftest.
$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 $ac_includes_default
8748 #include <$ac_header>
8750 rm -f conftest.
$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try
='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_header_compiler
=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.
$ac_ext >&5
8767 ac_header_compiler
=no
8769 rm -f conftest.
$ac_objext conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771 echo "${ECHO_T}$ac_header_compiler" >&6
8773 # Is the header present?
8774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776 cat >conftest.
$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <$ac_header>
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1
>conftest.err
8790 cat conftest.err
>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev
/null
; then
8793 if test -s conftest.err
; then
8794 ac_cpp_err
=$ac_c_preproc_warn_flag
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc
=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.
$ac_ext >&5
8807 ac_header_preproc
=no
8809 rm -f conftest.err conftest.
$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6
8813 # So? What about this header?
8814 case $ac_header_compiler:$ac_header_preproc in
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8822 ## ------------------------------------ ##
8823 ## Report this to bug-autoconf@gnu.org. ##
8824 ## ------------------------------------ ##
8827 sed "s/^/$as_me: WARNING: /" >&2
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8838 ## ------------------------------------ ##
8839 ## Report this to bug-autoconf@gnu.org. ##
8840 ## ------------------------------------ ##
8843 sed "s/^/$as_me: WARNING: /" >&2
8846 echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 eval "$as_ac_Header=$ac_header_preproc"
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858 cat >>confdefs.h
<<_ACEOF
8859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8873 # if !STDC_HEADERS && HAVE_MEMORY_H
8874 # include <memory.h>
8876 # include <string.h>
8879 # include <strings.h>
8883 # include <stdlib.h>
8886 # include <unistd.h>
8889 #include <sys/types.h>
8890 #if TIME_WITH_SYS_TIME
8891 # include <sys/time.h>
8894 # if HAVE_SYS_TIME_H
8895 # include <sys/time.h>
8914 echo "$as_me:$LINENO: checking whether free is declared" >&5
8915 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8916 if test "${ac_cv_have_decl_free+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.
$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8923 cat confdefs.h
>>conftest.
$ac_ext
8924 cat >>conftest.
$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8932 char *p = (char *) free;
8939 rm -f conftest.
$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_have_decl_free
=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8956 ac_cv_have_decl_free
=no
8958 rm -f conftest.
$ac_objext conftest.
$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8961 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8962 if test $ac_cv_have_decl_free = yes; then
8964 cat >>confdefs.h
<<_ACEOF
8965 #define HAVE_DECL_FREE 1
8970 cat >>confdefs.h
<<_ACEOF
8971 #define HAVE_DECL_FREE 0
8976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8978 if test "${ac_cv_have_decl_getenv+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 cat >conftest.
$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8994 char *p = (char *) getenv;
9001 rm -f conftest.
$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try
='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_have_decl_getenv
=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.
$ac_ext >&5
9018 ac_cv_have_decl_getenv
=no
9020 rm -f conftest.
$ac_objext conftest.
$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9024 if test $ac_cv_have_decl_getenv = yes; then
9026 cat >>confdefs.h
<<_ACEOF
9027 #define HAVE_DECL_GETENV 1
9032 cat >>confdefs.h
<<_ACEOF
9033 #define HAVE_DECL_GETENV 0
9038 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9039 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9040 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 cat >conftest.
$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9047 cat confdefs.h
>>conftest.
$ac_ext
9048 cat >>conftest.
$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9056 char *p = (char *) geteuid;
9063 rm -f conftest.
$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try
='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_decl_geteuid
=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9080 ac_cv_have_decl_geteuid
=no
9082 rm -f conftest.
$ac_objext conftest.
$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9085 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9086 if test $ac_cv_have_decl_geteuid = yes; then
9088 cat >>confdefs.h
<<_ACEOF
9089 #define HAVE_DECL_GETEUID 1
9094 cat >>confdefs.h
<<_ACEOF
9095 #define HAVE_DECL_GETEUID 0
9100 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9101 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9102 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.
$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9109 cat confdefs.h
>>conftest.
$ac_ext
9110 cat >>conftest.
$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9118 char *p = (char *) getgrgid;
9125 rm -f conftest.
$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try
='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_have_decl_getgrgid
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_cv_have_decl_getgrgid
=no
9144 rm -f conftest.
$ac_objext conftest.
$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9147 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9148 if test $ac_cv_have_decl_getgrgid = yes; then
9150 cat >>confdefs.h
<<_ACEOF
9151 #define HAVE_DECL_GETGRGID 1
9156 cat >>confdefs.h
<<_ACEOF
9157 #define HAVE_DECL_GETGRGID 0
9162 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9163 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9164 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.
$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9171 cat confdefs.h
>>conftest.
$ac_ext
9172 cat >>conftest.
$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9180 char *p = (char *) getlogin;
9187 rm -f conftest.
$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try
='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_have_decl_getlogin
=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9204 ac_cv_have_decl_getlogin
=no
9206 rm -f conftest.
$ac_objext conftest.
$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9210 if test $ac_cv_have_decl_getlogin = yes; then
9212 cat >>confdefs.h
<<_ACEOF
9213 #define HAVE_DECL_GETLOGIN 1
9218 cat >>confdefs.h
<<_ACEOF
9219 #define HAVE_DECL_GETLOGIN 0
9224 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9225 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9226 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9233 cat confdefs.h
>>conftest.
$ac_ext
9234 cat >>conftest.
$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9242 char *p = (char *) getpwuid;
9249 rm -f conftest.
$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try
='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_have_decl_getpwuid
=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.
$ac_ext >&5
9266 ac_cv_have_decl_getpwuid
=no
9268 rm -f conftest.
$ac_objext conftest.
$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9271 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9272 if test $ac_cv_have_decl_getpwuid = yes; then
9274 cat >>confdefs.h
<<_ACEOF
9275 #define HAVE_DECL_GETPWUID 1
9280 cat >>confdefs.h
<<_ACEOF
9281 #define HAVE_DECL_GETPWUID 0
9286 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9287 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_getuid+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.
$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9295 cat confdefs.h
>>conftest.
$ac_ext
9296 cat >>conftest.
$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9304 char *p = (char *) getuid;
9311 rm -f conftest.
$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try
='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_have_decl_getuid
=yes
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.
$ac_ext >&5
9328 ac_cv_have_decl_getuid
=no
9330 rm -f conftest.
$ac_objext conftest.
$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9334 if test $ac_cv_have_decl_getuid = yes; then
9336 cat >>confdefs.h
<<_ACEOF
9337 #define HAVE_DECL_GETUID 1
9342 cat >>confdefs.h
<<_ACEOF
9343 #define HAVE_DECL_GETUID 0
9348 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9349 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9350 if test "${ac_cv_have_decl_getutent+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.
$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9366 char *p = (char *) getutent;
9373 rm -f conftest.
$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try
='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_have_decl_getutent
=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.
$ac_ext >&5
9390 ac_cv_have_decl_getutent
=no
9392 rm -f conftest.
$ac_objext conftest.
$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9395 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9396 if test $ac_cv_have_decl_getutent = yes; then
9398 cat >>confdefs.h
<<_ACEOF
9399 #define HAVE_DECL_GETUTENT 1
9404 cat >>confdefs.h
<<_ACEOF
9405 #define HAVE_DECL_GETUTENT 0
9410 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9411 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_lseek+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 cat >conftest.
$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9419 cat confdefs.h
>>conftest.
$ac_ext
9420 cat >>conftest.
$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9428 char *p = (char *) lseek;
9435 rm -f conftest.
$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try
='test -s conftest.$ac_objext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_have_decl_lseek
=yes
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.
$ac_ext >&5
9452 ac_cv_have_decl_lseek
=no
9454 rm -f conftest.
$ac_objext conftest.
$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9457 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9458 if test $ac_cv_have_decl_lseek = yes; then
9460 cat >>confdefs.h
<<_ACEOF
9461 #define HAVE_DECL_LSEEK 1
9466 cat >>confdefs.h
<<_ACEOF
9467 #define HAVE_DECL_LSEEK 0
9472 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9473 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9474 if test "${ac_cv_have_decl_malloc+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cat >conftest.
$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9481 cat confdefs.h
>>conftest.
$ac_ext
9482 cat >>conftest.
$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9490 char *p = (char *) malloc;
9497 rm -f conftest.
$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499 (eval $ac_compile) 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try
='test -s conftest.$ac_objext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_have_decl_malloc
=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.
$ac_ext >&5
9514 ac_cv_have_decl_malloc
=no
9516 rm -f conftest.
$ac_objext conftest.
$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9519 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9520 if test $ac_cv_have_decl_malloc = yes; then
9522 cat >>confdefs.h
<<_ACEOF
9523 #define HAVE_DECL_MALLOC 1
9528 cat >>confdefs.h
<<_ACEOF
9529 #define HAVE_DECL_MALLOC 0
9534 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9535 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9536 if test "${ac_cv_have_decl_memchr+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.
$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9543 cat confdefs.h
>>conftest.
$ac_ext
9544 cat >>conftest.
$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9552 char *p = (char *) memchr;
9559 rm -f conftest.
$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try
='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_have_decl_memchr
=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.
$ac_ext >&5
9576 ac_cv_have_decl_memchr
=no
9578 rm -f conftest.
$ac_objext conftest.
$ac_ext
9580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9581 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9582 if test $ac_cv_have_decl_memchr = yes; then
9584 cat >>confdefs.h
<<_ACEOF
9585 #define HAVE_DECL_MEMCHR 1
9590 cat >>confdefs.h
<<_ACEOF
9591 #define HAVE_DECL_MEMCHR 0
9596 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9597 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9598 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.
$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9614 char *p = (char *) memrchr;
9621 rm -f conftest.
$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try
='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_have_decl_memrchr
=yes
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.
$ac_ext >&5
9638 ac_cv_have_decl_memrchr
=no
9640 rm -f conftest.
$ac_objext conftest.
$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9643 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9644 if test $ac_cv_have_decl_memrchr = yes; then
9646 cat >>confdefs.h
<<_ACEOF
9647 #define HAVE_DECL_MEMRCHR 1
9652 cat >>confdefs.h
<<_ACEOF
9653 #define HAVE_DECL_MEMRCHR 0
9658 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9659 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9660 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9667 cat confdefs.h
>>conftest.
$ac_ext
9668 cat >>conftest.
$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9676 char *p = (char *) nanosleep;
9683 rm -f conftest.
$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try
='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_have_decl_nanosleep
=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.
$ac_ext >&5
9700 ac_cv_have_decl_nanosleep
=no
9702 rm -f conftest.
$ac_objext conftest.
$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9705 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9706 if test $ac_cv_have_decl_nanosleep = yes; then
9708 cat >>confdefs.h
<<_ACEOF
9709 #define HAVE_DECL_NANOSLEEP 1
9714 cat >>confdefs.h
<<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 0
9720 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9721 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9722 if test "${ac_cv_have_decl_realloc+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.
$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9729 cat confdefs.h
>>conftest.
$ac_ext
9730 cat >>conftest.
$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9738 char *p = (char *) realloc;
9745 rm -f conftest.
$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try
='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_have_decl_realloc
=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.
$ac_ext >&5
9762 ac_cv_have_decl_realloc
=no
9764 rm -f conftest.
$ac_objext conftest.
$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9768 if test $ac_cv_have_decl_realloc = yes; then
9770 cat >>confdefs.h
<<_ACEOF
9771 #define HAVE_DECL_REALLOC 1
9776 cat >>confdefs.h
<<_ACEOF
9777 #define HAVE_DECL_REALLOC 0
9782 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9783 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9784 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.
$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9791 cat confdefs.h
>>conftest.
$ac_ext
9792 cat >>conftest.
$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9800 char *p = (char *) stpcpy;
9807 rm -f conftest.
$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try
='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_have_decl_stpcpy
=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.
$ac_ext >&5
9824 ac_cv_have_decl_stpcpy
=no
9826 rm -f conftest.
$ac_objext conftest.
$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9829 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9830 if test $ac_cv_have_decl_stpcpy = yes; then
9832 cat >>confdefs.h
<<_ACEOF
9833 #define HAVE_DECL_STPCPY 1
9838 cat >>confdefs.h
<<_ACEOF
9839 #define HAVE_DECL_STPCPY 0
9844 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9845 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9846 if test "${ac_cv_have_decl_strndup+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 cat >conftest.
$ac_ext <<_ACEOF
9850 #line $LINENO "configure"
9853 cat confdefs.h
>>conftest.
$ac_ext
9854 cat >>conftest.
$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9862 char *p = (char *) strndup;
9869 rm -f conftest.
$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try
='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_have_decl_strndup
=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.
$ac_ext >&5
9886 ac_cv_have_decl_strndup
=no
9888 rm -f conftest.
$ac_objext conftest.
$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9892 if test $ac_cv_have_decl_strndup = yes; then
9894 cat >>confdefs.h
<<_ACEOF
9895 #define HAVE_DECL_STRNDUP 1
9900 cat >>confdefs.h
<<_ACEOF
9901 #define HAVE_DECL_STRNDUP 0
9906 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9907 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 cat >conftest.
$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9915 cat confdefs.h
>>conftest.
$ac_ext
9916 cat >>conftest.
$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9924 char *p = (char *) strnlen;
9931 rm -f conftest.
$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try
='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_have_decl_strnlen
=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.
$ac_ext >&5
9948 ac_cv_have_decl_strnlen
=no
9950 rm -f conftest.
$ac_objext conftest.
$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9953 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9954 if test $ac_cv_have_decl_strnlen = yes; then
9956 cat >>confdefs.h
<<_ACEOF
9957 #define HAVE_DECL_STRNLEN 1
9962 cat >>confdefs.h
<<_ACEOF
9963 #define HAVE_DECL_STRNLEN 0
9968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9970 if test "${ac_cv_have_decl_strstr+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 cat >conftest.
$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9977 cat confdefs.h
>>conftest.
$ac_ext
9978 cat >>conftest.
$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9986 char *p = (char *) strstr;
9993 rm -f conftest.
$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try
='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_have_decl_strstr
=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 ac_cv_have_decl_strstr
=no
10012 rm -f conftest.
$ac_objext conftest.
$ac_ext
10014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10016 if test $ac_cv_have_decl_strstr = yes; then
10018 cat >>confdefs.h
<<_ACEOF
10019 #define HAVE_DECL_STRSTR 1
10024 cat >>confdefs.h
<<_ACEOF
10025 #define HAVE_DECL_STRSTR 0
10030 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10031 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10032 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.
$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
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
10098 #line $LINENO "configure"
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10110 char *p = (char *) strtoull;
10117 rm -f conftest.
$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 (eval $ac_compile) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try
='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_have_decl_strtoull
=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.
$ac_ext >&5
10134 ac_cv_have_decl_strtoull
=no
10136 rm -f conftest.
$ac_objext conftest.
$ac_ext
10138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10139 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10140 if test $ac_cv_have_decl_strtoull = yes; then
10142 cat >>confdefs.h
<<_ACEOF
10143 #define HAVE_DECL_STRTOULL 1
10148 cat >>confdefs.h
<<_ACEOF
10149 #define HAVE_DECL_STRTOULL 0
10154 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10155 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.
$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10172 char *p = (char *) ttyname;
10179 rm -f conftest.
$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try
='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_have_decl_ttyname
=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.
$ac_ext >&5
10196 ac_cv_have_decl_ttyname
=no
10198 rm -f conftest.
$ac_objext conftest.
$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10201 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10202 if test $ac_cv_have_decl_ttyname = yes; then
10204 cat >>confdefs.h
<<_ACEOF
10205 #define HAVE_DECL_TTYNAME 1
10210 cat >>confdefs.h
<<_ACEOF
10211 #define HAVE_DECL_TTYNAME 0
10219 echo "$as_me:$LINENO: checking for long file names" >&5
10220 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10221 if test "${ac_cv_sys_long_file_names+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_cv_sys_long_file_names
=yes
10225 # Test for long file names in all the places we know might matter:
10226 # . the current directory, where building will happen
10227 # $prefix/lib where we will be installing things
10228 # $exec_prefix/lib likewise
10229 # eval it to expand exec_prefix.
10230 # $TMPDIR if set, where it might want to write temporary files
10231 # if $TMPDIR is not set:
10232 # /tmp where it might want to write temporary files
10233 # /var/tmp likewise
10234 # /usr/tmp likewise
10235 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10238 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
10240 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10241 test -d $ac_dir ||
continue
10242 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
10243 ac_xdir
=$ac_dir/cf$$
10244 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
10245 ac_tf1
=$ac_xdir/conftest9012345
10246 ac_tf2
=$ac_xdir/conftest9012346
10247 (echo 1 >$ac_tf1) 2>/dev
/null
10248 (echo 2 >$ac_tf2) 2>/dev
/null
10249 ac_val
=`cat $ac_tf1 2>/dev/null`
10250 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
10251 ac_cv_sys_long_file_names
=no
10252 rm -rf $ac_xdir 2>/dev
/null
10255 rm -rf $ac_xdir 2>/dev
/null
10258 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10259 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10260 if test $ac_cv_sys_long_file_names = yes; then
10262 cat >>confdefs.h
<<\_ACEOF
10263 #define HAVE_LONG_FILE_NAMES 1
10271 for ac_func
in pathconf
10273 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_var+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.
$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10283 cat confdefs.h
>>conftest.
$ac_ext
10284 cat >>conftest.
$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* System header to define __stub macros and hopefully few prototypes,
10287 which can conflict with char $ac_func (); below.
10288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289 <limits.h> exists even on freestanding compilers. */
10291 # include <limits.h>
10293 # include <assert.h>
10295 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10309 char (*f) () = $ac_func;
10318 return f != $ac_func;
10323 rm -f conftest.
$ac_objext conftest
$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try
='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 eval "$as_ac_var=yes"
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.
$ac_ext >&5
10340 eval "$as_ac_var=no"
10342 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10346 if test `eval echo '${'$as_ac_var'}'` = yes; then
10347 cat >>confdefs.h
<<_ACEOF
10348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10357 for ac_header
in limits.h string.h unistd.h
10359 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369 # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.
$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10376 cat confdefs.h
>>conftest.
$ac_ext
10377 cat >>conftest.
$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10380 #include <$ac_header>
10382 rm -f conftest.
$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try
='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_header_compiler
=yes
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.
$ac_ext >&5
10399 ac_header_compiler
=no
10401 rm -f conftest.
$ac_objext conftest.
$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 echo "${ECHO_T}$ac_header_compiler" >&6
10405 # Is the header present?
10406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10408 cat >conftest.
$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10412 cat confdefs.h
>>conftest.
$ac_ext
10413 cat >>conftest.
$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <$ac_header>
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1
>conftest.err
10422 cat conftest.err
>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev
/null
; then
10425 if test -s conftest.err
; then
10426 ac_cpp_err
=$ac_c_preproc_warn_flag
10433 if test -z "$ac_cpp_err"; then
10434 ac_header_preproc
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_header_preproc
=no
10441 rm -f conftest.err conftest.
$ac_ext
10442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 echo "${ECHO_T}$ac_header_preproc" >&6
10445 # So? What about this header?
10446 case $ac_header_compiler:$ac_header_preproc in
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10454 ## ------------------------------------ ##
10455 ## Report this to bug-autoconf@gnu.org. ##
10456 ## ------------------------------------ ##
10459 sed "s/^/$as_me: WARNING: /" >&2
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470 ## ------------------------------------ ##
10471 ## Report this to bug-autoconf@gnu.org. ##
10472 ## ------------------------------------ ##
10475 sed "s/^/$as_me: WARNING: /" >&2
10478 echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 eval "$as_ac_Header=$ac_header_preproc"
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490 cat >>confdefs.h
<<_ACEOF
10491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 # for STACK_DIRECTION
10502 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10503 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10504 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 if test "$cross_compiling" = yes; then
10508 ac_cv_sys_xsi_stack_overflow_heuristic
=cross-compiling
10510 cat >conftest.
$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10514 cat confdefs.h
>>conftest.
$ac_ext
10515 cat >>conftest.
$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10518 #include <unistd.h>
10519 #include <signal.h>
10520 #include <ucontext.h>
10524 char buffer[SIGSTKSZ];
10528 } alternate_signal_stack;
10530 #if STACK_DIRECTION
10531 # define find_stack_direction(ptr) STACK_DIRECTION
10534 find_stack_direction (char const *addr)
10537 return (! addr ? find_stack_direction (&dummy)
10538 : addr < &dummy ? 1 : -1);
10543 segv_handler (int signo, siginfo_t *info, void *context)
10545 if (0 < info->si_code)
10547 ucontext_t const *user_context = context;
10548 char const *stack_min = user_context->uc_stack.ss_sp;
10549 size_t stack_size = user_context->uc_stack.ss_size;
10550 char const *faulting_address = info->si_addr;
10551 size_t s = faulting_address - stack_min;
10552 size_t page_size = sysconf (_SC_PAGESIZE);
10553 if (find_stack_direction (0) < 0)
10555 if (s < stack_size + page_size)
10563 c_stack_action (void)
10566 struct sigaction act;
10570 st.ss_sp = alternate_signal_stack.buffer;
10571 st.ss_size = sizeof alternate_signal_stack.buffer;
10572 r = sigaltstack (&st, 0);
10576 sigemptyset (&act.sa_mask);
10577 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10578 act.sa_sigaction = segv_handler;
10579 return sigaction (SIGSEGV, &act, 0);
10587 return *p + recurse (array);
10594 return recurse ("\1");
10598 rm -f conftest
$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600 (eval $ac_link) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_sys_xsi_stack_overflow_heuristic
=yes
10611 echo "$as_me: program exited with status $ac_status" >&5
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.
$ac_ext >&5
10615 ( exit $ac_status )
10616 ac_cv_sys_xsi_stack_overflow_heuristic
=no
10618 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10622 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10624 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10626 cat >>confdefs.h
<<\_ACEOF
10627 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10633 # for STACK_DIRECTION
10638 for ac_func
in getcontext sigaltstack
10640 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10641 echo "$as_me:$LINENO: checking for $ac_func" >&5
10642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_var+set}\" = set"; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.
$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10650 cat confdefs.h
>>conftest.
$ac_ext
10651 cat >>conftest.
$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10658 # include <limits.h>
10660 # include <assert.h>
10662 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10676 char (*f) () = $ac_func;
10685 return f != $ac_func;
10690 rm -f conftest.
$ac_objext 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); } &&
10696 { ac_try
='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 eval "$as_ac_var=yes"
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.
$ac_ext >&5
10707 eval "$as_ac_var=no"
10709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10713 if test `eval echo '${'$as_ac_var'}'` = yes; then
10714 cat >>confdefs.h
<<_ACEOF
10715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10721 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10722 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10723 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.
$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10730 cat confdefs.h
>>conftest.
$ac_ext
10731 cat >>conftest.
$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 #include <ucontext.h>
10739 char *p = (char *) getcontext;
10746 rm -f conftest.
$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try
='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_have_decl_getcontext
=yes
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.
$ac_ext >&5
10763 ac_cv_have_decl_getcontext
=no
10765 rm -f conftest.
$ac_objext conftest.
$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10768 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10769 if test $ac_cv_have_decl_getcontext = yes; then
10771 cat >>confdefs.h
<<_ACEOF
10772 #define HAVE_DECL_GETCONTEXT 1
10777 cat >>confdefs.h
<<_ACEOF
10778 #define HAVE_DECL_GETCONTEXT 0
10785 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10786 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10787 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.
$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10794 cat confdefs.h
>>conftest.
$ac_ext
10795 cat >>conftest.
$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <signal.h>
10802 #ifndef sigaltstack
10803 char *p = (char *) sigaltstack;
10810 rm -f conftest.
$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try
='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_have_decl_sigaltstack
=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.
$ac_ext >&5
10827 ac_cv_have_decl_sigaltstack
=no
10829 rm -f conftest.
$ac_objext conftest.
$ac_ext
10831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10832 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10833 if test $ac_cv_have_decl_sigaltstack = yes; then
10835 cat >>confdefs.h
<<_ACEOF
10836 #define HAVE_DECL_SIGALTSTACK 1
10841 cat >>confdefs.h
<<_ACEOF
10842 #define HAVE_DECL_SIGALTSTACK 0
10853 for ac_header
in sys
/resource.h ucontext.h unistd.h
10855 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857 echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10865 # Is the header compilable?
10866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10868 cat >conftest.
$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10872 cat confdefs.h
>>conftest.
$ac_ext
10873 cat >>conftest.
$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header>
10878 rm -f conftest.
$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try
='test -s conftest.$ac_objext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_header_compiler
=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.
$ac_ext >&5
10895 ac_header_compiler
=no
10897 rm -f conftest.
$ac_objext conftest.
$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6
10901 # Is the header present?
10902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10904 cat >conftest.
$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10908 cat confdefs.h
>>conftest.
$ac_ext
10909 cat >>conftest.
$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1
>conftest.err
10918 cat conftest.err
>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev
/null
; then
10921 if test -s conftest.err
; then
10922 ac_cpp_err
=$ac_c_preproc_warn_flag
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc
=yes
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.
$ac_ext >&5
10935 ac_header_preproc
=no
10937 rm -f conftest.err conftest.
$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc in
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10950 ## ------------------------------------ ##
10951 ## Report this to bug-autoconf@gnu.org. ##
10952 ## ------------------------------------ ##
10955 sed "s/^/$as_me: WARNING: /" >&2
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10966 ## ------------------------------------ ##
10967 ## Report this to bug-autoconf@gnu.org. ##
10968 ## ------------------------------------ ##
10971 sed "s/^/$as_me: WARNING: /" >&2
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 eval "$as_ac_Header=$ac_header_preproc"
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h
<<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10995 echo "$as_me:$LINENO: checking for stack_t" >&5
10996 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10997 if test "${ac_cv_type_stack_t+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.
$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11004 cat confdefs.h
>>conftest.
$ac_ext
11005 cat >>conftest.
$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <signal.h>
11014 if (sizeof (stack_t))
11020 rm -f conftest.
$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try
='test -s conftest.$ac_objext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 ac_cv_type_stack_t
=yes
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.
$ac_ext >&5
11037 ac_cv_type_stack_t
=no
11039 rm -f conftest.
$ac_objext conftest.
$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11042 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11043 if test $ac_cv_type_stack_t = yes; then
11045 cat >>confdefs.h
<<_ACEOF
11046 #define HAVE_STACK_T 1
11054 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11055 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11056 if test "${ac_cv_search_gethostbyname+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 ac_func_search_save_LIBS
=$LIBS
11061 ac_cv_search_gethostbyname
=no
11062 cat >conftest.
$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11066 cat confdefs.h
>>conftest.
$ac_ext
11067 cat >>conftest.
$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 /* Override any gcc2 internal prototype to avoid an error. */
11074 /* We use char because int might match the return type of a gcc2
11075 builtin and then its argument prototype would still apply. */
11076 char gethostbyname ();
11085 rm -f conftest.
$ac_objext conftest
$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try
='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_search_gethostbyname
='none required'
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.
$ac_ext >&5
11103 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11104 if test "$ac_cv_search_gethostbyname" = no
; then
11105 for ac_lib
in inet nsl
; do
11106 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11107 cat >conftest.
$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11111 cat confdefs.h
>>conftest.
$ac_ext
11112 cat >>conftest.
$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11115 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char gethostbyname ();
11130 rm -f conftest.
$ac_objext conftest
$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try
='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_search_gethostbyname
="-l$ac_lib"; break
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.
$ac_ext >&5
11148 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11151 LIBS
=$ac_func_search_save_LIBS
11154 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11155 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11157 if test "$ac_cv_search_gethostbyname" = no
; then :
11160 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11163 LIBS
="$ac_cv_search_gethostbyname $LIBS"
11172 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
11174 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 echo "$as_me:$LINENO: checking for $ac_func" >&5
11176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_var+set}\" = set"; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.
$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11184 cat confdefs.h
>>conftest.
$ac_ext
11185 cat >>conftest.
$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11192 # include <limits.h>
11194 # include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error. */
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11204 /* The GNU C library defines this for functions which it implements
11205 to always fail with ENOSYS. Some functions are actually named
11206 something starting with __ and the normal name is an alias. */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11210 char (*f) () = $ac_func;
11219 return f != $ac_func;
11224 rm -f conftest.
$ac_objext conftest
$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try
='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "$as_ac_var=yes"
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.
$ac_ext >&5
11241 eval "$as_ac_var=no"
11243 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248 cat >>confdefs.h
<<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11262 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
11263 netinet
/in.h arpa
/inet.h
11265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11275 # Is the header compilable?
11276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11278 cat >conftest.
$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11282 cat confdefs.h
>>conftest.
$ac_ext
11283 cat >>conftest.
$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.
$ac_objext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290 (eval $ac_compile) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try
='test -s conftest.$ac_objext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_header_compiler
=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 ac_header_compiler
=no
11307 rm -f conftest.
$ac_objext conftest.
$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309 echo "${ECHO_T}$ac_header_compiler" >&6
11311 # Is the header present?
11312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11314 cat >conftest.
$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11318 cat confdefs.h
>>conftest.
$ac_ext
11319 cat >>conftest.
$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <$ac_header>
11323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11324 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11326 grep -v '^ *+' conftest.er1
>conftest.err
11328 cat conftest.err
>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev
/null
; then
11331 if test -s conftest.err
; then
11332 ac_cpp_err
=$ac_c_preproc_warn_flag
11339 if test -z "$ac_cpp_err"; then
11340 ac_header_preproc
=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.
$ac_ext >&5
11345 ac_header_preproc
=no
11347 rm -f conftest.err conftest.
$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc in
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11360 ## ------------------------------------ ##
11361 ## Report this to bug-autoconf@gnu.org. ##
11362 ## ------------------------------------ ##
11365 sed "s/^/$as_me: WARNING: /" >&2
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11376 ## ------------------------------------ ##
11377 ## Report this to bug-autoconf@gnu.org. ##
11378 ## ------------------------------------ ##
11381 sed "s/^/$as_me: WARNING: /" >&2
11384 echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 eval "$as_ac_Header=$ac_header_preproc"
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h
<<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 for ac_header
in string.h
11410 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11412 echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11420 # Is the header compilable?
11421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11423 cat >conftest.
$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11433 rm -f conftest.
$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try
='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_header_compiler
=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.
$ac_ext >&5
11450 ac_header_compiler
=no
11452 rm -f conftest.
$ac_objext conftest.
$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11454 echo "${ECHO_T}$ac_header_compiler" >&6
11456 # Is the header present?
11457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11459 cat >conftest.
$ac_ext <<_ACEOF
11460 #line $LINENO "configure"
11463 cat confdefs.h
>>conftest.
$ac_ext
11464 cat >>conftest.
$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <$ac_header>
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11471 grep -v '^ *+' conftest.er1
>conftest.err
11473 cat conftest.err
>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } >/dev
/null
; then
11476 if test -s conftest.err
; then
11477 ac_cpp_err
=$ac_c_preproc_warn_flag
11484 if test -z "$ac_cpp_err"; then
11485 ac_header_preproc
=yes
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.
$ac_ext >&5
11490 ac_header_preproc
=no
11492 rm -f conftest.err conftest.
$ac_ext
11493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11494 echo "${ECHO_T}$ac_header_preproc" >&6
11496 # So? What about this header?
11497 case $ac_header_compiler:$ac_header_preproc in
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11505 ## ------------------------------------ ##
11506 ## Report this to bug-autoconf@gnu.org. ##
11507 ## ------------------------------------ ##
11510 sed "s/^/$as_me: WARNING: /" >&2
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11521 ## ------------------------------------ ##
11522 ## Report this to bug-autoconf@gnu.org. ##
11523 ## ------------------------------------ ##
11526 sed "s/^/$as_me: WARNING: /" >&2
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 eval "$as_ac_Header=$ac_header_preproc"
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11541 cat >>confdefs.h
<<_ACEOF
11542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11554 for ac_func
in strerror vprintf doprnt
11556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11557 echo "$as_me:$LINENO: checking for $ac_func" >&5
11558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11559 if eval "test \"\${$as_ac_var+set}\" = set"; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 cat >conftest.
$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11566 cat confdefs.h
>>conftest.
$ac_ext
11567 cat >>conftest.
$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* System header to define __stub macros and hopefully few prototypes,
11570 which can conflict with char $ac_func (); below.
11571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572 <limits.h> exists even on freestanding compilers. */
11574 # include <limits.h>
11576 # include <assert.h>
11578 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11586 /* The GNU C library defines this for functions which it implements
11587 to always fail with ENOSYS. Some functions are actually named
11588 something starting with __ and the normal name is an alias. */
11589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592 char (*f) () = $ac_func;
11601 return f != $ac_func;
11606 rm -f conftest.
$ac_objext conftest
$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try
='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11623 eval "$as_ac_var=no"
11625 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11629 if test `eval echo '${'$as_ac_var'}'` = yes; then
11630 cat >>confdefs.h
<<_ACEOF
11631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11637 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11638 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11639 if test "${ac_cv_have_decl_strerror+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.
$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11646 cat confdefs.h
>>conftest.
$ac_ext
11647 cat >>conftest.
$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11654 char *p = (char *) strerror;
11661 rm -f conftest.
$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try
='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_have_decl_strerror
=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ac_cv_have_decl_strerror
=no
11680 rm -f conftest.
$ac_objext conftest.
$ac_ext
11682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11683 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11684 if test $ac_cv_have_decl_strerror = yes; then
11686 cat >>confdefs.h
<<_ACEOF
11687 #define HAVE_DECL_STRERROR 1
11692 cat >>confdefs.h
<<_ACEOF
11693 #define HAVE_DECL_STRERROR 0
11701 for ac_header
in libintl.h
11703 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705 echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11713 # Is the header compilable?
11714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11716 cat >conftest.
$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11720 cat confdefs.h
>>conftest.
$ac_ext
11721 cat >>conftest.
$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 $ac_includes_default
11724 #include <$ac_header>
11726 rm -f conftest.
$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try
='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_header_compiler
=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.
$ac_ext >&5
11743 ac_header_compiler
=no
11745 rm -f conftest.
$ac_objext conftest.
$ac_ext
11746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11747 echo "${ECHO_T}$ac_header_compiler" >&6
11749 # Is the header present?
11750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11752 cat >conftest.
$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11756 cat confdefs.h
>>conftest.
$ac_ext
11757 cat >>conftest.
$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <$ac_header>
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11764 grep -v '^ *+' conftest.er1
>conftest.err
11766 cat conftest.err
>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } >/dev
/null
; then
11769 if test -s conftest.err
; then
11770 ac_cpp_err
=$ac_c_preproc_warn_flag
11777 if test -z "$ac_cpp_err"; then
11778 ac_header_preproc
=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.
$ac_ext >&5
11783 ac_header_preproc
=no
11785 rm -f conftest.err conftest.
$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11787 echo "${ECHO_T}$ac_header_preproc" >&6
11789 # So? What about this header?
11790 case $ac_header_compiler:$ac_header_preproc in
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11798 ## ------------------------------------ ##
11799 ## Report this to bug-autoconf@gnu.org. ##
11800 ## ------------------------------------ ##
11803 sed "s/^/$as_me: WARNING: /" >&2
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11814 ## ------------------------------------ ##
11815 ## Report this to bug-autoconf@gnu.org. ##
11816 ## ------------------------------------ ##
11819 sed "s/^/$as_me: WARNING: /" >&2
11822 echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 eval "$as_ac_Header=$ac_header_preproc"
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834 cat >>confdefs.h
<<_ACEOF
11835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11842 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11843 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11844 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 cat >conftest.
$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11851 cat confdefs.h
>>conftest.
$ac_ext
11852 cat >>conftest.
$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11859 char *p = (char *) strerror_r;
11866 rm -f conftest.
$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try
='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_have_decl_strerror_r
=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.
$ac_ext >&5
11883 ac_cv_have_decl_strerror_r
=no
11885 rm -f conftest.
$ac_objext conftest.
$ac_ext
11887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11888 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11889 if test $ac_cv_have_decl_strerror_r = yes; then
11891 cat >>confdefs.h
<<_ACEOF
11892 #define HAVE_DECL_STRERROR_R 1
11897 cat >>confdefs.h
<<_ACEOF
11898 #define HAVE_DECL_STRERROR_R 0
11906 for ac_func
in strerror_r
11908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11911 if eval "test \"\${$as_ac_var+set}\" = set"; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 cat >conftest.
$ac_ext <<_ACEOF
11915 #line $LINENO "configure"
11918 cat confdefs.h
>>conftest.
$ac_ext
11919 cat >>conftest.
$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11926 # include <limits.h>
11928 # include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error. */
11935 /* We use char because int might match the return type of a gcc2
11936 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11944 char (*f) () = $ac_func;
11953 return f != $ac_func;
11958 rm -f conftest.
$ac_objext conftest
$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try
='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 eval "$as_ac_var=yes"
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.
$ac_ext >&5
11975 eval "$as_ac_var=no"
11977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11981 if test `eval echo '${'$as_ac_var'}'` = yes; then
11982 cat >>confdefs.h
<<_ACEOF
11983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11990 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11991 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 ac_cv_func_strerror_r_char_p
=no
11996 if test $ac_cv_have_decl_strerror_r = yes; then
11997 cat >conftest.
$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
12001 cat confdefs.h
>>conftest.
$ac_ext
12002 cat >>conftest.
$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12010 char x = *strerror_r (0, buf, sizeof buf);
12011 char *p = strerror_r (0, buf, sizeof buf);
12017 rm -f conftest.
$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try
='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_func_strerror_r_char_p
=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.
$ac_ext >&5
12035 rm -f conftest.
$ac_objext conftest.
$ac_ext
12037 # strerror_r is not declared. Choose between
12038 # systems that have relatively inaccessible declarations for the
12039 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12040 # former has a strerror_r that returns char*, while the latter
12041 # has a strerror_r that returns `int'.
12042 # This test should segfault on the DEC system.
12043 if test "$cross_compiling" = yes; then
12046 cat >conftest.
$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12050 cat confdefs.h
>>conftest.
$ac_ext
12051 cat >>conftest.
$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12054 extern char *strerror_r ();
12059 char x = *strerror_r (0, buf, sizeof buf);
12060 exit (!isalpha (x));
12065 rm -f conftest
$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_func_strerror_r_char_p
=yes
12078 echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.
$ac_ext >&5
12083 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12089 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12090 if test $ac_cv_func_strerror_r_char_p = yes; then
12092 cat >>confdefs.h
<<\_ACEOF
12093 #define STRERROR_R_CHAR_P 1
12098 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12099 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12100 if test "${ac_cv_header_stdc+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.
$ac_ext <<_ACEOF
12104 #line $LINENO "configure"
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include <stdlib.h>
12111 #include <stdarg.h>
12112 #include <string.h>
12123 rm -f conftest.
$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try
='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_header_stdc
=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.
$ac_ext >&5
12140 ac_cv_header_stdc
=no
12142 rm -f conftest.
$ac_objext conftest.
$ac_ext
12144 if test $ac_cv_header_stdc = yes; then
12145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12146 cat >conftest.
$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12150 cat confdefs.h
>>conftest.
$ac_ext
12151 cat >>conftest.
$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include <string.h>
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "memchr" >/dev
/null
2>&1; then
12160 ac_cv_header_stdc
=no
12166 if test $ac_cv_header_stdc = yes; then
12167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12168 cat >conftest.
$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <stdlib.h>
12178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179 $EGREP "free" >/dev
/null
2>&1; then
12182 ac_cv_header_stdc
=no
12188 if test $ac_cv_header_stdc = yes; then
12189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12190 if test "$cross_compiling" = yes; then
12193 cat >conftest.
$ac_ext <<_ACEOF
12194 #line $LINENO "configure"
12197 cat confdefs.h
>>conftest.
$ac_ext
12198 cat >>conftest.
$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 #if ((' ' & 0x0FF) == 0x020)
12202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12205 # define ISLOWER(c) \
12206 (('a' <= (c) && (c) <= 'i') \
12207 || ('j' <= (c) && (c) <= 'r') \
12208 || ('s' <= (c) && (c) <= 'z'))
12209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12217 for (i = 0; i < 256; i++)
12218 if (XOR (islower (i), ISLOWER (i))
12219 || toupper (i) != TOUPPER (i))
12224 rm -f conftest
$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12237 echo "$as_me: program exited with status $ac_status" >&5
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.
$ac_ext >&5
12241 ( exit $ac_status )
12242 ac_cv_header_stdc
=no
12244 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12250 if test $ac_cv_header_stdc = yes; then
12252 cat >>confdefs.h
<<\_ACEOF
12253 #define STDC_HEADERS 1
12259 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12260 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12261 if test "${ac_cv_type_mbstate_t+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 cat >conftest.
$ac_ext <<_ACEOF
12265 #line $LINENO "configure"
12268 cat confdefs.h
>>conftest.
$ac_ext
12269 cat >>conftest.
$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 # include <wchar.h>
12276 mbstate_t x; return sizeof x;
12281 rm -f conftest.
$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try
='test -s conftest.$ac_objext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_type_mbstate_t
=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.
$ac_ext >&5
12298 ac_cv_type_mbstate_t
=no
12300 rm -f conftest.
$ac_objext conftest.
$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12304 if test $ac_cv_type_mbstate_t = yes; then
12306 cat >>confdefs.h
<<\_ACEOF
12307 #define HAVE_MBSTATE_T 1
12312 cat >>confdefs.h
<<\_ACEOF
12313 #define mbstate_t int
12318 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12319 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12320 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 # Some versions of Solaris, SCO, and the GNU C Library
12324 # have a broken or incompatible fnmatch.
12325 # So we run a test program. If we are cross-compiling, take no chance.
12326 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12327 if test "$cross_compiling" = yes; then
12328 ac_cv_func_fnmatch_gnu
=cross
12330 cat >conftest.
$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12334 cat confdefs.h
>>conftest.
$ac_ext
12335 cat >>conftest.
$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <fnmatch.h>
12338 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12339 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12345 (!(y ("a*", "abc", 0)
12346 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12347 && y ("a\\\\bc", "abc", 0)
12348 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12349 && y ("*x", ".x", 0)
12350 && n ("*x", ".x", FNM_PERIOD)
12351 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12352 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12353 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12354 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12355 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12356 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12361 rm -f conftest
$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_func_fnmatch_gnu
=yes
12374 echo "$as_me: program exited with status $ac_status" >&5
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.
$ac_ext >&5
12378 ( exit $ac_status )
12379 ac_cv_func_fnmatch_gnu
=no
12381 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12384 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12385 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12386 if test $ac_cv_func_fnmatch_gnu = yes; then
12387 rm -f $ac_config_libobj_dir/fnmatch.h
12389 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12390 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12391 if test "${ac_cv_have_decl_getenv+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.
$ac_ext <<_ACEOF
12395 #line $LINENO "configure"
12398 cat confdefs.h
>>conftest.
$ac_ext
12399 cat >>conftest.
$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12406 char *p = (char *) getenv;
12413 rm -f conftest.
$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try
='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_have_decl_getenv
=yes
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12430 ac_cv_have_decl_getenv
=no
12432 rm -f conftest.
$ac_objext conftest.
$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12435 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12436 if test $ac_cv_have_decl_getenv = yes; then
12438 cat >>confdefs.h
<<_ACEOF
12439 #define HAVE_DECL_GETENV 1
12444 cat >>confdefs.h
<<_ACEOF
12445 #define HAVE_DECL_GETENV 0
12456 for ac_func
in btowc mbsrtowcs mempcpy wmempcpy
12458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_var+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 cat >conftest.
$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12468 cat confdefs.h
>>conftest.
$ac_ext
12469 cat >>conftest.
$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char $ac_func (); below.
12473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474 <limits.h> exists even on freestanding compilers. */
12476 # include <limits.h>
12478 # include <assert.h>
12480 /* Override any gcc2 internal prototype to avoid an error. */
12485 /* We use char because int might match the return type of a gcc2
12486 builtin and then its argument prototype would still apply. */
12488 /* The GNU C library defines this for functions which it implements
12489 to always fail with ENOSYS. Some functions are actually named
12490 something starting with __ and the normal name is an alias. */
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12494 char (*f) () = $ac_func;
12503 return f != $ac_func;
12508 rm -f conftest.
$ac_objext conftest
$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510 (eval $ac_link) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try
='test -s conftest$ac_exeext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 eval "$as_ac_var=yes"
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.
$ac_ext >&5
12525 eval "$as_ac_var=no"
12527 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12531 if test `eval echo '${'$as_ac_var'}'` = yes; then
12532 cat >>confdefs.h
<<_ACEOF
12533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12541 for ac_header
in wchar.h wctype.h
12543 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545 echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12553 # Is the header compilable?
12554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12556 cat >conftest.
$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12560 cat confdefs.h
>>conftest.
$ac_ext
12561 cat >>conftest.
$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 $ac_includes_default
12564 #include <$ac_header>
12566 rm -f conftest.
$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try
='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_header_compiler
=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_header_compiler
=no
12585 rm -f conftest.
$ac_objext conftest.
$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12587 echo "${ECHO_T}$ac_header_compiler" >&6
12589 # Is the header present?
12590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12592 cat >conftest.
$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <$ac_header>
12601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1
>conftest.err
12606 cat conftest.err
>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } >/dev
/null
; then
12609 if test -s conftest.err
; then
12610 ac_cpp_err
=$ac_c_preproc_warn_flag
12617 if test -z "$ac_cpp_err"; then
12618 ac_header_preproc
=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.
$ac_ext >&5
12623 ac_header_preproc
=no
12625 rm -f conftest.err conftest.
$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12627 echo "${ECHO_T}$ac_header_preproc" >&6
12629 # So? What about this header?
12630 case $ac_header_compiler:$ac_header_preproc in
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12638 ## ------------------------------------ ##
12639 ## Report this to bug-autoconf@gnu.org. ##
12640 ## ------------------------------------ ##
12643 sed "s/^/$as_me: WARNING: /" >&2
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12654 ## ------------------------------------ ##
12655 ## Report this to bug-autoconf@gnu.org. ##
12656 ## ------------------------------------ ##
12659 sed "s/^/$as_me: WARNING: /" >&2
12662 echo "$as_me:$LINENO: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 eval "$as_ac_Header=$ac_header_preproc"
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12674 cat >>confdefs.h
<<_ACEOF
12675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12682 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
12683 ac_config_links
="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12686 cat >>confdefs.h
<<\_ACEOF
12687 #define fnmatch rpl_fnmatch
12695 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12696 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12697 if test "${ac_cv_header_stdbool_h+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 cat >conftest.
$ac_ext <<_ACEOF
12701 #line $LINENO "configure"
12704 cat confdefs.h
>>conftest.
$ac_ext
12705 cat >>conftest.
$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 #include <stdbool.h>
12710 "error: bool is not defined"
12713 "error: false is not defined"
12716 "error: false is not 0"
12719 "error: false is not defined"
12722 "error: true is not 1"
12724 #ifndef __bool_true_false_are_defined
12725 "error: __bool_true_false_are_defined is not defined"
12728 struct s { _Bool s: 1; _Bool t; } s;
12730 char a[true == 1 ? 1 : -1];
12731 char b[false == 0 ? 1 : -1];
12732 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12733 char d[(bool) -0.5 == true ? 1 : -1];
12735 char f[(_Bool) -0.0 == false ? 1 : -1];
12737 char h[sizeof (_Bool)];
12738 char i[sizeof s.t];
12743 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12748 rm -f conftest.
$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try
='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_header_stdbool_h
=yes
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.
$ac_ext >&5
12765 ac_cv_header_stdbool_h
=no
12767 rm -f conftest.
$ac_objext conftest.
$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12771 if test $ac_cv_header_stdbool_h = yes; then
12773 cat >>confdefs.h
<<\_ACEOF
12774 #define HAVE_STDBOOL_H 1
12784 for ac_func
in getpagesize
12786 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12787 echo "$as_me:$LINENO: checking for $ac_func" >&5
12788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_var+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 cat >conftest.
$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12796 cat confdefs.h
>>conftest.
$ac_ext
12797 cat >>conftest.
$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char $ac_func (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12804 # include <limits.h>
12806 # include <assert.h>
12808 /* Override any gcc2 internal prototype to avoid an error. */
12813 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12816 /* The GNU C library defines this for functions which it implements
12817 to always fail with ENOSYS. Some functions are actually named
12818 something starting with __ and the normal name is an alias. */
12819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12822 char (*f) () = $ac_func;
12831 return f != $ac_func;
12836 rm -f conftest.
$ac_objext conftest
$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try
='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 eval "$as_ac_var=yes"
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 eval "$as_ac_var=no"
12855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12859 if test `eval echo '${'$as_ac_var'}'` = yes; then
12860 cat >>confdefs.h
<<_ACEOF
12861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12869 for ac_header
in OS.h unistd.h
12871 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12873 echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12881 # Is the header compilable?
12882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12884 cat >conftest.
$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12888 cat confdefs.h
>>conftest.
$ac_ext
12889 cat >>conftest.
$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12892 #include <$ac_header>
12894 rm -f conftest.
$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try
='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_header_compiler
=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.
$ac_ext >&5
12911 ac_header_compiler
=no
12913 rm -f conftest.
$ac_objext conftest.
$ac_ext
12914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12915 echo "${ECHO_T}$ac_header_compiler" >&6
12917 # Is the header present?
12918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12920 cat >conftest.
$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12924 cat confdefs.h
>>conftest.
$ac_ext
12925 cat >>conftest.
$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 #include <$ac_header>
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1
>conftest.err
12934 cat conftest.err
>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } >/dev
/null
; then
12937 if test -s conftest.err
; then
12938 ac_cpp_err
=$ac_c_preproc_warn_flag
12945 if test -z "$ac_cpp_err"; then
12946 ac_header_preproc
=yes
12948 echo "$as_me: failed program was:" >&5
12949 sed 's/^/| /' conftest.
$ac_ext >&5
12951 ac_header_preproc
=no
12953 rm -f conftest.err conftest.
$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12955 echo "${ECHO_T}$ac_header_preproc" >&6
12957 # So? What about this header?
12958 case $ac_header_compiler:$ac_header_preproc in
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12966 ## ------------------------------------ ##
12967 ## Report this to bug-autoconf@gnu.org. ##
12968 ## ------------------------------------ ##
12971 sed "s/^/$as_me: WARNING: /" >&2
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 ## ------------------------------------ ##
12983 ## Report this to bug-autoconf@gnu.org. ##
12984 ## ------------------------------------ ##
12987 sed "s/^/$as_me: WARNING: /" >&2
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 eval "$as_ac_Header=$ac_header_preproc"
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002 cat >>confdefs.h
<<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13015 for ac_header
in locale.h stdlib.h string.h
13017 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019 echo "$as_me:$LINENO: checking for $ac_header" >&5
13020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13027 # Is the header compilable?
13028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13030 cat >conftest.
$ac_ext <<_ACEOF
13031 #line $LINENO "configure"
13034 cat confdefs.h
>>conftest.
$ac_ext
13035 cat >>conftest.
$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 #include <$ac_header>
13040 rm -f conftest.
$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try
='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_header_compiler
=yes
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.
$ac_ext >&5
13057 ac_header_compiler
=no
13059 rm -f conftest.
$ac_objext conftest.
$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13061 echo "${ECHO_T}$ac_header_compiler" >&6
13063 # Is the header present?
13064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13066 cat >conftest.
$ac_ext <<_ACEOF
13067 #line $LINENO "configure"
13070 cat confdefs.h
>>conftest.
$ac_ext
13071 cat >>conftest.
$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 #include <$ac_header>
13075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13078 grep -v '^ *+' conftest.er1
>conftest.err
13080 cat conftest.err
>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } >/dev
/null
; then
13083 if test -s conftest.err
; then
13084 ac_cpp_err
=$ac_c_preproc_warn_flag
13091 if test -z "$ac_cpp_err"; then
13092 ac_header_preproc
=yes
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.
$ac_ext >&5
13097 ac_header_preproc
=no
13099 rm -f conftest.err conftest.
$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13101 echo "${ECHO_T}$ac_header_preproc" >&6
13103 # So? What about this header?
13104 case $ac_header_compiler:$ac_header_preproc in
13106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13112 ## ------------------------------------ ##
13113 ## Report this to bug-autoconf@gnu.org. ##
13114 ## ------------------------------------ ##
13117 sed "s/^/$as_me: WARNING: /" >&2
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13128 ## ------------------------------------ ##
13129 ## Report this to bug-autoconf@gnu.org. ##
13130 ## ------------------------------------ ##
13133 sed "s/^/$as_me: WARNING: /" >&2
13136 echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 eval "$as_ac_Header=$ac_header_preproc"
13143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13148 cat >>confdefs.h
<<_ACEOF
13149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13157 for ac_func
in setlocale
13159 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:$LINENO: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 cat >conftest.
$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13169 cat confdefs.h
>>conftest.
$ac_ext
13170 cat >>conftest.
$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 /* System header to define __stub macros and hopefully few prototypes,
13173 which can conflict with char $ac_func (); below.
13174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175 <limits.h> exists even on freestanding compilers. */
13177 # include <limits.h>
13179 # include <assert.h>
13181 /* Override any gcc2 internal prototype to avoid an error. */
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13189 /* The GNU C library defines this for functions which it implements
13190 to always fail with ENOSYS. Some functions are actually named
13191 something starting with __ and the normal name is an alias. */
13192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13195 char (*f) () = $ac_func;
13204 return f != $ac_func;
13209 rm -f conftest.
$ac_objext conftest
$ac_exeext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13211 (eval $ac_link) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try
='test -s conftest$ac_exeext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 eval "$as_ac_var=yes"
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.
$ac_ext >&5
13226 eval "$as_ac_var=no"
13228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13232 if test `eval echo '${'$as_ac_var'}'` = yes; then
13233 cat >>confdefs.h
<<_ACEOF
13234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13244 for ac_header
in stdlib.h
13246 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13256 # Is the header compilable?
13257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13259 cat >conftest.
$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13263 cat confdefs.h
>>conftest.
$ac_ext
13264 cat >>conftest.
$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 #include <$ac_header>
13269 rm -f conftest.
$ac_objext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271 (eval $ac_compile) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try
='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_header_compiler
=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.
$ac_ext >&5
13286 ac_header_compiler
=no
13288 rm -f conftest.
$ac_objext conftest.
$ac_ext
13289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13290 echo "${ECHO_T}$ac_header_compiler" >&6
13292 # Is the header present?
13293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13295 cat >conftest.
$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13299 cat confdefs.h
>>conftest.
$ac_ext
13300 cat >>conftest.
$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <$ac_header>
13304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev
/null
; then
13312 if test -s conftest.err
; then
13313 ac_cpp_err
=$ac_c_preproc_warn_flag
13320 if test -z "$ac_cpp_err"; then
13321 ac_header_preproc
=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.
$ac_ext >&5
13326 ac_header_preproc
=no
13328 rm -f conftest.err conftest.
$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13330 echo "${ECHO_T}$ac_header_preproc" >&6
13332 # So? What about this header?
13333 case $ac_header_compiler:$ac_header_preproc in
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13341 ## ------------------------------------ ##
13342 ## Report this to bug-autoconf@gnu.org. ##
13343 ## ------------------------------------ ##
13346 sed "s/^/$as_me: WARNING: /" >&2
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13357 ## ------------------------------------ ##
13358 ## Report this to bug-autoconf@gnu.org. ##
13359 ## ------------------------------------ ##
13362 sed "s/^/$as_me: WARNING: /" >&2
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 eval "$as_ac_Header=$ac_header_preproc"
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h
<<_ACEOF
13378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13390 for ac_header
in locale.h
13392 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13402 # Is the header compilable?
13403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13405 cat >conftest.
$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13409 cat confdefs.h
>>conftest.
$ac_ext
13410 cat >>conftest.
$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 $ac_includes_default
13413 #include <$ac_header>
13415 rm -f conftest.
$ac_objext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try
='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_header_compiler
=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 ac_header_compiler
=no
13434 rm -f conftest.
$ac_objext conftest.
$ac_ext
13435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13436 echo "${ECHO_T}$ac_header_compiler" >&6
13438 # Is the header present?
13439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13441 cat >conftest.
$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13445 cat confdefs.h
>>conftest.
$ac_ext
13446 cat >>conftest.
$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <$ac_header>
13450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13453 grep -v '^ *+' conftest.er1
>conftest.err
13455 cat conftest.err
>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev
/null
; then
13458 if test -s conftest.err
; then
13459 ac_cpp_err
=$ac_c_preproc_warn_flag
13466 if test -z "$ac_cpp_err"; then
13467 ac_header_preproc
=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.
$ac_ext >&5
13472 ac_header_preproc
=no
13474 rm -f conftest.err conftest.
$ac_ext
13475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13476 echo "${ECHO_T}$ac_header_preproc" >&6
13478 # So? What about this header?
13479 case $ac_header_compiler:$ac_header_preproc in
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13487 ## ------------------------------------ ##
13488 ## Report this to bug-autoconf@gnu.org. ##
13489 ## ------------------------------------ ##
13492 sed "s/^/$as_me: WARNING: /" >&2
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13503 ## ------------------------------------ ##
13504 ## Report this to bug-autoconf@gnu.org. ##
13505 ## ------------------------------------ ##
13508 sed "s/^/$as_me: WARNING: /" >&2
13511 echo "$as_me:$LINENO: checking for $ac_header" >&5
13512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 eval "$as_ac_Header=$ac_header_preproc"
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h
<<_ACEOF
13524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13531 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13532 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13533 if test "${ac_cv_have_decl_getenv+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.
$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13540 cat confdefs.h
>>conftest.
$ac_ext
13541 cat >>conftest.
$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 $ac_includes_default
13548 char *p = (char *) getenv;
13555 rm -f conftest.
$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try
='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_have_decl_getenv
=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.
$ac_ext >&5
13572 ac_cv_have_decl_getenv
=no
13574 rm -f conftest.
$ac_objext conftest.
$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13577 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13578 if test $ac_cv_have_decl_getenv = yes; then
13580 cat >>confdefs.h
<<_ACEOF
13581 #define HAVE_DECL_GETENV 1
13586 cat >>confdefs.h
<<_ACEOF
13587 #define HAVE_DECL_GETENV 0
13595 for ac_func
in localeconv
13597 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 echo "$as_me:$LINENO: checking for $ac_func" >&5
13599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13600 if eval "test \"\${$as_ac_var+set}\" = set"; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 cat >conftest.
$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13607 cat confdefs.h
>>conftest.
$ac_ext
13608 cat >>conftest.
$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 /* System header to define __stub macros and hopefully few prototypes,
13611 which can conflict with char $ac_func (); below.
13612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13613 <limits.h> exists even on freestanding compilers. */
13615 # include <limits.h>
13617 # include <assert.h>
13619 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13627 /* The GNU C library defines this for functions which it implements
13628 to always fail with ENOSYS. Some functions are actually named
13629 something starting with __ and the normal name is an alias. */
13630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633 char (*f) () = $ac_func;
13642 return f != $ac_func;
13647 rm -f conftest.
$ac_objext conftest
$ac_exeext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649 (eval $ac_link) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try
='test -s conftest$ac_exeext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 eval "$as_ac_var=yes"
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.
$ac_ext >&5
13664 eval "$as_ac_var=no"
13666 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13670 if test `eval echo '${'$as_ac_var'}'` = yes; then
13671 cat >>confdefs.h
<<_ACEOF
13672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13688 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
13690 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692 echo "$as_me:$LINENO: checking for $ac_header" >&5
13693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13700 # Is the header compilable?
13701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13703 cat >conftest.
$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13711 #include <$ac_header>
13713 rm -f conftest.
$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try
='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_header_compiler
=yes
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.
$ac_ext >&5
13730 ac_header_compiler
=no
13732 rm -f conftest.
$ac_objext conftest.
$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734 echo "${ECHO_T}$ac_header_compiler" >&6
13736 # Is the header present?
13737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13739 cat >conftest.
$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13743 cat confdefs.h
>>conftest.
$ac_ext
13744 cat >>conftest.
$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <$ac_header>
13748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } >/dev
/null
; then
13756 if test -s conftest.err
; then
13757 ac_cpp_err
=$ac_c_preproc_warn_flag
13764 if test -z "$ac_cpp_err"; then
13765 ac_header_preproc
=yes
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.
$ac_ext >&5
13770 ac_header_preproc
=no
13772 rm -f conftest.err conftest.
$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13774 echo "${ECHO_T}$ac_header_preproc" >&6
13776 # So? What about this header?
13777 case $ac_header_compiler:$ac_header_preproc in
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13785 ## ------------------------------------ ##
13786 ## Report this to bug-autoconf@gnu.org. ##
13787 ## ------------------------------------ ##
13790 sed "s/^/$as_me: WARNING: /" >&2
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13801 ## ------------------------------------ ##
13802 ## Report this to bug-autoconf@gnu.org. ##
13803 ## ------------------------------------ ##
13806 sed "s/^/$as_me: WARNING: /" >&2
13809 echo "$as_me:$LINENO: checking for $ac_header" >&5
13810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 eval "$as_ac_Header=$ac_header_preproc"
13816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821 cat >>confdefs.h
<<_ACEOF
13822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13834 for ac_func
in isascii iswcntrl iswprint mbsinit wcwidth
13836 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 cat >conftest.
$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13846 cat confdefs.h
>>conftest.
$ac_ext
13847 cat >>conftest.
$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char $ac_func (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13854 # include <limits.h>
13856 # include <assert.h>
13858 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13872 char (*f) () = $ac_func;
13881 return f != $ac_func;
13886 rm -f conftest.
$ac_objext conftest
$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try
='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.
$ac_ext >&5
13903 eval "$as_ac_var=no"
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910 cat >>confdefs.h
<<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13919 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13920 if test "${jm_cv_func_mbrtowc+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 cat >conftest.
$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13927 cat confdefs.h
>>conftest.
$ac_ext
13928 cat >>conftest.
$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13934 mbstate_t state; return ! (sizeof state && mbrtowc);
13939 rm -f conftest.
$ac_objext conftest
$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try
='test -s conftest$ac_exeext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 jm_cv_func_mbrtowc
=yes
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.
$ac_ext >&5
13956 jm_cv_func_mbrtowc
=no
13958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13960 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13961 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13962 if test $jm_cv_func_mbrtowc = yes; then
13964 cat >>confdefs.h
<<\_ACEOF
13965 #define HAVE_MBRTOWC 1
13971 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13972 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13973 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 cat >conftest.
$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13980 cat confdefs.h
>>conftest.
$ac_ext
13981 cat >>conftest.
$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13984 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13986 # include <string.h>
13989 # include <wchar.h>
13997 char *p = (char *) wcwidth;
14004 rm -f conftest.
$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try
='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_have_decl_wcwidth
=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.
$ac_ext >&5
14021 ac_cv_have_decl_wcwidth
=no
14023 rm -f conftest.
$ac_objext conftest.
$ac_ext
14025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14026 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14027 if test $ac_cv_have_decl_wcwidth = yes; then
14033 cat >>confdefs.h
<<_ACEOF
14034 #define HAVE_DECL_WCWIDTH $ac_val
14038 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14039 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14040 if test "${ac_cv_type_mbstate_t+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 cat >conftest.
$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14047 cat confdefs.h
>>conftest.
$ac_ext
14048 cat >>conftest.
$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 # include <wchar.h>
14055 mbstate_t x; return sizeof x;
14060 rm -f conftest.
$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try
='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_type_mbstate_t
=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.
$ac_ext >&5
14077 ac_cv_type_mbstate_t
=no
14079 rm -f conftest.
$ac_objext conftest.
$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14082 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14083 if test $ac_cv_type_mbstate_t = yes; then
14085 cat >>confdefs.h
<<\_ACEOF
14086 #define HAVE_MBSTATE_T 1
14091 cat >>confdefs.h
<<\_ACEOF
14092 #define mbstate_t int
14101 for ac_header
in limits.h stdlib.h bp-sym.h
14103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14113 # Is the header compilable?
14114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14116 cat >conftest.
$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14124 #include <$ac_header>
14126 rm -f conftest.
$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128 (eval $ac_compile) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try
='test -s conftest.$ac_objext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_header_compiler
=yes
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.
$ac_ext >&5
14143 ac_header_compiler
=no
14145 rm -f conftest.
$ac_objext conftest.
$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6
14149 # Is the header present?
14150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14152 cat >conftest.
$ac_ext <<_ACEOF
14153 #line $LINENO "configure"
14156 cat confdefs.h
>>conftest.
$ac_ext
14157 cat >>conftest.
$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <$ac_header>
14161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14164 grep -v '^ *+' conftest.er1
>conftest.err
14166 cat conftest.err
>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } >/dev
/null
; then
14169 if test -s conftest.err
; then
14170 ac_cpp_err
=$ac_c_preproc_warn_flag
14177 if test -z "$ac_cpp_err"; then
14178 ac_header_preproc
=yes
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.
$ac_ext >&5
14183 ac_header_preproc
=no
14185 rm -f conftest.err conftest.
$ac_ext
14186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187 echo "${ECHO_T}$ac_header_preproc" >&6
14189 # So? What about this header?
14190 case $ac_header_compiler:$ac_header_preproc in
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14203 sed "s/^/$as_me: WARNING: /" >&2
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14214 ## ------------------------------------ ##
14215 ## Report this to bug-autoconf@gnu.org. ##
14216 ## ------------------------------------ ##
14219 sed "s/^/$as_me: WARNING: /" >&2
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 eval "$as_ac_Header=$ac_header_preproc"
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14234 cat >>confdefs.h
<<_ACEOF
14235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14246 for ac_header
in sys
/pstat.h unistd.h
14248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14250 echo "$as_me:$LINENO: checking for $ac_header" >&5
14251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14258 # Is the header compilable?
14259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14261 cat >conftest.
$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14265 cat confdefs.h
>>conftest.
$ac_ext
14266 cat >>conftest.
$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14269 #include <$ac_header>
14271 rm -f conftest.
$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try
='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_header_compiler
=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 ac_header_compiler
=no
14290 rm -f conftest.
$ac_objext conftest.
$ac_ext
14291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6
14294 # Is the header present?
14295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14297 cat >conftest.
$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14301 cat confdefs.h
>>conftest.
$ac_ext
14302 cat >>conftest.
$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <$ac_header>
14306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14307 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1
>conftest.err
14311 cat conftest.err
>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } >/dev
/null
; then
14314 if test -s conftest.err
; then
14315 ac_cpp_err
=$ac_c_preproc_warn_flag
14322 if test -z "$ac_cpp_err"; then
14323 ac_header_preproc
=yes
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 ac_header_preproc
=no
14330 rm -f conftest.err conftest.
$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc in
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14343 ## ------------------------------------ ##
14344 ## Report this to bug-autoconf@gnu.org. ##
14345 ## ------------------------------------ ##
14348 sed "s/^/$as_me: WARNING: /" >&2
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14359 ## ------------------------------------ ##
14360 ## Report this to bug-autoconf@gnu.org. ##
14361 ## ------------------------------------ ##
14364 sed "s/^/$as_me: WARNING: /" >&2
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 eval "$as_ac_Header=$ac_header_preproc"
14374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14379 cat >>confdefs.h
<<_ACEOF
14380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14389 for ac_func
in pstat_getstatic pstat_getdynamic
14391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392 echo "$as_me:$LINENO: checking for $ac_func" >&5
14393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14394 if eval "test \"\${$as_ac_var+set}\" = set"; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 cat >conftest.
$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* System header to define __stub macros and hopefully few prototypes,
14405 which can conflict with char $ac_func (); below.
14406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14407 <limits.h> exists even on freestanding compilers. */
14409 # include <limits.h>
14411 # include <assert.h>
14413 /* Override any gcc2 internal prototype to avoid an error. */
14418 /* We use char because int might match the return type of a gcc2
14419 builtin and then its argument prototype would still apply. */
14421 /* The GNU C library defines this for functions which it implements
14422 to always fail with ENOSYS. Some functions are actually named
14423 something starting with __ and the normal name is an alias. */
14424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14427 char (*f) () = $ac_func;
14436 return f != $ac_func;
14441 rm -f conftest.
$ac_objext conftest
$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try
='test -s conftest$ac_exeext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 eval "$as_ac_var=yes"
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.
$ac_ext >&5
14458 eval "$as_ac_var=no"
14460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14464 if test `eval echo '${'$as_ac_var'}'` = yes; then
14465 cat >>confdefs.h
<<_ACEOF
14466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14475 for ac_header
in unistd.h
14477 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14487 # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14494 cat confdefs.h
>>conftest.
$ac_ext
14495 cat >>conftest.
$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14498 #include <$ac_header>
14500 rm -f conftest.
$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try
='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_header_compiler
=yes
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.
$ac_ext >&5
14517 ac_header_compiler
=no
14519 rm -f conftest.
$ac_objext conftest.
$ac_ext
14520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6
14523 # Is the header present?
14524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14526 cat >conftest.
$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14530 cat confdefs.h
>>conftest.
$ac_ext
14531 cat >>conftest.
$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <$ac_header>
14535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14538 grep -v '^ *+' conftest.er1
>conftest.err
14540 cat conftest.err
>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev
/null
; then
14543 if test -s conftest.err
; then
14544 ac_cpp_err
=$ac_c_preproc_warn_flag
14551 if test -z "$ac_cpp_err"; then
14552 ac_header_preproc
=yes
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.
$ac_ext >&5
14557 ac_header_preproc
=no
14559 rm -f conftest.err conftest.
$ac_ext
14560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 echo "${ECHO_T}$ac_header_preproc" >&6
14563 # So? What about this header?
14564 case $ac_header_compiler:$ac_header_preproc in
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14572 ## ------------------------------------ ##
14573 ## Report this to bug-autoconf@gnu.org. ##
14574 ## ------------------------------------ ##
14577 sed "s/^/$as_me: WARNING: /" >&2
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14588 ## ------------------------------------ ##
14589 ## Report this to bug-autoconf@gnu.org. ##
14590 ## ------------------------------------ ##
14593 sed "s/^/$as_me: WARNING: /" >&2
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 eval "$as_ac_Header=$ac_header_preproc"
14603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14608 cat >>confdefs.h
<<_ACEOF
14609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14616 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14617 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14618 if test "${ac_cv_have_decl_getenv+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 cat >conftest.
$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14625 cat confdefs.h
>>conftest.
$ac_ext
14626 cat >>conftest.
$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14633 char *p = (char *) getenv;
14640 rm -f conftest.
$ac_objext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642 (eval $ac_compile) 2>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try
='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_have_decl_getenv
=yes
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.
$ac_ext >&5
14657 ac_cv_have_decl_getenv
=no
14659 rm -f conftest.
$ac_objext conftest.
$ac_ext
14661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14662 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14663 if test $ac_cv_have_decl_getenv = yes; then
14665 cat >>confdefs.h
<<_ACEOF
14666 #define HAVE_DECL_GETENV 1
14671 cat >>confdefs.h
<<_ACEOF
14672 #define HAVE_DECL_GETENV 0
14680 echo "$as_me:$LINENO: checking for working memcmp" >&5
14681 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14682 if test "${ac_cv_func_memcmp_working+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 if test "$cross_compiling" = yes; then
14686 ac_cv_func_memcmp_working
=no
14688 cat >conftest.
$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14700 /* Some versions of memcmp are not 8-bit clean. */
14701 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14702 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14705 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14706 or more and with at least one buffer not starting on a 4-byte boundary.
14707 William Lewis provided this test program. */
14712 for (i = 0; i < 4; i++)
14716 strcpy (a, "--------01111111");
14717 strcpy (b, "--------10000000");
14718 if (memcmp (a, b, 16) >= 0)
14728 rm -f conftest
$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730 (eval $ac_link) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_func_memcmp_working
=yes
14741 echo "$as_me: program exited with status $ac_status" >&5
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.
$ac_ext >&5
14745 ( exit $ac_status )
14746 ac_cv_func_memcmp_working
=no
14748 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14752 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14753 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
14755 if test $ac_cv_func_memcmp_working = no
; then
14757 cat >>confdefs.h
<<\_ACEOF
14758 #define memcmp rpl_memcmp
14764 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14765 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14766 if test "${ac_cv_c_backslash_a+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 cat >conftest.
$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14773 cat confdefs.h
>>conftest.
$ac_ext
14774 cat >>conftest.
$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14784 char buf['\a' == 'a' ? -1 : 1];
14786 return buf[0] != "\a"[0];
14792 rm -f conftest.
$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try
='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_c_backslash_a
=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.
$ac_ext >&5
14809 ac_cv_c_backslash_a
=no
14811 rm -f conftest.
$ac_objext conftest.
$ac_ext
14813 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14814 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14815 if test $ac_cv_c_backslash_a = yes; then
14817 cat >>confdefs.h
<<\_ACEOF
14818 #define HAVE_C_BACKSLASH_A 1
14826 for ac_func
in isascii iswprint
14828 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 echo "$as_me:$LINENO: checking for $ac_func" >&5
14830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14831 if eval "test \"\${$as_ac_var+set}\" = set"; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 cat >conftest.
$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14838 cat confdefs.h
>>conftest.
$ac_ext
14839 cat >>conftest.
$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 /* System header to define __stub macros and hopefully few prototypes,
14842 which can conflict with char $ac_func (); below.
14843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844 <limits.h> exists even on freestanding compilers. */
14846 # include <limits.h>
14848 # include <assert.h>
14850 /* Override any gcc2 internal prototype to avoid an error. */
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14858 /* The GNU C library defines this for functions which it implements
14859 to always fail with ENOSYS. Some functions are actually named
14860 something starting with __ and the normal name is an alias. */
14861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14864 char (*f) () = $ac_func;
14873 return f != $ac_func;
14878 rm -f conftest.
$ac_objext conftest
$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880 (eval $ac_link) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try
='test -s conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 eval "$as_ac_var=yes"
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.
$ac_ext >&5
14895 eval "$as_ac_var=no"
14897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14901 if test `eval echo '${'$as_ac_var'}'` = yes; then
14902 cat >>confdefs.h
<<_ACEOF
14903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14917 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14919 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo "$as_me:$LINENO: checking for $ac_header" >&5
14922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14929 # Is the header compilable?
14930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14932 cat >conftest.
$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14936 cat confdefs.h
>>conftest.
$ac_ext
14937 cat >>conftest.
$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 #include <$ac_header>
14942 rm -f conftest.
$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try
='test -s conftest.$ac_objext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_header_compiler
=yes
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.
$ac_ext >&5
14959 ac_header_compiler
=no
14961 rm -f conftest.
$ac_objext conftest.
$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14963 echo "${ECHO_T}$ac_header_compiler" >&6
14965 # Is the header present?
14966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14968 cat >conftest.
$ac_ext <<_ACEOF
14969 #line $LINENO "configure"
14972 cat confdefs.h
>>conftest.
$ac_ext
14973 cat >>conftest.
$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 #include <$ac_header>
14977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14980 grep -v '^ *+' conftest.er1
>conftest.err
14982 cat conftest.err
>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } >/dev
/null
; then
14985 if test -s conftest.err
; then
14986 ac_cpp_err
=$ac_c_preproc_warn_flag
14993 if test -z "$ac_cpp_err"; then
14994 ac_header_preproc
=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.
$ac_ext >&5
14999 ac_header_preproc
=no
15001 rm -f conftest.err conftest.
$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15003 echo "${ECHO_T}$ac_header_preproc" >&6
15005 # So? What about this header?
15006 case $ac_header_compiler:$ac_header_preproc in
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15014 ## ------------------------------------ ##
15015 ## Report this to bug-autoconf@gnu.org. ##
15016 ## ------------------------------------ ##
15019 sed "s/^/$as_me: WARNING: /" >&2
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15030 ## ------------------------------------ ##
15031 ## Report this to bug-autoconf@gnu.org. ##
15032 ## ------------------------------------ ##
15035 sed "s/^/$as_me: WARNING: /" >&2
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 eval "$as_ac_Header=$ac_header_preproc"
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15050 cat >>confdefs.h
<<_ACEOF
15051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15069 for ac_header
in string.h utmp.h utmpx.h sys
/param.h
15071 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073 echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15081 # Is the header compilable?
15082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15084 cat >conftest.
$ac_ext <<_ACEOF
15085 #line $LINENO "configure"
15088 cat confdefs.h
>>conftest.
$ac_ext
15089 cat >>conftest.
$ac_ext <<_ACEOF
15090 /* end confdefs.h. */
15091 $ac_includes_default
15092 #include <$ac_header>
15094 rm -f conftest.
$ac_objext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15096 (eval $ac_compile) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try
='test -s conftest.$ac_objext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_header_compiler
=yes
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.
$ac_ext >&5
15111 ac_header_compiler
=no
15113 rm -f conftest.
$ac_objext conftest.
$ac_ext
15114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6
15117 # Is the header present?
15118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15120 cat >conftest.
$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15124 cat confdefs.h
>>conftest.
$ac_ext
15125 cat >>conftest.
$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 #include <$ac_header>
15129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1
>conftest.err
15134 cat conftest.err
>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } >/dev
/null
; then
15137 if test -s conftest.err
; then
15138 ac_cpp_err
=$ac_c_preproc_warn_flag
15145 if test -z "$ac_cpp_err"; then
15146 ac_header_preproc
=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.
$ac_ext >&5
15151 ac_header_preproc
=no
15153 rm -f conftest.err conftest.
$ac_ext
15154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15155 echo "${ECHO_T}$ac_header_preproc" >&6
15157 # So? What about this header?
15158 case $ac_header_compiler:$ac_header_preproc in
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15166 ## ------------------------------------ ##
15167 ## Report this to bug-autoconf@gnu.org. ##
15168 ## ------------------------------------ ##
15171 sed "s/^/$as_me: WARNING: /" >&2
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15182 ## ------------------------------------ ##
15183 ## Report this to bug-autoconf@gnu.org. ##
15184 ## ------------------------------------ ##
15187 sed "s/^/$as_me: WARNING: /" >&2
15190 echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 eval "$as_ac_Header=$ac_header_preproc"
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15202 cat >>confdefs.h
<<_ACEOF
15203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15211 for ac_func
in utmpname
15213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214 echo "$as_me:$LINENO: checking for $ac_func" >&5
15215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15216 if eval "test \"\${$as_ac_var+set}\" = set"; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 cat >conftest.
$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15223 cat confdefs.h
>>conftest.
$ac_ext
15224 cat >>conftest.
$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* System header to define __stub macros and hopefully few prototypes,
15227 which can conflict with char $ac_func (); below.
15228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15229 <limits.h> exists even on freestanding compilers. */
15231 # include <limits.h>
15233 # include <assert.h>
15235 /* Override any gcc2 internal prototype to avoid an error. */
15240 /* We use char because int might match the return type of a gcc2
15241 builtin and then its argument prototype would still apply. */
15243 /* The GNU C library defines this for functions which it implements
15244 to always fail with ENOSYS. Some functions are actually named
15245 something starting with __ and the normal name is an alias. */
15246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249 char (*f) () = $ac_func;
15258 return f != $ac_func;
15263 rm -f conftest.
$ac_objext conftest
$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265 (eval $ac_link) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try
='test -s conftest$ac_exeext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 eval "$as_ac_var=yes"
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.
$ac_ext >&5
15280 eval "$as_ac_var=no"
15282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15286 if test `eval echo '${'$as_ac_var'}'` = yes; then
15287 cat >>confdefs.h
<<_ACEOF
15288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15295 for ac_func
in utmpxname
15297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 cat >conftest.
$ac_ext <<_ACEOF
15304 #line $LINENO "configure"
15307 cat confdefs.h
>>conftest.
$ac_ext
15308 cat >>conftest.
$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 /* System header to define __stub macros and hopefully few prototypes,
15311 which can conflict with char $ac_func (); below.
15312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15313 <limits.h> exists even on freestanding compilers. */
15315 # include <limits.h>
15317 # include <assert.h>
15319 /* Override any gcc2 internal prototype to avoid an error. */
15324 /* We use char because int might match the return type of a gcc2
15325 builtin and then its argument prototype would still apply. */
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15333 char (*f) () = $ac_func;
15342 return f != $ac_func;
15347 rm -f conftest.
$ac_objext conftest
$ac_exeext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349 (eval $ac_link) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try
='test -s conftest$ac_exeext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 eval "$as_ac_var=yes"
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.
$ac_ext >&5
15364 eval "$as_ac_var=no"
15366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370 if test `eval echo '${'$as_ac_var'}'` = yes; then
15371 cat >>confdefs.h
<<_ACEOF
15372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15380 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
15382 $ac_includes_default
15383 #ifdef HAVE_UTMPX_H
15384 # include <utmpx.h>
15390 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15391 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15392 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 cat >conftest.
$ac_ext <<_ACEOF
15396 #line $LINENO "configure"
15399 cat confdefs.h
>>conftest.
$ac_ext
15400 cat >>conftest.
$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15407 static struct utmpx ac_aggr;
15408 if (ac_aggr.ut_user)
15414 rm -f conftest.
$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try
='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_member_struct_utmpx_ut_user
=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.
$ac_ext >&5
15431 cat >conftest.
$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15435 cat confdefs.h
>>conftest.
$ac_ext
15436 cat >>conftest.
$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15443 static struct utmpx ac_aggr;
15444 if (sizeof ac_aggr.ut_user)
15450 rm -f conftest.
$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try
='test -s conftest.$ac_objext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_cv_member_struct_utmpx_ut_user
=yes
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.
$ac_ext >&5
15467 ac_cv_member_struct_utmpx_ut_user
=no
15469 rm -f conftest.
$ac_objext conftest.
$ac_ext
15471 rm -f conftest.
$ac_objext conftest.
$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15474 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15475 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15477 cat >>confdefs.h
<<_ACEOF
15478 #define HAVE_STRUCT_UTMPX_UT_USER 1
15484 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15485 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15486 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 cat >conftest.
$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15493 cat confdefs.h
>>conftest.
$ac_ext
15494 cat >>conftest.
$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15501 static struct utmp ac_aggr;
15502 if (ac_aggr.ut_user)
15508 rm -f conftest.
$ac_objext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15510 (eval $ac_compile) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try
='test -s conftest.$ac_objext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_cv_member_struct_utmp_ut_user
=yes
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.
$ac_ext >&5
15525 cat >conftest.
$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15529 cat confdefs.h
>>conftest.
$ac_ext
15530 cat >>conftest.
$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15537 static struct utmp ac_aggr;
15538 if (sizeof ac_aggr.ut_user)
15544 rm -f conftest.
$ac_objext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try
='test -s conftest.$ac_objext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_member_struct_utmp_ut_user
=yes
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.
$ac_ext >&5
15561 ac_cv_member_struct_utmp_ut_user
=no
15563 rm -f conftest.
$ac_objext conftest.
$ac_ext
15565 rm -f conftest.
$ac_objext conftest.
$ac_ext
15567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15568 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15569 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15571 cat >>confdefs.h
<<_ACEOF
15572 #define HAVE_STRUCT_UTMP_UT_USER 1
15578 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15579 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15580 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 cat >conftest.
$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15587 cat confdefs.h
>>conftest.
$ac_ext
15588 cat >>conftest.
$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15595 static struct utmpx ac_aggr;
15596 if (ac_aggr.ut_name)
15602 rm -f conftest.
$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try
='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_cv_member_struct_utmpx_ut_name
=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.
$ac_ext >&5
15619 cat >conftest.
$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15623 cat confdefs.h
>>conftest.
$ac_ext
15624 cat >>conftest.
$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15631 static struct utmpx ac_aggr;
15632 if (sizeof ac_aggr.ut_name)
15638 rm -f conftest.
$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try
='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_member_struct_utmpx_ut_name
=yes
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.
$ac_ext >&5
15655 ac_cv_member_struct_utmpx_ut_name
=no
15657 rm -f conftest.
$ac_objext conftest.
$ac_ext
15659 rm -f conftest.
$ac_objext conftest.
$ac_ext
15661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15662 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15663 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15665 cat >>confdefs.h
<<_ACEOF
15666 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15672 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15673 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15674 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.
$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15681 cat confdefs.h
>>conftest.
$ac_ext
15682 cat >>conftest.
$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15689 static struct utmp ac_aggr;
15690 if (ac_aggr.ut_name)
15696 rm -f conftest.
$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try
='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_member_struct_utmp_ut_name
=yes
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.
$ac_ext >&5
15713 cat >conftest.
$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15717 cat confdefs.h
>>conftest.
$ac_ext
15718 cat >>conftest.
$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15725 static struct utmp ac_aggr;
15726 if (sizeof ac_aggr.ut_name)
15732 rm -f conftest.
$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try
='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_member_struct_utmp_ut_name
=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.
$ac_ext >&5
15749 ac_cv_member_struct_utmp_ut_name
=no
15751 rm -f conftest.
$ac_objext conftest.
$ac_ext
15753 rm -f conftest.
$ac_objext conftest.
$ac_ext
15755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15756 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15757 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15759 cat >>confdefs.h
<<_ACEOF
15760 #define HAVE_STRUCT_UTMP_UT_NAME 1
15766 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15767 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15768 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 cat >conftest.
$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15775 cat confdefs.h
>>conftest.
$ac_ext
15776 cat >>conftest.
$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15783 static struct utmpx ac_aggr;
15784 if (ac_aggr.ut_type)
15790 rm -f conftest.
$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try
='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_member_struct_utmpx_ut_type
=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 cat >conftest.
$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15811 cat confdefs.h
>>conftest.
$ac_ext
15812 cat >>conftest.
$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15819 static struct utmpx ac_aggr;
15820 if (sizeof ac_aggr.ut_type)
15826 rm -f conftest.
$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try
='test -s conftest.$ac_objext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_member_struct_utmpx_ut_type
=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.
$ac_ext >&5
15843 ac_cv_member_struct_utmpx_ut_type
=no
15845 rm -f conftest.
$ac_objext conftest.
$ac_ext
15847 rm -f conftest.
$ac_objext conftest.
$ac_ext
15849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15850 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15851 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15853 cat >>confdefs.h
<<_ACEOF
15854 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15860 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15861 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15862 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 cat >conftest.
$ac_ext <<_ACEOF
15866 #line $LINENO "configure"
15869 cat confdefs.h
>>conftest.
$ac_ext
15870 cat >>conftest.
$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15877 static struct utmp ac_aggr;
15878 if (ac_aggr.ut_type)
15884 rm -f conftest.
$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try
='test -s conftest.$ac_objext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_cv_member_struct_utmp_ut_type
=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.
$ac_ext >&5
15901 cat >conftest.
$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15905 cat confdefs.h
>>conftest.
$ac_ext
15906 cat >>conftest.
$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15913 static struct utmp ac_aggr;
15914 if (sizeof ac_aggr.ut_type)
15920 rm -f conftest.
$ac_objext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15922 (eval $ac_compile) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try
='test -s conftest.$ac_objext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_member_struct_utmp_ut_type
=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.
$ac_ext >&5
15937 ac_cv_member_struct_utmp_ut_type
=no
15939 rm -f conftest.
$ac_objext conftest.
$ac_ext
15941 rm -f conftest.
$ac_objext conftest.
$ac_ext
15943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15944 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15945 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15947 cat >>confdefs.h
<<_ACEOF
15948 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15954 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15955 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15956 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 cat >conftest.
$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15963 cat confdefs.h
>>conftest.
$ac_ext
15964 cat >>conftest.
$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15971 static struct utmpx ac_aggr;
15972 if (ac_aggr.ut_pid)
15978 rm -f conftest.
$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try
='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_member_struct_utmpx_ut_pid
=yes
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.
$ac_ext >&5
15995 cat >conftest.
$ac_ext <<_ACEOF
15996 #line $LINENO "configure"
15999 cat confdefs.h
>>conftest.
$ac_ext
16000 cat >>conftest.
$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16007 static struct utmpx ac_aggr;
16008 if (sizeof ac_aggr.ut_pid)
16014 rm -f conftest.
$ac_objext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16016 (eval $ac_compile) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try
='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_member_struct_utmpx_ut_pid
=yes
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16031 ac_cv_member_struct_utmpx_ut_pid
=no
16033 rm -f conftest.
$ac_objext conftest.
$ac_ext
16035 rm -f conftest.
$ac_objext conftest.
$ac_ext
16037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16038 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16039 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16041 cat >>confdefs.h
<<_ACEOF
16042 #define HAVE_STRUCT_UTMPX_UT_PID 1
16048 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16049 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16050 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 cat >conftest.
$ac_ext <<_ACEOF
16054 #line $LINENO "configure"
16057 cat confdefs.h
>>conftest.
$ac_ext
16058 cat >>conftest.
$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16065 static struct utmp ac_aggr;
16066 if (ac_aggr.ut_pid)
16072 rm -f conftest.
$ac_objext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16074 (eval $ac_compile) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try
='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_cv_member_struct_utmp_ut_pid
=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.
$ac_ext >&5
16089 cat >conftest.
$ac_ext <<_ACEOF
16090 #line $LINENO "configure"
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16101 static struct utmp ac_aggr;
16102 if (sizeof ac_aggr.ut_pid)
16108 rm -f conftest.
$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try
='test -s conftest.$ac_objext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_member_struct_utmp_ut_pid
=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.
$ac_ext >&5
16125 ac_cv_member_struct_utmp_ut_pid
=no
16127 rm -f conftest.
$ac_objext conftest.
$ac_ext
16129 rm -f conftest.
$ac_objext conftest.
$ac_ext
16131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16132 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16133 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16135 cat >>confdefs.h
<<_ACEOF
16136 #define HAVE_STRUCT_UTMP_UT_PID 1
16142 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16143 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16144 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 cat >conftest.
$ac_ext <<_ACEOF
16148 #line $LINENO "configure"
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16159 static struct utmpx ac_aggr;
16166 rm -f conftest.
$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try
='test -s conftest.$ac_objext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_member_struct_utmpx_ut_id
=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 cat >conftest.
$ac_ext <<_ACEOF
16184 #line $LINENO "configure"
16187 cat confdefs.h
>>conftest.
$ac_ext
16188 cat >>conftest.
$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16195 static struct utmpx ac_aggr;
16196 if (sizeof ac_aggr.ut_id)
16202 rm -f conftest.
$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try
='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_member_struct_utmpx_ut_id
=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 ac_cv_member_struct_utmpx_ut_id
=no
16221 rm -f conftest.
$ac_objext conftest.
$ac_ext
16223 rm -f conftest.
$ac_objext conftest.
$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16226 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16227 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16229 cat >>confdefs.h
<<_ACEOF
16230 #define HAVE_STRUCT_UTMPX_UT_ID 1
16236 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16237 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16238 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.
$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16253 static struct utmp ac_aggr;
16260 rm -f conftest.
$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try
='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_member_struct_utmp_ut_id
=yes
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.
$ac_ext >&5
16277 cat >conftest.
$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16281 cat confdefs.h
>>conftest.
$ac_ext
16282 cat >>conftest.
$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16289 static struct utmp ac_aggr;
16290 if (sizeof ac_aggr.ut_id)
16296 rm -f conftest.
$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try
='test -s conftest.$ac_objext'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_cv_member_struct_utmp_ut_id
=yes
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.
$ac_ext >&5
16313 ac_cv_member_struct_utmp_ut_id
=no
16315 rm -f conftest.
$ac_objext conftest.
$ac_ext
16317 rm -f conftest.
$ac_objext conftest.
$ac_ext
16319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16320 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16321 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16323 cat >>confdefs.h
<<_ACEOF
16324 #define HAVE_STRUCT_UTMP_UT_ID 1
16331 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16332 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16333 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 cat >conftest.
$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16348 static struct utmpx ac_aggr;
16349 if (ac_aggr.ut_exit.ut_exit)
16355 rm -f conftest.
$ac_objext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try
='test -s conftest.$ac_objext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.
$ac_ext >&5
16372 cat >conftest.
$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16376 cat confdefs.h
>>conftest.
$ac_ext
16377 cat >>conftest.
$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16384 static struct utmpx ac_aggr;
16385 if (sizeof ac_aggr.ut_exit.ut_exit)
16391 rm -f conftest.
$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try
='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=no
16410 rm -f conftest.
$ac_objext conftest.
$ac_ext
16412 rm -f conftest.
$ac_objext conftest.
$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16415 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16416 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16418 cat >>confdefs.h
<<_ACEOF
16419 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16425 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16426 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16427 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.
$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16434 cat confdefs.h
>>conftest.
$ac_ext
16435 cat >>conftest.
$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16442 static struct utmp ac_aggr;
16443 if (ac_aggr.ut_exit.ut_exit)
16449 rm -f conftest.
$ac_objext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16451 (eval $ac_compile) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try
='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.
$ac_ext >&5
16466 cat >conftest.
$ac_ext <<_ACEOF
16467 #line $LINENO "configure"
16470 cat confdefs.h
>>conftest.
$ac_ext
16471 cat >>conftest.
$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16478 static struct utmp ac_aggr;
16479 if (sizeof ac_aggr.ut_exit.ut_exit)
16485 rm -f conftest.
$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try
='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.
$ac_ext >&5
16502 ac_cv_member_struct_utmp_ut_exit_ut_exit
=no
16504 rm -f conftest.
$ac_objext conftest.
$ac_ext
16506 rm -f conftest.
$ac_objext conftest.
$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16509 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16510 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16512 cat >>confdefs.h
<<_ACEOF
16513 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16519 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16520 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16521 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 cat >conftest.
$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16528 cat confdefs.h
>>conftest.
$ac_ext
16529 cat >>conftest.
$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16536 static struct utmpx ac_aggr;
16537 if (ac_aggr.ut_exit.e_exit)
16543 rm -f conftest.
$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try
='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.
$ac_ext >&5
16560 cat >conftest.
$ac_ext <<_ACEOF
16561 #line $LINENO "configure"
16564 cat confdefs.h
>>conftest.
$ac_ext
16565 cat >>conftest.
$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16572 static struct utmpx ac_aggr;
16573 if (sizeof ac_aggr.ut_exit.e_exit)
16579 rm -f conftest.
$ac_objext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16581 (eval $ac_compile) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try
='test -s conftest.$ac_objext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.
$ac_ext >&5
16596 ac_cv_member_struct_utmpx_ut_exit_e_exit
=no
16598 rm -f conftest.
$ac_objext conftest.
$ac_ext
16600 rm -f conftest.
$ac_objext conftest.
$ac_ext
16602 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16603 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16604 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16606 cat >>confdefs.h
<<_ACEOF
16607 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16613 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16614 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16615 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.
$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16622 cat confdefs.h
>>conftest.
$ac_ext
16623 cat >>conftest.
$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16630 static struct utmp ac_aggr;
16631 if (ac_aggr.ut_exit.e_exit)
16637 rm -f conftest.
$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try
='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.
$ac_ext >&5
16654 cat >conftest.
$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16658 cat confdefs.h
>>conftest.
$ac_ext
16659 cat >>conftest.
$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16666 static struct utmp ac_aggr;
16667 if (sizeof ac_aggr.ut_exit.e_exit)
16673 rm -f conftest.
$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try
='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.
$ac_ext >&5
16690 ac_cv_member_struct_utmp_ut_exit_e_exit
=no
16692 rm -f conftest.
$ac_objext conftest.
$ac_ext
16694 rm -f conftest.
$ac_objext conftest.
$ac_ext
16696 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16697 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16698 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16700 cat >>confdefs.h
<<_ACEOF
16701 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16708 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16709 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16710 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.
$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16717 cat confdefs.h
>>conftest.
$ac_ext
16718 cat >>conftest.
$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16725 static struct utmpx ac_aggr;
16726 if (ac_aggr.ut_exit.ut_termination)
16732 rm -f conftest.
$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try
='test -s conftest.$ac_objext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.
$ac_ext >&5
16749 cat >conftest.
$ac_ext <<_ACEOF
16750 #line $LINENO "configure"
16753 cat confdefs.h
>>conftest.
$ac_ext
16754 cat >>conftest.
$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16761 static struct utmpx ac_aggr;
16762 if (sizeof ac_aggr.ut_exit.ut_termination)
16768 rm -f conftest.
$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try
='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.
$ac_ext >&5
16785 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=no
16787 rm -f conftest.
$ac_objext conftest.
$ac_ext
16789 rm -f conftest.
$ac_objext conftest.
$ac_ext
16791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16792 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16793 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16795 cat >>confdefs.h
<<_ACEOF
16796 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16802 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16803 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16804 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 cat >conftest.
$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16811 cat confdefs.h
>>conftest.
$ac_ext
16812 cat >>conftest.
$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16819 static struct utmp ac_aggr;
16820 if (ac_aggr.ut_exit.ut_termination)
16826 rm -f conftest.
$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try
='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.
$ac_ext >&5
16843 cat >conftest.
$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16847 cat confdefs.h
>>conftest.
$ac_ext
16848 cat >>conftest.
$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16855 static struct utmp ac_aggr;
16856 if (sizeof ac_aggr.ut_exit.ut_termination)
16862 rm -f conftest.
$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try
='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.
$ac_ext >&5
16879 ac_cv_member_struct_utmp_ut_exit_ut_termination
=no
16881 rm -f conftest.
$ac_objext conftest.
$ac_ext
16883 rm -f conftest.
$ac_objext conftest.
$ac_ext
16885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16886 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16887 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16889 cat >>confdefs.h
<<_ACEOF
16890 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16896 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16897 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16898 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 cat >conftest.
$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16905 cat confdefs.h
>>conftest.
$ac_ext
16906 cat >>conftest.
$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16913 static struct utmpx ac_aggr;
16914 if (ac_aggr.ut_exit.e_termination)
16920 rm -f conftest.
$ac_objext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16922 (eval $ac_compile) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try
='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.
$ac_ext >&5
16937 cat >conftest.
$ac_ext <<_ACEOF
16938 #line $LINENO "configure"
16941 cat confdefs.h
>>conftest.
$ac_ext
16942 cat >>conftest.
$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16949 static struct utmpx ac_aggr;
16950 if (sizeof ac_aggr.ut_exit.e_termination)
16956 rm -f conftest.
$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try
='test -s conftest.$ac_objext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.
$ac_ext >&5
16973 ac_cv_member_struct_utmpx_ut_exit_e_termination
=no
16975 rm -f conftest.
$ac_objext conftest.
$ac_ext
16977 rm -f conftest.
$ac_objext conftest.
$ac_ext
16979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16980 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16981 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16983 cat >>confdefs.h
<<_ACEOF
16984 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16990 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16991 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16992 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 cat >conftest.
$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16999 cat confdefs.h
>>conftest.
$ac_ext
17000 cat >>conftest.
$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17007 static struct utmp ac_aggr;
17008 if (ac_aggr.ut_exit.e_termination)
17014 rm -f conftest.
$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.
$ac_ext >&5
17031 cat >conftest.
$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17035 cat confdefs.h
>>conftest.
$ac_ext
17036 cat >>conftest.
$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17043 static struct utmp ac_aggr;
17044 if (sizeof ac_aggr.ut_exit.e_termination)
17050 rm -f conftest.
$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try
='test -s conftest.$ac_objext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.
$ac_ext >&5
17067 ac_cv_member_struct_utmp_ut_exit_e_termination
=no
17069 rm -f conftest.
$ac_objext conftest.
$ac_ext
17071 rm -f conftest.
$ac_objext conftest.
$ac_ext
17073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17074 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17075 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17077 cat >>confdefs.h
<<_ACEOF
17078 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17084 LIBOBJS
="$LIBOBJS readutmp.$ac_objext"
17088 echo "$as_me:$LINENO: checking for long long" >&5
17089 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17090 if test "${ac_cv_type_long_long+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 cat >conftest.
$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17097 cat confdefs.h
>>conftest.
$ac_ext
17098 cat >>conftest.
$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 long long ll = 1; int i = 63;
17104 long long llmax = (long long) -1;
17105 return ll << i | ll >> i | llmax / ll | llmax % ll;
17110 rm -f conftest.
$ac_objext conftest
$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try
='test -s conftest$ac_exeext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_cv_type_long_long
=yes
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.
$ac_ext >&5
17127 ac_cv_type_long_long
=no
17129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17131 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17132 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17133 if test $ac_cv_type_long_long = yes; then
17135 cat >>confdefs.h
<<\_ACEOF
17136 #define HAVE_LONG_LONG 1
17146 for ac_header
in sys
/sysmacros.h sys
/statvfs.h sys
/vfs.h inttypes.h
17148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17150 echo "$as_me:$LINENO: checking for $ac_header" >&5
17151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17158 # Is the header compilable?
17159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17161 cat >conftest.
$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17165 cat confdefs.h
>>conftest.
$ac_ext
17166 cat >>conftest.
$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 $ac_includes_default
17169 #include <$ac_header>
17171 rm -f conftest.
$ac_objext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173 (eval $ac_compile) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try
='test -s conftest.$ac_objext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_header_compiler
=yes
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.
$ac_ext >&5
17188 ac_header_compiler
=no
17190 rm -f conftest.
$ac_objext conftest.
$ac_ext
17191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 echo "${ECHO_T}$ac_header_compiler" >&6
17194 # Is the header present?
17195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17197 cat >conftest.
$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17201 cat confdefs.h
>>conftest.
$ac_ext
17202 cat >>conftest.
$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <$ac_header>
17206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17209 grep -v '^ *+' conftest.er1
>conftest.err
17211 cat conftest.err
>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } >/dev
/null
; then
17214 if test -s conftest.err
; then
17215 ac_cpp_err
=$ac_c_preproc_warn_flag
17222 if test -z "$ac_cpp_err"; then
17223 ac_header_preproc
=yes
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 ac_header_preproc
=no
17230 rm -f conftest.err conftest.
$ac_ext
17231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 echo "${ECHO_T}$ac_header_preproc" >&6
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc in
17237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17243 ## ------------------------------------ ##
17244 ## Report this to bug-autoconf@gnu.org. ##
17245 ## ------------------------------------ ##
17248 sed "s/^/$as_me: WARNING: /" >&2
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17259 ## ------------------------------------ ##
17260 ## Report this to bug-autoconf@gnu.org. ##
17261 ## ------------------------------------ ##
17264 sed "s/^/$as_me: WARNING: /" >&2
17267 echo "$as_me:$LINENO: checking for $ac_header" >&5
17268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 eval "$as_ac_Header=$ac_header_preproc"
17274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17279 cat >>confdefs.h
<<_ACEOF
17280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17289 for ac_header
in sys
/param.h sys
/mount.h
17291 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17301 # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.
$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17308 cat confdefs.h
>>conftest.
$ac_ext
17309 cat >>conftest.
$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17312 #include <$ac_header>
17314 rm -f conftest.
$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try
='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_header_compiler
=yes
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.
$ac_ext >&5
17331 ac_header_compiler
=no
17333 rm -f conftest.
$ac_objext conftest.
$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.
$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17344 cat confdefs.h
>>conftest.
$ac_ext
17345 cat >>conftest.
$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <$ac_header>
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1
>conftest.err
17354 cat conftest.err
>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } >/dev
/null
; then
17357 if test -s conftest.err
; then
17358 ac_cpp_err
=$ac_c_preproc_warn_flag
17365 if test -z "$ac_cpp_err"; then
17366 ac_header_preproc
=yes
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.
$ac_ext >&5
17371 ac_header_preproc
=no
17373 rm -f conftest.err conftest.
$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17377 # So? What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17391 sed "s/^/$as_me: WARNING: /" >&2
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17407 sed "s/^/$as_me: WARNING: /" >&2
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 eval "$as_ac_Header=$ac_header_preproc"
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422 cat >>confdefs.h
<<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17431 for ac_func
in statvfs
17433 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434 echo "$as_me:$LINENO: checking for $ac_func" >&5
17435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17436 if eval "test \"\${$as_ac_var+set}\" = set"; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 cat >conftest.
$ac_ext <<_ACEOF
17440 #line $LINENO "configure"
17443 cat confdefs.h
>>conftest.
$ac_ext
17444 cat >>conftest.
$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17451 # include <limits.h>
17453 # include <assert.h>
17455 /* Override any gcc2 internal prototype to avoid an error. */
17460 /* We use char because int might match the return type of a gcc2
17461 builtin and then its argument prototype would still apply. */
17463 /* The GNU C library defines this for functions which it implements
17464 to always fail with ENOSYS. Some functions are actually named
17465 something starting with __ and the normal name is an alias. */
17466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17469 char (*f) () = $ac_func;
17478 return f != $ac_func;
17483 rm -f conftest.
$ac_objext conftest
$ac_exeext
17484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17485 (eval $ac_link) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try
='test -s conftest$ac_exeext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 eval "$as_ac_var=yes"
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.
$ac_ext >&5
17500 eval "$as_ac_var=no"
17502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507 cat >>confdefs.h
<<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17516 statxfs_includes
="\
17517 $ac_includes_default
17518 #if HAVE_SYS_STATVFS_H
17519 # include <sys/statvfs.h>
17522 # include <sys/vfs.h>
17524 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17525 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17526 # include <sys/param.h>
17527 # include <sys/mount.h>
17530 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17531 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17532 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 cat >conftest.
$ac_ext <<_ACEOF
17536 #line $LINENO "configure"
17539 cat confdefs.h
>>conftest.
$ac_ext
17540 cat >>conftest.
$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17547 static struct statfs ac_aggr;
17548 if (ac_aggr.f_basetype)
17554 rm -f conftest.
$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try
='test -s conftest.$ac_objext'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_member_struct_statfs_f_basetype
=yes
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.
$ac_ext >&5
17571 cat >conftest.
$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17575 cat confdefs.h
>>conftest.
$ac_ext
17576 cat >>conftest.
$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17583 static struct statfs ac_aggr;
17584 if (sizeof ac_aggr.f_basetype)
17590 rm -f conftest.
$ac_objext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17592 (eval $ac_compile) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try
='test -s conftest.$ac_objext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_member_struct_statfs_f_basetype
=yes
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.
$ac_ext >&5
17607 ac_cv_member_struct_statfs_f_basetype
=no
17609 rm -f conftest.
$ac_objext conftest.
$ac_ext
17611 rm -f conftest.
$ac_objext conftest.
$ac_ext
17613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17614 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17615 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17617 cat >>confdefs.h
<<_ACEOF
17618 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17624 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17625 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17626 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 cat >conftest.
$ac_ext <<_ACEOF
17630 #line $LINENO "configure"
17633 cat confdefs.h
>>conftest.
$ac_ext
17634 cat >>conftest.
$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17641 static struct statvfs ac_aggr;
17642 if (ac_aggr.f_basetype)
17648 rm -f conftest.
$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try
='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_member_struct_statvfs_f_basetype
=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.
$ac_ext >&5
17665 cat >conftest.
$ac_ext <<_ACEOF
17666 #line $LINENO "configure"
17669 cat confdefs.h
>>conftest.
$ac_ext
17670 cat >>conftest.
$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17677 static struct statvfs ac_aggr;
17678 if (sizeof ac_aggr.f_basetype)
17684 rm -f conftest.
$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try
='test -s conftest.$ac_objext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_member_struct_statvfs_f_basetype
=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.
$ac_ext >&5
17701 ac_cv_member_struct_statvfs_f_basetype
=no
17703 rm -f conftest.
$ac_objext conftest.
$ac_ext
17705 rm -f conftest.
$ac_objext conftest.
$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17708 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17709 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17711 cat >>confdefs.h
<<_ACEOF
17712 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17718 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17719 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17720 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.
$ac_ext <<_ACEOF
17724 #line $LINENO "configure"
17727 cat confdefs.h
>>conftest.
$ac_ext
17728 cat >>conftest.
$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17735 static struct statfs ac_aggr;
17736 if (ac_aggr.f_fstypename)
17742 rm -f conftest.
$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744 (eval $ac_compile) 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try
='test -s conftest.$ac_objext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_member_struct_statfs_f_fstypename
=yes
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.
$ac_ext >&5
17759 cat >conftest.
$ac_ext <<_ACEOF
17760 #line $LINENO "configure"
17763 cat confdefs.h
>>conftest.
$ac_ext
17764 cat >>conftest.
$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17771 static struct statfs ac_aggr;
17772 if (sizeof ac_aggr.f_fstypename)
17778 rm -f conftest.
$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try
='test -s conftest.$ac_objext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_member_struct_statfs_f_fstypename
=yes
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.
$ac_ext >&5
17795 ac_cv_member_struct_statfs_f_fstypename
=no
17797 rm -f conftest.
$ac_objext conftest.
$ac_ext
17799 rm -f conftest.
$ac_objext conftest.
$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17802 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17803 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17805 cat >>confdefs.h
<<_ACEOF
17806 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17812 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17813 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17814 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 cat >conftest.
$ac_ext <<_ACEOF
17818 #line $LINENO "configure"
17821 cat confdefs.h
>>conftest.
$ac_ext
17822 cat >>conftest.
$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17829 static struct statfs ac_aggr;
17830 if (ac_aggr.f_type)
17836 rm -f conftest.
$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try
='test -s conftest.$ac_objext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_member_struct_statfs_f_type
=yes
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.
$ac_ext >&5
17853 cat >conftest.
$ac_ext <<_ACEOF
17854 #line $LINENO "configure"
17857 cat confdefs.h
>>conftest.
$ac_ext
17858 cat >>conftest.
$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17865 static struct statfs ac_aggr;
17866 if (sizeof ac_aggr.f_type)
17872 rm -f conftest.
$ac_objext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17874 (eval $ac_compile) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try
='test -s conftest.$ac_objext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_cv_member_struct_statfs_f_type
=yes
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.
$ac_ext >&5
17889 ac_cv_member_struct_statfs_f_type
=no
17891 rm -f conftest.
$ac_objext conftest.
$ac_ext
17893 rm -f conftest.
$ac_objext conftest.
$ac_ext
17895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17896 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17897 if test $ac_cv_member_struct_statfs_f_type = yes; then
17899 cat >>confdefs.h
<<_ACEOF
17900 #define HAVE_STRUCT_STATFS_F_TYPE 1
17906 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17907 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17908 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 cat >conftest.
$ac_ext <<_ACEOF
17912 #line $LINENO "configure"
17915 cat confdefs.h
>>conftest.
$ac_ext
17916 cat >>conftest.
$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17923 static struct statvfs ac_aggr;
17924 if (ac_aggr.f_type)
17930 rm -f conftest.
$ac_objext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932 (eval $ac_compile) 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try
='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_member_struct_statvfs_f_type
=yes
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.
$ac_ext >&5
17947 cat >conftest.
$ac_ext <<_ACEOF
17948 #line $LINENO "configure"
17951 cat confdefs.h
>>conftest.
$ac_ext
17952 cat >>conftest.
$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17959 static struct statvfs ac_aggr;
17960 if (sizeof ac_aggr.f_type)
17966 rm -f conftest.
$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try
='test -s conftest.$ac_objext'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 ac_cv_member_struct_statvfs_f_type
=yes
17980 echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.
$ac_ext >&5
17983 ac_cv_member_struct_statvfs_f_type
=no
17985 rm -f conftest.
$ac_objext conftest.
$ac_ext
17987 rm -f conftest.
$ac_objext conftest.
$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17990 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17991 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17993 cat >>confdefs.h
<<_ACEOF
17994 #define HAVE_STRUCT_STATVFS_F_TYPE 1
18000 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18001 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18002 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 cat >conftest.
$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18009 cat confdefs.h
>>conftest.
$ac_ext
18010 cat >>conftest.
$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18017 static struct statfs ac_aggr;
18018 if (ac_aggr.f_fsid.__val)
18024 rm -f conftest.
$ac_objext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18026 (eval $ac_compile) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try
='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_member_struct_statfs_f_fsid___val
=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 cat >conftest.
$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18045 cat confdefs.h
>>conftest.
$ac_ext
18046 cat >>conftest.
$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18053 static struct statfs ac_aggr;
18054 if (sizeof ac_aggr.f_fsid.__val)
18060 rm -f conftest.
$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try
='test -s conftest.$ac_objext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_member_struct_statfs_f_fsid___val
=yes
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.
$ac_ext >&5
18077 ac_cv_member_struct_statfs_f_fsid___val
=no
18079 rm -f conftest.
$ac_objext conftest.
$ac_ext
18081 rm -f conftest.
$ac_objext conftest.
$ac_ext
18083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18084 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18085 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18087 cat >>confdefs.h
<<_ACEOF
18088 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18094 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18095 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18096 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 cat >conftest.
$ac_ext <<_ACEOF
18100 #line $LINENO "configure"
18103 cat confdefs.h
>>conftest.
$ac_ext
18104 cat >>conftest.
$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18111 static struct statvfs ac_aggr;
18112 if (ac_aggr.f_fsid.__val)
18118 rm -f conftest.
$ac_objext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18120 (eval $ac_compile) 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try
='test -s conftest.$ac_objext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_member_struct_statvfs_f_fsid___val
=yes
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.
$ac_ext >&5
18135 cat >conftest.
$ac_ext <<_ACEOF
18136 #line $LINENO "configure"
18139 cat confdefs.h
>>conftest.
$ac_ext
18140 cat >>conftest.
$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18147 static struct statvfs ac_aggr;
18148 if (sizeof ac_aggr.f_fsid.__val)
18154 rm -f conftest.
$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156 (eval $ac_compile) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try
='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_member_struct_statvfs_f_fsid___val
=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.
$ac_ext >&5
18171 ac_cv_member_struct_statvfs_f_fsid___val
=no
18173 rm -f conftest.
$ac_objext conftest.
$ac_ext
18175 rm -f conftest.
$ac_objext conftest.
$ac_ext
18177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18178 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18179 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18181 cat >>confdefs.h
<<_ACEOF
18182 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18188 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18189 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18190 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 cat >conftest.
$ac_ext <<_ACEOF
18194 #line $LINENO "configure"
18197 cat confdefs.h
>>conftest.
$ac_ext
18198 cat >>conftest.
$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18205 static struct statfs ac_aggr;
18206 if (ac_aggr.f_namemax)
18212 rm -f conftest.
$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try
='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_member_struct_statfs_f_namemax
=yes
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.
$ac_ext >&5
18229 cat >conftest.
$ac_ext <<_ACEOF
18230 #line $LINENO "configure"
18233 cat confdefs.h
>>conftest.
$ac_ext
18234 cat >>conftest.
$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18241 static struct statfs ac_aggr;
18242 if (sizeof ac_aggr.f_namemax)
18248 rm -f conftest.
$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250 (eval $ac_compile) 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try
='test -s conftest.$ac_objext'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_cv_member_struct_statfs_f_namemax
=yes
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.
$ac_ext >&5
18265 ac_cv_member_struct_statfs_f_namemax
=no
18267 rm -f conftest.
$ac_objext conftest.
$ac_ext
18269 rm -f conftest.
$ac_objext conftest.
$ac_ext
18271 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18272 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18273 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18275 cat >>confdefs.h
<<_ACEOF
18276 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18282 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18283 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18284 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 cat >conftest.
$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18291 cat confdefs.h
>>conftest.
$ac_ext
18292 cat >>conftest.
$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18299 static struct statvfs ac_aggr;
18300 if (ac_aggr.f_namemax)
18306 rm -f conftest.
$ac_objext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308 (eval $ac_compile) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try
='test -s conftest.$ac_objext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_member_struct_statvfs_f_namemax
=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.
$ac_ext >&5
18323 cat >conftest.
$ac_ext <<_ACEOF
18324 #line $LINENO "configure"
18327 cat confdefs.h
>>conftest.
$ac_ext
18328 cat >>conftest.
$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18335 static struct statvfs ac_aggr;
18336 if (sizeof ac_aggr.f_namemax)
18342 rm -f conftest.
$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try
='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 ac_cv_member_struct_statvfs_f_namemax
=yes
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.
$ac_ext >&5
18359 ac_cv_member_struct_statvfs_f_namemax
=no
18361 rm -f conftest.
$ac_objext conftest.
$ac_ext
18363 rm -f conftest.
$ac_objext conftest.
$ac_ext
18365 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18366 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18367 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18369 cat >>confdefs.h
<<_ACEOF
18370 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18376 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18377 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18378 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 cat >conftest.
$ac_ext <<_ACEOF
18382 #line $LINENO "configure"
18385 cat confdefs.h
>>conftest.
$ac_ext
18386 cat >>conftest.
$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18393 static struct statfs ac_aggr;
18394 if (ac_aggr.f_namelen)
18400 rm -f conftest.
$ac_objext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try
='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_member_struct_statfs_f_namelen
=yes
18414 echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.
$ac_ext >&5
18417 cat >conftest.
$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18421 cat confdefs.h
>>conftest.
$ac_ext
18422 cat >>conftest.
$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18429 static struct statfs ac_aggr;
18430 if (sizeof ac_aggr.f_namelen)
18436 rm -f conftest.
$ac_objext
18437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18438 (eval $ac_compile) 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try
='test -s conftest.$ac_objext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_member_struct_statfs_f_namelen
=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.
$ac_ext >&5
18453 ac_cv_member_struct_statfs_f_namelen
=no
18455 rm -f conftest.
$ac_objext conftest.
$ac_ext
18457 rm -f conftest.
$ac_objext conftest.
$ac_ext
18459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18460 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18461 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18463 cat >>confdefs.h
<<_ACEOF
18464 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18470 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18471 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18472 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 cat >conftest.
$ac_ext <<_ACEOF
18476 #line $LINENO "configure"
18479 cat confdefs.h
>>conftest.
$ac_ext
18480 cat >>conftest.
$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18487 static struct statvfs ac_aggr;
18488 if (ac_aggr.f_namelen)
18494 rm -f conftest.
$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try
='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_member_struct_statvfs_f_namelen
=yes
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.
$ac_ext >&5
18511 cat >conftest.
$ac_ext <<_ACEOF
18512 #line $LINENO "configure"
18515 cat confdefs.h
>>conftest.
$ac_ext
18516 cat >>conftest.
$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18523 static struct statvfs ac_aggr;
18524 if (sizeof ac_aggr.f_namelen)
18530 rm -f conftest.
$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try
='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_member_struct_statvfs_f_namelen
=yes
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.
$ac_ext >&5
18547 ac_cv_member_struct_statvfs_f_namelen
=no
18549 rm -f conftest.
$ac_objext conftest.
$ac_ext
18551 rm -f conftest.
$ac_objext conftest.
$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18554 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18555 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18557 cat >>confdefs.h
<<_ACEOF
18558 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18565 echo "$as_me:$LINENO: checking for working strnlen" >&5
18566 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18567 if test "${ac_cv_func_strnlen_working+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 if test "$cross_compiling" = yes; then
18571 ac_cv_func_strnlen_working
=no
18573 cat >conftest.
$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18577 cat confdefs.h
>>conftest.
$ac_ext
18578 cat >>conftest.
$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18586 #define S_LEN (sizeof S - 1)
18588 /* At least one implementation is buggy: that of AIX 4.3 would
18589 give strnlen (S, 1) == 3. */
18592 for (i = 0; i < S_LEN + 1; ++i)
18594 int expected = i <= S_LEN ? i : S_LEN;
18595 if (strnlen (S, i) != expected)
18604 rm -f conftest
$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_func_strnlen_working
=yes
18617 echo "$as_me: program exited with status $ac_status" >&5
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.
$ac_ext >&5
18621 ( exit $ac_status )
18622 ac_cv_func_strnlen_working
=no
18624 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18627 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18628 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18629 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18635 for ac_header
in memory.h
18637 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639 echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18647 # Is the header compilable?
18648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18650 cat >conftest.
$ac_ext <<_ACEOF
18651 #line $LINENO "configure"
18654 cat confdefs.h
>>conftest.
$ac_ext
18655 cat >>conftest.
$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <$ac_header>
18660 rm -f conftest.
$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try
='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_header_compiler
=yes
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.
$ac_ext >&5
18677 ac_header_compiler
=no
18679 rm -f conftest.
$ac_objext conftest.
$ac_ext
18680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18681 echo "${ECHO_T}$ac_header_compiler" >&6
18683 # Is the header present?
18684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18686 cat >conftest.
$ac_ext <<_ACEOF
18687 #line $LINENO "configure"
18690 cat confdefs.h
>>conftest.
$ac_ext
18691 cat >>conftest.
$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <$ac_header>
18695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18698 grep -v '^ *+' conftest.er1
>conftest.err
18700 cat conftest.err
>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } >/dev
/null
; then
18703 if test -s conftest.err
; then
18704 ac_cpp_err
=$ac_c_preproc_warn_flag
18711 if test -z "$ac_cpp_err"; then
18712 ac_header_preproc
=yes
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.
$ac_ext >&5
18717 ac_header_preproc
=no
18719 rm -f conftest.err conftest.
$ac_ext
18720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18721 echo "${ECHO_T}$ac_header_preproc" >&6
18723 # So? What about this header?
18724 case $ac_header_compiler:$ac_header_preproc in
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18732 ## ------------------------------------ ##
18733 ## Report this to bug-autoconf@gnu.org. ##
18734 ## ------------------------------------ ##
18737 sed "s/^/$as_me: WARNING: /" >&2
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18748 ## ------------------------------------ ##
18749 ## Report this to bug-autoconf@gnu.org. ##
18750 ## ------------------------------------ ##
18753 sed "s/^/$as_me: WARNING: /" >&2
18756 echo "$as_me:$LINENO: checking for $ac_header" >&5
18757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 eval "$as_ac_Header=$ac_header_preproc"
18763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18768 cat >>confdefs.h
<<_ACEOF
18769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18776 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18777 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18778 if test "${ac_cv_have_decl_memchr+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 cat >conftest.
$ac_ext <<_ACEOF
18782 #line $LINENO "configure"
18785 cat confdefs.h
>>conftest.
$ac_ext
18786 cat >>conftest.
$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 $ac_includes_default
18793 char *p = (char *) memchr;
18800 rm -f conftest.
$ac_objext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18802 (eval $ac_compile) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try
='test -s conftest.$ac_objext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_have_decl_memchr
=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.
$ac_ext >&5
18817 ac_cv_have_decl_memchr
=no
18819 rm -f conftest.
$ac_objext conftest.
$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18822 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18823 if test $ac_cv_have_decl_memchr = yes; then
18825 cat >>confdefs.h
<<_ACEOF
18826 #define HAVE_DECL_MEMCHR 1
18831 cat >>confdefs.h
<<_ACEOF
18832 #define HAVE_DECL_MEMCHR 0
18840 # This is necessary because automake-1.6.1 doesn't understand
18841 # that the above use of AC_FUNC_STRNLEN means we may have to use
18843 test $ac_cv_func_strnlen_working = yes \
18844 && LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18853 for ac_header
in fcntl.h sys
/time.h stdint.h unistd.h
18855 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18857 echo "$as_me:$LINENO: checking for $ac_header" >&5
18858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18865 # Is the header compilable?
18866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18868 cat >conftest.
$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18872 cat confdefs.h
>>conftest.
$ac_ext
18873 cat >>conftest.
$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 $ac_includes_default
18876 #include <$ac_header>
18878 rm -f conftest.
$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try
='test -s conftest.$ac_objext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_header_compiler
=yes
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.
$ac_ext >&5
18895 ac_header_compiler
=no
18897 rm -f conftest.
$ac_objext conftest.
$ac_ext
18898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899 echo "${ECHO_T}$ac_header_compiler" >&6
18901 # Is the header present?
18902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18904 cat >conftest.
$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18908 cat confdefs.h
>>conftest.
$ac_ext
18909 cat >>conftest.
$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #include <$ac_header>
18913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18916 grep -v '^ *+' conftest.er1
>conftest.err
18918 cat conftest.err
>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } >/dev
/null
; then
18921 if test -s conftest.err
; then
18922 ac_cpp_err
=$ac_c_preproc_warn_flag
18929 if test -z "$ac_cpp_err"; then
18930 ac_header_preproc
=yes
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.
$ac_ext >&5
18935 ac_header_preproc
=no
18937 rm -f conftest.err conftest.
$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939 echo "${ECHO_T}$ac_header_preproc" >&6
18941 # So? What about this header?
18942 case $ac_header_compiler:$ac_header_preproc in
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18950 ## ------------------------------------ ##
18951 ## Report this to bug-autoconf@gnu.org. ##
18952 ## ------------------------------------ ##
18955 sed "s/^/$as_me: WARNING: /" >&2
18958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18966 ## ------------------------------------ ##
18967 ## Report this to bug-autoconf@gnu.org. ##
18968 ## ------------------------------------ ##
18971 sed "s/^/$as_me: WARNING: /" >&2
18974 echo "$as_me:$LINENO: checking for $ac_header" >&5
18975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 eval "$as_ac_Header=$ac_header_preproc"
18981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18986 cat >>confdefs.h
<<_ACEOF
18987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18996 for ac_func
in __secure_getenv gettimeofday
18998 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18999 echo "$as_me:$LINENO: checking for $ac_func" >&5
19000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_var+set}\" = set"; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 cat >conftest.
$ac_ext <<_ACEOF
19005 #line $LINENO "configure"
19008 cat confdefs.h
>>conftest.
$ac_ext
19009 cat >>conftest.
$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 /* System header to define __stub macros and hopefully few prototypes,
19012 which can conflict with char $ac_func (); below.
19013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014 <limits.h> exists even on freestanding compilers. */
19016 # include <limits.h>
19018 # include <assert.h>
19020 /* Override any gcc2 internal prototype to avoid an error. */
19025 /* We use char because int might match the return type of a gcc2
19026 builtin and then its argument prototype would still apply. */
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19034 char (*f) () = $ac_func;
19043 return f != $ac_func;
19048 rm -f conftest.
$ac_objext conftest
$ac_exeext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19050 (eval $ac_link) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try
='test -s conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 eval "$as_ac_var=yes"
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.
$ac_ext >&5
19065 eval "$as_ac_var=no"
19067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19071 if test `eval echo '${'$as_ac_var'}'` = yes; then
19072 cat >>confdefs.h
<<_ACEOF
19073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19079 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19080 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19081 if test "${ac_cv_have_decl_getenv+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 cat >conftest.
$ac_ext <<_ACEOF
19085 #line $LINENO "configure"
19088 cat confdefs.h
>>conftest.
$ac_ext
19089 cat >>conftest.
$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 $ac_includes_default
19096 char *p = (char *) getenv;
19103 rm -f conftest.
$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try
='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_have_decl_getenv
=yes
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.
$ac_ext >&5
19120 ac_cv_have_decl_getenv
=no
19122 rm -f conftest.
$ac_objext conftest.
$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19125 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19126 if test $ac_cv_have_decl_getenv = yes; then
19128 cat >>confdefs.h
<<_ACEOF
19129 #define HAVE_DECL_GETENV 1
19134 cat >>confdefs.h
<<_ACEOF
19135 #define HAVE_DECL_GETENV 0
19144 echo "$as_me:$LINENO: checking for function prototypes" >&5
19145 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19146 if test "$ac_cv_prog_cc_stdc" != no
; then
19147 echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6
19150 cat >>confdefs.h
<<\_ACEOF
19151 #define PROTOTYPES 1
19155 cat >>confdefs.h
<<\_ACEOF
19156 #define __PROTOTYPES 1
19160 echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6
19166 for ac_header
in stdlib.h unistd.h
19168 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170 echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19178 # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.
$ac_ext <<_ACEOF
19182 #line $LINENO "configure"
19185 cat confdefs.h
>>conftest.
$ac_ext
19186 cat >>conftest.
$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19189 #include <$ac_header>
19191 rm -f conftest.
$ac_objext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193 (eval $ac_compile) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try
='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_header_compiler
=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.
$ac_ext >&5
19208 ac_header_compiler
=no
19210 rm -f conftest.
$ac_objext conftest.
$ac_ext
19211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19212 echo "${ECHO_T}$ac_header_compiler" >&6
19214 # Is the header present?
19215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19217 cat >conftest.
$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 #include <$ac_header>
19226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19229 grep -v '^ *+' conftest.er1
>conftest.err
19231 cat conftest.err
>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } >/dev
/null
; then
19234 if test -s conftest.err
; then
19235 ac_cpp_err
=$ac_c_preproc_warn_flag
19242 if test -z "$ac_cpp_err"; then
19243 ac_header_preproc
=yes
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.
$ac_ext >&5
19248 ac_header_preproc
=no
19250 rm -f conftest.err conftest.
$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19252 echo "${ECHO_T}$ac_header_preproc" >&6
19254 # So? What about this header?
19255 case $ac_header_compiler:$ac_header_preproc in
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19263 ## ------------------------------------ ##
19264 ## Report this to bug-autoconf@gnu.org. ##
19265 ## ------------------------------------ ##
19268 sed "s/^/$as_me: WARNING: /" >&2
19271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19279 ## ------------------------------------ ##
19280 ## Report this to bug-autoconf@gnu.org. ##
19281 ## ------------------------------------ ##
19284 sed "s/^/$as_me: WARNING: /" >&2
19287 echo "$as_me:$LINENO: checking for $ac_header" >&5
19288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 eval "$as_ac_Header=$ac_header_preproc"
19294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19299 cat >>confdefs.h
<<_ACEOF
19300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19307 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19308 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19309 if test "${ac_cv_func_getcwd_null+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 if test "$cross_compiling" = yes; then
19313 ac_cv_func_getcwd_null
=no
19315 cat >conftest.
$ac_ext <<_ACEOF
19316 #line $LINENO "configure"
19319 cat confdefs.h
>>conftest.
$ac_ext
19320 cat >>conftest.
$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19323 # ifdef HAVE_STDLIB_H
19324 # include <stdlib.h>
19326 # ifdef HAVE_UNISTD_H
19327 # include <unistd.h>
19335 if (chdir ("/") != 0)
19339 char *f = getcwd (NULL, 0);
19340 exit (! (f && f[0] == '/' && !f[1]));
19344 rm -f conftest
$ac_exeext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346 (eval $ac_link) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_func_getcwd_null
=yes
19357 echo "$as_me: program exited with status $ac_status" >&5
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.
$ac_ext >&5
19361 ( exit $ac_status )
19362 ac_cv_func_getcwd_null
=no
19364 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19367 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19368 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19369 if test $ac_cv_func_getcwd_null = yes; then
19371 cat >>confdefs.h
<<\_ACEOF
19372 #define HAVE_GETCWD_NULL 1
19382 for ac_header
in limits.h stdlib.h sys
/param.h unistd.h
19384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19386 echo "$as_me:$LINENO: checking for $ac_header" >&5
19387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19394 # Is the header compilable?
19395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19397 cat >conftest.
$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19401 cat confdefs.h
>>conftest.
$ac_ext
19402 cat >>conftest.
$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 $ac_includes_default
19405 #include <$ac_header>
19407 rm -f conftest.
$ac_objext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409 (eval $ac_compile) 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try
='test -s conftest.$ac_objext'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_header_compiler
=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.
$ac_ext >&5
19424 ac_header_compiler
=no
19426 rm -f conftest.
$ac_objext conftest.
$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19428 echo "${ECHO_T}$ac_header_compiler" >&6
19430 # Is the header present?
19431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19433 cat >conftest.
$ac_ext <<_ACEOF
19434 #line $LINENO "configure"
19437 cat confdefs.h
>>conftest.
$ac_ext
19438 cat >>conftest.
$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <$ac_header>
19442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19445 grep -v '^ *+' conftest.er1
>conftest.err
19447 cat conftest.err
>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } >/dev
/null
; then
19450 if test -s conftest.err
; then
19451 ac_cpp_err
=$ac_c_preproc_warn_flag
19458 if test -z "$ac_cpp_err"; then
19459 ac_header_preproc
=yes
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.
$ac_ext >&5
19464 ac_header_preproc
=no
19466 rm -f conftest.err conftest.
$ac_ext
19467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19468 echo "${ECHO_T}$ac_header_preproc" >&6
19470 # So? What about this header?
19471 case $ac_header_compiler:$ac_header_preproc in
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19479 ## ------------------------------------ ##
19480 ## Report this to bug-autoconf@gnu.org. ##
19481 ## ------------------------------------ ##
19484 sed "s/^/$as_me: WARNING: /" >&2
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19495 ## ------------------------------------ ##
19496 ## Report this to bug-autoconf@gnu.org. ##
19497 ## ------------------------------------ ##
19500 sed "s/^/$as_me: WARNING: /" >&2
19503 echo "$as_me:$LINENO: checking for $ac_header" >&5
19504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 eval "$as_ac_Header=$ac_header_preproc"
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19515 cat >>confdefs.h
<<_ACEOF
19516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19524 for ac_func
in getcwd
19526 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19527 echo "$as_me:$LINENO: checking for $ac_func" >&5
19528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19529 if eval "test \"\${$as_ac_var+set}\" = set"; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 cat >conftest.
$ac_ext <<_ACEOF
19533 #line $LINENO "configure"
19536 cat confdefs.h
>>conftest.
$ac_ext
19537 cat >>conftest.
$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 /* System header to define __stub macros and hopefully few prototypes,
19540 which can conflict with char $ac_func (); below.
19541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19542 <limits.h> exists even on freestanding compilers. */
19544 # include <limits.h>
19546 # include <assert.h>
19548 /* Override any gcc2 internal prototype to avoid an error. */
19553 /* We use char because int might match the return type of a gcc2
19554 builtin and then its argument prototype would still apply. */
19556 /* The GNU C library defines this for functions which it implements
19557 to always fail with ENOSYS. Some functions are actually named
19558 something starting with __ and the normal name is an alias. */
19559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19562 char (*f) () = $ac_func;
19571 return f != $ac_func;
19576 rm -f conftest.
$ac_objext conftest
$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try
='test -s conftest$ac_exeext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 eval "$as_ac_var=yes"
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.
$ac_ext >&5
19593 eval "$as_ac_var=no"
19595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19599 if test `eval echo '${'$as_ac_var'}'` = yes; then
19600 cat >>confdefs.h
<<_ACEOF
19601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615 for ac_header
in limits.h stdlib.h sys
/types.h unistd.h
19617 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19619 echo "$as_me:$LINENO: checking for $ac_header" >&5
19620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19627 # Is the header compilable?
19628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19630 cat >conftest.
$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19634 cat confdefs.h
>>conftest.
$ac_ext
19635 cat >>conftest.
$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 $ac_includes_default
19638 #include <$ac_header>
19640 rm -f conftest.
$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try
='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_header_compiler
=yes
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.
$ac_ext >&5
19657 ac_header_compiler
=no
19659 rm -f conftest.
$ac_objext conftest.
$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661 echo "${ECHO_T}$ac_header_compiler" >&6
19663 # Is the header present?
19664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666 cat >conftest.
$ac_ext <<_ACEOF
19667 #line $LINENO "configure"
19670 cat confdefs.h
>>conftest.
$ac_ext
19671 cat >>conftest.
$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <$ac_header>
19675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19678 grep -v '^ *+' conftest.er1
>conftest.err
19680 cat conftest.err
>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } >/dev
/null
; then
19683 if test -s conftest.err
; then
19684 ac_cpp_err
=$ac_c_preproc_warn_flag
19691 if test -z "$ac_cpp_err"; then
19692 ac_header_preproc
=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.
$ac_ext >&5
19697 ac_header_preproc
=no
19699 rm -f conftest.err conftest.
$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701 echo "${ECHO_T}$ac_header_preproc" >&6
19703 # So? What about this header?
19704 case $ac_header_compiler:$ac_header_preproc in
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19712 ## ------------------------------------ ##
19713 ## Report this to bug-autoconf@gnu.org. ##
19714 ## ------------------------------------ ##
19717 sed "s/^/$as_me: WARNING: /" >&2
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19728 ## ------------------------------------ ##
19729 ## Report this to bug-autoconf@gnu.org. ##
19730 ## ------------------------------------ ##
19733 sed "s/^/$as_me: WARNING: /" >&2
19736 echo "$as_me:$LINENO: checking for $ac_header" >&5
19737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 eval "$as_ac_Header=$ac_header_preproc"
19743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19748 cat >>confdefs.h
<<_ACEOF
19749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19776 # called by mkstemp
19789 ac_header_dirent
=no
19790 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19791 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19792 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 cat >conftest.
$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19801 cat confdefs.h
>>conftest.
$ac_ext
19802 cat >>conftest.
$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #include <sys/types.h>
19816 rm -f conftest.
$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try
='test -s conftest.$ac_objext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 eval "$as_ac_Header=yes"
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.
$ac_ext >&5
19833 eval "$as_ac_Header=no"
19835 rm -f conftest.
$ac_objext conftest.
$ac_ext
19837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19840 cat >>confdefs.h
<<_ACEOF
19841 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19844 ac_header_dirent
=$ac_hdr; break
19848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19849 if test $ac_header_dirent = dirent.h
; then
19851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19853 if test "${ac_cv_search_opendir+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 ac_func_search_save_LIBS
=$LIBS
19858 ac_cv_search_opendir
=no
19859 cat >conftest.
$ac_ext <<_ACEOF
19860 #line $LINENO "configure"
19863 cat confdefs.h
>>conftest.
$ac_ext
19864 cat >>conftest.
$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19867 /* Override any gcc2 internal prototype to avoid an error. */
19871 /* We use char because int might match the return type of a gcc2
19872 builtin and then its argument prototype would still apply. */
19882 rm -f conftest.
$ac_objext conftest
$ac_exeext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884 (eval $ac_link) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try
='test -s conftest$ac_exeext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_cv_search_opendir
='none required'
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.
$ac_ext >&5
19900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19901 if test "$ac_cv_search_opendir" = no
; then
19902 for ac_lib
in dir
; do
19903 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19904 cat >conftest.
$ac_ext <<_ACEOF
19905 #line $LINENO "configure"
19908 cat confdefs.h
>>conftest.
$ac_ext
19909 cat >>conftest.
$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 /* Override any gcc2 internal prototype to avoid an error. */
19916 /* We use char because int might match the return type of a gcc2
19917 builtin and then its argument prototype would still apply. */
19927 rm -f conftest.
$ac_objext conftest
$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try
='test -s conftest$ac_exeext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_cv_search_opendir
="-l$ac_lib"; break
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.
$ac_ext >&5
19945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19948 LIBS
=$ac_func_search_save_LIBS
19951 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19952 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19954 if test "$ac_cv_search_opendir" = no
; then :
19957 if test "$ac_cv_search_opendir" = 'none required'; then :
19960 LIBS
="$ac_cv_search_opendir $LIBS"
19967 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19969 if test "${ac_cv_search_opendir+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_func_search_save_LIBS
=$LIBS
19974 ac_cv_search_opendir
=no
19975 cat >conftest.
$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19979 cat confdefs.h
>>conftest.
$ac_ext
19980 cat >>conftest.
$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any gcc2 internal prototype to avoid an error. */
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19998 rm -f conftest.
$ac_objext conftest
$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try
='test -s conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_search_opendir
='none required'
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.
$ac_ext >&5
20016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20017 if test "$ac_cv_search_opendir" = no
; then
20018 for ac_lib
in x
; do
20019 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20020 cat >conftest.
$ac_ext <<_ACEOF
20021 #line $LINENO "configure"
20024 cat confdefs.h
>>conftest.
$ac_ext
20025 cat >>conftest.
$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any gcc2 internal prototype to avoid an error. */
20032 /* We use char because int might match the return type of a gcc2
20033 builtin and then its argument prototype would still apply. */
20043 rm -f conftest.
$ac_objext conftest
$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try
='test -s conftest$ac_exeext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_search_opendir
="-l$ac_lib"; break
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.
$ac_ext >&5
20061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20064 LIBS
=$ac_func_search_save_LIBS
20067 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20068 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20070 if test "$ac_cv_search_opendir" = no
; then :
20073 if test "$ac_cv_search_opendir" = 'none required'; then :
20076 LIBS
="$ac_cv_search_opendir $LIBS"
20085 # include <dirent.h>
20086 #else /* not HAVE_DIRENT_H */
20087 # define dirent direct
20088 # if HAVE_SYS_NDIR_H
20089 # include <sys/ndir.h>
20090 # endif /* HAVE_SYS_NDIR_H */
20091 # if HAVE_SYS_DIR_H
20092 # include <sys/dir.h>
20093 # endif /* HAVE_SYS_DIR_H */
20096 # endif /* HAVE_NDIR_H */
20097 #endif /* HAVE_DIRENT_H */
20100 for ac_func
in dirfd
20102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20103 echo "$as_me:$LINENO: checking for $ac_func" >&5
20104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20105 if eval "test \"\${$as_ac_var+set}\" = set"; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 cat >conftest.
$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20112 cat confdefs.h
>>conftest.
$ac_ext
20113 cat >>conftest.
$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func (); below.
20117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118 <limits.h> exists even on freestanding compilers. */
20120 # include <limits.h>
20122 # include <assert.h>
20124 /* Override any gcc2 internal prototype to avoid an error. */
20129 /* We use char because int might match the return type of a gcc2
20130 builtin and then its argument prototype would still apply. */
20132 /* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20138 char (*f) () = $ac_func;
20147 return f != $ac_func;
20152 rm -f conftest.
$ac_objext conftest
$ac_exeext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try
='test -s conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 eval "$as_ac_var=yes"
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.
$ac_ext >&5
20169 eval "$as_ac_var=no"
20171 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176 cat >>confdefs.h
<<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20183 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20184 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20185 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 cat >conftest.
$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20192 cat confdefs.h
>>conftest.
$ac_ext
20193 cat >>conftest.
$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20201 char *p = (char *) dirfd;
20208 rm -f conftest.
$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try
='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_have_decl_dirfd
=yes
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.
$ac_ext >&5
20225 ac_cv_have_decl_dirfd
=no
20227 rm -f conftest.
$ac_objext conftest.
$ac_ext
20229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20230 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20231 if test $ac_cv_have_decl_dirfd = yes; then
20233 cat >>confdefs.h
<<_ACEOF
20234 #define HAVE_DECL_DIRFD 1
20239 cat >>confdefs.h
<<_ACEOF
20240 #define HAVE_DECL_DIRFD 0
20248 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20249 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20250 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 cat >conftest.
$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20257 cat confdefs.h
>>conftest.
$ac_ext
20258 cat >>conftest.
$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20262 dirent_header_defines_dirfd
20265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20266 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then
20267 jm_cv_func_dirfd_macro
=yes
20269 jm_cv_func_dirfd_macro
=no
20274 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20275 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20277 # Use the replacement only if we have no function, macro,
20278 # or declaration with that name.
20279 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20282 for ac_func
in dirfd
20284 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20285 echo "$as_me:$LINENO: checking for $ac_func" >&5
20286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_var+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 cat >conftest.
$ac_ext <<_ACEOF
20291 #line $LINENO "configure"
20294 cat confdefs.h
>>conftest.
$ac_ext
20295 cat >>conftest.
$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 /* System header to define __stub macros and hopefully few prototypes,
20298 which can conflict with char $ac_func (); below.
20299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20300 <limits.h> exists even on freestanding compilers. */
20302 # include <limits.h>
20304 # include <assert.h>
20306 /* Override any gcc2 internal prototype to avoid an error. */
20311 /* We use char because int might match the return type of a gcc2
20312 builtin and then its argument prototype would still apply. */
20314 /* The GNU C library defines this for functions which it implements
20315 to always fail with ENOSYS. Some functions are actually named
20316 something starting with __ and the normal name is an alias. */
20317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20320 char (*f) () = $ac_func;
20329 return f != $ac_func;
20334 rm -f conftest.
$ac_objext conftest
$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try
='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 eval "$as_ac_var=yes"
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.
$ac_ext >&5
20351 eval "$as_ac_var=no"
20353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20357 if test `eval echo '${'$as_ac_var'}'` = yes; then
20358 cat >>confdefs.h
<<_ACEOF
20359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20363 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20368 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20369 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20370 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 dirfd_save_CFLAGS
=$CFLAGS
20375 for ac_expr
in d_fd dd_fd
; do
20377 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20378 cat >conftest.
$ac_ext <<_ACEOF
20379 #line $LINENO "configure"
20382 cat confdefs.h
>>conftest.
$ac_ext
20383 cat >>conftest.
$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20390 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20395 rm -f conftest.
$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397 (eval $ac_compile) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
20401 { ac_try
='test -s conftest.$ac_objext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.
$ac_ext >&5
20414 rm -f conftest.
$ac_objext conftest.
$ac_ext
20415 CFLAGS
=$dirfd_save_CFLAGS
20416 test "$dir_fd_found" = yes && break
20418 test "$dir_fd_found" = yes || ac_expr
=-1
20420 ac_cv_sys_dir_fd_member_name
=$ac_expr
20424 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20425 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20426 if test $ac_cv_have_decl_dirfd = no
; then
20428 cat >>confdefs.h
<<_ACEOF
20429 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20438 for ac_header
in sys
/acl.h
20440 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442 echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20450 # Is the header compilable?
20451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20453 cat >conftest.
$ac_ext <<_ACEOF
20454 #line $LINENO "configure"
20457 cat confdefs.h
>>conftest.
$ac_ext
20458 cat >>conftest.
$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 $ac_includes_default
20461 #include <$ac_header>
20463 rm -f conftest.
$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try
='test -s conftest.$ac_objext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_header_compiler
=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.
$ac_ext >&5
20480 ac_header_compiler
=no
20482 rm -f conftest.
$ac_objext conftest.
$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484 echo "${ECHO_T}$ac_header_compiler" >&6
20486 # Is the header present?
20487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20489 cat >conftest.
$ac_ext <<_ACEOF
20490 #line $LINENO "configure"
20493 cat confdefs.h
>>conftest.
$ac_ext
20494 cat >>conftest.
$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 #include <$ac_header>
20498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1
>conftest.err
20503 cat conftest.err
>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev
/null
; then
20506 if test -s conftest.err
; then
20507 ac_cpp_err
=$ac_c_preproc_warn_flag
20514 if test -z "$ac_cpp_err"; then
20515 ac_header_preproc
=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.
$ac_ext >&5
20520 ac_header_preproc
=no
20522 rm -f conftest.err conftest.
$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524 echo "${ECHO_T}$ac_header_preproc" >&6
20526 # So? What about this header?
20527 case $ac_header_compiler:$ac_header_preproc in
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20535 ## ------------------------------------ ##
20536 ## Report this to bug-autoconf@gnu.org. ##
20537 ## ------------------------------------ ##
20540 sed "s/^/$as_me: WARNING: /" >&2
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20551 ## ------------------------------------ ##
20552 ## Report this to bug-autoconf@gnu.org. ##
20553 ## ------------------------------------ ##
20556 sed "s/^/$as_me: WARNING: /" >&2
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 eval "$as_ac_Header=$ac_header_preproc"
20566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20571 cat >>confdefs.h
<<_ACEOF
20572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20582 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20583 echo "$as_me:$LINENO: checking for $ac_func" >&5
20584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20585 if eval "test \"\${$as_ac_var+set}\" = set"; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 cat >conftest.
$ac_ext <<_ACEOF
20589 #line $LINENO "configure"
20592 cat confdefs.h
>>conftest.
$ac_ext
20593 cat >>conftest.
$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 /* System header to define __stub macros and hopefully few prototypes,
20596 which can conflict with char $ac_func (); below.
20597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20598 <limits.h> exists even on freestanding compilers. */
20600 # include <limits.h>
20602 # include <assert.h>
20604 /* Override any gcc2 internal prototype to avoid an error. */
20609 /* We use char because int might match the return type of a gcc2
20610 builtin and then its argument prototype would still apply. */
20612 /* The GNU C library defines this for functions which it implements
20613 to always fail with ENOSYS. Some functions are actually named
20614 something starting with __ and the normal name is an alias. */
20615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20618 char (*f) () = $ac_func;
20627 return f != $ac_func;
20632 rm -f conftest.
$ac_objext conftest
$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try
='test -s conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 eval "$as_ac_var=yes"
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.
$ac_ext >&5
20649 eval "$as_ac_var=no"
20651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20655 if test `eval echo '${'$as_ac_var'}'` = yes; then
20656 cat >>confdefs.h
<<_ACEOF
20657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20663 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20664 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20665 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 rm -f conftest.sym conftest.
file
20669 echo >conftest.
file
20670 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
20671 if test "$cross_compiling" = yes; then
20672 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20674 cat >conftest.
$ac_ext <<_ACEOF
20675 #line $LINENO "configure"
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
20749 #line $LINENO "configure"
20752 cat confdefs.h
>>conftest.
$ac_ext
20753 cat >>conftest.
$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 # include <sys/types.h>
20757 # include <sys/stat.h>
20763 exit (lstat ("", &sbuf) ? 1 : 0);
20767 rm -f conftest
$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769 (eval $ac_link) 2>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 jm_cv_func_lstat_empty_string_bug
=yes
20780 echo "$as_me: program exited with status $ac_status" >&5
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.
$ac_ext >&5
20784 ( exit $ac_status )
20785 jm_cv_func_lstat_empty_string_bug
=no
20787 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20791 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20792 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20793 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20794 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
20796 cat >>confdefs.h
<<\_ACEOF
20797 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20807 for ac_header
in sys
/param.h
20809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20811 echo "$as_me:$LINENO: checking for $ac_header" >&5
20812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20819 # Is the header compilable?
20820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20822 cat >conftest.
$ac_ext <<_ACEOF
20823 #line $LINENO "configure"
20826 cat confdefs.h
>>conftest.
$ac_ext
20827 cat >>conftest.
$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 $ac_includes_default
20830 #include <$ac_header>
20832 rm -f conftest.
$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834 (eval $ac_compile) 2>&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
20838 { ac_try
='test -s conftest.$ac_objext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_header_compiler
=yes
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.
$ac_ext >&5
20849 ac_header_compiler
=no
20851 rm -f conftest.
$ac_objext conftest.
$ac_ext
20852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20853 echo "${ECHO_T}$ac_header_compiler" >&6
20855 # Is the header present?
20856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20858 cat >conftest.
$ac_ext <<_ACEOF
20859 #line $LINENO "configure"
20862 cat confdefs.h
>>conftest.
$ac_ext
20863 cat >>conftest.
$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <$ac_header>
20867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20870 grep -v '^ *+' conftest.er1
>conftest.err
20872 cat conftest.err
>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } >/dev
/null
; then
20875 if test -s conftest.err
; then
20876 ac_cpp_err
=$ac_c_preproc_warn_flag
20883 if test -z "$ac_cpp_err"; then
20884 ac_header_preproc
=yes
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.
$ac_ext >&5
20889 ac_header_preproc
=no
20891 rm -f conftest.err conftest.
$ac_ext
20892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20893 echo "${ECHO_T}$ac_header_preproc" >&6
20895 # So? What about this header?
20896 case $ac_header_compiler:$ac_header_preproc in
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20904 ## ------------------------------------ ##
20905 ## Report this to bug-autoconf@gnu.org. ##
20906 ## ------------------------------------ ##
20909 sed "s/^/$as_me: WARNING: /" >&2
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20920 ## ------------------------------------ ##
20921 ## Report this to bug-autoconf@gnu.org. ##
20922 ## ------------------------------------ ##
20925 sed "s/^/$as_me: WARNING: /" >&2
20928 echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 eval "$as_ac_Header=$ac_header_preproc"
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20940 cat >>confdefs.h
<<_ACEOF
20941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20948 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20949 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20950 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 cat >conftest.
$ac_ext <<_ACEOF
20954 #line $LINENO "configure"
20957 cat confdefs.h
>>conftest.
$ac_ext
20958 cat >>conftest.
$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 $ac_includes_default
20965 char *p = (char *) stpcpy;
20972 rm -f conftest.
$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try
='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_have_decl_stpcpy
=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.
$ac_ext >&5
20989 ac_cv_have_decl_stpcpy
=no
20991 rm -f conftest.
$ac_objext conftest.
$ac_ext
20993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20994 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20995 if test $ac_cv_have_decl_stpcpy = yes; then
20997 cat >>confdefs.h
<<_ACEOF
20998 #define HAVE_DECL_STPCPY 1
21003 cat >>confdefs.h
<<_ACEOF
21004 #define HAVE_DECL_STPCPY 0
21012 # In the event that we have to use the replacement ftw.c,
21013 # see if we'll also need the replacement tsearch.c.
21014 echo "$as_me:$LINENO: checking for tdestroy" >&5
21015 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21016 if test "${ac_cv_func_tdestroy+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 cat >conftest.
$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21023 cat confdefs.h
>>conftest.
$ac_ext
21024 cat >>conftest.
$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 /* System header to define __stub macros and hopefully few prototypes,
21027 which can conflict with char tdestroy (); below.
21028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21029 <limits.h> exists even on freestanding compilers. */
21031 # include <limits.h>
21033 # include <assert.h>
21035 /* Override any gcc2 internal prototype to avoid an error. */
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21049 char (*f) () = tdestroy;
21058 return f != tdestroy;
21063 rm -f conftest.
$ac_objext conftest
$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try
='test -s conftest$ac_exeext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ac_cv_func_tdestroy
=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.
$ac_ext >&5
21080 ac_cv_func_tdestroy
=no
21082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21084 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21085 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21086 if test $ac_cv_func_tdestroy = yes; then
21093 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21094 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21095 if test "${ac_cv_func_ftw_working+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 # The following test would fail prior to glibc-2.3.2, because `depth'
21100 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21101 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21102 mkdir
-p conftest.dir
/a
/b
/c
21103 if test "$cross_compiling" = yes; then
21104 ac_cv_func_ftw_working
=no
21106 cat >conftest.
$ac_ext <<_ACEOF
21107 #line $LINENO "configure"
21110 cat confdefs.h
>>conftest.
$ac_ext
21111 cat >>conftest.
$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21114 #include <string.h>
21115 #include <stdlib.h>
21118 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21119 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21120 static char **p = _f;
21124 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21126 if (strcmp (file, *p++) != 0)
21135 /* Require these symbols, too. */
21139 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21140 exit ((err == 0 && depth == 4) ? 0 : 1);
21144 rm -f conftest
$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_func_ftw_working
=yes
21157 echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.
$ac_ext >&5
21161 ( exit $ac_status )
21162 ac_cv_func_ftw_working
=no
21164 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21168 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21169 rm -rf conftest.dir
21170 if test $ac_cv_func_ftw_working = no
; then
21171 LIBOBJS
="$LIBOBJS ftw.$ac_objext"
21172 ac_config_links
="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21174 # Add tsearch.o IFF we have to use the replacement ftw.c.
21175 if test -n "$need_tdestroy"; then
21176 LIBOBJS
="$LIBOBJS tsearch.$ac_objext"
21177 # Link search.h to search_.h if we use the replacement tsearch.c.
21178 ac_config_links
="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21186 for ac_func
in lchown
21188 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189 echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21191 if eval "test \"\${$as_ac_var+set}\" = set"; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 cat >conftest.
$ac_ext <<_ACEOF
21195 #line $LINENO "configure"
21198 cat confdefs.h
>>conftest.
$ac_ext
21199 cat >>conftest.
$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 /* System header to define __stub macros and hopefully few prototypes,
21202 which can conflict with char $ac_func (); below.
21203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21204 <limits.h> exists even on freestanding compilers. */
21206 # include <limits.h>
21208 # include <assert.h>
21210 /* Override any gcc2 internal prototype to avoid an error. */
21215 /* We use char because int might match the return type of a gcc2
21216 builtin and then its argument prototype would still apply. */
21218 /* The GNU C library defines this for functions which it implements
21219 to always fail with ENOSYS. Some functions are actually named
21220 something starting with __ and the normal name is an alias. */
21221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21224 char (*f) () = $ac_func;
21233 return f != $ac_func;
21238 rm -f conftest.
$ac_objext conftest
$ac_exeext
21239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21240 (eval $ac_link) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try
='test -s conftest$ac_exeext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 eval "$as_ac_var=yes"
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.
$ac_ext >&5
21255 eval "$as_ac_var=no"
21257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261 if test `eval echo '${'$as_ac_var'}'` = yes; then
21262 cat >>confdefs.h
<<_ACEOF
21263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21267 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21273 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21274 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21275 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 # Arrange for deletion of the temporary directory this test creates.
21280 ac_clean_files
="$ac_clean_files confdir2"
21281 mkdir confdir2
; : > confdir
2/file
21282 if test "$cross_compiling" = yes; then
21283 fetish_cv_func_rmdir_errno_not_empty
=ENOTEMPTY
21286 cat >conftest.
$ac_ext <<_ACEOF
21287 #line $LINENO "configure"
21290 cat confdefs.h
>>conftest.
$ac_ext
21291 cat >>conftest.
$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21303 rmdir ("confdir2");
21305 s = fopen ("confdir2/errno", "w");
21306 fprintf (s, "%d\n", val);
21311 rm -f conftest
$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 fetish_cv_func_rmdir_errno_not_empty
=`cat confdir2/errno`
21324 echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.
$ac_ext >&5
21328 ( exit $ac_status )
21329 fetish_cv_func_rmdir_errno_not_empty
='configure error in rmdir-errno.m4'
21331 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21336 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21337 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21340 cat >>confdefs.h
<<_ACEOF
21341 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21345 test -z "$ac_cv_header_unistd_h" \
21347 for ac_header
in unistd.h
21349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21359 # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.
$ac_ext <<_ACEOF
21363 #line $LINENO "configure"
21366 cat confdefs.h
>>conftest.
$ac_ext
21367 cat >>conftest.
$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <$ac_header>
21372 rm -f conftest.
$ac_objext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374 (eval $ac_compile) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } &&
21378 { ac_try
='test -s conftest.$ac_objext'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
21384 ac_header_compiler
=yes
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.
$ac_ext >&5
21389 ac_header_compiler
=no
21391 rm -f conftest.
$ac_objext conftest.
$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21393 echo "${ECHO_T}$ac_header_compiler" >&6
21395 # Is the header present?
21396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21398 cat >conftest.
$ac_ext <<_ACEOF
21399 #line $LINENO "configure"
21402 cat confdefs.h
>>conftest.
$ac_ext
21403 cat >>conftest.
$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 #include <$ac_header>
21407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21408 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21410 grep -v '^ *+' conftest.er1
>conftest.err
21412 cat conftest.err
>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } >/dev
/null
; then
21415 if test -s conftest.err
; then
21416 ac_cpp_err
=$ac_c_preproc_warn_flag
21423 if test -z "$ac_cpp_err"; then
21424 ac_header_preproc
=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.
$ac_ext >&5
21429 ac_header_preproc
=no
21431 rm -f conftest.err conftest.
$ac_ext
21432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21433 echo "${ECHO_T}$ac_header_preproc" >&6
21435 # So? What about this header?
21436 case $ac_header_compiler:$ac_header_preproc in
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21444 ## ------------------------------------ ##
21445 ## Report this to bug-autoconf@gnu.org. ##
21446 ## ------------------------------------ ##
21449 sed "s/^/$as_me: WARNING: /" >&2
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21460 ## ------------------------------------ ##
21461 ## Report this to bug-autoconf@gnu.org. ##
21462 ## ------------------------------------ ##
21465 sed "s/^/$as_me: WARNING: /" >&2
21468 echo "$as_me:$LINENO: checking for $ac_header" >&5
21469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 eval "$as_ac_Header=$ac_header_preproc"
21475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21480 cat >>confdefs.h
<<_ACEOF
21481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21488 echo "$as_me:$LINENO: checking for working chown" >&5
21489 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21490 if test "${jm_cv_func_working_chown+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 if test "$cross_compiling" = yes; then
21494 jm_cv_func_working_chown
=no
21496 cat >conftest.
$ac_ext <<_ACEOF
21497 #line $LINENO "configure"
21500 cat confdefs.h
>>conftest.
$ac_ext
21501 cat >>conftest.
$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21504 # include <sys/types.h>
21505 # include <sys/stat.h>
21506 # include <fcntl.h>
21507 # ifdef HAVE_UNISTD_H
21508 # include <unistd.h>
21514 char *f = "conftest.chown";
21515 struct stat before, after;
21517 if (creat (f, 0600) < 0)
21519 if (stat (f, &before) < 0)
21521 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21523 if (stat (f, &after) < 0)
21525 exit ((before.st_uid == after.st_uid
21526 && before.st_gid == after.st_gid) ? 0 : 1);
21530 rm -f conftest
$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 jm_cv_func_working_chown
=yes
21543 echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.
$ac_ext >&5
21547 ( exit $ac_status )
21548 jm_cv_func_working_chown
=no
21550 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21554 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21555 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21556 if test $jm_cv_func_working_chown = no
; then
21557 LIBOBJS
="$LIBOBJS chown.$ac_objext"
21559 cat >>confdefs.h
<<\_ACEOF
21560 #define chown rpl_chown
21567 for ac_header
in sys
/time.h unistd.h
21569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21571 echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21579 # Is the header compilable?
21580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21582 cat >conftest.
$ac_ext <<_ACEOF
21583 #line $LINENO "configure"
21586 cat confdefs.h
>>conftest.
$ac_ext
21587 cat >>conftest.
$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <$ac_header>
21592 rm -f conftest.
$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try
='test -s conftest.$ac_objext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_header_compiler
=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.
$ac_ext >&5
21609 ac_header_compiler
=no
21611 rm -f conftest.
$ac_objext conftest.
$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6
21615 # Is the header present?
21616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21618 cat >conftest.
$ac_ext <<_ACEOF
21619 #line $LINENO "configure"
21622 cat confdefs.h
>>conftest.
$ac_ext
21623 cat >>conftest.
$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <$ac_header>
21627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21630 grep -v '^ *+' conftest.er1
>conftest.err
21632 cat conftest.err
>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev
/null
; then
21635 if test -s conftest.err
; then
21636 ac_cpp_err
=$ac_c_preproc_warn_flag
21643 if test -z "$ac_cpp_err"; then
21644 ac_header_preproc
=yes
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.
$ac_ext >&5
21649 ac_header_preproc
=no
21651 rm -f conftest.err conftest.
$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6
21655 # So? What about this header?
21656 case $ac_header_compiler:$ac_header_preproc in
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21664 ## ------------------------------------ ##
21665 ## Report this to bug-autoconf@gnu.org. ##
21666 ## ------------------------------------ ##
21669 sed "s/^/$as_me: WARNING: /" >&2
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21680 ## ------------------------------------ ##
21681 ## Report this to bug-autoconf@gnu.org. ##
21682 ## ------------------------------------ ##
21685 sed "s/^/$as_me: WARNING: /" >&2
21688 echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 eval "$as_ac_Header=$ac_header_preproc"
21695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700 cat >>confdefs.h
<<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21709 for ac_func
in alarm
21711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21714 if eval "test \"\${$as_ac_var+set}\" = set"; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 cat >conftest.
$ac_ext <<_ACEOF
21718 #line $LINENO "configure"
21721 cat confdefs.h
>>conftest.
$ac_ext
21722 cat >>conftest.
$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 /* System header to define __stub macros and hopefully few prototypes,
21725 which can conflict with char $ac_func (); below.
21726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727 <limits.h> exists even on freestanding compilers. */
21729 # include <limits.h>
21731 # include <assert.h>
21733 /* Override any gcc2 internal prototype to avoid an error. */
21738 /* We use char because int might match the return type of a gcc2
21739 builtin and then its argument prototype would still apply. */
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21747 char (*f) () = $ac_func;
21756 return f != $ac_func;
21761 rm -f conftest.
$ac_objext conftest
$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
21767 { ac_try
='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 eval "$as_ac_var=yes"
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.
$ac_ext >&5
21778 eval "$as_ac_var=no"
21780 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21784 if test `eval echo '${'$as_ac_var'}'` = yes; then
21785 cat >>confdefs.h
<<_ACEOF
21786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21792 echo "$as_me:$LINENO: checking for working mktime" >&5
21793 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21794 if test "${ac_cv_func_working_mktime+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 if test "$cross_compiling" = yes; then
21798 ac_cv_func_working_mktime
=no
21800 cat >conftest.
$ac_ext <<_ACEOF
21801 #line $LINENO "configure"
21804 cat confdefs.h
>>conftest.
$ac_ext
21805 cat >>conftest.
$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 /* Test program from Paul Eggert and Tony Leneis. */
21808 #if TIME_WITH_SYS_TIME
21809 # include <sys/time.h>
21812 # if HAVE_SYS_TIME_H
21813 # include <sys/time.h>
21820 # include <unistd.h>
21824 # define alarm(X) /* empty */
21827 /* Work around redefinition to rpl_putenv by other config tests. */
21830 static time_t time_t_max;
21832 /* Values we'll use to set the TZ environment variable. */
21833 static const char *const tz_strings[] = {
21834 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21835 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21839 /* Fail if mktime fails to convert a date in the spring-forward gap.
21840 Based on a problem report from Andreas Jaeger. */
21842 spring_forward_gap ()
21844 /* glibc (up to about 1998-10-07) failed this test. */
21847 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21848 instead of "TZ=America/Vancouver" in order to detect the bug even
21849 on systems that don't support the Olson extension, or don't have the
21850 full zoneinfo tables installed. */
21851 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21860 if (mktime (&tm) == (time_t)-1)
21869 if ((lt = localtime (&now)) && mktime (lt) != now)
21871 now = time_t_max - now;
21872 if ((lt = localtime (&now)) && mktime (lt) != now)
21879 /* Based on code from Ariel Faigon. */
21889 if (tm.tm_mon != 2 || tm.tm_mday != 31)
21899 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21900 now = mktime (&tm);
21901 if (now != (time_t) -1)
21903 struct tm *lt = localtime (&now);
21905 && lt->tm_year == tm.tm_year
21906 && lt->tm_mon == tm.tm_mon
21907 && lt->tm_mday == tm.tm_mday
21908 && lt->tm_hour == tm.tm_hour
21909 && lt->tm_min == tm.tm_min
21910 && lt->tm_sec == tm.tm_sec
21911 && lt->tm_yday == tm.tm_yday
21912 && lt->tm_wday == tm.tm_wday
21913 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21914 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21925 /* This test makes some buggy mktime implementations loop.
21926 Give up after 60 seconds; a mktime slower than that
21927 isn't worth using anyway. */
21930 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21933 delta = time_t_max / 997; /* a suitable prime number */
21934 for (i = 0; i < N_STRINGS; i++)
21937 putenv (tz_strings[i]);
21939 for (t = 0; t <= time_t_max - delta; t += delta)
21941 mktime_test ((time_t) 60 * 60);
21942 mktime_test ((time_t) 60 * 60 * 24);
21944 for (j = 1; 0 < j; j *= 2)
21946 bigtime_test (j - 1);
21949 spring_forward_gap ();
21953 rm -f conftest
$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_cv_func_working_mktime
=yes
21966 echo "$as_me: program exited with status $ac_status" >&5
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.
$ac_ext >&5
21970 ( exit $ac_status )
21971 ac_cv_func_working_mktime
=no
21973 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21976 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21977 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21978 if test $ac_cv_func_working_mktime = no
; then
21979 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
21984 for ac_func
in localtime_r
21986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21987 echo "$as_me:$LINENO: checking for $ac_func" >&5
21988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21989 if eval "test \"\${$as_ac_var+set}\" = set"; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 cat >conftest.
$ac_ext <<_ACEOF
21993 #line $LINENO "configure"
21996 cat confdefs.h
>>conftest.
$ac_ext
21997 cat >>conftest.
$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 /* System header to define __stub macros and hopefully few prototypes,
22000 which can conflict with char $ac_func (); below.
22001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22002 <limits.h> exists even on freestanding compilers. */
22004 # include <limits.h>
22006 # include <assert.h>
22008 /* Override any gcc2 internal prototype to avoid an error. */
22013 /* We use char because int might match the return type of a gcc2
22014 builtin and then its argument prototype would still apply. */
22016 /* The GNU C library defines this for functions which it implements
22017 to always fail with ENOSYS. Some functions are actually named
22018 something starting with __ and the normal name is an alias. */
22019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22022 char (*f) () = $ac_func;
22031 return f != $ac_func;
22036 rm -f conftest.
$ac_objext conftest
$ac_exeext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22038 (eval $ac_link) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try
='test -s conftest$ac_exeext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 eval "$as_ac_var=yes"
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.
$ac_ext >&5
22053 eval "$as_ac_var=no"
22055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060 cat >>confdefs.h
<<_ACEOF
22061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22068 if test $ac_cv_func_working_mktime = no
; then
22070 cat >>confdefs.h
<<\_ACEOF
22071 #define mktime rpl_mktime
22078 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22079 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22080 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 if test "$cross_compiling" = yes; then
22084 jm_cv_func_stat_empty_string_bug
=yes
22086 cat >conftest.
$ac_ext <<_ACEOF
22087 #line $LINENO "configure"
22090 cat confdefs.h
>>conftest.
$ac_ext
22091 cat >>conftest.
$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22094 # include <sys/types.h>
22095 # include <sys/stat.h>
22101 exit (stat ("", &sbuf) ? 1 : 0);
22105 rm -f conftest
$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107 (eval $ac_link) 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 jm_cv_func_stat_empty_string_bug
=yes
22118 echo "$as_me: program exited with status $ac_status" >&5
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.
$ac_ext >&5
22122 ( exit $ac_status )
22123 jm_cv_func_stat_empty_string_bug
=no
22125 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22129 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22130 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22131 if test $jm_cv_func_stat_empty_string_bug = yes; then
22132 LIBOBJS
="$LIBOBJS stat.$ac_objext"
22134 cat >>confdefs.h
<<\_ACEOF
22135 #define HAVE_STAT_EMPTY_STRING_BUG 1
22141 for ac_header
in stdlib.h
22143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22145 echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22153 # Is the header compilable?
22154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22156 cat >conftest.
$ac_ext <<_ACEOF
22157 #line $LINENO "configure"
22160 cat confdefs.h
>>conftest.
$ac_ext
22161 cat >>conftest.
$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 $ac_includes_default
22164 #include <$ac_header>
22166 rm -f conftest.
$ac_objext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168 (eval $ac_compile) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } &&
22172 { ac_try
='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_header_compiler
=yes
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.
$ac_ext >&5
22183 ac_header_compiler
=no
22185 rm -f conftest.
$ac_objext conftest.
$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6
22189 # Is the header present?
22190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192 cat >conftest.
$ac_ext <<_ACEOF
22193 #line $LINENO "configure"
22196 cat confdefs.h
>>conftest.
$ac_ext
22197 cat >>conftest.
$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199 #include <$ac_header>
22201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1
>conftest.err
22206 cat conftest.err
>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } >/dev
/null
; then
22209 if test -s conftest.err
; then
22210 ac_cpp_err
=$ac_c_preproc_warn_flag
22217 if test -z "$ac_cpp_err"; then
22218 ac_header_preproc
=yes
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.
$ac_ext >&5
22223 ac_header_preproc
=no
22225 rm -f conftest.err conftest.
$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227 echo "${ECHO_T}$ac_header_preproc" >&6
22229 # So? What about this header?
22230 case $ac_header_compiler:$ac_header_preproc in
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238 ## ------------------------------------ ##
22239 ## Report this to bug-autoconf@gnu.org. ##
22240 ## ------------------------------------ ##
22243 sed "s/^/$as_me: WARNING: /" >&2
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22254 ## ------------------------------------ ##
22255 ## Report this to bug-autoconf@gnu.org. ##
22256 ## ------------------------------------ ##
22259 sed "s/^/$as_me: WARNING: /" >&2
22262 echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 eval "$as_ac_Header=$ac_header_preproc"
22269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274 cat >>confdefs.h
<<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22282 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22283 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22284 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 if test "$cross_compiling" = yes; then
22288 ac_cv_func_realloc_0_nonnull
=no
22290 cat >conftest.
$ac_ext <<_ACEOF
22291 #line $LINENO "configure"
22294 cat confdefs.h
>>conftest.
$ac_ext
22295 cat >>conftest.
$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 #if STDC_HEADERS || HAVE_STDLIB_H
22298 # include <stdlib.h>
22306 exit (realloc (0, 0) ? 0 : 1);
22311 rm -f conftest
$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_realloc_0_nonnull
=yes
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.
$ac_ext >&5
22328 ( exit $ac_status )
22329 ac_cv_func_realloc_0_nonnull
=no
22331 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22335 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22336 if test $ac_cv_func_realloc_0_nonnull = yes; then
22338 cat >>confdefs.h
<<\_ACEOF
22339 #define HAVE_REALLOC 1
22343 cat >>confdefs.h
<<\_ACEOF
22344 #define HAVE_REALLOC 0
22347 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
22349 cat >>confdefs.h
<<\_ACEOF
22350 #define realloc rpl_realloc
22358 for ac_header
in stdlib.h
22360 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22362 echo "$as_me:$LINENO: checking for $ac_header" >&5
22363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22370 # Is the header compilable?
22371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22373 cat >conftest.
$ac_ext <<_ACEOF
22374 #line $LINENO "configure"
22377 cat confdefs.h
>>conftest.
$ac_ext
22378 cat >>conftest.
$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 $ac_includes_default
22381 #include <$ac_header>
22383 rm -f conftest.
$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385 (eval $ac_compile) 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
22389 { ac_try
='test -s conftest.$ac_objext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 ac_header_compiler
=yes
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.
$ac_ext >&5
22400 ac_header_compiler
=no
22402 rm -f conftest.
$ac_objext conftest.
$ac_ext
22403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22404 echo "${ECHO_T}$ac_header_compiler" >&6
22406 # Is the header present?
22407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22409 cat >conftest.
$ac_ext <<_ACEOF
22410 #line $LINENO "configure"
22413 cat confdefs.h
>>conftest.
$ac_ext
22414 cat >>conftest.
$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 #include <$ac_header>
22418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22421 grep -v '^ *+' conftest.er1
>conftest.err
22423 cat conftest.err
>&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } >/dev
/null
; then
22426 if test -s conftest.err
; then
22427 ac_cpp_err
=$ac_c_preproc_warn_flag
22434 if test -z "$ac_cpp_err"; then
22435 ac_header_preproc
=yes
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.
$ac_ext >&5
22440 ac_header_preproc
=no
22442 rm -f conftest.err conftest.
$ac_ext
22443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22444 echo "${ECHO_T}$ac_header_preproc" >&6
22446 # So? What about this header?
22447 case $ac_header_compiler:$ac_header_preproc in
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22455 ## ------------------------------------ ##
22456 ## Report this to bug-autoconf@gnu.org. ##
22457 ## ------------------------------------ ##
22460 sed "s/^/$as_me: WARNING: /" >&2
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22471 ## ------------------------------------ ##
22472 ## Report this to bug-autoconf@gnu.org. ##
22473 ## ------------------------------------ ##
22476 sed "s/^/$as_me: WARNING: /" >&2
22479 echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 eval "$as_ac_Header=$ac_header_preproc"
22486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22491 cat >>confdefs.h
<<_ACEOF
22492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22499 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22500 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22501 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22504 if test "$cross_compiling" = yes; then
22505 ac_cv_func_malloc_0_nonnull
=no
22507 cat >conftest.
$ac_ext <<_ACEOF
22508 #line $LINENO "configure"
22511 cat confdefs.h
>>conftest.
$ac_ext
22512 cat >>conftest.
$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 #if STDC_HEADERS || HAVE_STDLIB_H
22515 # include <stdlib.h>
22523 exit (malloc (0) ? 0 : 1);
22528 rm -f conftest
$ac_exeext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22530 (eval $ac_link) 2>&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_func_malloc_0_nonnull
=yes
22541 echo "$as_me: program exited with status $ac_status" >&5
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.
$ac_ext >&5
22545 ( exit $ac_status )
22546 ac_cv_func_malloc_0_nonnull
=no
22548 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22552 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22553 if test $ac_cv_func_malloc_0_nonnull = yes; then
22555 cat >>confdefs.h
<<\_ACEOF
22556 #define HAVE_MALLOC 1
22560 cat >>confdefs.h
<<\_ACEOF
22561 #define HAVE_MALLOC 0
22564 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
22566 cat >>confdefs.h
<<\_ACEOF
22567 #define malloc rpl_malloc
22575 nanosleep_save_libs
=$LIBS
22577 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22578 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22580 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22581 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22582 if test "${ac_cv_search_nanosleep+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 ac_func_search_save_LIBS
=$LIBS
22587 ac_cv_search_nanosleep
=no
22588 cat >conftest.
$ac_ext <<_ACEOF
22589 #line $LINENO "configure"
22592 cat confdefs.h
>>conftest.
$ac_ext
22593 cat >>conftest.
$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22596 /* Override any gcc2 internal prototype to avoid an error. */
22600 /* We use char because int might match the return type of a gcc2
22601 builtin and then its argument prototype would still apply. */
22611 rm -f conftest.
$ac_objext conftest
$ac_exeext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22613 (eval $ac_link) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try
='test -s conftest$ac_exeext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_search_nanosleep
='none required'
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.
$ac_ext >&5
22629 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22630 if test "$ac_cv_search_nanosleep" = no
; then
22631 for ac_lib
in rt posix4
; do
22632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22633 cat >conftest.
$ac_ext <<_ACEOF
22634 #line $LINENO "configure"
22637 cat confdefs.h
>>conftest.
$ac_ext
22638 cat >>conftest.
$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 /* Override any gcc2 internal prototype to avoid an error. */
22645 /* We use char because int might match the return type of a gcc2
22646 builtin and then its argument prototype would still apply. */
22656 rm -f conftest.
$ac_objext conftest
$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658 (eval $ac_link) 2>&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
22662 { ac_try
='test -s conftest$ac_exeext'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 ac_cv_search_nanosleep
="-l$ac_lib"; break
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.
$ac_ext >&5
22674 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22677 LIBS
=$ac_func_search_save_LIBS
22680 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22681 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22683 if test "$ac_cv_search_nanosleep" = no
; then :
22686 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22689 LIBS
="$ac_cv_search_nanosleep $LIBS"
22690 LIB_NANOSLEEP
=$ac_cv_search_nanosleep
22696 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22697 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22698 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 if test "$cross_compiling" = yes; then
22704 jm_cv_func_nanosleep_works
=no
22706 cat >conftest.
$ac_ext <<_ACEOF
22707 #line $LINENO "configure"
22710 cat confdefs.h
>>conftest.
$ac_ext
22711 cat >>conftest.
$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22714 # if TIME_WITH_SYS_TIME
22715 # include <sys/time.h>
22718 # if HAVE_SYS_TIME_H
22719 # include <sys/time.h>
22728 struct timespec ts_sleep, ts_remaining;
22729 ts_sleep.tv_sec = 0;
22730 ts_sleep.tv_nsec = 1;
22731 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22735 rm -f conftest
$ac_exeext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22737 (eval $ac_link) 2>&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 jm_cv_func_nanosleep_works
=yes
22748 echo "$as_me: program exited with status $ac_status" >&5
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.
$ac_ext >&5
22752 ( exit $ac_status )
22753 jm_cv_func_nanosleep_works
=no
22755 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22759 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22760 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22761 if test $jm_cv_func_nanosleep_works = no
; then
22762 LIBOBJS
="$LIBOBJS nanosleep.$ac_objext"
22764 cat >>confdefs.h
<<\_ACEOF
22765 #define nanosleep rpl_nanosleep
22770 LIBS
=$nanosleep_save_libs
22772 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22773 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22774 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 cat >conftest.
$ac_ext <<_ACEOF
22778 #line $LINENO "configure"
22781 cat confdefs.h
>>conftest.
$ac_ext
22782 cat >>conftest.
$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22788 #ifndef clearerr_unlocked
22789 char *p = (char *) clearerr_unlocked;
22796 rm -f conftest.
$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try
='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ac_cv_have_decl_clearerr_unlocked
=yes
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.
$ac_ext >&5
22813 ac_cv_have_decl_clearerr_unlocked
=no
22815 rm -f conftest.
$ac_objext conftest.
$ac_ext
22817 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22818 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22819 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22821 cat >>confdefs.h
<<_ACEOF
22822 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22827 cat >>confdefs.h
<<_ACEOF
22828 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22833 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22834 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22835 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 cat >conftest.
$ac_ext <<_ACEOF
22839 #line $LINENO "configure"
22842 cat confdefs.h
>>conftest.
$ac_ext
22843 cat >>conftest.
$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22849 #ifndef feof_unlocked
22850 char *p = (char *) feof_unlocked;
22857 rm -f conftest.
$ac_objext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22859 (eval $ac_compile) 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try
='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 ac_cv_have_decl_feof_unlocked
=yes
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.
$ac_ext >&5
22874 ac_cv_have_decl_feof_unlocked
=no
22876 rm -f conftest.
$ac_objext conftest.
$ac_ext
22878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22879 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22880 if test $ac_cv_have_decl_feof_unlocked = yes; then
22882 cat >>confdefs.h
<<_ACEOF
22883 #define HAVE_DECL_FEOF_UNLOCKED 1
22888 cat >>confdefs.h
<<_ACEOF
22889 #define HAVE_DECL_FEOF_UNLOCKED 0
22894 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22895 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22896 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 cat >conftest.
$ac_ext <<_ACEOF
22900 #line $LINENO "configure"
22903 cat confdefs.h
>>conftest.
$ac_ext
22904 cat >>conftest.
$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22910 #ifndef ferror_unlocked
22911 char *p = (char *) ferror_unlocked;
22918 rm -f conftest.
$ac_objext
22919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920 (eval $ac_compile) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } &&
22924 { ac_try
='test -s conftest.$ac_objext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_cv_have_decl_ferror_unlocked
=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.
$ac_ext >&5
22935 ac_cv_have_decl_ferror_unlocked
=no
22937 rm -f conftest.
$ac_objext conftest.
$ac_ext
22939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22940 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22941 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22943 cat >>confdefs.h
<<_ACEOF
22944 #define HAVE_DECL_FERROR_UNLOCKED 1
22949 cat >>confdefs.h
<<_ACEOF
22950 #define HAVE_DECL_FERROR_UNLOCKED 0
22955 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22956 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22957 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 cat >conftest.
$ac_ext <<_ACEOF
22961 #line $LINENO "configure"
22964 cat confdefs.h
>>conftest.
$ac_ext
22965 cat >>conftest.
$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22971 #ifndef fflush_unlocked
22972 char *p = (char *) fflush_unlocked;
22979 rm -f conftest.
$ac_objext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981 (eval $ac_compile) 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } &&
22985 { ac_try
='test -s conftest.$ac_objext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_have_decl_fflush_unlocked
=yes
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.
$ac_ext >&5
22996 ac_cv_have_decl_fflush_unlocked
=no
22998 rm -f conftest.
$ac_objext conftest.
$ac_ext
23000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23001 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23002 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23004 cat >>confdefs.h
<<_ACEOF
23005 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23010 cat >>confdefs.h
<<_ACEOF
23011 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23016 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23017 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23018 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 cat >conftest.
$ac_ext <<_ACEOF
23022 #line $LINENO "configure"
23025 cat confdefs.h
>>conftest.
$ac_ext
23026 cat >>conftest.
$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23032 #ifndef fgets_unlocked
23033 char *p = (char *) fgets_unlocked;
23040 rm -f conftest.
$ac_objext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042 (eval $ac_compile) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
23046 { ac_try
='test -s conftest.$ac_objext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_have_decl_fgets_unlocked
=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.
$ac_ext >&5
23057 ac_cv_have_decl_fgets_unlocked
=no
23059 rm -f conftest.
$ac_objext conftest.
$ac_ext
23061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23062 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23063 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23065 cat >>confdefs.h
<<_ACEOF
23066 #define HAVE_DECL_FGETS_UNLOCKED 1
23071 cat >>confdefs.h
<<_ACEOF
23072 #define HAVE_DECL_FGETS_UNLOCKED 0
23077 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23078 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23079 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 cat >conftest.
$ac_ext <<_ACEOF
23083 #line $LINENO "configure"
23086 cat confdefs.h
>>conftest.
$ac_ext
23087 cat >>conftest.
$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23093 #ifndef fputc_unlocked
23094 char *p = (char *) fputc_unlocked;
23101 rm -f conftest.
$ac_objext
23102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23103 (eval $ac_compile) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } &&
23107 { ac_try
='test -s conftest.$ac_objext'
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113 ac_cv_have_decl_fputc_unlocked
=yes
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.
$ac_ext >&5
23118 ac_cv_have_decl_fputc_unlocked
=no
23120 rm -f conftest.
$ac_objext conftest.
$ac_ext
23122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23123 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23124 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23126 cat >>confdefs.h
<<_ACEOF
23127 #define HAVE_DECL_FPUTC_UNLOCKED 1
23132 cat >>confdefs.h
<<_ACEOF
23133 #define HAVE_DECL_FPUTC_UNLOCKED 0
23138 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23139 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23140 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 cat >conftest.
$ac_ext <<_ACEOF
23144 #line $LINENO "configure"
23147 cat confdefs.h
>>conftest.
$ac_ext
23148 cat >>conftest.
$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23154 #ifndef fputs_unlocked
23155 char *p = (char *) fputs_unlocked;
23162 rm -f conftest.
$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164 (eval $ac_compile) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try
='test -s conftest.$ac_objext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_have_decl_fputs_unlocked
=yes
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.
$ac_ext >&5
23179 ac_cv_have_decl_fputs_unlocked
=no
23181 rm -f conftest.
$ac_objext conftest.
$ac_ext
23183 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23184 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23185 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23187 cat >>confdefs.h
<<_ACEOF
23188 #define HAVE_DECL_FPUTS_UNLOCKED 1
23193 cat >>confdefs.h
<<_ACEOF
23194 #define HAVE_DECL_FPUTS_UNLOCKED 0
23199 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23200 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23201 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 cat >conftest.
$ac_ext <<_ACEOF
23205 #line $LINENO "configure"
23208 cat confdefs.h
>>conftest.
$ac_ext
23209 cat >>conftest.
$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23215 #ifndef fread_unlocked
23216 char *p = (char *) fread_unlocked;
23223 rm -f conftest.
$ac_objext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23225 (eval $ac_compile) 2>&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } &&
23229 { ac_try
='test -s conftest.$ac_objext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_have_decl_fread_unlocked
=yes
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.
$ac_ext >&5
23240 ac_cv_have_decl_fread_unlocked
=no
23242 rm -f conftest.
$ac_objext conftest.
$ac_ext
23244 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23245 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23246 if test $ac_cv_have_decl_fread_unlocked = yes; then
23248 cat >>confdefs.h
<<_ACEOF
23249 #define HAVE_DECL_FREAD_UNLOCKED 1
23254 cat >>confdefs.h
<<_ACEOF
23255 #define HAVE_DECL_FREAD_UNLOCKED 0
23260 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23261 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23262 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23265 cat >conftest.
$ac_ext <<_ACEOF
23266 #line $LINENO "configure"
23269 cat confdefs.h
>>conftest.
$ac_ext
23270 cat >>conftest.
$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23276 #ifndef fwrite_unlocked
23277 char *p = (char *) fwrite_unlocked;
23284 rm -f conftest.
$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286 (eval $ac_compile) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try
='test -s conftest.$ac_objext'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_have_decl_fwrite_unlocked
=yes
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.
$ac_ext >&5
23301 ac_cv_have_decl_fwrite_unlocked
=no
23303 rm -f conftest.
$ac_objext conftest.
$ac_ext
23305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23306 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23307 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23309 cat >>confdefs.h
<<_ACEOF
23310 #define HAVE_DECL_FWRITE_UNLOCKED 1
23315 cat >>confdefs.h
<<_ACEOF
23316 #define HAVE_DECL_FWRITE_UNLOCKED 0
23321 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23322 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23323 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 cat >conftest.
$ac_ext <<_ACEOF
23327 #line $LINENO "configure"
23330 cat confdefs.h
>>conftest.
$ac_ext
23331 cat >>conftest.
$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 $ac_includes_default
23337 #ifndef getc_unlocked
23338 char *p = (char *) getc_unlocked;
23345 rm -f conftest.
$ac_objext
23346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347 (eval $ac_compile) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try
='test -s conftest.$ac_objext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_cv_have_decl_getc_unlocked
=yes
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.
$ac_ext >&5
23362 ac_cv_have_decl_getc_unlocked
=no
23364 rm -f conftest.
$ac_objext conftest.
$ac_ext
23366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23367 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23368 if test $ac_cv_have_decl_getc_unlocked = yes; then
23370 cat >>confdefs.h
<<_ACEOF
23371 #define HAVE_DECL_GETC_UNLOCKED 1
23376 cat >>confdefs.h
<<_ACEOF
23377 #define HAVE_DECL_GETC_UNLOCKED 0
23382 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23383 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23384 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
23387 cat >conftest.
$ac_ext <<_ACEOF
23388 #line $LINENO "configure"
23391 cat confdefs.h
>>conftest.
$ac_ext
23392 cat >>conftest.
$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23398 #ifndef getchar_unlocked
23399 char *p = (char *) getchar_unlocked;
23406 rm -f conftest.
$ac_objext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23408 (eval $ac_compile) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try
='test -s conftest.$ac_objext'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 ac_cv_have_decl_getchar_unlocked
=yes
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.
$ac_ext >&5
23423 ac_cv_have_decl_getchar_unlocked
=no
23425 rm -f conftest.
$ac_objext conftest.
$ac_ext
23427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23428 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23429 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23431 cat >>confdefs.h
<<_ACEOF
23432 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23437 cat >>confdefs.h
<<_ACEOF
23438 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23443 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23444 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23445 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 cat >conftest.
$ac_ext <<_ACEOF
23449 #line $LINENO "configure"
23452 cat confdefs.h
>>conftest.
$ac_ext
23453 cat >>conftest.
$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 $ac_includes_default
23459 #ifndef putc_unlocked
23460 char *p = (char *) putc_unlocked;
23467 rm -f conftest.
$ac_objext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23469 (eval $ac_compile) 2>&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } &&
23473 { ac_try
='test -s conftest.$ac_objext'
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; }; then
23479 ac_cv_have_decl_putc_unlocked
=yes
23481 echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.
$ac_ext >&5
23484 ac_cv_have_decl_putc_unlocked
=no
23486 rm -f conftest.
$ac_objext conftest.
$ac_ext
23488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23489 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23490 if test $ac_cv_have_decl_putc_unlocked = yes; then
23492 cat >>confdefs.h
<<_ACEOF
23493 #define HAVE_DECL_PUTC_UNLOCKED 1
23498 cat >>confdefs.h
<<_ACEOF
23499 #define HAVE_DECL_PUTC_UNLOCKED 0
23504 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23505 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23506 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 cat >conftest.
$ac_ext <<_ACEOF
23510 #line $LINENO "configure"
23513 cat confdefs.h
>>conftest.
$ac_ext
23514 cat >>conftest.
$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516 $ac_includes_default
23520 #ifndef putchar_unlocked
23521 char *p = (char *) putchar_unlocked;
23528 rm -f conftest.
$ac_objext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23530 (eval $ac_compile) 2>&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
23534 { ac_try
='test -s conftest.$ac_objext'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_cv_have_decl_putchar_unlocked
=yes
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.
$ac_ext >&5
23545 ac_cv_have_decl_putchar_unlocked
=no
23547 rm -f conftest.
$ac_objext conftest.
$ac_ext
23549 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23550 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23551 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23553 cat >>confdefs.h
<<_ACEOF
23554 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23559 cat >>confdefs.h
<<_ACEOF
23560 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23568 echo "$as_me:$LINENO: checking for group_member" >&5
23569 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23570 if test "${ac_cv_func_group_member+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 cat >conftest.
$ac_ext <<_ACEOF
23574 #line $LINENO "configure"
23577 cat confdefs.h
>>conftest.
$ac_ext
23578 cat >>conftest.
$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 /* System header to define __stub macros and hopefully few prototypes,
23581 which can conflict with char group_member (); below.
23582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23583 <limits.h> exists even on freestanding compilers. */
23585 # include <limits.h>
23587 # include <assert.h>
23589 /* Override any gcc2 internal prototype to avoid an error. */
23594 /* We use char because int might match the return type of a gcc2
23595 builtin and then its argument prototype would still apply. */
23596 char group_member ();
23597 /* The GNU C library defines this for functions which it implements
23598 to always fail with ENOSYS. Some functions are actually named
23599 something starting with __ and the normal name is an alias. */
23600 #if defined (__stub_group_member) || defined (__stub___group_member)
23603 char (*f) () = group_member;
23612 return f != group_member;
23617 rm -f conftest.
$ac_objext conftest
$ac_exeext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619 (eval $ac_link) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } &&
23623 { ac_try
='test -s conftest$ac_exeext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 ac_cv_func_group_member
=yes
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.
$ac_ext >&5
23634 ac_cv_func_group_member
=no
23636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23638 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23639 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23640 if test $ac_cv_func_group_member = yes; then
23643 LIBOBJS
="$LIBOBJS group-member.$ac_objext"
23648 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23649 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23650 if test "${jm_cv_func_svid_putenv+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 if test "$cross_compiling" = yes; then
23654 jm_cv_func_svid_putenv
=no
23656 cat >conftest.
$ac_ext <<_ACEOF
23657 #line $LINENO "configure"
23660 cat confdefs.h
>>conftest.
$ac_ext
23661 cat >>conftest.
$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23667 /* Put it in env. */
23668 if (putenv ("CONFTEST_putenv=val"))
23671 /* Try to remove it. */
23672 if (putenv ("CONFTEST_putenv"))
23675 /* Make sure it was deleted. */
23676 if (getenv ("CONFTEST_putenv") != 0)
23683 rm -f conftest
$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 jm_cv_func_svid_putenv
=yes
23696 echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.
$ac_ext >&5
23700 ( exit $ac_status )
23701 jm_cv_func_svid_putenv
=no
23703 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23707 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23708 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23709 if test $jm_cv_func_svid_putenv = no
; then
23710 LIBOBJS
="$LIBOBJS putenv.$ac_objext"
23712 cat >>confdefs.h
<<\_ACEOF
23713 #define putenv rpl_putenv
23719 echo "$as_me:$LINENO: checking for AFS" >&5
23720 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23721 if test -d /afs
; then
23723 cat >>confdefs.h
<<\_ACEOF
23731 echo "$as_me:$LINENO: result: $ac_result" >&5
23732 echo "${ECHO_T}$ac_result" >&6
23736 echo "$as_me:$LINENO: checking for intmax_t" >&5
23737 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23738 if test "${ac_cv_type_intmax_t+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 cat >conftest.
$ac_ext <<_ACEOF
23742 #line $LINENO "configure"
23745 cat confdefs.h
>>conftest.
$ac_ext
23746 cat >>conftest.
$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23752 if ((intmax_t *) 0)
23754 if (sizeof (intmax_t))
23760 rm -f conftest.
$ac_objext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23762 (eval $ac_compile) 2>&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } &&
23766 { ac_try
='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_cv_type_intmax_t
=yes
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.
$ac_ext >&5
23777 ac_cv_type_intmax_t
=no
23779 rm -f conftest.
$ac_objext conftest.
$ac_ext
23781 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23782 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23783 if test $ac_cv_type_intmax_t = yes; then
23786 test $ac_cv_type_long_long = yes \
23787 && ac_type
='long long' \
23790 cat >>confdefs.h
<<_ACEOF
23791 #define intmax_t $ac_type
23802 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23803 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23804 if test "${ac_cv_have_decl_strtol+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 cat >conftest.
$ac_ext <<_ACEOF
23808 #line $LINENO "configure"
23811 cat confdefs.h
>>conftest.
$ac_ext
23812 cat >>conftest.
$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 $ac_includes_default
23819 char *p = (char *) strtol;
23826 rm -f conftest.
$ac_objext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23828 (eval $ac_compile) 2>&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } &&
23832 { ac_try
='test -s conftest.$ac_objext'
23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; }; then
23838 ac_cv_have_decl_strtol
=yes
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.
$ac_ext >&5
23843 ac_cv_have_decl_strtol
=no
23845 rm -f conftest.
$ac_objext conftest.
$ac_ext
23847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23848 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23849 if test $ac_cv_have_decl_strtol = yes; then
23851 cat >>confdefs.h
<<_ACEOF
23852 #define HAVE_DECL_STRTOL 1
23857 cat >>confdefs.h
<<_ACEOF
23858 #define HAVE_DECL_STRTOL 0
23863 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23864 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23865 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 cat >conftest.
$ac_ext <<_ACEOF
23869 #line $LINENO "configure"
23872 cat confdefs.h
>>conftest.
$ac_ext
23873 cat >>conftest.
$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 $ac_includes_default
23880 char *p = (char *) strtoul;
23887 rm -f conftest.
$ac_objext
23888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889 (eval $ac_compile) 2>&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try
='test -s conftest.$ac_objext'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23899 ac_cv_have_decl_strtoul
=yes
23901 echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.
$ac_ext >&5
23904 ac_cv_have_decl_strtoul
=no
23906 rm -f conftest.
$ac_objext conftest.
$ac_ext
23908 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23909 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23910 if test $ac_cv_have_decl_strtoul = yes; then
23912 cat >>confdefs.h
<<_ACEOF
23913 #define HAVE_DECL_STRTOUL 1
23918 cat >>confdefs.h
<<_ACEOF
23919 #define HAVE_DECL_STRTOUL 0
23924 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23925 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23926 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23929 cat >conftest.
$ac_ext <<_ACEOF
23930 #line $LINENO "configure"
23933 cat confdefs.h
>>conftest.
$ac_ext
23934 cat >>conftest.
$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 $ac_includes_default
23941 char *p = (char *) strtoull;
23948 rm -f conftest.
$ac_objext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23950 (eval $ac_compile) 2>&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } &&
23954 { ac_try
='test -s conftest.$ac_objext'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ac_cv_have_decl_strtoull
=yes
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.
$ac_ext >&5
23965 ac_cv_have_decl_strtoull
=no
23967 rm -f conftest.
$ac_objext conftest.
$ac_ext
23969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23970 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23971 if test $ac_cv_have_decl_strtoull = yes; then
23973 cat >>confdefs.h
<<_ACEOF
23974 #define HAVE_DECL_STRTOULL 1
23979 cat >>confdefs.h
<<_ACEOF
23980 #define HAVE_DECL_STRTOULL 0
23985 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23986 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23987 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23988 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 cat >conftest.
$ac_ext <<_ACEOF
23991 #line $LINENO "configure"
23994 cat confdefs.h
>>conftest.
$ac_ext
23995 cat >>conftest.
$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23997 $ac_includes_default
24002 char *p = (char *) strtoimax;
24009 rm -f conftest.
$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011 (eval $ac_compile) 2>&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } &&
24015 { ac_try
='test -s conftest.$ac_objext'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_cv_have_decl_strtoimax
=yes
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.
$ac_ext >&5
24026 ac_cv_have_decl_strtoimax
=no
24028 rm -f conftest.
$ac_objext conftest.
$ac_ext
24030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24031 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24032 if test $ac_cv_have_decl_strtoimax = yes; then
24034 cat >>confdefs.h
<<_ACEOF
24035 #define HAVE_DECL_STRTOIMAX 1
24040 cat >>confdefs.h
<<_ACEOF
24041 #define HAVE_DECL_STRTOIMAX 0
24046 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24047 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24048 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 cat >conftest.
$ac_ext <<_ACEOF
24052 #line $LINENO "configure"
24055 cat confdefs.h
>>conftest.
$ac_ext
24056 cat >>conftest.
$ac_ext <<_ACEOF
24057 /* end confdefs.h. */
24058 $ac_includes_default
24063 char *p = (char *) strtoumax;
24070 rm -f conftest.
$ac_objext
24071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24072 (eval $ac_compile) 2>&5
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } &&
24076 { ac_try
='test -s conftest.$ac_objext'
24077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 (eval $ac_try) 2>&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; }; then
24082 ac_cv_have_decl_strtoumax
=yes
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.
$ac_ext >&5
24087 ac_cv_have_decl_strtoumax
=no
24089 rm -f conftest.
$ac_objext conftest.
$ac_ext
24091 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24092 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24093 if test $ac_cv_have_decl_strtoumax = yes; then
24095 cat >>confdefs.h
<<_ACEOF
24096 #define HAVE_DECL_STRTOUMAX 1
24101 cat >>confdefs.h
<<_ACEOF
24102 #define HAVE_DECL_STRTOUMAX 0
24112 for ac_header
in limits.h stdlib.h inttypes.h
24114 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116 echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24124 # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.
$ac_ext <<_ACEOF
24128 #line $LINENO "configure"
24131 cat confdefs.h
>>conftest.
$ac_ext
24132 cat >>conftest.
$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 $ac_includes_default
24135 #include <$ac_header>
24137 rm -f conftest.
$ac_objext
24138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24139 (eval $ac_compile) 2>&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
24143 { ac_try
='test -s conftest.$ac_objext'
24144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145 (eval $ac_try) 2>&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; }; then
24149 ac_header_compiler
=yes
24151 echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.
$ac_ext >&5
24154 ac_header_compiler
=no
24156 rm -f conftest.
$ac_objext conftest.
$ac_ext
24157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24158 echo "${ECHO_T}$ac_header_compiler" >&6
24160 # Is the header present?
24161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24163 cat >conftest.
$ac_ext <<_ACEOF
24164 #line $LINENO "configure"
24167 cat confdefs.h
>>conftest.
$ac_ext
24168 cat >>conftest.
$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 #include <$ac_header>
24172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24175 grep -v '^ *+' conftest.er1
>conftest.err
24177 cat conftest.err
>&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } >/dev
/null
; then
24180 if test -s conftest.err
; then
24181 ac_cpp_err
=$ac_c_preproc_warn_flag
24188 if test -z "$ac_cpp_err"; then
24189 ac_header_preproc
=yes
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.
$ac_ext >&5
24194 ac_header_preproc
=no
24196 rm -f conftest.err conftest.
$ac_ext
24197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24198 echo "${ECHO_T}$ac_header_preproc" >&6
24200 # So? What about this header?
24201 case $ac_header_compiler:$ac_header_preproc in
24203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24209 ## ------------------------------------ ##
24210 ## Report this to bug-autoconf@gnu.org. ##
24211 ## ------------------------------------ ##
24214 sed "s/^/$as_me: WARNING: /" >&2
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24225 ## ------------------------------------ ##
24226 ## Report this to bug-autoconf@gnu.org. ##
24227 ## ------------------------------------ ##
24230 sed "s/^/$as_me: WARNING: /" >&2
24233 echo "$as_me:$LINENO: checking for $ac_header" >&5
24234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24238 eval "$as_ac_Header=$ac_header_preproc"
24240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245 cat >>confdefs.h
<<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24254 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24255 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24256 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24259 cat >conftest.
$ac_ext <<_ACEOF
24260 #line $LINENO "configure"
24263 cat confdefs.h
>>conftest.
$ac_ext
24264 cat >>conftest.
$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 #include <inttypes.h>
24268 inttypes_h_defines_strtoumax
24271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24272 $EGREP "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
24273 jm_cv_func_strtoumax_macro
=yes
24275 jm_cv_func_strtoumax_macro
=no
24280 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24281 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24283 if test "$jm_cv_func_strtoumax_macro" != yes; then
24285 for ac_func
in strtoumax
24287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24290 if eval "test \"\${$as_ac_var+set}\" = set"; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 cat >conftest.
$ac_ext <<_ACEOF
24294 #line $LINENO "configure"
24297 cat confdefs.h
>>conftest.
$ac_ext
24298 cat >>conftest.
$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 /* System header to define __stub macros and hopefully few prototypes,
24301 which can conflict with char $ac_func (); below.
24302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24303 <limits.h> exists even on freestanding compilers. */
24305 # include <limits.h>
24307 # include <assert.h>
24309 /* Override any gcc2 internal prototype to avoid an error. */
24314 /* We use char because int might match the return type of a gcc2
24315 builtin and then its argument prototype would still apply. */
24317 /* The GNU C library defines this for functions which it implements
24318 to always fail with ENOSYS. Some functions are actually named
24319 something starting with __ and the normal name is an alias. */
24320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24323 char (*f) () = $ac_func;
24332 return f != $ac_func;
24337 rm -f conftest.
$ac_objext conftest
$ac_exeext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24339 (eval $ac_link) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } &&
24343 { ac_try
='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.
$ac_ext >&5
24354 eval "$as_ac_var=no"
24356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360 if test `eval echo '${'$as_ac_var'}'` = yes; then
24361 cat >>confdefs.h
<<_ACEOF
24362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24366 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24373 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24376 for ac_func
in strtoul
24378 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379 echo "$as_me:$LINENO: checking for $ac_func" >&5
24380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24381 if eval "test \"\${$as_ac_var+set}\" = set"; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 cat >conftest.
$ac_ext <<_ACEOF
24385 #line $LINENO "configure"
24388 cat confdefs.h
>>conftest.
$ac_ext
24389 cat >>conftest.
$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 /* System header to define __stub macros and hopefully few prototypes,
24392 which can conflict with char $ac_func (); below.
24393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394 <limits.h> exists even on freestanding compilers. */
24396 # include <limits.h>
24398 # include <assert.h>
24400 /* Override any gcc2 internal prototype to avoid an error. */
24405 /* We use char because int might match the return type of a gcc2
24406 builtin and then its argument prototype would still apply. */
24408 /* The GNU C library defines this for functions which it implements
24409 to always fail with ENOSYS. Some functions are actually named
24410 something starting with __ and the normal name is an alias. */
24411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24414 char (*f) () = $ac_func;
24423 return f != $ac_func;
24428 rm -f conftest.
$ac_objext conftest
$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430 (eval $ac_link) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try
='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 eval "$as_ac_var=yes"
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.
$ac_ext >&5
24445 eval "$as_ac_var=no"
24447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24451 if test `eval echo '${'$as_ac_var'}'` = yes; then
24452 cat >>confdefs.h
<<_ACEOF
24453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24457 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24463 if test "$ac_cv_type_unsigned_long_long" = yes; then
24465 for ac_func
in strtoull
24467 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24468 echo "$as_me:$LINENO: checking for $ac_func" >&5
24469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24470 if eval "test \"\${$as_ac_var+set}\" = set"; then
24471 echo $ECHO_N "(cached) $ECHO_C" >&6
24473 cat >conftest.
$ac_ext <<_ACEOF
24474 #line $LINENO "configure"
24477 cat confdefs.h
>>conftest.
$ac_ext
24478 cat >>conftest.
$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 /* System header to define __stub macros and hopefully few prototypes,
24481 which can conflict with char $ac_func (); below.
24482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24483 <limits.h> exists even on freestanding compilers. */
24485 # include <limits.h>
24487 # include <assert.h>
24489 /* Override any gcc2 internal prototype to avoid an error. */
24494 /* We use char because int might match the return type of a gcc2
24495 builtin and then its argument prototype would still apply. */
24497 /* The GNU C library defines this for functions which it implements
24498 to always fail with ENOSYS. Some functions are actually named
24499 something starting with __ and the normal name is an alias. */
24500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24503 char (*f) () = $ac_func;
24512 return f != $ac_func;
24517 rm -f conftest.
$ac_objext conftest
$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519 (eval $ac_link) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
24523 { ac_try
='test -s conftest$ac_exeext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 eval "$as_ac_var=yes"
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.
$ac_ext >&5
24534 eval "$as_ac_var=no"
24536 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24540 if test `eval echo '${'$as_ac_var'}'` = yes; then
24541 cat >>confdefs.h
<<_ACEOF
24542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24546 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24560 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24561 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24562 if test "${ac_cv_have_decl_strtol+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24565 cat >conftest.
$ac_ext <<_ACEOF
24566 #line $LINENO "configure"
24569 cat confdefs.h
>>conftest.
$ac_ext
24570 cat >>conftest.
$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24577 char *p = (char *) strtol;
24584 rm -f conftest.
$ac_objext
24585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24586 (eval $ac_compile) 2>&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } &&
24590 { ac_try
='test -s conftest.$ac_objext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_have_decl_strtol
=yes
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.
$ac_ext >&5
24601 ac_cv_have_decl_strtol
=no
24603 rm -f conftest.
$ac_objext conftest.
$ac_ext
24605 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24606 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24607 if test $ac_cv_have_decl_strtol = yes; then
24609 cat >>confdefs.h
<<_ACEOF
24610 #define HAVE_DECL_STRTOL 1
24615 cat >>confdefs.h
<<_ACEOF
24616 #define HAVE_DECL_STRTOL 0
24621 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24622 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24623 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 cat >conftest.
$ac_ext <<_ACEOF
24627 #line $LINENO "configure"
24630 cat confdefs.h
>>conftest.
$ac_ext
24631 cat >>conftest.
$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24638 char *p = (char *) strtoul;
24645 rm -f conftest.
$ac_objext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24647 (eval $ac_compile) 2>&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
24651 { ac_try
='test -s conftest.$ac_objext'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; }; then
24657 ac_cv_have_decl_strtoul
=yes
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.
$ac_ext >&5
24662 ac_cv_have_decl_strtoul
=no
24664 rm -f conftest.
$ac_objext conftest.
$ac_ext
24666 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24667 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24668 if test $ac_cv_have_decl_strtoul = yes; then
24670 cat >>confdefs.h
<<_ACEOF
24671 #define HAVE_DECL_STRTOUL 1
24676 cat >>confdefs.h
<<_ACEOF
24677 #define HAVE_DECL_STRTOUL 0
24682 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24683 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24684 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 cat >conftest.
$ac_ext <<_ACEOF
24688 #line $LINENO "configure"
24691 cat confdefs.h
>>conftest.
$ac_ext
24692 cat >>conftest.
$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 $ac_includes_default
24699 char *p = (char *) strtoll;
24706 rm -f conftest.
$ac_objext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24708 (eval $ac_compile) 2>&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try
='test -s conftest.$ac_objext'
24713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714 (eval $ac_try) 2>&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); }; }; then
24718 ac_cv_have_decl_strtoll
=yes
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.
$ac_ext >&5
24723 ac_cv_have_decl_strtoll
=no
24725 rm -f conftest.
$ac_objext conftest.
$ac_ext
24727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24728 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24729 if test $ac_cv_have_decl_strtoll = yes; then
24731 cat >>confdefs.h
<<_ACEOF
24732 #define HAVE_DECL_STRTOLL 1
24737 cat >>confdefs.h
<<_ACEOF
24738 #define HAVE_DECL_STRTOLL 0
24743 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24744 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24745 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24748 cat >conftest.
$ac_ext <<_ACEOF
24749 #line $LINENO "configure"
24752 cat confdefs.h
>>conftest.
$ac_ext
24753 cat >>conftest.
$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 $ac_includes_default
24760 char *p = (char *) strtoimax;
24767 rm -f conftest.
$ac_objext
24768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24769 (eval $ac_compile) 2>&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } &&
24773 { ac_try
='test -s conftest.$ac_objext'
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_cv_have_decl_strtoimax
=yes
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.
$ac_ext >&5
24784 ac_cv_have_decl_strtoimax
=no
24786 rm -f conftest.
$ac_objext conftest.
$ac_ext
24788 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24789 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24790 if test $ac_cv_have_decl_strtoimax = yes; then
24792 cat >>confdefs.h
<<_ACEOF
24793 #define HAVE_DECL_STRTOIMAX 1
24798 cat >>confdefs.h
<<_ACEOF
24799 #define HAVE_DECL_STRTOIMAX 0
24804 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24805 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24806 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24809 cat >conftest.
$ac_ext <<_ACEOF
24810 #line $LINENO "configure"
24813 cat confdefs.h
>>conftest.
$ac_ext
24814 cat >>conftest.
$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 $ac_includes_default
24821 char *p = (char *) strtoumax;
24828 rm -f conftest.
$ac_objext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830 (eval $ac_compile) 2>&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } &&
24834 { ac_try
='test -s conftest.$ac_objext'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840 ac_cv_have_decl_strtoumax
=yes
24842 echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.
$ac_ext >&5
24845 ac_cv_have_decl_strtoumax
=no
24847 rm -f conftest.
$ac_objext conftest.
$ac_ext
24849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24850 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24851 if test $ac_cv_have_decl_strtoumax = yes; then
24853 cat >>confdefs.h
<<_ACEOF
24854 #define HAVE_DECL_STRTOUMAX 1
24859 cat >>confdefs.h
<<_ACEOF
24860 #define HAVE_DECL_STRTOUMAX 0
24870 for ac_header
in limits.h stdlib.h inttypes.h
24872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24874 echo "$as_me:$LINENO: checking for $ac_header" >&5
24875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24882 # Is the header compilable?
24883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24885 cat >conftest.
$ac_ext <<_ACEOF
24886 #line $LINENO "configure"
24889 cat confdefs.h
>>conftest.
$ac_ext
24890 cat >>conftest.
$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 $ac_includes_default
24893 #include <$ac_header>
24895 rm -f conftest.
$ac_objext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24897 (eval $ac_compile) 2>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try
='test -s conftest.$ac_objext'
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_header_compiler
=yes
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.
$ac_ext >&5
24912 ac_header_compiler
=no
24914 rm -f conftest.
$ac_objext conftest.
$ac_ext
24915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24916 echo "${ECHO_T}$ac_header_compiler" >&6
24918 # Is the header present?
24919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24921 cat >conftest.
$ac_ext <<_ACEOF
24922 #line $LINENO "configure"
24925 cat confdefs.h
>>conftest.
$ac_ext
24926 cat >>conftest.
$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 #include <$ac_header>
24930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24933 grep -v '^ *+' conftest.er1
>conftest.err
24935 cat conftest.err
>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } >/dev
/null
; then
24938 if test -s conftest.err
; then
24939 ac_cpp_err
=$ac_c_preproc_warn_flag
24946 if test -z "$ac_cpp_err"; then
24947 ac_header_preproc
=yes
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.
$ac_ext >&5
24952 ac_header_preproc
=no
24954 rm -f conftest.err conftest.
$ac_ext
24955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24956 echo "${ECHO_T}$ac_header_preproc" >&6
24958 # So? What about this header?
24959 case $ac_header_compiler:$ac_header_preproc in
24961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24967 ## ------------------------------------ ##
24968 ## Report this to bug-autoconf@gnu.org. ##
24969 ## ------------------------------------ ##
24972 sed "s/^/$as_me: WARNING: /" >&2
24975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24983 ## ------------------------------------ ##
24984 ## Report this to bug-autoconf@gnu.org. ##
24985 ## ------------------------------------ ##
24988 sed "s/^/$as_me: WARNING: /" >&2
24991 echo "$as_me:$LINENO: checking for $ac_header" >&5
24992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24996 eval "$as_ac_Header=$ac_header_preproc"
24998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25003 cat >>confdefs.h
<<_ACEOF
25004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25012 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25013 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25014 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25015 echo $ECHO_N "(cached) $ECHO_C" >&6
25017 cat >conftest.
$ac_ext <<_ACEOF
25018 #line $LINENO "configure"
25021 cat confdefs.h
>>conftest.
$ac_ext
25022 cat >>conftest.
$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 #include <inttypes.h>
25026 inttypes_h_defines_strtoimax
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030 $EGREP "inttypes_h_defines_strtoimax" >/dev
/null
2>&1; then
25031 jm_cv_func_strtoimax_macro
=yes
25033 jm_cv_func_strtoimax_macro
=no
25038 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25039 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25041 if test "$jm_cv_func_strtoimax_macro" != yes; then
25043 for ac_func
in strtoimax
25045 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25046 echo "$as_me:$LINENO: checking for $ac_func" >&5
25047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25048 if eval "test \"\${$as_ac_var+set}\" = set"; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 cat >conftest.
$ac_ext <<_ACEOF
25052 #line $LINENO "configure"
25055 cat confdefs.h
>>conftest.
$ac_ext
25056 cat >>conftest.
$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 /* System header to define __stub macros and hopefully few prototypes,
25059 which can conflict with char $ac_func (); below.
25060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061 <limits.h> exists even on freestanding compilers. */
25063 # include <limits.h>
25065 # include <assert.h>
25067 /* Override any gcc2 internal prototype to avoid an error. */
25072 /* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25075 /* The GNU C library defines this for functions which it implements
25076 to always fail with ENOSYS. Some functions are actually named
25077 something starting with __ and the normal name is an alias. */
25078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25081 char (*f) () = $ac_func;
25090 return f != $ac_func;
25095 rm -f conftest.
$ac_objext conftest
$ac_exeext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097 (eval $ac_link) 2>&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
25101 { ac_try
='test -s conftest$ac_exeext'
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
25107 eval "$as_ac_var=yes"
25109 echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.
$ac_ext >&5
25112 eval "$as_ac_var=no"
25114 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25118 if test `eval echo '${'$as_ac_var'}'` = yes; then
25119 cat >>confdefs.h
<<_ACEOF
25120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25124 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25131 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25134 for ac_func
in strtol
25136 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25137 echo "$as_me:$LINENO: checking for $ac_func" >&5
25138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25139 if eval "test \"\${$as_ac_var+set}\" = set"; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 cat >conftest.
$ac_ext <<_ACEOF
25143 #line $LINENO "configure"
25146 cat confdefs.h
>>conftest.
$ac_ext
25147 cat >>conftest.
$ac_ext <<_ACEOF
25148 /* end confdefs.h. */
25149 /* System header to define __stub macros and hopefully few prototypes,
25150 which can conflict with char $ac_func (); below.
25151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25152 <limits.h> exists even on freestanding compilers. */
25154 # include <limits.h>
25156 # include <assert.h>
25158 /* Override any gcc2 internal prototype to avoid an error. */
25163 /* We use char because int might match the return type of a gcc2
25164 builtin and then its argument prototype would still apply. */
25166 /* The GNU C library defines this for functions which it implements
25167 to always fail with ENOSYS. Some functions are actually named
25168 something starting with __ and the normal name is an alias. */
25169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25172 char (*f) () = $ac_func;
25181 return f != $ac_func;
25186 rm -f conftest.
$ac_objext conftest
$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188 (eval $ac_link) 2>&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try
='test -s conftest$ac_exeext'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 eval "$as_ac_var=yes"
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.
$ac_ext >&5
25203 eval "$as_ac_var=no"
25205 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25209 if test `eval echo '${'$as_ac_var'}'` = yes; then
25210 cat >>confdefs.h
<<_ACEOF
25211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25215 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25221 if test "$ac_cv_type_long_long" = yes; then
25223 for ac_func
in strtoll
25225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25226 echo "$as_me:$LINENO: checking for $ac_func" >&5
25227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25228 if eval "test \"\${$as_ac_var+set}\" = set"; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 cat >conftest.
$ac_ext <<_ACEOF
25232 #line $LINENO "configure"
25235 cat confdefs.h
>>conftest.
$ac_ext
25236 cat >>conftest.
$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 /* System header to define __stub macros and hopefully few prototypes,
25239 which can conflict with char $ac_func (); below.
25240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25241 <limits.h> exists even on freestanding compilers. */
25243 # include <limits.h>
25245 # include <assert.h>
25247 /* Override any gcc2 internal prototype to avoid an error. */
25252 /* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25255 /* The GNU C library defines this for functions which it implements
25256 to always fail with ENOSYS. Some functions are actually named
25257 something starting with __ and the normal name is an alias. */
25258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25261 char (*f) () = $ac_func;
25270 return f != $ac_func;
25275 rm -f conftest.
$ac_objext conftest
$ac_exeext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25277 (eval $ac_link) 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } &&
25281 { ac_try
='test -s conftest$ac_exeext'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; }; then
25287 eval "$as_ac_var=yes"
25289 echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.
$ac_ext >&5
25292 eval "$as_ac_var=no"
25294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25298 if test `eval echo '${'$as_ac_var'}'` = yes; then
25299 cat >>confdefs.h
<<_ACEOF
25300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25304 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25313 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25314 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25315 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25316 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 test -z "$ac_cv_header_unistd_h" \
25321 for ac_header
in unistd.h
25323 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25325 echo "$as_me:$LINENO: checking for $ac_header" >&5
25326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328 echo $ECHO_N "(cached) $ECHO_C" >&6
25330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25333 # Is the header compilable?
25334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25336 cat >conftest.
$ac_ext <<_ACEOF
25337 #line $LINENO "configure"
25340 cat confdefs.h
>>conftest.
$ac_ext
25341 cat >>conftest.
$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 $ac_includes_default
25344 #include <$ac_header>
25346 rm -f conftest.
$ac_objext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25348 (eval $ac_compile) 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } &&
25352 { ac_try
='test -s conftest.$ac_objext'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_header_compiler
=yes
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.
$ac_ext >&5
25363 ac_header_compiler
=no
25365 rm -f conftest.
$ac_objext conftest.
$ac_ext
25366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25367 echo "${ECHO_T}$ac_header_compiler" >&6
25369 # Is the header present?
25370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25372 cat >conftest.
$ac_ext <<_ACEOF
25373 #line $LINENO "configure"
25376 cat confdefs.h
>>conftest.
$ac_ext
25377 cat >>conftest.
$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 #include <$ac_header>
25381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25384 grep -v '^ *+' conftest.er1
>conftest.err
25386 cat conftest.err
>&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } >/dev
/null
; then
25389 if test -s conftest.err
; then
25390 ac_cpp_err
=$ac_c_preproc_warn_flag
25397 if test -z "$ac_cpp_err"; then
25398 ac_header_preproc
=yes
25400 echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.
$ac_ext >&5
25403 ac_header_preproc
=no
25405 rm -f conftest.err conftest.
$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25407 echo "${ECHO_T}$ac_header_preproc" >&6
25409 # So? What about this header?
25410 case $ac_header_compiler:$ac_header_preproc in
25412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25418 ## ------------------------------------ ##
25419 ## Report this to bug-autoconf@gnu.org. ##
25420 ## ------------------------------------ ##
25423 sed "s/^/$as_me: WARNING: /" >&2
25426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25434 ## ------------------------------------ ##
25435 ## Report this to bug-autoconf@gnu.org. ##
25436 ## ------------------------------------ ##
25439 sed "s/^/$as_me: WARNING: /" >&2
25442 echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 eval "$as_ac_Header=$ac_header_preproc"
25449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25454 cat >>confdefs.h
<<_ACEOF
25455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25463 # Create a regular file.
25464 echo > conftest.
file
25465 if test "$cross_compiling" = yes; then
25466 jm_ac_cv_func_link_follows_symlink
=yes
25468 cat >conftest.
$ac_ext <<_ACEOF
25469 #line $LINENO "configure"
25472 cat confdefs.h
>>conftest.
$ac_ext
25473 cat >>conftest.
$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25476 # include <sys/types.h>
25477 # include <sys/stat.h>
25478 # ifdef HAVE_UNISTD_H
25479 # include <unistd.h>
25482 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25483 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25484 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25489 const char *file = "conftest.file";
25490 const char *sym = "conftest.sym";
25491 const char *hard = "conftest.hard";
25492 struct stat sb_file, sb_hard;
25494 /* Create a symlink to the regular file. */
25495 if (symlink (file, sym))
25498 /* Create a hard link to that symlink. */
25499 if (link (sym, hard))
25502 if (lstat (hard, &sb_hard))
25504 if (lstat (file, &sb_file))
25507 /* If the dev/inode of hard and file are the same, then
25508 the link call followed the symlink. */
25509 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25513 rm -f conftest
$ac_exeext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25515 (eval $ac_link) 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 jm_ac_cv_func_link_follows_symlink
=yes
25526 echo "$as_me: program exited with status $ac_status" >&5
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.
$ac_ext >&5
25530 ( exit $ac_status )
25531 jm_ac_cv_func_link_follows_symlink
=no
25533 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25537 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25538 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25539 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25541 cat >>confdefs.h
<<\_ACEOF
25542 #define LINK_FOLLOWS_SYMLINKS 1
25547 echo "$as_me:$LINENO: checking for error_at_line" >&5
25548 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25549 if test "${ac_cv_lib_error_at_line+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 cat >conftest.
$ac_ext <<_ACEOF
25553 #line $LINENO "configure"
25556 cat confdefs.h
>>conftest.
$ac_ext
25557 cat >>conftest.
$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25563 error_at_line (0, 0, "", 0, "");
25568 rm -f conftest.
$ac_objext conftest
$ac_exeext
25569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25570 (eval $ac_link) 2>&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } &&
25574 { ac_try
='test -s conftest$ac_exeext'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_lib_error_at_line
=yes
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.
$ac_ext >&5
25585 ac_cv_lib_error_at_line
=no
25587 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25589 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25590 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25591 if test $ac_cv_lib_error_at_line = no
; then
25592 LIBOBJS
="$LIBOBJS error.$ac_objext"
25599 for ac_func
in localtime_r strftime
25601 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25602 echo "$as_me:$LINENO: checking for $ac_func" >&5
25603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25604 if eval "test \"\${$as_ac_var+set}\" = set"; then
25605 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 cat >conftest.
$ac_ext <<_ACEOF
25608 #line $LINENO "configure"
25611 cat confdefs.h
>>conftest.
$ac_ext
25612 cat >>conftest.
$ac_ext <<_ACEOF
25613 /* end confdefs.h. */
25614 /* System header to define __stub macros and hopefully few prototypes,
25615 which can conflict with char $ac_func (); below.
25616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25617 <limits.h> exists even on freestanding compilers. */
25619 # include <limits.h>
25621 # include <assert.h>
25623 /* Override any gcc2 internal prototype to avoid an error. */
25628 /* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25631 /* The GNU C library defines this for functions which it implements
25632 to always fail with ENOSYS. Some functions are actually named
25633 something starting with __ and the normal name is an alias. */
25634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25637 char (*f) () = $ac_func;
25646 return f != $ac_func;
25651 rm -f conftest.
$ac_objext conftest
$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653 (eval $ac_link) 2>&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
25657 { ac_try
='test -s conftest$ac_exeext'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; }; then
25663 eval "$as_ac_var=yes"
25665 echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.
$ac_ext >&5
25668 eval "$as_ac_var=no"
25670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25674 if test `eval echo '${'$as_ac_var'}'` = yes; then
25675 cat >>confdefs.h
<<_ACEOF
25676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25684 for ac_header
in limits.h
25686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688 echo "$as_me:$LINENO: checking for $ac_header" >&5
25689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25696 # Is the header compilable?
25697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25699 cat >conftest.
$ac_ext <<_ACEOF
25700 #line $LINENO "configure"
25703 cat confdefs.h
>>conftest.
$ac_ext
25704 cat >>conftest.
$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <$ac_header>
25709 rm -f conftest.
$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711 (eval $ac_compile) 2>&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try
='test -s conftest.$ac_objext'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; }; then
25721 ac_header_compiler
=yes
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.
$ac_ext >&5
25726 ac_header_compiler
=no
25728 rm -f conftest.
$ac_objext conftest.
$ac_ext
25729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6
25732 # Is the header present?
25733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25735 cat >conftest.
$ac_ext <<_ACEOF
25736 #line $LINENO "configure"
25739 cat confdefs.h
>>conftest.
$ac_ext
25740 cat >>conftest.
$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 #include <$ac_header>
25744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25747 grep -v '^ *+' conftest.er1
>conftest.err
25749 cat conftest.err
>&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } >/dev
/null
; then
25752 if test -s conftest.err
; then
25753 ac_cpp_err
=$ac_c_preproc_warn_flag
25760 if test -z "$ac_cpp_err"; then
25761 ac_header_preproc
=yes
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.
$ac_ext >&5
25766 ac_header_preproc
=no
25768 rm -f conftest.err conftest.
$ac_ext
25769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25770 echo "${ECHO_T}$ac_header_preproc" >&6
25772 # So? What about this header?
25773 case $ac_header_compiler:$ac_header_preproc in
25775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25781 ## ------------------------------------ ##
25782 ## Report this to bug-autoconf@gnu.org. ##
25783 ## ------------------------------------ ##
25786 sed "s/^/$as_me: WARNING: /" >&2
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25797 ## ------------------------------------ ##
25798 ## Report this to bug-autoconf@gnu.org. ##
25799 ## ------------------------------------ ##
25802 sed "s/^/$as_me: WARNING: /" >&2
25805 echo "$as_me:$LINENO: checking for $ac_header" >&5
25806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808 echo $ECHO_N "(cached) $ECHO_C" >&6
25810 eval "$as_ac_Header=$ac_header_preproc"
25812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25817 cat >>confdefs.h
<<_ACEOF
25818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25830 for ac_func
in bcopy tzset mempcpy memcpy memset
25832 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25833 echo "$as_me:$LINENO: checking for $ac_func" >&5
25834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25835 if eval "test \"\${$as_ac_var+set}\" = set"; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25838 cat >conftest.
$ac_ext <<_ACEOF
25839 #line $LINENO "configure"
25842 cat confdefs.h
>>conftest.
$ac_ext
25843 cat >>conftest.
$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25845 /* System header to define __stub macros and hopefully few prototypes,
25846 which can conflict with char $ac_func (); below.
25847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25848 <limits.h> exists even on freestanding compilers. */
25850 # include <limits.h>
25852 # include <assert.h>
25854 /* Override any gcc2 internal prototype to avoid an error. */
25859 /* We use char because int might match the return type of a gcc2
25860 builtin and then its argument prototype would still apply. */
25862 /* The GNU C library defines this for functions which it implements
25863 to always fail with ENOSYS. Some functions are actually named
25864 something starting with __ and the normal name is an alias. */
25865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25868 char (*f) () = $ac_func;
25877 return f != $ac_func;
25882 rm -f conftest.
$ac_objext conftest
$ac_exeext
25883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884 (eval $ac_link) 2>&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
25888 { ac_try
='test -s conftest$ac_exeext'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; }; then
25894 eval "$as_ac_var=yes"
25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.
$ac_ext >&5
25899 eval "$as_ac_var=no"
25901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25905 if test `eval echo '${'$as_ac_var'}'` = yes; then
25906 cat >>confdefs.h
<<_ACEOF
25907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25914 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25915 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25916 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25917 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25920 cat >conftest.
$ac_ext <<_ACEOF
25921 #line $LINENO "configure"
25924 cat confdefs.h
>>conftest.
$ac_ext
25925 cat >>conftest.
$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25927 #include <sys/types.h>
25928 #include <$ac_cv_struct_tm>
25934 static struct tm ac_aggr;
25935 if (ac_aggr.tm_zone)
25941 rm -f conftest.
$ac_objext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25943 (eval $ac_compile) 2>&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try
='test -s conftest.$ac_objext'
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_member_struct_tm_tm_zone
=yes
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.
$ac_ext >&5
25958 cat >conftest.
$ac_ext <<_ACEOF
25959 #line $LINENO "configure"
25962 cat confdefs.h
>>conftest.
$ac_ext
25963 cat >>conftest.
$ac_ext <<_ACEOF
25964 /* end confdefs.h. */
25965 #include <sys/types.h>
25966 #include <$ac_cv_struct_tm>
25972 static struct tm ac_aggr;
25973 if (sizeof ac_aggr.tm_zone)
25979 rm -f conftest.
$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981 (eval $ac_compile) 2>&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
25985 { ac_try
='test -s conftest.$ac_objext'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; }; then
25991 ac_cv_member_struct_tm_tm_zone
=yes
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.
$ac_ext >&5
25996 ac_cv_member_struct_tm_tm_zone
=no
25998 rm -f conftest.
$ac_objext conftest.
$ac_ext
26000 rm -f conftest.
$ac_objext conftest.
$ac_ext
26002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26003 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26004 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26006 cat >>confdefs.h
<<_ACEOF
26007 #define HAVE_STRUCT_TM_TM_ZONE 1
26013 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26015 cat >>confdefs.h
<<\_ACEOF
26016 #define HAVE_TM_ZONE 1
26020 echo "$as_me:$LINENO: checking for tzname" >&5
26021 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26022 if test "${ac_cv_var_tzname+set}" = set; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 cat >conftest.
$ac_ext <<_ACEOF
26026 #line $LINENO "configure"
26029 cat confdefs.h
>>conftest.
$ac_ext
26030 cat >>conftest.
$ac_ext <<_ACEOF
26031 /* end confdefs.h. */
26033 #ifndef tzname /* For SGI. */
26034 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
26045 rm -f conftest.
$ac_objext conftest
$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047 (eval $ac_link) 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try
='test -s conftest$ac_exeext'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 ac_cv_var_tzname
=yes
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.
$ac_ext >&5
26062 ac_cv_var_tzname
=no
26064 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26066 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26067 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26068 if test $ac_cv_var_tzname = yes; then
26070 cat >>confdefs.h
<<\_ACEOF
26071 #define HAVE_TZNAME 1
26080 for ac_func
in mblen mbrlen
26082 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26083 echo "$as_me:$LINENO: checking for $ac_func" >&5
26084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26085 if eval "test \"\${$as_ac_var+set}\" = set"; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26088 cat >conftest.
$ac_ext <<_ACEOF
26089 #line $LINENO "configure"
26092 cat confdefs.h
>>conftest.
$ac_ext
26093 cat >>conftest.
$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 /* System header to define __stub macros and hopefully few prototypes,
26096 which can conflict with char $ac_func (); below.
26097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26098 <limits.h> exists even on freestanding compilers. */
26100 # include <limits.h>
26102 # include <assert.h>
26104 /* Override any gcc2 internal prototype to avoid an error. */
26109 /* We use char because int might match the return type of a gcc2
26110 builtin and then its argument prototype would still apply. */
26112 /* The GNU C library defines this for functions which it implements
26113 to always fail with ENOSYS. Some functions are actually named
26114 something starting with __ and the normal name is an alias. */
26115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26118 char (*f) () = $ac_func;
26127 return f != $ac_func;
26132 rm -f conftest.
$ac_objext conftest
$ac_exeext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26134 (eval $ac_link) 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
26138 { ac_try
='test -s conftest$ac_exeext'
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; }; then
26144 eval "$as_ac_var=yes"
26146 echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.
$ac_ext >&5
26149 eval "$as_ac_var=no"
26151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26155 if test `eval echo '${'$as_ac_var'}'` = yes; then
26156 cat >>confdefs.h
<<_ACEOF
26157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26164 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 cat >conftest.
$ac_ext <<_ACEOF
26170 #line $LINENO "configure"
26173 cat confdefs.h
>>conftest.
$ac_ext
26174 cat >>conftest.
$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26181 static struct tm ac_aggr;
26182 if (ac_aggr.tm_gmtoff)
26188 rm -f conftest.
$ac_objext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190 (eval $ac_compile) 2>&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try
='test -s conftest.$ac_objext'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 ac_cv_member_struct_tm_tm_gmtoff
=yes
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.
$ac_ext >&5
26205 cat >conftest.
$ac_ext <<_ACEOF
26206 #line $LINENO "configure"
26209 cat confdefs.h
>>conftest.
$ac_ext
26210 cat >>conftest.
$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26217 static struct tm ac_aggr;
26218 if (sizeof ac_aggr.tm_gmtoff)
26224 rm -f conftest.
$ac_objext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26226 (eval $ac_compile) 2>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } &&
26230 { ac_try
='test -s conftest.$ac_objext'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; }; then
26236 ac_cv_member_struct_tm_tm_gmtoff
=yes
26238 echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.
$ac_ext >&5
26241 ac_cv_member_struct_tm_tm_gmtoff
=no
26243 rm -f conftest.
$ac_objext conftest.
$ac_ext
26245 rm -f conftest.
$ac_objext conftest.
$ac_ext
26247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26248 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26249 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26251 cat >>confdefs.h
<<\_ACEOF
26252 #define HAVE_TM_GMTOFF 1
26260 for ac_header
in sys
/time.h
26262 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264 echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26272 # Is the header compilable?
26273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26275 cat >conftest.
$ac_ext <<_ACEOF
26276 #line $LINENO "configure"
26279 cat confdefs.h
>>conftest.
$ac_ext
26280 cat >>conftest.
$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 $ac_includes_default
26283 #include <$ac_header>
26285 rm -f conftest.
$ac_objext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26287 (eval $ac_compile) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } &&
26291 { ac_try
='test -s conftest.$ac_objext'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; }; then
26297 ac_header_compiler
=yes
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.
$ac_ext >&5
26302 ac_header_compiler
=no
26304 rm -f conftest.
$ac_objext conftest.
$ac_ext
26305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26306 echo "${ECHO_T}$ac_header_compiler" >&6
26308 # Is the header present?
26309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26311 cat >conftest.
$ac_ext <<_ACEOF
26312 #line $LINENO "configure"
26315 cat confdefs.h
>>conftest.
$ac_ext
26316 cat >>conftest.
$ac_ext <<_ACEOF
26317 /* end confdefs.h. */
26318 #include <$ac_header>
26320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26323 grep -v '^ *+' conftest.er1
>conftest.err
26325 cat conftest.err
>&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); } >/dev
/null
; then
26328 if test -s conftest.err
; then
26329 ac_cpp_err
=$ac_c_preproc_warn_flag
26336 if test -z "$ac_cpp_err"; then
26337 ac_header_preproc
=yes
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.
$ac_ext >&5
26342 ac_header_preproc
=no
26344 rm -f conftest.err conftest.
$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26346 echo "${ECHO_T}$ac_header_preproc" >&6
26348 # So? What about this header?
26349 case $ac_header_compiler:$ac_header_preproc in
26351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26357 ## ------------------------------------ ##
26358 ## Report this to bug-autoconf@gnu.org. ##
26359 ## ------------------------------------ ##
26362 sed "s/^/$as_me: WARNING: /" >&2
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26373 ## ------------------------------------ ##
26374 ## Report this to bug-autoconf@gnu.org. ##
26375 ## ------------------------------------ ##
26378 sed "s/^/$as_me: WARNING: /" >&2
26381 echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26386 eval "$as_ac_Header=$ac_header_preproc"
26388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26393 cat >>confdefs.h
<<_ACEOF
26394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26402 cat >>confdefs.h
<<\_ACEOF
26403 #define my_strftime nstrftime
26409 for ac_header
in stdio_ext.h
26411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413 echo "$as_me:$LINENO: checking for $ac_header" >&5
26414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26421 # Is the header compilable?
26422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26424 cat >conftest.
$ac_ext <<_ACEOF
26425 #line $LINENO "configure"
26428 cat confdefs.h
>>conftest.
$ac_ext
26429 cat >>conftest.
$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 $ac_includes_default
26432 #include <$ac_header>
26434 rm -f conftest.
$ac_objext
26435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26436 (eval $ac_compile) 2>&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
26440 { ac_try
='test -s conftest.$ac_objext'
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; }; then
26446 ac_header_compiler
=yes
26448 echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.
$ac_ext >&5
26451 ac_header_compiler
=no
26453 rm -f conftest.
$ac_objext conftest.
$ac_ext
26454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26455 echo "${ECHO_T}$ac_header_compiler" >&6
26457 # Is the header present?
26458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26460 cat >conftest.
$ac_ext <<_ACEOF
26461 #line $LINENO "configure"
26464 cat confdefs.h
>>conftest.
$ac_ext
26465 cat >>conftest.
$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <$ac_header>
26469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26472 grep -v '^ *+' conftest.er1
>conftest.err
26474 cat conftest.err
>&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } >/dev
/null
; then
26477 if test -s conftest.err
; then
26478 ac_cpp_err
=$ac_c_preproc_warn_flag
26485 if test -z "$ac_cpp_err"; then
26486 ac_header_preproc
=yes
26488 echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.
$ac_ext >&5
26491 ac_header_preproc
=no
26493 rm -f conftest.err conftest.
$ac_ext
26494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26495 echo "${ECHO_T}$ac_header_preproc" >&6
26497 # So? What about this header?
26498 case $ac_header_compiler:$ac_header_preproc in
26500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26506 ## ------------------------------------ ##
26507 ## Report this to bug-autoconf@gnu.org. ##
26508 ## ------------------------------------ ##
26511 sed "s/^/$as_me: WARNING: /" >&2
26514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26522 ## ------------------------------------ ##
26523 ## Report this to bug-autoconf@gnu.org. ##
26524 ## ------------------------------------ ##
26527 sed "s/^/$as_me: WARNING: /" >&2
26530 echo "$as_me:$LINENO: checking for $ac_header" >&5
26531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26535 eval "$as_ac_Header=$ac_header_preproc"
26537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26542 cat >>confdefs.h
<<_ACEOF
26543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26551 for ac_func
in __fpending
26553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26554 echo "$as_me:$LINENO: checking for $ac_func" >&5
26555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26556 if eval "test \"\${$as_ac_var+set}\" = set"; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26559 cat >conftest.
$ac_ext <<_ACEOF
26560 #line $LINENO "configure"
26563 cat confdefs.h
>>conftest.
$ac_ext
26564 cat >>conftest.
$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 /* System header to define __stub macros and hopefully few prototypes,
26567 which can conflict with char $ac_func (); below.
26568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26569 <limits.h> exists even on freestanding compilers. */
26571 # include <limits.h>
26573 # include <assert.h>
26575 /* Override any gcc2 internal prototype to avoid an error. */
26580 /* We use char because int might match the return type of a gcc2
26581 builtin and then its argument prototype would still apply. */
26583 /* The GNU C library defines this for functions which it implements
26584 to always fail with ENOSYS. Some functions are actually named
26585 something starting with __ and the normal name is an alias. */
26586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26589 char (*f) () = $ac_func;
26598 return f != $ac_func;
26603 rm -f conftest.
$ac_objext conftest
$ac_exeext
26604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26605 (eval $ac_link) 2>&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } &&
26609 { ac_try
='test -s conftest$ac_exeext'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26615 eval "$as_ac_var=yes"
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.
$ac_ext >&5
26620 eval "$as_ac_var=no"
26622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26626 if test `eval echo '${'$as_ac_var'}'` = yes; then
26627 cat >>confdefs.h
<<_ACEOF
26628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26632 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
26638 # if HAVE_STDIO_EXT_H
26639 # include <stdio_ext.h>
26642 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26643 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26644 if test "${ac_cv_have_decl___fpending+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 cat >conftest.
$ac_ext <<_ACEOF
26648 #line $LINENO "configure"
26651 cat confdefs.h
>>conftest.
$ac_ext
26652 cat >>conftest.
$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26660 char *p = (char *) __fpending;
26667 rm -f conftest.
$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669 (eval $ac_compile) 2>&5
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } &&
26673 { ac_try
='test -s conftest.$ac_objext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_have_decl___fpending
=yes
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.
$ac_ext >&5
26684 ac_cv_have_decl___fpending
=no
26686 rm -f conftest.
$ac_objext conftest.
$ac_ext
26688 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26689 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26690 if test $ac_cv_have_decl___fpending = yes; then
26692 cat >>confdefs.h
<<_ACEOF
26693 #define HAVE_DECL___FPENDING 1
26698 cat >>confdefs.h
<<_ACEOF
26699 #define HAVE_DECL___FPENDING 0
26706 if test $ac_cv_func___fpending = no
; then
26707 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26708 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26709 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26716 'fp->_IO_write_ptr - fp->_IO_write_base' \
26718 '# traditional Unix' \
26719 'fp->_ptr - fp->_base' \
26722 'fp->_p - fp->_bf._base' \
26724 '# SCO, Unixware' \
26725 'fp->__ptr - fp->__base' \
26728 'fp->__bufp - fp->__buffer' \
26730 '# old glibc iostream?' \
26731 'fp->_pptr - fp->_pbase' \
26734 '(*fp)->_ptr - (*fp)->_base' \
26736 '# e.g., DGUX R4.11; the info is not available' \
26740 # Skip each embedded comment.
26741 case "$ac_expr" in '#'*) continue;; esac
26743 cat >conftest.
$ac_ext <<_ACEOF
26744 #line $LINENO "configure"
26747 cat confdefs.h
>>conftest.
$ac_ext
26748 cat >>conftest.
$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26755 FILE *fp = stdin; (void) ($ac_expr);
26760 rm -f conftest.
$ac_objext
26761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26762 (eval $ac_compile) 2>&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } &&
26766 { ac_try
='test -s conftest.$ac_objext'
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; }; then
26775 echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.
$ac_ext >&5
26779 rm -f conftest.
$ac_objext conftest.
$ac_ext
26780 test "$fp_done" = yes && break
26783 ac_cv_sys_pending_output_n_bytes
=$ac_expr
26787 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26788 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26790 cat >>confdefs.h
<<_ACEOF
26791 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26797 # autoconf-2.52 has a proper check for inttypes.h.
26800 if test $ac_cv_header_inttypes_h = yes; then
26801 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26802 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26803 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26804 echo $ECHO_N "(cached) $ECHO_C" >&6
26807 cat >conftest.
$ac_ext <<_ACEOF
26808 #line $LINENO "configure"
26811 cat confdefs.h
>>conftest.
$ac_ext
26812 cat >>conftest.
$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 #include <inttypes.h>
26827 rm -f conftest.
$ac_objext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26829 (eval $ac_compile) 2>&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
26833 { ac_try
='test -s conftest.$ac_objext'
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 gt_cv_inttypes_pri_broken
=no
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.
$ac_ext >&5
26844 gt_cv_inttypes_pri_broken
=yes
26846 rm -f conftest.
$ac_objext conftest.
$ac_ext
26849 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26850 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26852 if test "$gt_cv_inttypes_pri_broken" = yes; then
26854 cat >>confdefs.h
<<_ACEOF
26855 #define PRI_MACROS_BROKEN 1
26860 echo "$as_me:$LINENO: checking for getgroups" >&5
26861 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26862 if test "${ac_cv_func_getgroups+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26865 cat >conftest.
$ac_ext <<_ACEOF
26866 #line $LINENO "configure"
26869 cat confdefs.h
>>conftest.
$ac_ext
26870 cat >>conftest.
$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 /* System header to define __stub macros and hopefully few prototypes,
26873 which can conflict with char getgroups (); below.
26874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26875 <limits.h> exists even on freestanding compilers. */
26877 # include <limits.h>
26879 # include <assert.h>
26881 /* Override any gcc2 internal prototype to avoid an error. */
26886 /* We use char because int might match the return type of a gcc2
26887 builtin and then its argument prototype would still apply. */
26889 /* The GNU C library defines this for functions which it implements
26890 to always fail with ENOSYS. Some functions are actually named
26891 something starting with __ and the normal name is an alias. */
26892 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26895 char (*f) () = getgroups;
26904 return f != getgroups;
26909 rm -f conftest.
$ac_objext conftest
$ac_exeext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26911 (eval $ac_link) 2>&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
26915 { ac_try
='test -s conftest$ac_exeext'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 ac_cv_func_getgroups
=yes
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.
$ac_ext >&5
26926 ac_cv_func_getgroups
=no
26928 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26931 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26934 # If we don't yet have getgroups, see if it's in -lbsd.
26935 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26937 if test $ac_cv_func_getgroups = no
; then
26938 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26939 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26940 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26943 ac_check_lib_save_LIBS
=$LIBS
26945 cat >conftest.
$ac_ext <<_ACEOF
26946 #line $LINENO "configure"
26949 cat confdefs.h
>>conftest.
$ac_ext
26950 cat >>conftest.
$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26953 /* Override any gcc2 internal prototype to avoid an error. */
26957 /* We use char because int might match the return type of a gcc2
26958 builtin and then its argument prototype would still apply. */
26968 rm -f conftest.
$ac_objext conftest
$ac_exeext
26969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26970 (eval $ac_link) 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try
='test -s conftest$ac_exeext'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; }; then
26980 ac_cv_lib_bsd_getgroups
=yes
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.
$ac_ext >&5
26985 ac_cv_lib_bsd_getgroups
=no
26987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26988 LIBS
=$ac_check_lib_save_LIBS
26990 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26991 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26992 if test $ac_cv_lib_bsd_getgroups = yes; then
26993 GETGROUPS_LIB
=-lbsd
26998 # Run the program to test the functionality of the system-supplied
26999 # getgroups function only if there is such a function.
27000 if test $ac_cv_func_getgroups = yes; then
27001 echo "$as_me:$LINENO: checking for working getgroups" >&5
27002 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
27003 if test "${ac_cv_func_getgroups_works+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27006 if test "$cross_compiling" = yes; then
27007 ac_cv_func_getgroups_works
=no
27009 cat >conftest.
$ac_ext <<_ACEOF
27010 #line $LINENO "configure"
27013 cat confdefs.h
>>conftest.
$ac_ext
27014 cat >>conftest.
$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27020 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27021 exit (getgroups (0, 0) == -1 ? 1 : 0);
27026 rm -f conftest
$ac_exeext
27027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028 (eval $ac_link) 2>&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ac_cv_func_getgroups_works
=yes
27039 echo "$as_me: program exited with status $ac_status" >&5
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.
$ac_ext >&5
27043 ( exit $ac_status )
27044 ac_cv_func_getgroups_works
=no
27046 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27050 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
27051 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
27052 if test $ac_cv_func_getgroups_works = yes; then
27054 cat >>confdefs.h
<<\_ACEOF
27055 #define HAVE_GETGROUPS 1
27062 if test $ac_cv_func_getgroups_works = no
; then
27063 LIBOBJS
="$LIBOBJS getgroups.$ac_objext"
27065 cat >>confdefs.h
<<\_ACEOF
27066 #define getgroups rpl_getgroups
27070 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
27072 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27073 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
27074 if test "${ac_cv_sys_largefile_source+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27078 ac_cv_sys_largefile_source
=no
27079 cat >conftest.
$ac_ext <<_ACEOF
27080 #line $LINENO "configure"
27083 cat confdefs.h
>>conftest.
$ac_ext
27084 cat >>conftest.
$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27095 rm -f conftest.
$ac_objext
27096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097 (eval $ac_compile) 2>&5
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } &&
27101 { ac_try
='test -s conftest.$ac_objext'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
27109 echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.
$ac_ext >&5
27113 rm -f conftest.
$ac_objext conftest.
$ac_ext
27114 cat >conftest.
$ac_ext <<_ACEOF
27115 #line $LINENO "configure"
27118 cat confdefs.h
>>conftest.
$ac_ext
27119 cat >>conftest.
$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 #define _LARGEFILE_SOURCE 1
27131 rm -f conftest.
$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } &&
27137 { ac_try
='test -s conftest.$ac_objext'
27138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139 (eval $ac_try) 2>&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
27143 ac_cv_sys_largefile_source
=1; break
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.
$ac_ext >&5
27149 rm -f conftest.
$ac_objext conftest.
$ac_ext
27153 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27154 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27155 if test "$ac_cv_sys_largefile_source" != no
; then
27157 cat >>confdefs.h
<<_ACEOF
27158 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27164 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27165 # in glibc 2.1.3, but that breaks too many other things.
27166 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27167 echo "$as_me:$LINENO: checking for fseeko" >&5
27168 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27169 if test "${ac_cv_func_fseeko+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27172 cat >conftest.
$ac_ext <<_ACEOF
27173 #line $LINENO "configure"
27176 cat confdefs.h
>>conftest.
$ac_ext
27177 cat >>conftest.
$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27183 return fseeko && fseeko (stdin, 0, 0);
27188 rm -f conftest.
$ac_objext conftest
$ac_exeext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27190 (eval $ac_link) 2>&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try
='test -s conftest$ac_exeext'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200 ac_cv_func_fseeko
=yes
27202 echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.
$ac_ext >&5
27205 ac_cv_func_fseeko
=no
27207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27209 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27210 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27211 if test $ac_cv_func_fseeko = yes; then
27213 cat >>confdefs.h
<<\_ACEOF
27214 #define HAVE_FSEEKO 1
27220 for ac_func
in vprintf
27222 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27223 echo "$as_me:$LINENO: checking for $ac_func" >&5
27224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27225 if eval "test \"\${$as_ac_var+set}\" = set"; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 cat >conftest.
$ac_ext <<_ACEOF
27229 #line $LINENO "configure"
27232 cat confdefs.h
>>conftest.
$ac_ext
27233 cat >>conftest.
$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235 /* System header to define __stub macros and hopefully few prototypes,
27236 which can conflict with char $ac_func (); below.
27237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238 <limits.h> exists even on freestanding compilers. */
27240 # include <limits.h>
27242 # include <assert.h>
27244 /* Override any gcc2 internal prototype to avoid an error. */
27249 /* We use char because int might match the return type of a gcc2
27250 builtin and then its argument prototype would still apply. */
27252 /* The GNU C library defines this for functions which it implements
27253 to always fail with ENOSYS. Some functions are actually named
27254 something starting with __ and the normal name is an alias. */
27255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27258 char (*f) () = $ac_func;
27267 return f != $ac_func;
27272 rm -f conftest.
$ac_objext conftest
$ac_exeext
27273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27274 (eval $ac_link) 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try
='test -s conftest$ac_exeext'
27279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280 (eval $ac_try) 2>&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; }; then
27284 eval "$as_ac_var=yes"
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.
$ac_ext >&5
27289 eval "$as_ac_var=no"
27291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27295 if test `eval echo '${'$as_ac_var'}'` = yes; then
27296 cat >>confdefs.h
<<_ACEOF
27297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27300 echo "$as_me:$LINENO: checking for _doprnt" >&5
27301 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27302 if test "${ac_cv_func__doprnt+set}" = set; then
27303 echo $ECHO_N "(cached) $ECHO_C" >&6
27305 cat >conftest.
$ac_ext <<_ACEOF
27306 #line $LINENO "configure"
27309 cat confdefs.h
>>conftest.
$ac_ext
27310 cat >>conftest.
$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 /* System header to define __stub macros and hopefully few prototypes,
27313 which can conflict with char _doprnt (); below.
27314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27315 <limits.h> exists even on freestanding compilers. */
27317 # include <limits.h>
27319 # include <assert.h>
27321 /* Override any gcc2 internal prototype to avoid an error. */
27326 /* We use char because int might match the return type of a gcc2
27327 builtin and then its argument prototype would still apply. */
27329 /* The GNU C library defines this for functions which it implements
27330 to always fail with ENOSYS. Some functions are actually named
27331 something starting with __ and the normal name is an alias. */
27332 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27335 char (*f) () = _doprnt;
27344 return f != _doprnt;
27349 rm -f conftest.
$ac_objext conftest
$ac_exeext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351 (eval $ac_link) 2>&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
27355 { ac_try
='test -s conftest$ac_exeext'
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; }; then
27361 ac_cv_func__doprnt
=yes
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.
$ac_ext >&5
27366 ac_cv_func__doprnt
=no
27368 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27370 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27371 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27372 if test $ac_cv_func__doprnt = yes; then
27374 cat >>confdefs.h
<<\_ACEOF
27375 #define HAVE_DOPRNT 1
27385 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27386 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27387 if test "${jm_cv_have_proc_uptime+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 jm_cv_have_proc_uptime
=no
27391 test -f /proc
/uptime \
27392 && test "$cross_compiling" = no \
27393 && cat < /proc
/uptime
>/dev
/null
2>/dev
/null \
27394 && jm_cv_have_proc_uptime
=yes
27396 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27397 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27398 if test $jm_cv_have_proc_uptime = yes; then
27400 cat >>confdefs.h
<<\_ACEOF
27401 #define HAVE_PROC_UPTIME 1
27408 for ac_func
in ftruncate
27410 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27411 echo "$as_me:$LINENO: checking for $ac_func" >&5
27412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27413 if eval "test \"\${$as_ac_var+set}\" = set"; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27416 cat >conftest.
$ac_ext <<_ACEOF
27417 #line $LINENO "configure"
27420 cat confdefs.h
>>conftest.
$ac_ext
27421 cat >>conftest.
$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27423 /* System header to define __stub macros and hopefully few prototypes,
27424 which can conflict with char $ac_func (); below.
27425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27426 <limits.h> exists even on freestanding compilers. */
27428 # include <limits.h>
27430 # include <assert.h>
27432 /* Override any gcc2 internal prototype to avoid an error. */
27437 /* We use char because int might match the return type of a gcc2
27438 builtin and then its argument prototype would still apply. */
27440 /* The GNU C library defines this for functions which it implements
27441 to always fail with ENOSYS. Some functions are actually named
27442 something starting with __ and the normal name is an alias. */
27443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27446 char (*f) () = $ac_func;
27455 return f != $ac_func;
27460 rm -f conftest.
$ac_objext conftest
$ac_exeext
27461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27462 (eval $ac_link) 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try
='test -s conftest$ac_exeext'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 eval "$as_ac_var=yes"
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.
$ac_ext >&5
27477 eval "$as_ac_var=no"
27479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27483 if test `eval echo '${'$as_ac_var'}'` = yes; then
27484 cat >>confdefs.h
<<_ACEOF
27485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27489 ftruncate_missing
=yes
27494 if test "$ftruncate_missing" = yes; then
27496 for ac_header
in unistd.h
27498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27500 echo "$as_me:$LINENO: checking for $ac_header" >&5
27501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27503 echo $ECHO_N "(cached) $ECHO_C" >&6
27505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27508 # Is the header compilable?
27509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27511 cat >conftest.
$ac_ext <<_ACEOF
27512 #line $LINENO "configure"
27515 cat confdefs.h
>>conftest.
$ac_ext
27516 cat >>conftest.
$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 $ac_includes_default
27519 #include <$ac_header>
27521 rm -f conftest.
$ac_objext
27522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27523 (eval $ac_compile) 2>&5
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
27527 { ac_try
='test -s conftest.$ac_objext'
27528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529 (eval $ac_try) 2>&5
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; }; then
27533 ac_header_compiler
=yes
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.
$ac_ext >&5
27538 ac_header_compiler
=no
27540 rm -f conftest.
$ac_objext conftest.
$ac_ext
27541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542 echo "${ECHO_T}$ac_header_compiler" >&6
27544 # Is the header present?
27545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27547 cat >conftest.
$ac_ext <<_ACEOF
27548 #line $LINENO "configure"
27551 cat confdefs.h
>>conftest.
$ac_ext
27552 cat >>conftest.
$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <$ac_header>
27556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27557 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
27559 grep -v '^ *+' conftest.er1
>conftest.err
27561 cat conftest.err
>&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } >/dev
/null
; then
27564 if test -s conftest.err
; then
27565 ac_cpp_err
=$ac_c_preproc_warn_flag
27572 if test -z "$ac_cpp_err"; then
27573 ac_header_preproc
=yes
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.
$ac_ext >&5
27578 ac_header_preproc
=no
27580 rm -f conftest.err conftest.
$ac_ext
27581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27582 echo "${ECHO_T}$ac_header_preproc" >&6
27584 # So? What about this header?
27585 case $ac_header_compiler:$ac_header_preproc in
27587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27593 ## ------------------------------------ ##
27594 ## Report this to bug-autoconf@gnu.org. ##
27595 ## ------------------------------------ ##
27598 sed "s/^/$as_me: WARNING: /" >&2
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27609 ## ------------------------------------ ##
27610 ## Report this to bug-autoconf@gnu.org. ##
27611 ## ------------------------------------ ##
27614 sed "s/^/$as_me: WARNING: /" >&2
27617 echo "$as_me:$LINENO: checking for $ac_header" >&5
27618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27620 echo $ECHO_N "(cached) $ECHO_C" >&6
27622 eval "$as_ac_Header=$ac_header_preproc"
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27629 cat >>confdefs.h
<<_ACEOF
27630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27638 for ac_func
in chsize
27640 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27641 echo "$as_me:$LINENO: checking for $ac_func" >&5
27642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27643 if eval "test \"\${$as_ac_var+set}\" = set"; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27646 cat >conftest.
$ac_ext <<_ACEOF
27647 #line $LINENO "configure"
27650 cat confdefs.h
>>conftest.
$ac_ext
27651 cat >>conftest.
$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27653 /* System header to define __stub macros and hopefully few prototypes,
27654 which can conflict with char $ac_func (); below.
27655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656 <limits.h> exists even on freestanding compilers. */
27658 # include <limits.h>
27660 # include <assert.h>
27662 /* Override any gcc2 internal prototype to avoid an error. */
27667 /* We use char because int might match the return type of a gcc2
27668 builtin and then its argument prototype would still apply. */
27670 /* The GNU C library defines this for functions which it implements
27671 to always fail with ENOSYS. Some functions are actually named
27672 something starting with __ and the normal name is an alias. */
27673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27676 char (*f) () = $ac_func;
27685 return f != $ac_func;
27690 rm -f conftest.
$ac_objext conftest
$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } &&
27696 { ac_try
='test -s conftest$ac_exeext'
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 eval "$as_ac_var=yes"
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.
$ac_ext >&5
27707 eval "$as_ac_var=no"
27709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714 cat >>confdefs.h
<<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27721 LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
27725 echo "$as_me:$LINENO: checking whether rename is broken" >&5
27726 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27727 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27731 rm -rf conftest.d1 conftest.d2
27732 mkdir conftest.d1 ||
27733 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27734 echo "$as_me: error: cannot create temporary directory" >&2;}
27735 { (exit 1); exit 1; }; }
27736 if test "$cross_compiling" = yes; then
27737 vb_cv_func_rename_trailing_slash_bug
=yes
27739 cat >conftest.
$ac_ext <<_ACEOF
27740 #line $LINENO "configure"
27743 cat confdefs.h
>>conftest.
$ac_ext
27744 cat >>conftest.
$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27747 # include <stdio.h>
27751 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27755 rm -f conftest
$ac_exeext
27756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27757 (eval $ac_link) 2>&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 vb_cv_func_rename_trailing_slash_bug
=no
27768 echo "$as_me: program exited with status $ac_status" >&5
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.
$ac_ext >&5
27772 ( exit $ac_status )
27773 vb_cv_func_rename_trailing_slash_bug
=yes
27775 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27778 rm -rf conftest.d1 conftest.d2
27781 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27782 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27783 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27784 LIBOBJS
="$LIBOBJS rename.$ac_objext"
27786 cat >>confdefs.h
<<\_ACEOF
27787 #define RENAME_TRAILING_SLASH_BUG 1
27793 for ac_func
in mkstemp
27795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27796 echo "$as_me:$LINENO: checking for $ac_func" >&5
27797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27798 if eval "test \"\${$as_ac_var+set}\" = set"; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 cat >conftest.
$ac_ext <<_ACEOF
27802 #line $LINENO "configure"
27805 cat confdefs.h
>>conftest.
$ac_ext
27806 cat >>conftest.
$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27808 /* System header to define __stub macros and hopefully few prototypes,
27809 which can conflict with char $ac_func (); below.
27810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811 <limits.h> exists even on freestanding compilers. */
27813 # include <limits.h>
27815 # include <assert.h>
27817 /* Override any gcc2 internal prototype to avoid an error. */
27822 /* We use char because int might match the return type of a gcc2
27823 builtin and then its argument prototype would still apply. */
27825 /* The GNU C library defines this for functions which it implements
27826 to always fail with ENOSYS. Some functions are actually named
27827 something starting with __ and the normal name is an alias. */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831 char (*f) () = $ac_func;
27840 return f != $ac_func;
27845 rm -f conftest.
$ac_objext conftest
$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847 (eval $ac_link) 2>&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } &&
27851 { ac_try
='test -s conftest$ac_exeext'
27852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853 (eval $ac_try) 2>&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); }; }; then
27857 eval "$as_ac_var=yes"
27859 echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.
$ac_ext >&5
27862 eval "$as_ac_var=no"
27864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27868 if test `eval echo '${'$as_ac_var'}'` = yes; then
27869 cat >>confdefs.h
<<_ACEOF
27870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27874 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
27879 if test $ac_cv_func_mkstemp = no
; then
27880 utils_cv_func_mkstemp_limitations
=yes
27882 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27883 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27884 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27888 if test "$cross_compiling" = yes; then
27889 utils_cv_func_mkstemp_limitations
=yes
27892 cat >conftest.
$ac_ext <<_ACEOF
27893 #line $LINENO "configure"
27896 cat confdefs.h
>>conftest.
$ac_ext
27897 cat >>conftest.
$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 # include <stdlib.h>
27904 for (i = 0; i < 30; i++)
27906 char template[] = "conftestXXXXXX";
27907 int fd = mkstemp (template);
27916 rm -f conftest
$ac_exeext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27918 (eval $ac_link) 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923 (eval $ac_try) 2>&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); }; }; then
27927 utils_cv_func_mkstemp_limitations
=no
27929 echo "$as_me: program exited with status $ac_status" >&5
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.
$ac_ext >&5
27933 ( exit $ac_status )
27934 utils_cv_func_mkstemp_limitations
=yes
27936 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27941 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27942 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27945 if test $utils_cv_func_mkstemp_limitations = yes; then
27946 LIBOBJS
="$LIBOBJS mkstemp.$ac_objext"
27947 LIBOBJS
="$LIBOBJS tempname.$ac_objext"
27949 cat >>confdefs.h
<<\_ACEOF
27950 #define mkstemp rpl_mkstemp
27955 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27956 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27957 if test "${ac_cv_func_closedir_void+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 if test "$cross_compiling" = yes; then
27961 ac_cv_func_closedir_void
=yes
27963 cat >conftest.
$ac_ext <<_ACEOF
27964 #line $LINENO "configure"
27967 cat confdefs.h
>>conftest.
$ac_ext
27968 cat >>conftest.
$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 $ac_includes_default
27971 #include <$ac_header_dirent>
27972 #ifndef __cplusplus
27979 exit (closedir (opendir (".")) != 0);
27984 rm -f conftest
$ac_exeext
27985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27986 (eval $ac_link) 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 ac_cv_func_closedir_void
=no
27997 echo "$as_me: program exited with status $ac_status" >&5
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.
$ac_ext >&5
28001 ( exit $ac_status )
28002 ac_cv_func_closedir_void
=yes
28004 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28007 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28008 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28009 if test $ac_cv_func_closedir_void = yes; then
28011 cat >>confdefs.h
<<\_ACEOF
28012 #define CLOSEDIR_VOID 1
28017 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28018 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
28019 if test "${ac_cv_func_utime_null+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 rm -f conftest.data
; >conftest.data
28023 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
28024 if test "$cross_compiling" = yes; then
28025 ac_cv_func_utime_null
=no
28027 cat >conftest.
$ac_ext <<_ACEOF
28028 #line $LINENO "configure"
28031 cat confdefs.h
>>conftest.
$ac_ext
28032 cat >>conftest.
$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28034 $ac_includes_default
28039 exit (!(stat ("conftest.data", &s) == 0
28040 && utime ("conftest.data", (long *)0) == 0
28041 && stat ("conftest.data", &t) == 0
28042 && t.st_mtime >= s.st_mtime
28043 && t.st_mtime - s.st_mtime < 120));
28048 rm -f conftest
$ac_exeext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050 (eval $ac_link) 2>&5
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; }; then
28059 ac_cv_func_utime_null
=yes
28061 echo "$as_me: program exited with status $ac_status" >&5
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.
$ac_ext >&5
28065 ( exit $ac_status )
28066 ac_cv_func_utime_null
=no
28068 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28070 rm -f core core.
* *.core
28072 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
28073 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
28074 if test $ac_cv_func_utime_null = yes; then
28076 cat >>confdefs.h
<<\_ACEOF
28077 #define HAVE_UTIME_NULL 1
28081 rm -f conftest.data
28085 for ac_header
in utime.h
28087 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089 echo "$as_me:$LINENO: checking for $ac_header" >&5
28090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28097 # Is the header compilable?
28098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28100 cat >conftest.
$ac_ext <<_ACEOF
28101 #line $LINENO "configure"
28104 cat confdefs.h
>>conftest.
$ac_ext
28105 cat >>conftest.
$ac_ext <<_ACEOF
28106 /* end confdefs.h. */
28107 $ac_includes_default
28108 #include <$ac_header>
28110 rm -f conftest.
$ac_objext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28112 (eval $ac_compile) 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
28116 { ac_try
='test -s conftest.$ac_objext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_header_compiler
=yes
28124 echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.
$ac_ext >&5
28127 ac_header_compiler
=no
28129 rm -f conftest.
$ac_objext conftest.
$ac_ext
28130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28131 echo "${ECHO_T}$ac_header_compiler" >&6
28133 # Is the header present?
28134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28136 cat >conftest.
$ac_ext <<_ACEOF
28137 #line $LINENO "configure"
28140 cat confdefs.h
>>conftest.
$ac_ext
28141 cat >>conftest.
$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 #include <$ac_header>
28145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28148 grep -v '^ *+' conftest.er1
>conftest.err
28150 cat conftest.err
>&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } >/dev
/null
; then
28153 if test -s conftest.err
; then
28154 ac_cpp_err
=$ac_c_preproc_warn_flag
28161 if test -z "$ac_cpp_err"; then
28162 ac_header_preproc
=yes
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.
$ac_ext >&5
28167 ac_header_preproc
=no
28169 rm -f conftest.err conftest.
$ac_ext
28170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28171 echo "${ECHO_T}$ac_header_preproc" >&6
28173 # So? What about this header?
28174 case $ac_header_compiler:$ac_header_preproc in
28176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28182 ## ------------------------------------ ##
28183 ## Report this to bug-autoconf@gnu.org. ##
28184 ## ------------------------------------ ##
28187 sed "s/^/$as_me: WARNING: /" >&2
28190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28198 ## ------------------------------------ ##
28199 ## Report this to bug-autoconf@gnu.org. ##
28200 ## ------------------------------------ ##
28203 sed "s/^/$as_me: WARNING: /" >&2
28206 echo "$as_me:$LINENO: checking for $ac_header" >&5
28207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28211 eval "$as_ac_Header=$ac_header_preproc"
28213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28218 cat >>confdefs.h
<<_ACEOF
28219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28229 if test $ac_cv_func_utime_null = no
; then
28230 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28231 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28232 if test "${ac_cv_func_utimes_null+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 rm -f conftest.data
; > conftest.data
28236 if test "$cross_compiling" = yes; then
28237 ac_cv_func_utimes_null
=no
28239 cat >conftest.
$ac_ext <<_ACEOF
28240 #line $LINENO "configure"
28243 cat confdefs.h
>>conftest.
$ac_ext
28244 cat >>conftest.
$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28247 /* In case stat has been defined to rpl_stat, undef it here. */
28249 #include <sys/types.h>
28250 #include <sys/stat.h>
28253 exit(!(stat ("conftest.data", &s) == 0
28254 && utimes("conftest.data", (long *)0) == 0
28255 && stat("conftest.data", &t) == 0
28256 && t.st_mtime >= s.st_mtime
28257 && t.st_mtime - s.st_mtime < 120));
28260 rm -f conftest
$ac_exeext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28262 (eval $ac_link) 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 ac_cv_func_utimes_null
=yes
28273 echo "$as_me: program exited with status $ac_status" >&5
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.
$ac_ext >&5
28277 ( exit $ac_status )
28278 ac_cv_func_utimes_null
=no
28280 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28282 rm -f core core.
* *.core
28284 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28285 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28287 if test $ac_cv_func_utimes_null = yes; then
28289 cat >>confdefs.h
<<\_ACEOF
28290 #define HAVE_UTIMES_NULL 1
28297 for ac_func
in utime
28299 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300 echo "$as_me:$LINENO: checking for $ac_func" >&5
28301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302 if eval "test \"\${$as_ac_var+set}\" = set"; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28305 cat >conftest.
$ac_ext <<_ACEOF
28306 #line $LINENO "configure"
28309 cat confdefs.h
>>conftest.
$ac_ext
28310 cat >>conftest.
$ac_ext <<_ACEOF
28311 /* end confdefs.h. */
28312 /* System header to define __stub macros and hopefully few prototypes,
28313 which can conflict with char $ac_func (); below.
28314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28315 <limits.h> exists even on freestanding compilers. */
28317 # include <limits.h>
28319 # include <assert.h>
28321 /* Override any gcc2 internal prototype to avoid an error. */
28326 /* We use char because int might match the return type of a gcc2
28327 builtin and then its argument prototype would still apply. */
28329 /* The GNU C library defines this for functions which it implements
28330 to always fail with ENOSYS. Some functions are actually named
28331 something starting with __ and the normal name is an alias. */
28332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28335 char (*f) () = $ac_func;
28344 return f != $ac_func;
28349 rm -f conftest.
$ac_objext conftest
$ac_exeext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351 (eval $ac_link) 2>&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try
='test -s conftest$ac_exeext'
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 eval "$as_ac_var=yes"
28363 echo "$as_me: failed program was:" >&5
28364 sed 's/^/| /' conftest.
$ac_ext >&5
28366 eval "$as_ac_var=no"
28368 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28372 if test `eval echo '${'$as_ac_var'}'` = yes; then
28373 cat >>confdefs.h
<<_ACEOF
28374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28378 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
28386 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28387 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28388 if test "${utils_cv_sys_open_max+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28392 if test "$cross_compiling" = yes; then
28393 utils_cv_sys_open_max
='cross compiling run-test in open-max.m4'
28395 cat >conftest.
$ac_ext <<_ACEOF
28396 #line $LINENO "configure"
28399 cat confdefs.h
>>conftest.
$ac_ext
28400 cat >>conftest.
$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28404 #include <stdlib.h>
28405 #include <unistd.h>
28409 FILE *result = fopen ("conftest.omax", "w");
28411 /* Impose an arbitrary limit, in case some system has no
28412 effective limit on the number of simultaneously open files. */
28415 FILE *s = fopen ("conftest.op", "w");
28420 fprintf (result, "%d\n", i);
28421 exit (fclose (result) == EOF);
28425 rm -f conftest
$ac_exeext
28426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427 (eval $ac_link) 2>&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 utils_cv_sys_open_max
=`cat conftest.omax`
28438 echo "$as_me: program exited with status $ac_status" >&5
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.
$ac_ext >&5
28442 ( exit $ac_status )
28443 utils_cv_sys_open_max
='internal error in open-max.m4'
28445 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28448 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28449 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28452 cat >>confdefs.h
<<_ACEOF
28453 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28458 if test "X$prefix" = "XNONE"; then
28459 acl_final_prefix
="$ac_default_prefix"
28461 acl_final_prefix
="$prefix"
28463 if test "X$exec_prefix" = "XNONE"; then
28464 acl_final_exec_prefix
='${prefix}'
28466 acl_final_exec_prefix
="$exec_prefix"
28468 acl_save_prefix
="$prefix"
28469 prefix
="$acl_final_prefix"
28470 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
28471 prefix
="$acl_save_prefix"
28474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28475 if test "${with_gnu_ld+set}" = set; then
28476 withval
="$with_gnu_ld"
28477 test "$withval" = no || with_gnu_ld
=yes
28482 if test "$GCC" = yes; then
28483 # Check if gcc -print-prog-name=ld gives a path.
28484 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28488 # gcc leaves a trailing carriage return which upsets mingw
28489 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28491 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
28494 # Accept absolute paths.
28495 [\\/]* |
[A-Za-z
]:[\\/]*)
28496 re_direlt
='/[^/][^/]*/\.\./'
28497 # Canonicalize the path of ld
28498 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
28499 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
28500 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
28502 test -z "$LD" && LD
="$ac_prog"
28505 # If it fails, then pretend we aren't using GCC.
28509 # If it is relative, then search for the first ld in PATH.
28510 with_gnu_ld
=unknown
28513 elif test "$with_gnu_ld" = yes; then
28514 echo "$as_me:$LINENO: checking for GNU ld" >&5
28515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28517 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28520 if test "${acl_cv_path_LD+set}" = set; then
28521 echo $ECHO_N "(cached) $ECHO_C" >&6
28523 if test -z "$LD"; then
28524 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28525 for ac_dir
in $PATH; do
28526 test -z "$ac_dir" && ac_dir
=.
28527 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
28528 acl_cv_path_LD
="$ac_dir/$ac_prog"
28529 # Check to see if the program is GNU ld. I'd rather use --version,
28530 # but apparently some GNU ld's only accept -v.
28531 # Break only if it was the GNU/non-GNU ld that we prefer.
28532 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
28533 test "$with_gnu_ld" != no
&& break
28535 test "$with_gnu_ld" != yes && break
28541 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
28545 LD
="$acl_cv_path_LD"
28546 if test -n "$LD"; then
28547 echo "$as_me:$LINENO: result: $LD" >&5
28548 echo "${ECHO_T}$LD" >&6
28550 echo "$as_me:$LINENO: result: no" >&5
28551 echo "${ECHO_T}no" >&6
28553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28555 { (exit 1); exit 1; }; }
28556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28562 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
28563 acl_cv_prog_gnu_ld
=yes
28565 acl_cv_prog_gnu_ld
=no
28568 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28570 with_gnu_ld
=$acl_cv_prog_gnu_ld
28574 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28576 if test "${acl_cv_rpath+set}" = set; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
28581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28583 rm -f .
/conftest.sh
28587 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28588 echo "${ECHO_T}$acl_cv_rpath" >&6
28590 libext
="$acl_cv_libext"
28591 shlibext
="$acl_cv_shlibext"
28592 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
28593 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
28594 hardcode_direct
="$acl_cv_hardcode_direct"
28595 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
28596 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
28597 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
28598 # Check whether --enable-rpath or --disable-rpath was given.
28599 if test "${enable_rpath+set}" = set; then
28600 enableval
="$enable_rpath"
28614 acl_save_prefix
="$prefix"
28615 prefix
="$acl_final_prefix"
28616 acl_save_exec_prefix
="$exec_prefix"
28617 exec_prefix
="$acl_final_exec_prefix"
28619 eval additional_includedir
=\"$includedir\"
28620 eval additional_libdir
=\"$libdir\"
28622 exec_prefix
="$acl_save_exec_prefix"
28623 prefix
="$acl_save_prefix"
28626 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28627 if test "${with_libiconv_prefix+set}" = set; then
28628 withval
="$with_libiconv_prefix"
28630 if test "X$withval" = "Xno"; then
28633 if test "X$withval" = "X"; then
28635 acl_save_prefix
="$prefix"
28636 prefix
="$acl_final_prefix"
28637 acl_save_exec_prefix
="$exec_prefix"
28638 exec_prefix
="$acl_final_exec_prefix"
28640 eval additional_includedir
=\"$includedir\"
28641 eval additional_libdir
=\"$libdir\"
28643 exec_prefix
="$acl_save_exec_prefix"
28644 prefix
="$acl_save_prefix"
28647 additional_includedir
="$withval/include"
28648 additional_libdir
="$withval/lib"
28658 names_already_handled
=
28659 names_next_round
='iconv '
28660 while test -n "$names_next_round"; do
28661 names_this_round
="$names_next_round"
28663 for name
in $names_this_round; do
28665 for n
in $names_already_handled; do
28666 if test "$n" = "$name"; then
28667 already_handled
=yes
28671 if test -z "$already_handled"; then
28672 names_already_handled
="$names_already_handled $name"
28673 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28674 eval value
=\"\
$HAVE_LIB$uppername\"
28675 if test -n "$value"; then
28676 if test "$value" = yes; then
28677 eval value
=\"\
$LIB$uppername\"
28678 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
28679 eval value
=\"\
$LTLIB$uppername\"
28680 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
28689 if test $use_additional = yes; then
28690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28691 found_dir
="$additional_libdir"
28692 found_so
="$additional_libdir/lib$name.$shlibext"
28693 if test -f "$additional_libdir/lib$name.la"; then
28694 found_la
="$additional_libdir/lib$name.la"
28697 if test -f "$additional_libdir/lib$name.$libext"; then
28698 found_dir
="$additional_libdir"
28699 found_a
="$additional_libdir/lib$name.$libext"
28700 if test -f "$additional_libdir/lib$name.la"; then
28701 found_la
="$additional_libdir/lib$name.la"
28706 if test "X$found_dir" = "X"; then
28707 for x
in $LDFLAGS $LTLIBICONV; do
28709 acl_save_prefix
="$prefix"
28710 prefix
="$acl_final_prefix"
28711 acl_save_exec_prefix
="$exec_prefix"
28712 exec_prefix
="$acl_final_exec_prefix"
28714 exec_prefix
="$acl_save_exec_prefix"
28715 prefix
="$acl_save_prefix"
28719 dir
=`echo "X$x" | sed -e 's/^X-L//'`
28720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28722 found_so
="$dir/lib$name.$shlibext"
28723 if test -f "$dir/lib$name.la"; then
28724 found_la
="$dir/lib$name.la"
28727 if test -f "$dir/lib$name.$libext"; then
28729 found_a
="$dir/lib$name.$libext"
28730 if test -f "$dir/lib$name.la"; then
28731 found_la
="$dir/lib$name.la"
28737 if test "X$found_dir" != "X"; then
28742 if test "X$found_dir" != "X"; then
28743 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28744 if test "X$found_so" != "X"; then
28745 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
28746 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28749 for x
in $ltrpathdirs; do
28750 if test "X$x" = "X$found_dir"; then
28755 if test -z "$haveit"; then
28756 ltrpathdirs
="$ltrpathdirs $found_dir"
28758 if test "$hardcode_direct" = yes; then
28759 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
28762 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28764 for x
in $rpathdirs; do
28765 if test "X$x" = "X$found_dir"; then
28770 if test -z "$haveit"; then
28771 rpathdirs
="$rpathdirs $found_dir"
28775 for x
in $LDFLAGS $LIBICONV; do
28777 acl_save_prefix
="$prefix"
28778 prefix
="$acl_final_prefix"
28779 acl_save_exec_prefix
="$exec_prefix"
28780 exec_prefix
="$acl_final_exec_prefix"
28782 exec_prefix
="$acl_save_exec_prefix"
28783 prefix
="$acl_save_prefix"
28785 if test "X$x" = "X-L$found_dir"; then
28790 if test -z "$haveit"; then
28791 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28793 if test "$hardcode_minus_L" != no
; then
28794 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
28796 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
28802 if test "X$found_a" != "X"; then
28803 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
28805 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28808 additional_includedir
=
28809 case "$found_dir" in
28811 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28812 additional_includedir
="$basedir/include"
28815 if test "X$additional_includedir" != "X"; then
28816 if test "X$additional_includedir" != "X/usr/include"; then
28818 if test "X$additional_includedir" = "X/usr/local/include"; then
28819 if test -n "$GCC"; then
28821 linux
*) haveit
=yes;;
28825 if test -z "$haveit"; then
28826 for x
in $CPPFLAGS $INCICONV; do
28828 acl_save_prefix
="$prefix"
28829 prefix
="$acl_final_prefix"
28830 acl_save_exec_prefix
="$exec_prefix"
28831 exec_prefix
="$acl_final_exec_prefix"
28833 exec_prefix
="$acl_save_exec_prefix"
28834 prefix
="$acl_save_prefix"
28836 if test "X$x" = "X-I$additional_includedir"; then
28841 if test -z "$haveit"; then
28842 if test -d "$additional_includedir"; then
28843 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28849 if test -n "$found_la"; then
28850 save_libdir
="$libdir"
28851 case "$found_la" in
28852 */* |
*\\*) .
"$found_la" ;;
28853 *) .
"./$found_la" ;;
28855 libdir
="$save_libdir"
28856 for dep
in $dependency_libs; do
28859 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
28860 if test "X$additional_libdir" != "X/usr/lib"; then
28862 if test "X$additional_libdir" = "X/usr/local/lib"; then
28863 if test -n "$GCC"; then
28865 linux
*) haveit
=yes;;
28869 if test -z "$haveit"; then
28871 for x
in $LDFLAGS $LIBICONV; do
28873 acl_save_prefix
="$prefix"
28874 prefix
="$acl_final_prefix"
28875 acl_save_exec_prefix
="$exec_prefix"
28876 exec_prefix
="$acl_final_exec_prefix"
28878 exec_prefix
="$acl_save_exec_prefix"
28879 prefix
="$acl_save_prefix"
28881 if test "X$x" = "X-L$additional_libdir"; then
28886 if test -z "$haveit"; then
28887 if test -d "$additional_libdir"; then
28888 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28892 for x
in $LDFLAGS $LTLIBICONV; do
28894 acl_save_prefix
="$prefix"
28895 prefix
="$acl_final_prefix"
28896 acl_save_exec_prefix
="$exec_prefix"
28897 exec_prefix
="$acl_final_exec_prefix"
28899 exec_prefix
="$acl_save_exec_prefix"
28900 prefix
="$acl_save_prefix"
28902 if test "X$x" = "X-L$additional_libdir"; then
28907 if test -z "$haveit"; then
28908 if test -d "$additional_libdir"; then
28909 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28916 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
28917 if test "$enable_rpath" != no
; then
28919 for x
in $rpathdirs; do
28920 if test "X$x" = "X$dir"; then
28925 if test -z "$haveit"; then
28926 rpathdirs
="$rpathdirs $dir"
28929 for x
in $ltrpathdirs; do
28930 if test "X$x" = "X$dir"; then
28935 if test -z "$haveit"; then
28936 ltrpathdirs
="$ltrpathdirs $dir"
28941 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28944 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28947 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
28948 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28954 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
28955 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28961 if test "X$rpathdirs" != "X"; then
28962 if test -n "$hardcode_libdir_separator"; then
28964 for found_dir
in $rpathdirs; do
28965 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28967 acl_save_libdir
="$libdir"
28969 eval flag
=\"$hardcode_libdir_flag_spec\"
28970 libdir
="$acl_save_libdir"
28971 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
28973 for found_dir
in $rpathdirs; do
28974 acl_save_libdir
="$libdir"
28975 libdir
="$found_dir"
28976 eval flag
=\"$hardcode_libdir_flag_spec\"
28977 libdir
="$acl_save_libdir"
28978 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
28982 if test "X$ltrpathdirs" != "X"; then
28983 for found_dir
in $ltrpathdirs; do
28984 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28990 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28991 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28992 if test "${ac_cv_win_or_dos+set}" = set; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 cat >conftest.
$ac_ext <<_ACEOF
28997 #line $LINENO "configure"
29000 cat confdefs.h
>>conftest.
$ac_ext
29001 cat >>conftest.
$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29007 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29008 neither MSDOS nor Windows
29014 rm -f conftest.
$ac_objext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016 (eval $ac_compile) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try
='test -s conftest.$ac_objext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_win_or_dos
=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.
$ac_ext >&5
29031 ac_cv_win_or_dos
=no
29033 rm -f conftest.
$ac_objext conftest.
$ac_ext
29036 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29037 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29039 if test x
"$ac_cv_win_or_dos" = xyes
; then
29040 ac_fs_accepts_drive_letter_prefix
=1
29041 ac_fs_backslash_is_file_name_separator
=1
29043 ac_fs_accepts_drive_letter_prefix
=0
29044 ac_fs_backslash_is_file_name_separator
=0
29051 cat >>confdefs.h
<<_ACEOF
29052 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29060 cat >>confdefs.h
<<_ACEOF
29061 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29070 for ac_header
in string.h sys
/param.h stddef.h
29072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29074 echo "$as_me:$LINENO: checking for $ac_header" >&5
29075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29082 # Is the header compilable?
29083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29085 cat >conftest.
$ac_ext <<_ACEOF
29086 #line $LINENO "configure"
29089 cat confdefs.h
>>conftest.
$ac_ext
29090 cat >>conftest.
$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29092 $ac_includes_default
29093 #include <$ac_header>
29095 rm -f conftest.
$ac_objext
29096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29097 (eval $ac_compile) 2>&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } &&
29101 { ac_try
='test -s conftest.$ac_objext'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_header_compiler
=yes
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.
$ac_ext >&5
29112 ac_header_compiler
=no
29114 rm -f conftest.
$ac_objext conftest.
$ac_ext
29115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29116 echo "${ECHO_T}$ac_header_compiler" >&6
29118 # Is the header present?
29119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29121 cat >conftest.
$ac_ext <<_ACEOF
29122 #line $LINENO "configure"
29125 cat confdefs.h
>>conftest.
$ac_ext
29126 cat >>conftest.
$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29128 #include <$ac_header>
29130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29133 grep -v '^ *+' conftest.er1
>conftest.err
29135 cat conftest.err
>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } >/dev
/null
; then
29138 if test -s conftest.err
; then
29139 ac_cpp_err
=$ac_c_preproc_warn_flag
29146 if test -z "$ac_cpp_err"; then
29147 ac_header_preproc
=yes
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.
$ac_ext >&5
29152 ac_header_preproc
=no
29154 rm -f conftest.err conftest.
$ac_ext
29155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29156 echo "${ECHO_T}$ac_header_preproc" >&6
29158 # So? What about this header?
29159 case $ac_header_compiler:$ac_header_preproc in
29161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29167 ## ------------------------------------ ##
29168 ## Report this to bug-autoconf@gnu.org. ##
29169 ## ------------------------------------ ##
29172 sed "s/^/$as_me: WARNING: /" >&2
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29183 ## ------------------------------------ ##
29184 ## Report this to bug-autoconf@gnu.org. ##
29185 ## ------------------------------------ ##
29188 sed "s/^/$as_me: WARNING: /" >&2
29191 echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29196 eval "$as_ac_Header=$ac_header_preproc"
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29203 cat >>confdefs.h
<<_ACEOF
29204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29212 for ac_func
in resolvepath
29214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29215 echo "$as_me:$LINENO: checking for $ac_func" >&5
29216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29217 if eval "test \"\${$as_ac_var+set}\" = set"; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 cat >conftest.
$ac_ext <<_ACEOF
29221 #line $LINENO "configure"
29224 cat confdefs.h
>>conftest.
$ac_ext
29225 cat >>conftest.
$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29227 /* System header to define __stub macros and hopefully few prototypes,
29228 which can conflict with char $ac_func (); below.
29229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29230 <limits.h> exists even on freestanding compilers. */
29232 # include <limits.h>
29234 # include <assert.h>
29236 /* Override any gcc2 internal prototype to avoid an error. */
29241 /* We use char because int might match the return type of a gcc2
29242 builtin and then its argument prototype would still apply. */
29244 /* The GNU C library defines this for functions which it implements
29245 to always fail with ENOSYS. Some functions are actually named
29246 something starting with __ and the normal name is an alias. */
29247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29250 char (*f) () = $ac_func;
29259 return f != $ac_func;
29264 rm -f conftest.
$ac_objext conftest
$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266 (eval $ac_link) 2>&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try
='test -s conftest$ac_exeext'
29271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272 (eval $ac_try) 2>&5
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 eval "$as_ac_var=yes"
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.
$ac_ext >&5
29281 eval "$as_ac_var=no"
29283 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29287 if test `eval echo '${'$as_ac_var'}'` = yes; then
29288 cat >>confdefs.h
<<_ACEOF
29289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29297 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29298 # if the function name weren't so long. Besides, I would rather
29299 # not have underscores in file names.
29300 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29301 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29302 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29305 cat >conftest.
$ac_ext <<_ACEOF
29306 #line $LINENO "configure"
29309 cat confdefs.h
>>conftest.
$ac_ext
29310 cat >>conftest.
$ac_ext <<_ACEOF
29311 /* end confdefs.h. */
29312 /* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char canonicalize_file_name (); below.
29314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315 <limits.h> exists even on freestanding compilers. */
29317 # include <limits.h>
29319 # include <assert.h>
29321 /* Override any gcc2 internal prototype to avoid an error. */
29326 /* We use char because int might match the return type of a gcc2
29327 builtin and then its argument prototype would still apply. */
29328 char canonicalize_file_name ();
29329 /* The GNU C library defines this for functions which it implements
29330 to always fail with ENOSYS. Some functions are actually named
29331 something starting with __ and the normal name is an alias. */
29332 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29335 char (*f) () = canonicalize_file_name;
29344 return f != canonicalize_file_name;
29349 rm -f conftest.
$ac_objext conftest
$ac_exeext
29350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29351 (eval $ac_link) 2>&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
29355 { ac_try
='test -s conftest$ac_exeext'
29356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357 (eval $ac_try) 2>&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
29361 ac_cv_func_canonicalize_file_name
=yes
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.
$ac_ext >&5
29366 ac_cv_func_canonicalize_file_name
=no
29368 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29370 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29371 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29372 if test $ac_cv_func_canonicalize_file_name = yes; then
29375 LIBOBJS
="$LIBOBJS canonicalize.$ac_objext"
29382 GNU_PACKAGE
="GNU $PACKAGE"
29384 cat >>confdefs.h
<<_ACEOF
29385 #define GNU_PACKAGE "$GNU_PACKAGE"
29391 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
29413 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29414 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29415 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29416 echo $ECHO_N "(cached) $ECHO_C" >&6
29418 cat >conftest.
$ac_ext <<_ACEOF
29419 #line $LINENO "configure"
29422 cat confdefs.h
>>conftest.
$ac_ext
29423 cat >>conftest.
$ac_ext <<_ACEOF
29424 /* end confdefs.h. */
29425 $ac_includes_default
29426 #include <sys/stat.h>
29432 static struct stat ac_aggr;
29433 if (ac_aggr.st_author)
29439 rm -f conftest.
$ac_objext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29441 (eval $ac_compile) 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } &&
29445 { ac_try
='test -s conftest.$ac_objext'
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
29451 ac_cv_member_struct_stat_st_author
=yes
29453 echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.
$ac_ext >&5
29456 cat >conftest.
$ac_ext <<_ACEOF
29457 #line $LINENO "configure"
29460 cat confdefs.h
>>conftest.
$ac_ext
29461 cat >>conftest.
$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29463 $ac_includes_default
29464 #include <sys/stat.h>
29470 static struct stat ac_aggr;
29471 if (sizeof ac_aggr.st_author)
29477 rm -f conftest.
$ac_objext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29479 (eval $ac_compile) 2>&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
29483 { ac_try
='test -s conftest.$ac_objext'
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 ac_cv_member_struct_stat_st_author
=yes
29491 echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.
$ac_ext >&5
29494 ac_cv_member_struct_stat_st_author
=no
29496 rm -f conftest.
$ac_objext conftest.
$ac_ext
29498 rm -f conftest.
$ac_objext conftest.
$ac_ext
29500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29501 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29502 if test $ac_cv_member_struct_stat_st_author = yes; then
29504 cat >>confdefs.h
<<_ACEOF
29505 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29510 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29511 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29512 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29513 echo $ECHO_N "(cached) $ECHO_C" >&6
29515 cat >conftest.
$ac_ext <<_ACEOF
29516 #line $LINENO "configure"
29519 cat confdefs.h
>>conftest.
$ac_ext
29520 cat >>conftest.
$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 $ac_includes_default
29523 #include <sys/stat.h>
29529 static struct stat ac_aggr;
29530 if (ac_aggr.st_blksize)
29536 rm -f conftest.
$ac_objext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538 (eval $ac_compile) 2>&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } &&
29542 { ac_try
='test -s conftest.$ac_objext'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 ac_cv_member_struct_stat_st_blksize
=yes
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.
$ac_ext >&5
29553 cat >conftest.
$ac_ext <<_ACEOF
29554 #line $LINENO "configure"
29557 cat confdefs.h
>>conftest.
$ac_ext
29558 cat >>conftest.
$ac_ext <<_ACEOF
29559 /* end confdefs.h. */
29560 $ac_includes_default
29561 #include <sys/stat.h>
29567 static struct stat ac_aggr;
29568 if (sizeof ac_aggr.st_blksize)
29574 rm -f conftest.
$ac_objext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576 (eval $ac_compile) 2>&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
29580 { ac_try
='test -s conftest.$ac_objext'
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; }; then
29586 ac_cv_member_struct_stat_st_blksize
=yes
29588 echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.
$ac_ext >&5
29591 ac_cv_member_struct_stat_st_blksize
=no
29593 rm -f conftest.
$ac_objext conftest.
$ac_ext
29595 rm -f conftest.
$ac_objext conftest.
$ac_ext
29597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29599 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29601 cat >>confdefs.h
<<_ACEOF
29602 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29624 echo "$as_me:$LINENO: checking for ino_t" >&5
29625 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29626 if test "${ac_cv_type_ino_t+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29629 cat >conftest.
$ac_ext <<_ACEOF
29630 #line $LINENO "configure"
29633 cat confdefs.h
>>conftest.
$ac_ext
29634 cat >>conftest.
$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29636 $ac_includes_default
29642 if (sizeof (ino_t))
29648 rm -f conftest.
$ac_objext
29649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29650 (eval $ac_compile) 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
29654 { ac_try
='test -s conftest.$ac_objext'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 ac_cv_type_ino_t
=yes
29662 echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.
$ac_ext >&5
29665 ac_cv_type_ino_t
=no
29667 rm -f conftest.
$ac_objext conftest.
$ac_ext
29669 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29670 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29671 if test $ac_cv_type_ino_t = yes; then
29675 cat >>confdefs.h
<<_ACEOF
29676 #define ino_t unsigned long
29682 echo "$as_me:$LINENO: checking for ssize_t" >&5
29683 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29684 if test "${ac_cv_type_ssize_t+set}" = set; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29687 cat >conftest.
$ac_ext <<_ACEOF
29688 #line $LINENO "configure"
29691 cat confdefs.h
>>conftest.
$ac_ext
29692 cat >>conftest.
$ac_ext <<_ACEOF
29693 /* end confdefs.h. */
29694 $ac_includes_default
29700 if (sizeof (ssize_t))
29706 rm -f conftest.
$ac_objext
29707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29708 (eval $ac_compile) 2>&5
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); } &&
29712 { ac_try
='test -s conftest.$ac_objext'
29713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714 (eval $ac_try) 2>&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; }; then
29718 ac_cv_type_ssize_t
=yes
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.
$ac_ext >&5
29723 ac_cv_type_ssize_t
=no
29725 rm -f conftest.
$ac_objext conftest.
$ac_ext
29727 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29728 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29729 if test $ac_cv_type_ssize_t = yes; then
29733 cat >>confdefs.h
<<_ACEOF
29734 #define ssize_t int
29739 echo "$as_me:$LINENO: checking for major_t" >&5
29740 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29741 if test "${ac_cv_type_major_t+set}" = set; then
29742 echo $ECHO_N "(cached) $ECHO_C" >&6
29744 cat >conftest.
$ac_ext <<_ACEOF
29745 #line $LINENO "configure"
29748 cat confdefs.h
>>conftest.
$ac_ext
29749 cat >>conftest.
$ac_ext <<_ACEOF
29750 /* end confdefs.h. */
29751 $ac_includes_default
29757 if (sizeof (major_t))
29763 rm -f conftest.
$ac_objext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29765 (eval $ac_compile) 2>&5
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try
='test -s conftest.$ac_objext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_type_major_t
=yes
29777 echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.
$ac_ext >&5
29780 ac_cv_type_major_t
=no
29782 rm -f conftest.
$ac_objext conftest.
$ac_ext
29784 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29785 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29786 if test $ac_cv_type_major_t = yes; then
29790 cat >>confdefs.h
<<_ACEOF
29791 #define major_t unsigned int
29796 echo "$as_me:$LINENO: checking for minor_t" >&5
29797 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29798 if test "${ac_cv_type_minor_t+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 cat >conftest.
$ac_ext <<_ACEOF
29802 #line $LINENO "configure"
29805 cat confdefs.h
>>conftest.
$ac_ext
29806 cat >>conftest.
$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 $ac_includes_default
29814 if (sizeof (minor_t))
29820 rm -f conftest.
$ac_objext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29822 (eval $ac_compile) 2>&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
29826 { ac_try
='test -s conftest.$ac_objext'
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; }; then
29832 ac_cv_type_minor_t
=yes
29834 echo "$as_me: failed program was:" >&5
29835 sed 's/^/| /' conftest.
$ac_ext >&5
29837 ac_cv_type_minor_t
=no
29839 rm -f conftest.
$ac_objext conftest.
$ac_ext
29841 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29842 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29843 if test $ac_cv_type_minor_t = yes; then
29847 cat >>confdefs.h
<<_ACEOF
29848 #define minor_t unsigned int
29863 # Assume we'll default to using the included regex.c.
29864 ac_use_included_regex
=yes
29866 # However, if the system regex support is good enough that it passes the
29867 # the following run test, then default to *not* using the included regex.c.
29868 # If cross compiling, assume the test would fail and use the included
29869 # regex.c. The first failing regular expression is from `Spencer ere
29870 # test #75' in grep-2.3.
29871 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29872 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29873 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29876 if test "$cross_compiling" = yes; then
29877 jm_cv_func_working_re_compile_pattern
=no
29879 cat >conftest.
$ac_ext <<_ACEOF
29880 #line $LINENO "configure"
29883 cat confdefs.h
>>conftest.
$ac_ext
29884 cat >>conftest.
$ac_ext <<_ACEOF
29885 /* end confdefs.h. */
29887 #include <string.h>
29892 static struct re_pattern_buffer regex;
29894 struct re_registers regs;
29895 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29896 memset (®ex, 0, sizeof (regex));
29897 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
29898 /* This should fail with _Invalid character class name_ error. */
29902 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
29903 memset (®ex, 0, sizeof (regex));
29904 s = re_compile_pattern ("{1", 2, ®ex);
29909 /* The following example is derived from a problem report
29910 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
29911 memset (®ex, 0, sizeof (regex));
29912 s = re_compile_pattern ("[anù]*n", 7, ®ex);
29916 /* This should match, but doesn't for e.g. glibc-2.2.1. */
29917 if (re_match (®ex, "an", 2, 0, ®s) != 2)
29920 memset (®ex, 0, sizeof (regex));
29921 s = re_compile_pattern ("x", 1, ®ex);
29925 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
29926 work with a negative RANGE argument. */
29927 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
29934 rm -f conftest
$ac_exeext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936 (eval $ac_link) 2>&5
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; }; then
29945 jm_cv_func_working_re_compile_pattern
=yes
29947 echo "$as_me: program exited with status $ac_status" >&5
29948 echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.
$ac_ext >&5
29951 ( exit $ac_status )
29952 jm_cv_func_working_re_compile_pattern
=no
29954 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
29957 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
29958 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
29959 if test $jm_cv_func_working_re_compile_pattern = yes; then
29960 ac_use_included_regex
=no
29963 test -n "lib/regex.c" ||
{ { echo "$as_me:$LINENO: error: missing argument" >&5
29964 echo "$as_me: error: missing argument" >&2;}
29965 { (exit 1); exit 1; }; }
29969 # Check whether --with-included-regex or --without-included-regex was given.
29970 if test "${with_included_regex+set}" = set; then
29971 withval
="$with_included_regex"
29972 jm_with_regex
=$withval
29974 jm_with_regex
=$ac_use_included_regex
29976 if test "$jm_with_regex" = yes; then
29977 LIBOBJS
="$LIBOBJS regex.$ac_objext"
30011 for ac_func
in btowc
30013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30014 echo "$as_me:$LINENO: checking for $ac_func" >&5
30015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30016 if eval "test \"\${$as_ac_var+set}\" = set"; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30019 cat >conftest.
$ac_ext <<_ACEOF
30020 #line $LINENO "configure"
30023 cat confdefs.h
>>conftest.
$ac_ext
30024 cat >>conftest.
$ac_ext <<_ACEOF
30025 /* end confdefs.h. */
30026 /* System header to define __stub macros and hopefully few prototypes,
30027 which can conflict with char $ac_func (); below.
30028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30029 <limits.h> exists even on freestanding compilers. */
30031 # include <limits.h>
30033 # include <assert.h>
30035 /* Override any gcc2 internal prototype to avoid an error. */
30040 /* We use char because int might match the return type of a gcc2
30041 builtin and then its argument prototype would still apply. */
30043 /* The GNU C library defines this for functions which it implements
30044 to always fail with ENOSYS. Some functions are actually named
30045 something starting with __ and the normal name is an alias. */
30046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30049 char (*f) () = $ac_func;
30058 return f != $ac_func;
30063 rm -f conftest.
$ac_objext conftest
$ac_exeext
30064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30065 (eval $ac_link) 2>&5
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); } &&
30069 { ac_try
='test -s conftest$ac_exeext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 eval "$as_ac_var=yes"
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.
$ac_ext >&5
30080 eval "$as_ac_var=no"
30082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30086 if test `eval echo '${'$as_ac_var'}'` = yes; then
30087 cat >>confdefs.h
<<_ACEOF
30088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30139 # This is for od and stat, and any other program that
30140 # uses the PRI.MAX macros from inttypes.h.
30150 ac_have_func
=no
# yes means we've found a way to get the load average.
30152 # Make sure getloadavg.c is where it belongs, at configure-time.
30153 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30154 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30155 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30156 { (exit 1); exit 1; }; }
30160 # Check for getloadavg, but be sure not to touch the cache variable.
30161 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30162 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30163 if test "${ac_cv_func_getloadavg+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 cat >conftest.
$ac_ext <<_ACEOF
30167 #line $LINENO "configure"
30170 cat confdefs.h
>>conftest.
$ac_ext
30171 cat >>conftest.
$ac_ext <<_ACEOF
30172 /* end confdefs.h. */
30173 /* System header to define __stub macros and hopefully few prototypes,
30174 which can conflict with char getloadavg (); below.
30175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30176 <limits.h> exists even on freestanding compilers. */
30178 # include <limits.h>
30180 # include <assert.h>
30182 /* Override any gcc2 internal prototype to avoid an error. */
30187 /* We use char because int might match the return type of a gcc2
30188 builtin and then its argument prototype would still apply. */
30189 char getloadavg ();
30190 /* The GNU C library defines this for functions which it implements
30191 to always fail with ENOSYS. Some functions are actually named
30192 something starting with __ and the normal name is an alias. */
30193 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30196 char (*f) () = getloadavg;
30205 return f != getloadavg;
30210 rm -f conftest.
$ac_objext conftest
$ac_exeext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30212 (eval $ac_link) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try
='test -s conftest$ac_exeext'
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_func_getloadavg
=yes
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.
$ac_ext >&5
30227 ac_cv_func_getloadavg
=no
30229 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30231 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30232 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30233 if test $ac_cv_func_getloadavg = yes; then
30238 ) && ac_have_func
=yes
30240 # On HPUX9, an unprivileged user can get load averages through this function.
30242 for ac_func
in pstat_getdynamic
30244 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247 if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30250 cat >conftest.
$ac_ext <<_ACEOF
30251 #line $LINENO "configure"
30254 cat confdefs.h
>>conftest.
$ac_ext
30255 cat >>conftest.
$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30257 /* System header to define __stub macros and hopefully few prototypes,
30258 which can conflict with char $ac_func (); below.
30259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30260 <limits.h> exists even on freestanding compilers. */
30262 # include <limits.h>
30264 # include <assert.h>
30266 /* Override any gcc2 internal prototype to avoid an error. */
30271 /* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30274 /* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30280 char (*f) () = $ac_func;
30289 return f != $ac_func;
30294 rm -f conftest.
$ac_objext conftest
$ac_exeext
30295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30296 (eval $ac_link) 2>&5
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
30300 { ac_try
='test -s conftest$ac_exeext'
30301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 eval "$as_ac_var=yes"
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.
$ac_ext >&5
30311 eval "$as_ac_var=no"
30313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30317 if test `eval echo '${'$as_ac_var'}'` = yes; then
30318 cat >>confdefs.h
<<_ACEOF
30319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30326 # Solaris has libkstat which does not require root.
30328 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30329 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30330 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30333 ac_check_lib_save_LIBS
=$LIBS
30334 LIBS
="-lkstat $LIBS"
30335 cat >conftest.
$ac_ext <<_ACEOF
30336 #line $LINENO "configure"
30339 cat confdefs.h
>>conftest.
$ac_ext
30340 cat >>conftest.
$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30343 /* Override any gcc2 internal prototype to avoid an error. */
30347 /* We use char because int might match the return type of a gcc2
30348 builtin and then its argument prototype would still apply. */
30349 char kstat_open ();
30358 rm -f conftest.
$ac_objext conftest
$ac_exeext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30360 (eval $ac_link) 2>&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try
='test -s conftest$ac_exeext'
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 ac_cv_lib_kstat_kstat_open
=yes
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.
$ac_ext >&5
30375 ac_cv_lib_kstat_kstat_open
=no
30377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30378 LIBS
=$ac_check_lib_save_LIBS
30380 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30381 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30382 if test $ac_cv_lib_kstat_kstat_open = yes; then
30383 cat >>confdefs.h
<<_ACEOF
30384 #define HAVE_LIBKSTAT 1
30387 LIBS
="-lkstat $LIBS"
30391 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
30393 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30394 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30395 # to get the right answer into the cache.
30396 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30397 if test $ac_have_func = no
; then
30398 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30399 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30400 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 ac_check_lib_save_LIBS
=$LIBS
30405 cat >conftest.
$ac_ext <<_ACEOF
30406 #line $LINENO "configure"
30409 cat confdefs.h
>>conftest.
$ac_ext
30410 cat >>conftest.
$ac_ext <<_ACEOF
30411 /* end confdefs.h. */
30413 /* Override any gcc2 internal prototype to avoid an error. */
30417 /* We use char because int might match the return type of a gcc2
30418 builtin and then its argument prototype would still apply. */
30428 rm -f conftest.
$ac_objext conftest
$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430 (eval $ac_link) 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } &&
30434 { ac_try
='test -s conftest$ac_exeext'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_cv_lib_elf_elf_begin
=yes
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.
$ac_ext >&5
30445 ac_cv_lib_elf_elf_begin
=no
30447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30448 LIBS
=$ac_check_lib_save_LIBS
30450 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30451 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30452 if test $ac_cv_lib_elf_elf_begin = yes; then
30457 if test $ac_have_func = no
; then
30458 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30459 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30460 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 ac_check_lib_save_LIBS
=$LIBS
30465 cat >conftest.
$ac_ext <<_ACEOF
30466 #line $LINENO "configure"
30469 cat confdefs.h
>>conftest.
$ac_ext
30470 cat >>conftest.
$ac_ext <<_ACEOF
30471 /* end confdefs.h. */
30473 /* Override any gcc2 internal prototype to avoid an error. */
30477 /* We use char because int might match the return type of a gcc2
30478 builtin and then its argument prototype would still apply. */
30488 rm -f conftest.
$ac_objext conftest
$ac_exeext
30489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30490 (eval $ac_link) 2>&5
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } &&
30494 { ac_try
='test -s conftest$ac_exeext'
30495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496 (eval $ac_try) 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_cv_lib_kvm_kvm_open
=yes
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.
$ac_ext >&5
30505 ac_cv_lib_kvm_kvm_open
=no
30507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30508 LIBS
=$ac_check_lib_save_LIBS
30510 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30511 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30512 if test $ac_cv_lib_kvm_kvm_open = yes; then
30516 # Check for the 4.4BSD definition of getloadavg.
30517 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30518 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30519 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30522 ac_check_lib_save_LIBS
=$LIBS
30523 LIBS
="-lutil $LIBS"
30524 cat >conftest.
$ac_ext <<_ACEOF
30525 #line $LINENO "configure"
30528 cat confdefs.h
>>conftest.
$ac_ext
30529 cat >>conftest.
$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30532 /* Override any gcc2 internal prototype to avoid an error. */
30536 /* We use char because int might match the return type of a gcc2
30537 builtin and then its argument prototype would still apply. */
30538 char getloadavg ();
30547 rm -f conftest.
$ac_objext conftest
$ac_exeext
30548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30549 (eval $ac_link) 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
30553 { ac_try
='test -s conftest$ac_exeext'
30554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555 (eval $ac_try) 2>&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30559 ac_cv_lib_util_getloadavg
=yes
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.
$ac_ext >&5
30564 ac_cv_lib_util_getloadavg
=no
30566 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30567 LIBS
=$ac_check_lib_save_LIBS
30569 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30570 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30571 if test $ac_cv_lib_util_getloadavg = yes; then
30572 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
30577 if test $ac_have_func = no
; then
30578 # There is a commonly available library for RS/6000 AIX.
30579 # Since it is not a standard part of AIX, it might be installed locally.
30580 ac_getloadavg_LIBS
=$LIBS
30581 LIBS
="-L/usr/local/lib $LIBS"
30582 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30583 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30584 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 ac_check_lib_save_LIBS
=$LIBS
30588 LIBS
="-lgetloadavg $LIBS"
30589 cat >conftest.
$ac_ext <<_ACEOF
30590 #line $LINENO "configure"
30593 cat confdefs.h
>>conftest.
$ac_ext
30594 cat >>conftest.
$ac_ext <<_ACEOF
30595 /* end confdefs.h. */
30597 /* Override any gcc2 internal prototype to avoid an error. */
30601 /* We use char because int might match the return type of a gcc2
30602 builtin and then its argument prototype would still apply. */
30603 char getloadavg ();
30612 rm -f conftest.
$ac_objext conftest
$ac_exeext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30614 (eval $ac_link) 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
30618 { ac_try
='test -s conftest$ac_exeext'
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30624 ac_cv_lib_getloadavg_getloadavg
=yes
30626 echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.
$ac_ext >&5
30629 ac_cv_lib_getloadavg_getloadavg
=no
30631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30632 LIBS
=$ac_check_lib_save_LIBS
30634 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30635 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30636 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30637 LIBS
="-lgetloadavg $LIBS"
30639 LIBS
=$ac_getloadavg_LIBS
30644 # Make sure it is really in the library, if we think we found it,
30645 # otherwise set up the replacement function.
30647 for ac_func
in getloadavg
30649 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30650 echo "$as_me:$LINENO: checking for $ac_func" >&5
30651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30652 if eval "test \"\${$as_ac_var+set}\" = set"; then
30653 echo $ECHO_N "(cached) $ECHO_C" >&6
30655 cat >conftest.
$ac_ext <<_ACEOF
30656 #line $LINENO "configure"
30659 cat confdefs.h
>>conftest.
$ac_ext
30660 cat >>conftest.
$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30662 /* System header to define __stub macros and hopefully few prototypes,
30663 which can conflict with char $ac_func (); below.
30664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30665 <limits.h> exists even on freestanding compilers. */
30667 # include <limits.h>
30669 # include <assert.h>
30671 /* Override any gcc2 internal prototype to avoid an error. */
30676 /* We use char because int might match the return type of a gcc2
30677 builtin and then its argument prototype would still apply. */
30679 /* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30685 char (*f) () = $ac_func;
30694 return f != $ac_func;
30699 rm -f conftest.
$ac_objext conftest
$ac_exeext
30700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701 (eval $ac_link) 2>&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try
='test -s conftest$ac_exeext'
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; }; then
30711 eval "$as_ac_var=yes"
30713 echo "$as_me: failed program was:" >&5
30714 sed 's/^/| /' conftest.
$ac_ext >&5
30716 eval "$as_ac_var=no"
30718 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30722 if test `eval echo '${'$as_ac_var'}'` = yes; then
30723 cat >>confdefs.h
<<_ACEOF
30724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30728 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
30730 cat >>confdefs.h
<<\_ACEOF
30731 #define C_GETLOADAVG 1
30734 # Figure out what our getloadavg.c needs.
30736 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30737 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30738 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30739 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30740 echo $ECHO_N "(cached) $ECHO_C" >&6
30742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30743 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30745 # Is the header compilable?
30746 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30747 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30748 cat >conftest.
$ac_ext <<_ACEOF
30749 #line $LINENO "configure"
30752 cat confdefs.h
>>conftest.
$ac_ext
30753 cat >>conftest.
$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 $ac_includes_default
30756 #include <sys/dg_sys_info.h>
30758 rm -f conftest.
$ac_objext
30759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30760 (eval $ac_compile) 2>&5
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); } &&
30764 { ac_try
='test -s conftest.$ac_objext'
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30770 ac_header_compiler
=yes
30772 echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.
$ac_ext >&5
30775 ac_header_compiler
=no
30777 rm -f conftest.
$ac_objext conftest.
$ac_ext
30778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30779 echo "${ECHO_T}$ac_header_compiler" >&6
30781 # Is the header present?
30782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30784 cat >conftest.
$ac_ext <<_ACEOF
30785 #line $LINENO "configure"
30788 cat confdefs.h
>>conftest.
$ac_ext
30789 cat >>conftest.
$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791 #include <sys/dg_sys_info.h>
30793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
30796 grep -v '^ *+' conftest.er1
>conftest.err
30798 cat conftest.err
>&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } >/dev
/null
; then
30801 if test -s conftest.err
; then
30802 ac_cpp_err
=$ac_c_preproc_warn_flag
30809 if test -z "$ac_cpp_err"; then
30810 ac_header_preproc
=yes
30812 echo "$as_me: failed program was:" >&5
30813 sed 's/^/| /' conftest.
$ac_ext >&5
30815 ac_header_preproc
=no
30817 rm -f conftest.err conftest.
$ac_ext
30818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30819 echo "${ECHO_T}$ac_header_preproc" >&6
30821 # So? What about this header?
30822 case $ac_header_compiler:$ac_header_preproc in
30824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30825 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30827 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30830 ## ------------------------------------ ##
30831 ## Report this to bug-autoconf@gnu.org. ##
30832 ## ------------------------------------ ##
30835 sed "s/^/$as_me: WARNING: /" >&2
30838 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30839 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30840 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30841 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30842 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30843 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30846 ## ------------------------------------ ##
30847 ## Report this to bug-autoconf@gnu.org. ##
30848 ## ------------------------------------ ##
30851 sed "s/^/$as_me: WARNING: /" >&2
30854 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30855 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30856 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30859 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
30861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30862 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30865 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30868 cat >>confdefs.h
<<\_ACEOF
30873 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30874 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30875 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30876 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 ac_check_lib_save_LIBS
=$LIBS
30880 cat >conftest.
$ac_ext <<_ACEOF
30881 #line $LINENO "configure"
30884 cat confdefs.h
>>conftest.
$ac_ext
30885 cat >>conftest.
$ac_ext <<_ACEOF
30886 /* end confdefs.h. */
30888 /* Override any gcc2 internal prototype to avoid an error. */
30892 /* We use char because int might match the return type of a gcc2
30893 builtin and then its argument prototype would still apply. */
30894 char dg_sys_info ();
30903 rm -f conftest.
$ac_objext conftest
$ac_exeext
30904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30905 (eval $ac_link) 2>&5
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } &&
30909 { ac_try
='test -s conftest$ac_exeext'
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; }; then
30915 ac_cv_lib_dgc_dg_sys_info
=yes
30917 echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.
$ac_ext >&5
30920 ac_cv_lib_dgc_dg_sys_info
=no
30922 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30923 LIBS
=$ac_check_lib_save_LIBS
30925 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
30926 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
30927 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
30928 cat >>confdefs.h
<<_ACEOF
30929 #define HAVE_LIBDGC 1
30940 if test "${ac_cv_header_locale_h+set}" = set; then
30941 echo "$as_me:$LINENO: checking for locale.h" >&5
30942 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30943 if test "${ac_cv_header_locale_h+set}" = set; then
30944 echo $ECHO_N "(cached) $ECHO_C" >&6
30946 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30947 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30949 # Is the header compilable?
30950 echo "$as_me:$LINENO: checking locale.h usability" >&5
30951 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30952 cat >conftest.
$ac_ext <<_ACEOF
30953 #line $LINENO "configure"
30956 cat confdefs.h
>>conftest.
$ac_ext
30957 cat >>conftest.
$ac_ext <<_ACEOF
30958 /* end confdefs.h. */
30959 $ac_includes_default
30960 #include <locale.h>
30962 rm -f conftest.
$ac_objext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30964 (eval $ac_compile) 2>&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
30968 { ac_try
='test -s conftest.$ac_objext'
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 ac_header_compiler
=yes
30976 echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.
$ac_ext >&5
30979 ac_header_compiler
=no
30981 rm -f conftest.
$ac_objext conftest.
$ac_ext
30982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30983 echo "${ECHO_T}$ac_header_compiler" >&6
30985 # Is the header present?
30986 echo "$as_me:$LINENO: checking locale.h presence" >&5
30987 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30988 cat >conftest.
$ac_ext <<_ACEOF
30989 #line $LINENO "configure"
30992 cat confdefs.h
>>conftest.
$ac_ext
30993 cat >>conftest.
$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 #include <locale.h>
30997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30998 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31000 grep -v '^ *+' conftest.er1
>conftest.err
31002 cat conftest.err
>&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } >/dev
/null
; then
31005 if test -s conftest.err
; then
31006 ac_cpp_err
=$ac_c_preproc_warn_flag
31013 if test -z "$ac_cpp_err"; then
31014 ac_header_preproc
=yes
31016 echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.
$ac_ext >&5
31019 ac_header_preproc
=no
31021 rm -f conftest.err conftest.
$ac_ext
31022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31023 echo "${ECHO_T}$ac_header_preproc" >&6
31025 # So? What about this header?
31026 case $ac_header_compiler:$ac_header_preproc in
31028 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31029 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31031 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31034 ## ------------------------------------ ##
31035 ## Report this to bug-autoconf@gnu.org. ##
31036 ## ------------------------------------ ##
31039 sed "s/^/$as_me: WARNING: /" >&2
31042 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31043 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31045 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31047 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31050 ## ------------------------------------ ##
31051 ## Report this to bug-autoconf@gnu.org. ##
31052 ## ------------------------------------ ##
31055 sed "s/^/$as_me: WARNING: /" >&2
31058 echo "$as_me:$LINENO: checking for locale.h" >&5
31059 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31060 if test "${ac_cv_header_locale_h+set}" = set; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31063 ac_cv_header_locale_h
=$ac_header_preproc
31065 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31066 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31072 for ac_func
in setlocale
31074 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31075 echo "$as_me:$LINENO: checking for $ac_func" >&5
31076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31077 if eval "test \"\${$as_ac_var+set}\" = set"; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31080 cat >conftest.
$ac_ext <<_ACEOF
31081 #line $LINENO "configure"
31084 cat confdefs.h
>>conftest.
$ac_ext
31085 cat >>conftest.
$ac_ext <<_ACEOF
31086 /* end confdefs.h. */
31087 /* System header to define __stub macros and hopefully few prototypes,
31088 which can conflict with char $ac_func (); below.
31089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31090 <limits.h> exists even on freestanding compilers. */
31092 # include <limits.h>
31094 # include <assert.h>
31096 /* Override any gcc2 internal prototype to avoid an error. */
31101 /* We use char because int might match the return type of a gcc2
31102 builtin and then its argument prototype would still apply. */
31104 /* The GNU C library defines this for functions which it implements
31105 to always fail with ENOSYS. Some functions are actually named
31106 something starting with __ and the normal name is an alias. */
31107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31110 char (*f) () = $ac_func;
31119 return f != $ac_func;
31124 rm -f conftest.
$ac_objext conftest
$ac_exeext
31125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31126 (eval $ac_link) 2>&5
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); } &&
31130 { ac_try
='test -s conftest$ac_exeext'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 eval "$as_ac_var=yes"
31138 echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.
$ac_ext >&5
31141 eval "$as_ac_var=no"
31143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31147 if test `eval echo '${'$as_ac_var'}'` = yes; then
31148 cat >>confdefs.h
<<_ACEOF
31149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31156 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31157 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
31158 # Irix 4.0.5F has the header but not the library.
31159 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
31162 cat >>confdefs.h
<<\_ACEOF
31168 if test $ac_have_func = no
; then
31169 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31170 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31171 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31175 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31176 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31178 # Is the header compilable?
31179 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31180 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31181 cat >conftest.
$ac_ext <<_ACEOF
31182 #line $LINENO "configure"
31185 cat confdefs.h
>>conftest.
$ac_ext
31186 cat >>conftest.
$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31188 $ac_includes_default
31189 #include <inq_stats/cpustats.h>
31191 rm -f conftest.
$ac_objext
31192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31193 (eval $ac_compile) 2>&5
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } &&
31197 { ac_try
='test -s conftest.$ac_objext'
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31203 ac_header_compiler
=yes
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.
$ac_ext >&5
31208 ac_header_compiler
=no
31210 rm -f conftest.
$ac_objext conftest.
$ac_ext
31211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31212 echo "${ECHO_T}$ac_header_compiler" >&6
31214 # Is the header present?
31215 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31216 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31217 cat >conftest.
$ac_ext <<_ACEOF
31218 #line $LINENO "configure"
31221 cat confdefs.h
>>conftest.
$ac_ext
31222 cat >>conftest.
$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31224 #include <inq_stats/cpustats.h>
31226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31227 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31229 grep -v '^ *+' conftest.er1
>conftest.err
31231 cat conftest.err
>&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } >/dev
/null
; then
31234 if test -s conftest.err
; then
31235 ac_cpp_err
=$ac_c_preproc_warn_flag
31242 if test -z "$ac_cpp_err"; then
31243 ac_header_preproc
=yes
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.
$ac_ext >&5
31248 ac_header_preproc
=no
31250 rm -f conftest.err conftest.
$ac_ext
31251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6
31254 # So? What about this header?
31255 case $ac_header_compiler:$ac_header_preproc in
31257 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31260 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31263 ## ------------------------------------ ##
31264 ## Report this to bug-autoconf@gnu.org. ##
31265 ## ------------------------------------ ##
31268 sed "s/^/$as_me: WARNING: /" >&2
31271 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31272 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31274 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31276 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31279 ## ------------------------------------ ##
31280 ## Report this to bug-autoconf@gnu.org. ##
31281 ## ------------------------------------ ##
31284 sed "s/^/$as_me: WARNING: /" >&2
31287 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31288 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31289 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31290 echo $ECHO_N "(cached) $ECHO_C" >&6
31292 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
31294 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31295 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31298 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31301 cat >>confdefs.h
<<\_ACEOF
31306 cat >>confdefs.h
<<\_ACEOF
31315 if test $ac_have_func = no
; then
31316 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31317 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31318 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31319 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31320 echo $ECHO_N "(cached) $ECHO_C" >&6
31322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31323 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31325 # Is the header compilable?
31326 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31327 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31328 cat >conftest.
$ac_ext <<_ACEOF
31329 #line $LINENO "configure"
31332 cat confdefs.h
>>conftest.
$ac_ext
31333 cat >>conftest.
$ac_ext <<_ACEOF
31334 /* end confdefs.h. */
31335 $ac_includes_default
31336 #include <sys/cpustats.h>
31338 rm -f conftest.
$ac_objext
31339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31340 (eval $ac_compile) 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } &&
31344 { ac_try
='test -s conftest.$ac_objext'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350 ac_header_compiler
=yes
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.
$ac_ext >&5
31355 ac_header_compiler
=no
31357 rm -f conftest.
$ac_objext conftest.
$ac_ext
31358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31359 echo "${ECHO_T}$ac_header_compiler" >&6
31361 # Is the header present?
31362 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31363 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31364 cat >conftest.
$ac_ext <<_ACEOF
31365 #line $LINENO "configure"
31368 cat confdefs.h
>>conftest.
$ac_ext
31369 cat >>conftest.
$ac_ext <<_ACEOF
31370 /* end confdefs.h. */
31371 #include <sys/cpustats.h>
31373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31376 grep -v '^ *+' conftest.er1
>conftest.err
31378 cat conftest.err
>&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); } >/dev
/null
; then
31381 if test -s conftest.err
; then
31382 ac_cpp_err
=$ac_c_preproc_warn_flag
31389 if test -z "$ac_cpp_err"; then
31390 ac_header_preproc
=yes
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.
$ac_ext >&5
31395 ac_header_preproc
=no
31397 rm -f conftest.err conftest.
$ac_ext
31398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31399 echo "${ECHO_T}$ac_header_preproc" >&6
31401 # So? What about this header?
31402 case $ac_header_compiler:$ac_header_preproc in
31404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31405 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31406 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31407 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31410 ## ------------------------------------ ##
31411 ## Report this to bug-autoconf@gnu.org. ##
31412 ## ------------------------------------ ##
31415 sed "s/^/$as_me: WARNING: /" >&2
31418 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31419 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31421 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31426 ## ------------------------------------ ##
31427 ## Report this to bug-autoconf@gnu.org. ##
31428 ## ------------------------------------ ##
31431 sed "s/^/$as_me: WARNING: /" >&2
31434 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31435 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31436 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
31441 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31442 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31445 if test $ac_cv_header_sys_cpustats_h = yes; then
31446 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
31455 if test $ac_have_func = no
; then
31457 for ac_header
in mach
/mach.h
31459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31461 echo "$as_me:$LINENO: checking for $ac_header" >&5
31462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31469 # Is the header compilable?
31470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31472 cat >conftest.
$ac_ext <<_ACEOF
31473 #line $LINENO "configure"
31476 cat confdefs.h
>>conftest.
$ac_ext
31477 cat >>conftest.
$ac_ext <<_ACEOF
31478 /* end confdefs.h. */
31479 $ac_includes_default
31480 #include <$ac_header>
31482 rm -f conftest.
$ac_objext
31483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484 (eval $ac_compile) 2>&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
31488 { ac_try
='test -s conftest.$ac_objext'
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
31494 ac_header_compiler
=yes
31496 echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.
$ac_ext >&5
31499 ac_header_compiler
=no
31501 rm -f conftest.
$ac_objext conftest.
$ac_ext
31502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31503 echo "${ECHO_T}$ac_header_compiler" >&6
31505 # Is the header present?
31506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31508 cat >conftest.
$ac_ext <<_ACEOF
31509 #line $LINENO "configure"
31512 cat confdefs.h
>>conftest.
$ac_ext
31513 cat >>conftest.
$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 #include <$ac_header>
31517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31518 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31520 grep -v '^ *+' conftest.er1
>conftest.err
31522 cat conftest.err
>&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } >/dev
/null
; then
31525 if test -s conftest.err
; then
31526 ac_cpp_err
=$ac_c_preproc_warn_flag
31533 if test -z "$ac_cpp_err"; then
31534 ac_header_preproc
=yes
31536 echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.
$ac_ext >&5
31539 ac_header_preproc
=no
31541 rm -f conftest.err conftest.
$ac_ext
31542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31543 echo "${ECHO_T}$ac_header_preproc" >&6
31545 # So? What about this header?
31546 case $ac_header_compiler:$ac_header_preproc in
31548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31554 ## ------------------------------------ ##
31555 ## Report this to bug-autoconf@gnu.org. ##
31556 ## ------------------------------------ ##
31559 sed "s/^/$as_me: WARNING: /" >&2
31562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31570 ## ------------------------------------ ##
31571 ## Report this to bug-autoconf@gnu.org. ##
31572 ## ------------------------------------ ##
31575 sed "s/^/$as_me: WARNING: /" >&2
31578 echo "$as_me:$LINENO: checking for $ac_header" >&5
31579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31583 eval "$as_ac_Header=$ac_header_preproc"
31585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31590 cat >>confdefs.h
<<_ACEOF
31591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31601 for ac_header
in nlist.h
31603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31605 echo "$as_me:$LINENO: checking for $ac_header" >&5
31606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31608 echo $ECHO_N "(cached) $ECHO_C" >&6
31610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31613 # Is the header compilable?
31614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31616 cat >conftest.
$ac_ext <<_ACEOF
31617 #line $LINENO "configure"
31620 cat confdefs.h
>>conftest.
$ac_ext
31621 cat >>conftest.
$ac_ext <<_ACEOF
31622 /* end confdefs.h. */
31623 $ac_includes_default
31624 #include <$ac_header>
31626 rm -f conftest.
$ac_objext
31627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31628 (eval $ac_compile) 2>&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
31632 { ac_try
='test -s conftest.$ac_objext'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
31638 ac_header_compiler
=yes
31640 echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.
$ac_ext >&5
31643 ac_header_compiler
=no
31645 rm -f conftest.
$ac_objext conftest.
$ac_ext
31646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31647 echo "${ECHO_T}$ac_header_compiler" >&6
31649 # Is the header present?
31650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31652 cat >conftest.
$ac_ext <<_ACEOF
31653 #line $LINENO "configure"
31656 cat confdefs.h
>>conftest.
$ac_ext
31657 cat >>conftest.
$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31659 #include <$ac_header>
31661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31662 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
31664 grep -v '^ *+' conftest.er1
>conftest.err
31666 cat conftest.err
>&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } >/dev
/null
; then
31669 if test -s conftest.err
; then
31670 ac_cpp_err
=$ac_c_preproc_warn_flag
31677 if test -z "$ac_cpp_err"; then
31678 ac_header_preproc
=yes
31680 echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.
$ac_ext >&5
31683 ac_header_preproc
=no
31685 rm -f conftest.err conftest.
$ac_ext
31686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31687 echo "${ECHO_T}$ac_header_preproc" >&6
31689 # So? What about this header?
31690 case $ac_header_compiler:$ac_header_preproc in
31692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31698 ## ------------------------------------ ##
31699 ## Report this to bug-autoconf@gnu.org. ##
31700 ## ------------------------------------ ##
31703 sed "s/^/$as_me: WARNING: /" >&2
31706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31714 ## ------------------------------------ ##
31715 ## Report this to bug-autoconf@gnu.org. ##
31716 ## ------------------------------------ ##
31719 sed "s/^/$as_me: WARNING: /" >&2
31722 echo "$as_me:$LINENO: checking for $ac_header" >&5
31723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31727 eval "$as_ac_Header=$ac_header_preproc"
31729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31734 cat >>confdefs.h
<<_ACEOF
31735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31737 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31738 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31739 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31742 cat >conftest.
$ac_ext <<_ACEOF
31743 #line $LINENO "configure"
31746 cat confdefs.h
>>conftest.
$ac_ext
31747 cat >>conftest.
$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31754 static struct nlist ac_aggr;
31755 if (ac_aggr.n_un.n_name)
31761 rm -f conftest.
$ac_objext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31763 (eval $ac_compile) 2>&5
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } &&
31767 { ac_try
='test -s conftest.$ac_objext'
31768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31769 (eval $ac_try) 2>&5
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); }; }; then
31773 ac_cv_member_struct_nlist_n_un_n_name
=yes
31775 echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.
$ac_ext >&5
31778 cat >conftest.
$ac_ext <<_ACEOF
31779 #line $LINENO "configure"
31782 cat confdefs.h
>>conftest.
$ac_ext
31783 cat >>conftest.
$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31790 static struct nlist ac_aggr;
31791 if (sizeof ac_aggr.n_un.n_name)
31797 rm -f conftest.
$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799 (eval $ac_compile) 2>&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } &&
31803 { ac_try
='test -s conftest.$ac_objext'
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; }; then
31809 ac_cv_member_struct_nlist_n_un_n_name
=yes
31811 echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.
$ac_ext >&5
31814 ac_cv_member_struct_nlist_n_un_n_name
=no
31816 rm -f conftest.
$ac_objext conftest.
$ac_ext
31818 rm -f conftest.
$ac_objext conftest.
$ac_ext
31820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31821 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31822 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31824 cat >>confdefs.h
<<_ACEOF
31825 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31829 cat >>confdefs.h
<<\_ACEOF
31830 #define NLIST_NAME_UNION 1
31844 # Some definitions of getloadavg require that the program be installed setgid.
31845 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31846 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31847 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31850 cat >conftest.
$ac_ext <<_ACEOF
31851 #line $LINENO "configure"
31854 cat confdefs.h
>>conftest.
$ac_ext
31855 cat >>conftest.
$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31858 #ifdef LDAV_PRIVILEGED
31859 Yowza Am I SETGID yet
31862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31863 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
31864 ac_cv_func_getloadavg_setgid
=yes
31866 ac_cv_func_getloadavg_setgid
=no
31871 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31873 if test $ac_cv_func_getloadavg_setgid = yes; then
31876 cat >>confdefs.h
<<\_ACEOF
31877 #define GETLOADAVG_PRIVILEGED 1
31884 if test $ac_cv_func_getloadavg_setgid = yes; then
31885 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31886 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31887 if test "${ac_cv_group_kmem+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31890 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
31891 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
31892 # If we got an error (system does not support symlinks), try without -L.
31893 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
31894 ac_cv_group_kmem
=`echo $ac_ls_output \
31895 | sed -ne 's/[ ][ ]*/ /g;
31896 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
31900 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31901 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31902 KMEM_GROUP
=$ac_cv_group_kmem
31904 if test "x$ac_save_LIBS" = x
; then
31905 GETLOADAVG_LIBS
=$LIBS
31907 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31919 for ac_func
in strcasecmp strncasecmp
31921 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31922 echo "$as_me:$LINENO: checking for $ac_func" >&5
31923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31924 if eval "test \"\${$as_ac_var+set}\" = set"; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 cat >conftest.
$ac_ext <<_ACEOF
31928 #line $LINENO "configure"
31931 cat confdefs.h
>>conftest.
$ac_ext
31932 cat >>conftest.
$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 /* System header to define __stub macros and hopefully few prototypes,
31935 which can conflict with char $ac_func (); below.
31936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31937 <limits.h> exists even on freestanding compilers. */
31939 # include <limits.h>
31941 # include <assert.h>
31943 /* Override any gcc2 internal prototype to avoid an error. */
31948 /* We use char because int might match the return type of a gcc2
31949 builtin and then its argument prototype would still apply. */
31951 /* The GNU C library defines this for functions which it implements
31952 to always fail with ENOSYS. Some functions are actually named
31953 something starting with __ and the normal name is an alias. */
31954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31957 char (*f) () = $ac_func;
31966 return f != $ac_func;
31971 rm -f conftest.
$ac_objext conftest
$ac_exeext
31972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31973 (eval $ac_link) 2>&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } &&
31977 { ac_try
='test -s conftest$ac_exeext'
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; }; then
31983 eval "$as_ac_var=yes"
31985 echo "$as_me: failed program was:" >&5
31986 sed 's/^/| /' conftest.
$ac_ext >&5
31988 eval "$as_ac_var=no"
31990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31994 if test `eval echo '${'$as_ac_var'}'` = yes; then
31995 cat >>confdefs.h
<<_ACEOF
31996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32000 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32006 for ac_func
in dup2
32008 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32009 echo "$as_me:$LINENO: checking for $ac_func" >&5
32010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32011 if eval "test \"\${$as_ac_var+set}\" = set"; then
32012 echo $ECHO_N "(cached) $ECHO_C" >&6
32014 cat >conftest.
$ac_ext <<_ACEOF
32015 #line $LINENO "configure"
32018 cat confdefs.h
>>conftest.
$ac_ext
32019 cat >>conftest.
$ac_ext <<_ACEOF
32020 /* end confdefs.h. */
32021 /* System header to define __stub macros and hopefully few prototypes,
32022 which can conflict with char $ac_func (); below.
32023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32024 <limits.h> exists even on freestanding compilers. */
32026 # include <limits.h>
32028 # include <assert.h>
32030 /* Override any gcc2 internal prototype to avoid an error. */
32035 /* We use char because int might match the return type of a gcc2
32036 builtin and then its argument prototype would still apply. */
32038 /* The GNU C library defines this for functions which it implements
32039 to always fail with ENOSYS. Some functions are actually named
32040 something starting with __ and the normal name is an alias. */
32041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32044 char (*f) () = $ac_func;
32053 return f != $ac_func;
32058 rm -f conftest.
$ac_objext conftest
$ac_exeext
32059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32060 (eval $ac_link) 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } &&
32064 { ac_try
='test -s conftest$ac_exeext'
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 eval "$as_ac_var=yes"
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.
$ac_ext >&5
32075 eval "$as_ac_var=no"
32077 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32081 if test `eval echo '${'$as_ac_var'}'` = yes; then
32082 cat >>confdefs.h
<<_ACEOF
32083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32087 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32094 for ac_func
in gethostname getusershell
32096 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32097 echo "$as_me:$LINENO: checking for $ac_func" >&5
32098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32099 if eval "test \"\${$as_ac_var+set}\" = set"; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32102 cat >conftest.
$ac_ext <<_ACEOF
32103 #line $LINENO "configure"
32106 cat confdefs.h
>>conftest.
$ac_ext
32107 cat >>conftest.
$ac_ext <<_ACEOF
32108 /* end confdefs.h. */
32109 /* System header to define __stub macros and hopefully few prototypes,
32110 which can conflict with char $ac_func (); below.
32111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32112 <limits.h> exists even on freestanding compilers. */
32114 # include <limits.h>
32116 # include <assert.h>
32118 /* Override any gcc2 internal prototype to avoid an error. */
32123 /* We use char because int might match the return type of a gcc2
32124 builtin and then its argument prototype would still apply. */
32126 /* The GNU C library defines this for functions which it implements
32127 to always fail with ENOSYS. Some functions are actually named
32128 something starting with __ and the normal name is an alias. */
32129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32132 char (*f) () = $ac_func;
32141 return f != $ac_func;
32146 rm -f conftest.
$ac_objext conftest
$ac_exeext
32147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32148 (eval $ac_link) 2>&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
32152 { ac_try
='test -s conftest$ac_exeext'
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; }; then
32158 eval "$as_ac_var=yes"
32160 echo "$as_me: failed program was:" >&5
32161 sed 's/^/| /' conftest.
$ac_ext >&5
32163 eval "$as_ac_var=no"
32165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32169 if test `eval echo '${'$as_ac_var'}'` = yes; then
32170 cat >>confdefs.h
<<_ACEOF
32171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32175 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32181 for ac_func
in sig2str
32183 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32184 echo "$as_me:$LINENO: checking for $ac_func" >&5
32185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32186 if eval "test \"\${$as_ac_var+set}\" = set"; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32189 cat >conftest.
$ac_ext <<_ACEOF
32190 #line $LINENO "configure"
32193 cat confdefs.h
>>conftest.
$ac_ext
32194 cat >>conftest.
$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32201 # include <limits.h>
32203 # include <assert.h>
32205 /* Override any gcc2 internal prototype to avoid an error. */
32210 /* We use char because int might match the return type of a gcc2
32211 builtin and then its argument prototype would still apply. */
32213 /* The GNU C library defines this for functions which it implements
32214 to always fail with ENOSYS. Some functions are actually named
32215 something starting with __ and the normal name is an alias. */
32216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32219 char (*f) () = $ac_func;
32228 return f != $ac_func;
32233 rm -f conftest.
$ac_objext conftest
$ac_exeext
32234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32235 (eval $ac_link) 2>&5
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); } &&
32239 { ac_try
='test -s conftest$ac_exeext'
32240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241 (eval $ac_try) 2>&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32245 eval "$as_ac_var=yes"
32247 echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.
$ac_ext >&5
32250 eval "$as_ac_var=no"
32252 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32256 if test `eval echo '${'$as_ac_var'}'` = yes; then
32257 cat >>confdefs.h
<<_ACEOF
32258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32262 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32272 for ac_func
in strcspn stpcpy strstr strtol strtoul
32274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32275 echo "$as_me:$LINENO: checking for $ac_func" >&5
32276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32277 if eval "test \"\${$as_ac_var+set}\" = set"; then
32278 echo $ECHO_N "(cached) $ECHO_C" >&6
32280 cat >conftest.
$ac_ext <<_ACEOF
32281 #line $LINENO "configure"
32284 cat confdefs.h
>>conftest.
$ac_ext
32285 cat >>conftest.
$ac_ext <<_ACEOF
32286 /* end confdefs.h. */
32287 /* System header to define __stub macros and hopefully few prototypes,
32288 which can conflict with char $ac_func (); below.
32289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32290 <limits.h> exists even on freestanding compilers. */
32292 # include <limits.h>
32294 # include <assert.h>
32296 /* Override any gcc2 internal prototype to avoid an error. */
32301 /* We use char because int might match the return type of a gcc2
32302 builtin and then its argument prototype would still apply. */
32304 /* The GNU C library defines this for functions which it implements
32305 to always fail with ENOSYS. Some functions are actually named
32306 something starting with __ and the normal name is an alias. */
32307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32310 char (*f) () = $ac_func;
32319 return f != $ac_func;
32324 rm -f conftest.
$ac_objext conftest
$ac_exeext
32325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32326 (eval $ac_link) 2>&5
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } &&
32330 { ac_try
='test -s conftest$ac_exeext'
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; }; then
32336 eval "$as_ac_var=yes"
32338 echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.
$ac_ext >&5
32341 eval "$as_ac_var=no"
32343 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32347 if test `eval echo '${'$as_ac_var'}'` = yes; then
32348 cat >>confdefs.h
<<_ACEOF
32349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32353 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32359 for ac_func
in strpbrk
32361 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32362 echo "$as_me:$LINENO: checking for $ac_func" >&5
32363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32364 if eval "test \"\${$as_ac_var+set}\" = set"; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32367 cat >conftest.
$ac_ext <<_ACEOF
32368 #line $LINENO "configure"
32371 cat confdefs.h
>>conftest.
$ac_ext
32372 cat >>conftest.
$ac_ext <<_ACEOF
32373 /* end confdefs.h. */
32374 /* System header to define __stub macros and hopefully few prototypes,
32375 which can conflict with char $ac_func (); below.
32376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32377 <limits.h> exists even on freestanding compilers. */
32379 # include <limits.h>
32381 # include <assert.h>
32383 /* Override any gcc2 internal prototype to avoid an error. */
32388 /* We use char because int might match the return type of a gcc2
32389 builtin and then its argument prototype would still apply. */
32391 /* The GNU C library defines this for functions which it implements
32392 to always fail with ENOSYS. Some functions are actually named
32393 something starting with __ and the normal name is an alias. */
32394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32397 char (*f) () = $ac_func;
32406 return f != $ac_func;
32411 rm -f conftest.
$ac_objext conftest
$ac_exeext
32412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32413 (eval $ac_link) 2>&5
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } &&
32417 { ac_try
='test -s conftest$ac_exeext'
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 eval "$as_ac_var=yes"
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.
$ac_ext >&5
32428 eval "$as_ac_var=no"
32430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32434 if test `eval echo '${'$as_ac_var'}'` = yes; then
32435 cat >>confdefs.h
<<_ACEOF
32436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32440 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32451 for ac_func
in euidaccess memcmp
rmdir rpmatch strndup strverscmp
32453 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32454 echo "$as_me:$LINENO: checking for $ac_func" >&5
32455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32456 if eval "test \"\${$as_ac_var+set}\" = set"; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32459 cat >conftest.
$ac_ext <<_ACEOF
32460 #line $LINENO "configure"
32463 cat confdefs.h
>>conftest.
$ac_ext
32464 cat >>conftest.
$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 /* System header to define __stub macros and hopefully few prototypes,
32467 which can conflict with char $ac_func (); below.
32468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32469 <limits.h> exists even on freestanding compilers. */
32471 # include <limits.h>
32473 # include <assert.h>
32475 /* Override any gcc2 internal prototype to avoid an error. */
32480 /* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32483 /* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32489 char (*f) () = $ac_func;
32498 return f != $ac_func;
32503 rm -f conftest.
$ac_objext conftest
$ac_exeext
32504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505 (eval $ac_link) 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try
='test -s conftest$ac_exeext'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 eval "$as_ac_var=yes"
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.
$ac_ext >&5
32520 eval "$as_ac_var=no"
32522 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h
<<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32532 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32538 for ac_func
in atexit
32540 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32541 echo "$as_me:$LINENO: checking for $ac_func" >&5
32542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32543 if eval "test \"\${$as_ac_var+set}\" = set"; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 cat >conftest.
$ac_ext <<_ACEOF
32547 #line $LINENO "configure"
32550 cat confdefs.h
>>conftest.
$ac_ext
32551 cat >>conftest.
$ac_ext <<_ACEOF
32552 /* end confdefs.h. */
32553 /* System header to define __stub macros and hopefully few prototypes,
32554 which can conflict with char $ac_func (); below.
32555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32556 <limits.h> exists even on freestanding compilers. */
32558 # include <limits.h>
32560 # include <assert.h>
32562 /* Override any gcc2 internal prototype to avoid an error. */
32567 /* We use char because int might match the return type of a gcc2
32568 builtin and then its argument prototype would still apply. */
32570 /* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32576 char (*f) () = $ac_func;
32585 return f != $ac_func;
32590 rm -f conftest.
$ac_objext conftest
$ac_exeext
32591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32592 (eval $ac_link) 2>&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); } &&
32596 { ac_try
='test -s conftest$ac_exeext'
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
32602 eval "$as_ac_var=yes"
32604 echo "$as_me: failed program was:" >&5
32605 sed 's/^/| /' conftest.
$ac_ext >&5
32607 eval "$as_ac_var=no"
32609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32613 if test `eval echo '${'$as_ac_var'}'` = yes; then
32614 cat >>confdefs.h
<<_ACEOF
32615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32619 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32625 for ac_func
in getpass
32627 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32628 echo "$as_me:$LINENO: checking for $ac_func" >&5
32629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32630 if eval "test \"\${$as_ac_var+set}\" = set"; then
32631 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 cat >conftest.
$ac_ext <<_ACEOF
32634 #line $LINENO "configure"
32637 cat confdefs.h
>>conftest.
$ac_ext
32638 cat >>conftest.
$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 /* System header to define __stub macros and hopefully few prototypes,
32641 which can conflict with char $ac_func (); below.
32642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32643 <limits.h> exists even on freestanding compilers. */
32645 # include <limits.h>
32647 # include <assert.h>
32649 /* Override any gcc2 internal prototype to avoid an error. */
32654 /* We use char because int might match the return type of a gcc2
32655 builtin and then its argument prototype would still apply. */
32657 /* The GNU C library defines this for functions which it implements
32658 to always fail with ENOSYS. Some functions are actually named
32659 something starting with __ and the normal name is an alias. */
32660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32663 char (*f) () = $ac_func;
32672 return f != $ac_func;
32677 rm -f conftest.
$ac_objext conftest
$ac_exeext
32678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32679 (eval $ac_link) 2>&5
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); } &&
32683 { ac_try
='test -s conftest$ac_exeext'
32684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685 (eval $ac_try) 2>&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 eval "$as_ac_var=yes"
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.
$ac_ext >&5
32694 eval "$as_ac_var=no"
32696 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32700 if test `eval echo '${'$as_ac_var'}'` = yes; then
32701 cat >>confdefs.h
<<_ACEOF
32702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32706 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32712 # raise is used by at least sort and ls.
32714 for ac_func
in raise
32716 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32717 echo "$as_me:$LINENO: checking for $ac_func" >&5
32718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32719 if eval "test \"\${$as_ac_var+set}\" = set"; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
32722 cat >conftest.
$ac_ext <<_ACEOF
32723 #line $LINENO "configure"
32726 cat confdefs.h
>>conftest.
$ac_ext
32727 cat >>conftest.
$ac_ext <<_ACEOF
32728 /* end confdefs.h. */
32729 /* System header to define __stub macros and hopefully few prototypes,
32730 which can conflict with char $ac_func (); below.
32731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32732 <limits.h> exists even on freestanding compilers. */
32734 # include <limits.h>
32736 # include <assert.h>
32738 /* Override any gcc2 internal prototype to avoid an error. */
32743 /* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32746 /* The GNU C library defines this for functions which it implements
32747 to always fail with ENOSYS. Some functions are actually named
32748 something starting with __ and the normal name is an alias. */
32749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32752 char (*f) () = $ac_func;
32761 return f != $ac_func;
32766 rm -f conftest.
$ac_objext conftest
$ac_exeext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32768 (eval $ac_link) 2>&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
32772 { ac_try
='test -s conftest$ac_exeext'
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; }; then
32778 eval "$as_ac_var=yes"
32780 echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.
$ac_ext >&5
32783 eval "$as_ac_var=no"
32785 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32789 if test `eval echo '${'$as_ac_var'}'` = yes; then
32790 cat >>confdefs.h
<<_ACEOF
32791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32795 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32802 for ac_func
in strdup
32804 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32805 echo "$as_me:$LINENO: checking for $ac_func" >&5
32806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32807 if eval "test \"\${$as_ac_var+set}\" = set"; then
32808 echo $ECHO_N "(cached) $ECHO_C" >&6
32810 cat >conftest.
$ac_ext <<_ACEOF
32811 #line $LINENO "configure"
32814 cat confdefs.h
>>conftest.
$ac_ext
32815 cat >>conftest.
$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 /* System header to define __stub macros and hopefully few prototypes,
32818 which can conflict with char $ac_func (); below.
32819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32820 <limits.h> exists even on freestanding compilers. */
32822 # include <limits.h>
32824 # include <assert.h>
32826 /* Override any gcc2 internal prototype to avoid an error. */
32831 /* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32834 /* The GNU C library defines this for functions which it implements
32835 to always fail with ENOSYS. Some functions are actually named
32836 something starting with __ and the normal name is an alias. */
32837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32840 char (*f) () = $ac_func;
32849 return f != $ac_func;
32854 rm -f conftest.
$ac_objext conftest
$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856 (eval $ac_link) 2>&5
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
32860 { ac_try
='test -s conftest$ac_exeext'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; }; then
32866 eval "$as_ac_var=yes"
32868 echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.
$ac_ext >&5
32871 eval "$as_ac_var=no"
32873 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32877 if test `eval echo '${'$as_ac_var'}'` = yes; then
32878 cat >>confdefs.h
<<_ACEOF
32879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32883 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32894 for ac_func
in memchr memcpy memmove memrchr memset
32896 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32897 echo "$as_me:$LINENO: checking for $ac_func" >&5
32898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32899 if eval "test \"\${$as_ac_var+set}\" = set"; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
32902 cat >conftest.
$ac_ext <<_ACEOF
32903 #line $LINENO "configure"
32906 cat confdefs.h
>>conftest.
$ac_ext
32907 cat >>conftest.
$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 /* System header to define __stub macros and hopefully few prototypes,
32910 which can conflict with char $ac_func (); below.
32911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912 <limits.h> exists even on freestanding compilers. */
32914 # include <limits.h>
32916 # include <assert.h>
32918 /* Override any gcc2 internal prototype to avoid an error. */
32923 /* We use char because int might match the return type of a gcc2
32924 builtin and then its argument prototype would still apply. */
32926 /* The GNU C library defines this for functions which it implements
32927 to always fail with ENOSYS. Some functions are actually named
32928 something starting with __ and the normal name is an alias. */
32929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32932 char (*f) () = $ac_func;
32941 return f != $ac_func;
32946 rm -f conftest.
$ac_objext conftest
$ac_exeext
32947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32948 (eval $ac_link) 2>&5
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
32952 { ac_try
='test -s conftest$ac_exeext'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; }; then
32958 eval "$as_ac_var=yes"
32960 echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.
$ac_ext >&5
32963 eval "$as_ac_var=no"
32965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32969 if test `eval echo '${'$as_ac_var'}'` = yes; then
32970 cat >>confdefs.h
<<_ACEOF
32971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32975 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
32981 for ac_func
in getpagesize
32983 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32984 echo "$as_me:$LINENO: checking for $ac_func" >&5
32985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32986 if eval "test \"\${$as_ac_var+set}\" = set"; then
32987 echo $ECHO_N "(cached) $ECHO_C" >&6
32989 cat >conftest.
$ac_ext <<_ACEOF
32990 #line $LINENO "configure"
32993 cat confdefs.h
>>conftest.
$ac_ext
32994 cat >>conftest.
$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 /* System header to define __stub macros and hopefully few prototypes,
32997 which can conflict with char $ac_func (); below.
32998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32999 <limits.h> exists even on freestanding compilers. */
33001 # include <limits.h>
33003 # include <assert.h>
33005 /* Override any gcc2 internal prototype to avoid an error. */
33010 /* We use char because int might match the return type of a gcc2
33011 builtin and then its argument prototype would still apply. */
33013 /* The GNU C library defines this for functions which it implements
33014 to always fail with ENOSYS. Some functions are actually named
33015 something starting with __ and the normal name is an alias. */
33016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33019 char (*f) () = $ac_func;
33028 return f != $ac_func;
33033 rm -f conftest.
$ac_objext conftest
$ac_exeext
33034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33035 (eval $ac_link) 2>&5
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); } &&
33039 { ac_try
='test -s conftest$ac_exeext'
33040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041 (eval $ac_try) 2>&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 eval "$as_ac_var=yes"
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.
$ac_ext >&5
33050 eval "$as_ac_var=no"
33052 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33056 if test `eval echo '${'$as_ac_var'}'` = yes; then
33057 cat >>confdefs.h
<<_ACEOF
33058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33067 # By default, argmatch should fail calling usage (1).
33069 cat >>confdefs.h
<<\_ACEOF
33070 #define ARGMATCH_DIE usage (1)
33074 cat >>confdefs.h
<<\_ACEOF
33075 #define ARGMATCH_DIE_DECL extern void usage ()
33079 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33080 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33081 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33084 ac_cv_func_setvbuf_reversed
=no
33085 cat >conftest.
$ac_ext <<_ACEOF
33086 #line $LINENO "configure"
33089 cat confdefs.h
>>conftest.
$ac_ext
33090 cat >>conftest.
$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33094 int (setvbuf) (FILE *, int, char *, size_t);
33099 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33104 rm -f conftest.
$ac_objext conftest
$ac_exeext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33106 (eval $ac_link) 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } &&
33110 { ac_try
='test -s conftest$ac_exeext'
33111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33112 (eval $ac_try) 2>&5
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; }; then
33116 cat >conftest.
$ac_ext <<_ACEOF
33117 #line $LINENO "configure"
33120 cat confdefs.h
>>conftest.
$ac_ext
33121 cat >>conftest.
$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33125 int (setvbuf) (FILE *, int, char *, size_t);
33130 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33135 rm -f conftest.
$ac_objext conftest
$ac_exeext
33136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33137 (eval $ac_link) 2>&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
33141 { ac_try
='test -s conftest$ac_exeext'
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
33147 # It compiles and links either way, so it must not be declared
33148 # with a prototype and most likely this is a K&R C compiler.
33150 if test "$cross_compiling" = yes; then
33151 : # Assume setvbuf is not reversed when cross-compiling.
33153 cat >conftest.
$ac_ext <<_ACEOF
33154 #line $LINENO "configure"
33157 cat confdefs.h
>>conftest.
$ac_ext
33158 cat >>conftest.
$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33164 /* This call has the arguments reversed.
33165 A reversed system may check and see that the address of buf
33166 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
33168 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33171 exit (0); /* Non-reversed systems SEGV here. */
33176 rm -f conftest
$ac_exeext
33177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33178 (eval $ac_link) 2>&5
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183 (eval $ac_try) 2>&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_func_setvbuf_reversed
=yes
33189 echo "$as_me: program exited with status $ac_status" >&5
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.
$ac_ext >&5
33193 ( exit $ac_status )
33194 rm -f core core.
* *.core
33196 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33198 ac_cv_func_setvbuf_reversed
=yes
33200 echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.
$ac_ext >&5
33204 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33206 echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.
$ac_ext >&5
33210 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33212 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33213 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33214 if test $ac_cv_func_setvbuf_reversed = yes; then
33216 cat >>confdefs.h
<<\_ACEOF
33217 #define SETVBUF_REVERSED 1
33223 # used by sleep and shred
33224 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33225 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33227 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
33228 # programs in the package would end up linked with that potentially-shared
33229 # library, inducing unnecessary run-time overhead.
33230 fetish_saved_libs
=$LIBS
33232 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33233 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33234 if test "${ac_cv_search_clock_gettime+set}" = set; then
33235 echo $ECHO_N "(cached) $ECHO_C" >&6
33238 ac_func_search_save_LIBS
=$LIBS
33239 ac_cv_search_clock_gettime
=no
33240 cat >conftest.
$ac_ext <<_ACEOF
33241 #line $LINENO "configure"
33244 cat confdefs.h
>>conftest.
$ac_ext
33245 cat >>conftest.
$ac_ext <<_ACEOF
33246 /* end confdefs.h. */
33248 /* Override any gcc2 internal prototype to avoid an error. */
33252 /* We use char because int might match the return type of a gcc2
33253 builtin and then its argument prototype would still apply. */
33254 char clock_gettime ();
33263 rm -f conftest.
$ac_objext conftest
$ac_exeext
33264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33265 (eval $ac_link) 2>&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); } &&
33269 { ac_try
='test -s conftest$ac_exeext'
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_search_clock_gettime
='none required'
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.
$ac_ext >&5
33281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33282 if test "$ac_cv_search_clock_gettime" = no
; then
33283 for ac_lib
in rt posix4
; do
33284 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
33285 cat >conftest.
$ac_ext <<_ACEOF
33286 #line $LINENO "configure"
33289 cat confdefs.h
>>conftest.
$ac_ext
33290 cat >>conftest.
$ac_ext <<_ACEOF
33291 /* end confdefs.h. */
33293 /* Override any gcc2 internal prototype to avoid an error. */
33297 /* We use char because int might match the return type of a gcc2
33298 builtin and then its argument prototype would still apply. */
33299 char clock_gettime ();
33308 rm -f conftest.
$ac_objext conftest
$ac_exeext
33309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33310 (eval $ac_link) 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
33314 { ac_try
='test -s conftest$ac_exeext'
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; }; then
33320 ac_cv_search_clock_gettime
="-l$ac_lib"; break
33322 echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.
$ac_ext >&5
33326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33329 LIBS
=$ac_func_search_save_LIBS
33332 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33333 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33335 if test "$ac_cv_search_clock_gettime" = no
; then :
33338 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33341 LIBS
="$ac_cv_search_clock_gettime $LIBS"
33342 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
33349 for ac_func
in clock_gettime clock_settime
33351 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33357 cat >conftest.
$ac_ext <<_ACEOF
33358 #line $LINENO "configure"
33361 cat confdefs.h
>>conftest.
$ac_ext
33362 cat >>conftest.
$ac_ext <<_ACEOF
33363 /* end confdefs.h. */
33364 /* System header to define __stub macros and hopefully few prototypes,
33365 which can conflict with char $ac_func (); below.
33366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33367 <limits.h> exists even on freestanding compilers. */
33369 # include <limits.h>
33371 # include <assert.h>
33373 /* Override any gcc2 internal prototype to avoid an error. */
33378 /* We use char because int might match the return type of a gcc2
33379 builtin and then its argument prototype would still apply. */
33381 /* The GNU C library defines this for functions which it implements
33382 to always fail with ENOSYS. Some functions are actually named
33383 something starting with __ and the normal name is an alias. */
33384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33387 char (*f) () = $ac_func;
33396 return f != $ac_func;
33401 rm -f conftest.
$ac_objext conftest
$ac_exeext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33403 (eval $ac_link) 2>&5
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
33407 { ac_try
='test -s conftest$ac_exeext'
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; }; then
33413 eval "$as_ac_var=yes"
33415 echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.
$ac_ext >&5
33418 eval "$as_ac_var=no"
33420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33424 if test `eval echo '${'$as_ac_var'}'` = yes; then
33425 cat >>confdefs.h
<<_ACEOF
33426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33432 LIBS
=$fetish_saved_libs
33434 for ac_func
in gettimeofday
33436 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33437 echo "$as_me:$LINENO: checking for $ac_func" >&5
33438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33439 if eval "test \"\${$as_ac_var+set}\" = set"; then
33440 echo $ECHO_N "(cached) $ECHO_C" >&6
33442 cat >conftest.
$ac_ext <<_ACEOF
33443 #line $LINENO "configure"
33446 cat confdefs.h
>>conftest.
$ac_ext
33447 cat >>conftest.
$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33449 /* System header to define __stub macros and hopefully few prototypes,
33450 which can conflict with char $ac_func (); below.
33451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33452 <limits.h> exists even on freestanding compilers. */
33454 # include <limits.h>
33456 # include <assert.h>
33458 /* Override any gcc2 internal prototype to avoid an error. */
33463 /* We use char because int might match the return type of a gcc2
33464 builtin and then its argument prototype would still apply. */
33466 /* The GNU C library defines this for functions which it implements
33467 to always fail with ENOSYS. Some functions are actually named
33468 something starting with __ and the normal name is an alias. */
33469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33472 char (*f) () = $ac_func;
33481 return f != $ac_func;
33486 rm -f conftest.
$ac_objext conftest
$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488 (eval $ac_link) 2>&5
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
33492 { ac_try
='test -s conftest$ac_exeext'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 eval "$as_ac_var=yes"
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.
$ac_ext >&5
33503 eval "$as_ac_var=no"
33505 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33509 if test `eval echo '${'$as_ac_var'}'` = yes; then
33510 cat >>confdefs.h
<<_ACEOF
33511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33521 for ac_header
in string.h stdlib.h
33523 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33525 echo "$as_me:$LINENO: checking for $ac_header" >&5
33526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33533 # Is the header compilable?
33534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33536 cat >conftest.
$ac_ext <<_ACEOF
33537 #line $LINENO "configure"
33540 cat confdefs.h
>>conftest.
$ac_ext
33541 cat >>conftest.
$ac_ext <<_ACEOF
33542 /* end confdefs.h. */
33543 $ac_includes_default
33544 #include <$ac_header>
33546 rm -f conftest.
$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548 (eval $ac_compile) 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); } &&
33552 { ac_try
='test -s conftest.$ac_objext'
33553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554 (eval $ac_try) 2>&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); }; }; then
33558 ac_header_compiler
=yes
33560 echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.
$ac_ext >&5
33563 ac_header_compiler
=no
33565 rm -f conftest.
$ac_objext conftest.
$ac_ext
33566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33567 echo "${ECHO_T}$ac_header_compiler" >&6
33569 # Is the header present?
33570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33572 cat >conftest.
$ac_ext <<_ACEOF
33573 #line $LINENO "configure"
33576 cat confdefs.h
>>conftest.
$ac_ext
33577 cat >>conftest.
$ac_ext <<_ACEOF
33578 /* end confdefs.h. */
33579 #include <$ac_header>
33581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
33584 grep -v '^ *+' conftest.er1
>conftest.err
33586 cat conftest.err
>&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } >/dev
/null
; then
33589 if test -s conftest.err
; then
33590 ac_cpp_err
=$ac_c_preproc_warn_flag
33597 if test -z "$ac_cpp_err"; then
33598 ac_header_preproc
=yes
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.
$ac_ext >&5
33603 ac_header_preproc
=no
33605 rm -f conftest.err conftest.
$ac_ext
33606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33607 echo "${ECHO_T}$ac_header_preproc" >&6
33609 # So? What about this header?
33610 case $ac_header_compiler:$ac_header_preproc in
33612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33618 ## ------------------------------------ ##
33619 ## Report this to bug-autoconf@gnu.org. ##
33620 ## ------------------------------------ ##
33623 sed "s/^/$as_me: WARNING: /" >&2
33626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33634 ## ------------------------------------ ##
33635 ## Report this to bug-autoconf@gnu.org. ##
33636 ## ------------------------------------ ##
33639 sed "s/^/$as_me: WARNING: /" >&2
33642 echo "$as_me:$LINENO: checking for $ac_header" >&5
33643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33645 echo $ECHO_N "(cached) $ECHO_C" >&6
33647 eval "$as_ac_Header=$ac_header_preproc"
33649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33654 cat >>confdefs.h
<<_ACEOF
33655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33662 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33663 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33664 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33667 if test "$cross_compiling" = yes; then
33668 jm_cv_func_gettimeofday_clobber
=yes
33670 cat >conftest.
$ac_ext <<_ACEOF
33671 #line $LINENO "configure"
33674 cat confdefs.h
>>conftest.
$ac_ext
33675 cat >>conftest.
$ac_ext <<_ACEOF
33676 /* end confdefs.h. */
33680 # include <string.h>
33683 #if TIME_WITH_SYS_TIME
33684 # include <sys/time.h>
33687 # if HAVE_SYS_TIME_H
33688 # include <sys/time.h>
33695 # include <stdlib.h>
33703 struct tm saved_lt;
33705 lt = localtime (&t);
33707 gettimeofday (&tv, NULL);
33708 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33715 rm -f conftest
$ac_exeext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33717 (eval $ac_link) 2>&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 jm_cv_func_gettimeofday_clobber
=no
33728 echo "$as_me: program exited with status $ac_status" >&5
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.
$ac_ext >&5
33732 ( exit $ac_status )
33733 jm_cv_func_gettimeofday_clobber
=yes
33735 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33739 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33740 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33741 if test $jm_cv_func_gettimeofday_clobber = yes; then
33742 LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
33744 cat >>confdefs.h
<<\_ACEOF
33745 #define localtime rpl_localtime
33749 cat >>confdefs.h
<<\_ACEOF
33750 #define gettimeofday rpl_gettimeofday
33754 cat >>confdefs.h
<<\_ACEOF
33755 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33824 echo "$as_me:$LINENO: checking for $ac_func" >&5
33825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33826 if eval "test \"\${$as_ac_var+set}\" = set"; then
33827 echo $ECHO_N "(cached) $ECHO_C" >&6
33829 cat >conftest.
$ac_ext <<_ACEOF
33830 #line $LINENO "configure"
33833 cat confdefs.h
>>conftest.
$ac_ext
33834 cat >>conftest.
$ac_ext <<_ACEOF
33835 /* end confdefs.h. */
33836 /* System header to define __stub macros and hopefully few prototypes,
33837 which can conflict with char $ac_func (); below.
33838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33839 <limits.h> exists even on freestanding compilers. */
33841 # include <limits.h>
33843 # include <assert.h>
33845 /* Override any gcc2 internal prototype to avoid an error. */
33850 /* We use char because int might match the return type of a gcc2
33851 builtin and then its argument prototype would still apply. */
33853 /* The GNU C library defines this for functions which it implements
33854 to always fail with ENOSYS. Some functions are actually named
33855 something starting with __ and the normal name is an alias. */
33856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33859 char (*f) () = $ac_func;
33868 return f != $ac_func;
33873 rm -f conftest.
$ac_objext conftest
$ac_exeext
33874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33875 (eval $ac_link) 2>&5
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } &&
33879 { ac_try
='test -s conftest$ac_exeext'
33880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33881 (eval $ac_try) 2>&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33885 eval "$as_ac_var=yes"
33887 echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.
$ac_ext >&5
33890 eval "$as_ac_var=no"
33892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33896 if test `eval echo '${'$as_ac_var'}'` = yes; then
33897 cat >>confdefs.h
<<_ACEOF
33898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33905 am_getline_needs_run_time_check
=no
33906 echo "$as_me:$LINENO: checking for getline" >&5
33907 echo $ECHO_N "checking for getline... $ECHO_C" >&6
33908 if test "${ac_cv_func_getline+set}" = set; then
33909 echo $ECHO_N "(cached) $ECHO_C" >&6
33911 cat >conftest.
$ac_ext <<_ACEOF
33912 #line $LINENO "configure"
33915 cat confdefs.h
>>conftest.
$ac_ext
33916 cat >>conftest.
$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918 /* System header to define __stub macros and hopefully few prototypes,
33919 which can conflict with char getline (); below.
33920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33921 <limits.h> exists even on freestanding compilers. */
33923 # include <limits.h>
33925 # include <assert.h>
33927 /* Override any gcc2 internal prototype to avoid an error. */
33932 /* We use char because int might match the return type of a gcc2
33933 builtin and then its argument prototype would still apply. */
33935 /* The GNU C library defines this for functions which it implements
33936 to always fail with ENOSYS. Some functions are actually named
33937 something starting with __ and the normal name is an alias. */
33938 #if defined (__stub_getline) || defined (__stub___getline)
33941 char (*f) () = getline;
33950 return f != getline;
33955 rm -f conftest.
$ac_objext conftest
$ac_exeext
33956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33957 (eval $ac_link) 2>&5
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); } &&
33961 { ac_try
='test -s conftest$ac_exeext'
33962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963 (eval $ac_try) 2>&5
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; }; then
33967 ac_cv_func_getline
=yes
33969 echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.
$ac_ext >&5
33972 ac_cv_func_getline
=no
33974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33976 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
33977 echo "${ECHO_T}$ac_cv_func_getline" >&6
33978 if test $ac_cv_func_getline = yes; then
33979 am_getline_needs_run_time_check
=yes
33981 am_cv_func_working_getline
=no
33984 if test $am_getline_needs_run_time_check = yes; then
33985 echo "$as_me:$LINENO: checking for working getline function" >&5
33986 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
33987 if test "${am_cv_func_working_getline+set}" = set; then
33988 echo $ECHO_N "(cached) $ECHO_C" >&6
33990 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
33991 if test "$cross_compiling" = yes; then
33992 am_cv_func_working_getline
=no
33994 cat >conftest.
$ac_ext <<_ACEOF
33995 #line $LINENO "configure"
33998 cat confdefs.h
>>conftest.
$ac_ext
33999 cat >>conftest.
$ac_ext <<_ACEOF
34000 /* end confdefs.h. */
34002 # include <stdio.h>
34003 # include <sys/types.h>
34004 # include <string.h>
34006 { /* Based on a test program from Karl Heuer. */
34010 FILE *in = fopen ("./conftest.data", "r");
34013 len = getline (&line, &siz, in);
34014 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34018 rm -f conftest
$ac_exeext
34019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34020 (eval $ac_link) 2>&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; }; then
34029 am_cv_func_working_getline
=yes
34031 echo "$as_me: program exited with status $ac_status" >&5
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.
$ac_ext >&5
34035 ( exit $ac_status )
34036 am_cv_func_working_getline
=no
34038 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34041 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34042 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34045 if test $am_cv_func_working_getline = no
; then
34046 LIBOBJS
="$LIBOBJS getline.$ac_objext"
34049 if test $am_cv_func_working_getline != yes; then
34051 for ac_func
in getdelim
34053 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34054 echo "$as_me:$LINENO: checking for $ac_func" >&5
34055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34056 if eval "test \"\${$as_ac_var+set}\" = set"; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34059 cat >conftest.
$ac_ext <<_ACEOF
34060 #line $LINENO "configure"
34063 cat confdefs.h
>>conftest.
$ac_ext
34064 cat >>conftest.
$ac_ext <<_ACEOF
34065 /* end confdefs.h. */
34066 /* System header to define __stub macros and hopefully few prototypes,
34067 which can conflict with char $ac_func (); below.
34068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34069 <limits.h> exists even on freestanding compilers. */
34071 # include <limits.h>
34073 # include <assert.h>
34075 /* Override any gcc2 internal prototype to avoid an error. */
34080 /* We use char because int might match the return type of a gcc2
34081 builtin and then its argument prototype would still apply. */
34083 /* The GNU C library defines this for functions which it implements
34084 to always fail with ENOSYS. Some functions are actually named
34085 something starting with __ and the normal name is an alias. */
34086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34089 char (*f) () = $ac_func;
34098 return f != $ac_func;
34103 rm -f conftest.
$ac_objext conftest
$ac_exeext
34104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34105 (eval $ac_link) 2>&5
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); } &&
34109 { ac_try
='test -s conftest$ac_exeext'
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34115 eval "$as_ac_var=yes"
34117 echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.
$ac_ext >&5
34120 eval "$as_ac_var=no"
34122 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34126 if test `eval echo '${'$as_ac_var'}'` = yes; then
34127 cat >>confdefs.h
<<_ACEOF
34128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135 echo "$as_me:$LINENO: checking for obstacks" >&5
34136 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34137 if test "${ac_cv_func_obstack+set}" = set; then
34138 echo $ECHO_N "(cached) $ECHO_C" >&6
34140 cat >conftest.
$ac_ext <<_ACEOF
34141 #line $LINENO "configure"
34144 cat confdefs.h
>>conftest.
$ac_ext
34145 cat >>conftest.
$ac_ext <<_ACEOF
34146 /* end confdefs.h. */
34147 #include "obstack.h"
34151 struct obstack *mem; obstack_free(mem,(char *) 0)
34156 rm -f conftest.
$ac_objext conftest
$ac_exeext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34158 (eval $ac_link) 2>&5
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } &&
34162 { ac_try
='test -s conftest$ac_exeext'
34163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164 (eval $ac_try) 2>&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 ac_cv_func_obstack
=yes
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.
$ac_ext >&5
34173 ac_cv_func_obstack
=no
34175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34177 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34178 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34179 if test $ac_cv_func_obstack = yes; then
34181 cat >>confdefs.h
<<\_ACEOF
34182 #define HAVE_OBSTACK 1
34186 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
34190 echo "$as_me:$LINENO: checking for working strtod" >&5
34191 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34192 if test "${ac_cv_func_strtod+set}" = set; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34195 if test "$cross_compiling" = yes; then
34196 ac_cv_func_strtod
=no
34198 cat >conftest.
$ac_ext <<_ACEOF
34199 #line $LINENO "configure"
34202 cat confdefs.h
>>conftest.
$ac_ext
34203 cat >>conftest.
$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34211 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
34212 char *string = " +69";
34215 value = strtod (string, &term);
34216 if (value != 69 || term != (string + 4))
34221 /* Under Solaris 2.4, strtod returns the wrong value for the
34222 terminating character under some conditions. */
34223 char *string = "NaN";
34225 strtod (string, &term);
34226 if (term != string && *(term - 1) == 0)
34233 rm -f conftest
$ac_exeext
34234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34235 (eval $ac_link) 2>&5
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34240 (eval $ac_try) 2>&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); }; }; then
34244 ac_cv_func_strtod
=yes
34246 echo "$as_me: program exited with status $ac_status" >&5
34247 echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.
$ac_ext >&5
34250 ( exit $ac_status )
34251 ac_cv_func_strtod
=no
34253 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34256 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34257 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34258 if test $ac_cv_func_strtod = no
; then
34259 LIBOBJS
="$LIBOBJS strtod.$ac_objext"
34260 echo "$as_me:$LINENO: checking for pow" >&5
34261 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34262 if test "${ac_cv_func_pow+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34265 cat >conftest.
$ac_ext <<_ACEOF
34266 #line $LINENO "configure"
34269 cat confdefs.h
>>conftest.
$ac_ext
34270 cat >>conftest.
$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272 /* System header to define __stub macros and hopefully few prototypes,
34273 which can conflict with char pow (); below.
34274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34275 <limits.h> exists even on freestanding compilers. */
34277 # include <limits.h>
34279 # include <assert.h>
34281 /* Override any gcc2 internal prototype to avoid an error. */
34286 /* We use char because int might match the return type of a gcc2
34287 builtin and then its argument prototype would still apply. */
34289 /* The GNU C library defines this for functions which it implements
34290 to always fail with ENOSYS. Some functions are actually named
34291 something starting with __ and the normal name is an alias. */
34292 #if defined (__stub_pow) || defined (__stub___pow)
34295 char (*f) () = pow;
34309 rm -f conftest.
$ac_objext conftest
$ac_exeext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34311 (eval $ac_link) 2>&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
34315 { ac_try
='test -s conftest$ac_exeext'
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; }; then
34323 echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.
$ac_ext >&5
34328 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34330 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34331 echo "${ECHO_T}$ac_cv_func_pow" >&6
34333 if test $ac_cv_func_pow = no
; then
34334 echo "$as_me:$LINENO: checking for pow in -lm" >&5
34335 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34336 if test "${ac_cv_lib_m_pow+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34339 ac_check_lib_save_LIBS
=$LIBS
34341 cat >conftest.
$ac_ext <<_ACEOF
34342 #line $LINENO "configure"
34345 cat confdefs.h
>>conftest.
$ac_ext
34346 cat >>conftest.
$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34349 /* Override any gcc2 internal prototype to avoid an error. */
34353 /* We use char because int might match the return type of a gcc2
34354 builtin and then its argument prototype would still apply. */
34364 rm -f conftest.
$ac_objext conftest
$ac_exeext
34365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34366 (eval $ac_link) 2>&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
34370 { ac_try
='test -s conftest$ac_exeext'
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; }; then
34376 ac_cv_lib_m_pow
=yes
34378 echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.
$ac_ext >&5
34383 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34384 LIBS
=$ac_check_lib_save_LIBS
34386 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34387 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34388 if test $ac_cv_lib_m_pow = yes; then
34391 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34392 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34401 # See if linking `seq' requires -lm.
34402 # It does on nearly every system. The single exception (so far) is
34403 # BeOS which has all the math functions in the normal runtime library
34404 # and doesn't have a separate math library.
34408 static double x, y;
34412 cat >conftest.
$ac_ext <<_ACEOF
34413 #line $LINENO "configure"
34416 cat confdefs.h
>>conftest.
$ac_ext
34417 cat >>conftest.
$ac_ext <<_ACEOF
34418 /* end confdefs.h. */
34428 rm -f conftest.
$ac_objext conftest
$ac_exeext
34429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34430 (eval $ac_link) 2>&5
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
34434 { ac_try
='test -s conftest$ac_exeext'
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; }; then
34442 echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.
$ac_ext >&5
34445 ac_seq_save_LIBS
="$LIBS"
34447 cat >conftest.
$ac_ext <<_ACEOF
34448 #line $LINENO "configure"
34451 cat confdefs.h
>>conftest.
$ac_ext
34452 cat >>conftest.
$ac_ext <<_ACEOF
34453 /* end confdefs.h. */
34463 rm -f conftest.
$ac_objext conftest
$ac_exeext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465 (eval $ac_link) 2>&5
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); } &&
34469 { ac_try
='test -s conftest$ac_exeext'
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; }; then
34477 echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.
$ac_ext >&5
34481 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34482 LIBS
="$ac_seq_save_LIBS"
34485 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34488 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34489 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34490 if test "${am_cv_langinfo_codeset+set}" = set; then
34491 echo $ECHO_N "(cached) $ECHO_C" >&6
34493 cat >conftest.
$ac_ext <<_ACEOF
34494 #line $LINENO "configure"
34497 cat confdefs.h
>>conftest.
$ac_ext
34498 cat >>conftest.
$ac_ext <<_ACEOF
34499 /* end confdefs.h. */
34500 #include <langinfo.h>
34504 char* cs = nl_langinfo(CODESET);
34509 rm -f conftest.
$ac_objext conftest
$ac_exeext
34510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34511 (eval $ac_link) 2>&5
34513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514 (exit $ac_status); } &&
34515 { ac_try
='test -s conftest$ac_exeext'
34516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517 (eval $ac_try) 2>&5
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); }; }; then
34521 am_cv_langinfo_codeset
=yes
34523 echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.
$ac_ext >&5
34526 am_cv_langinfo_codeset
=no
34528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34531 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34532 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34533 if test $am_cv_langinfo_codeset = yes; then
34535 cat >>confdefs.h
<<\_ACEOF
34536 #define HAVE_LANGINFO_CODESET 1
34542 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34543 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34544 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34547 cat >conftest.
$ac_ext <<_ACEOF
34548 #line $LINENO "configure"
34551 cat confdefs.h
>>conftest.
$ac_ext
34552 cat >>conftest.
$ac_ext <<_ACEOF
34553 /* end confdefs.h. */
34555 #include <features.h>
34556 #ifdef __GNU_LIBRARY__
34557 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34564 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
34565 ac_cv_gnu_library_2_1
=yes
34567 ac_cv_gnu_library_2_1
=no
34574 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34575 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34577 GLIBC21
="$ac_cv_gnu_library_2_1"
34585 am_save_CPPFLAGS
="$CPPFLAGS"
34587 for element
in $INCICONV; do
34589 for x
in $CPPFLAGS; do
34591 acl_save_prefix
="$prefix"
34592 prefix
="$acl_final_prefix"
34593 acl_save_exec_prefix
="$exec_prefix"
34594 exec_prefix
="$acl_final_exec_prefix"
34596 exec_prefix
="$acl_save_exec_prefix"
34597 prefix
="$acl_save_prefix"
34599 if test "X$x" = "X$element"; then
34604 if test -z "$haveit"; then
34605 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
34610 echo "$as_me:$LINENO: checking for iconv" >&5
34611 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34612 if test "${am_cv_func_iconv+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34616 am_cv_func_iconv
="no, consider installing GNU libiconv"
34618 cat >conftest.
$ac_ext <<_ACEOF
34619 #line $LINENO "configure"
34622 cat confdefs.h
>>conftest.
$ac_ext
34623 cat >>conftest.
$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34625 #include <stdlib.h>
34630 iconv_t cd = iconv_open("","");
34631 iconv(cd,NULL,NULL,NULL,NULL);
34637 rm -f conftest.
$ac_objext conftest
$ac_exeext
34638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34639 (eval $ac_link) 2>&5
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } &&
34643 { ac_try
='test -s conftest$ac_exeext'
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; }; then
34649 am_cv_func_iconv
=yes
34651 echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.
$ac_ext >&5
34655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34656 if test "$am_cv_func_iconv" != yes; then
34657 am_save_LIBS
="$LIBS"
34658 LIBS
="$LIBS $LIBICONV"
34659 cat >conftest.
$ac_ext <<_ACEOF
34660 #line $LINENO "configure"
34663 cat confdefs.h
>>conftest.
$ac_ext
34664 cat >>conftest.
$ac_ext <<_ACEOF
34665 /* end confdefs.h. */
34666 #include <stdlib.h>
34671 iconv_t cd = iconv_open("","");
34672 iconv(cd,NULL,NULL,NULL,NULL);
34678 rm -f conftest.
$ac_objext conftest
$ac_exeext
34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680 (eval $ac_link) 2>&5
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } &&
34684 { ac_try
='test -s conftest$ac_exeext'
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; }; then
34690 am_cv_lib_iconv
=yes
34691 am_cv_func_iconv
=yes
34693 echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.
$ac_ext >&5
34697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34698 LIBS
="$am_save_LIBS"
34702 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34703 echo "${ECHO_T}$am_cv_func_iconv" >&6
34704 if test "$am_cv_func_iconv" = yes; then
34706 cat >>confdefs.h
<<\_ACEOF
34707 #define HAVE_ICONV 1
34711 if test "$am_cv_lib_iconv" = yes; then
34712 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34713 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34714 echo "$as_me:$LINENO: result: $LIBICONV" >&5
34715 echo "${ECHO_T}$LIBICONV" >&6
34717 CPPFLAGS
="$am_save_CPPFLAGS"
34724 if test "$am_cv_func_iconv" = yes; then
34725 echo "$as_me:$LINENO: checking for iconv declaration" >&5
34726 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34727 if test "${am_cv_proto_iconv+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
34731 cat >conftest.
$ac_ext <<_ACEOF
34732 #line $LINENO "configure"
34735 cat confdefs.h
>>conftest.
$ac_ext
34736 cat >>conftest.
$ac_ext <<_ACEOF
34737 /* end confdefs.h. */
34739 #include <stdlib.h>
34745 #if defined(__STDC__) || defined(__cplusplus)
34746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34759 rm -f conftest.
$ac_objext
34760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34761 (eval $ac_compile) 2>&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
34765 { ac_try
='test -s conftest.$ac_objext'
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; }; then
34771 am_cv_proto_iconv_arg1
=""
34773 echo "$as_me: failed program was:" >&5
34774 sed 's/^/| /' conftest.
$ac_ext >&5
34776 am_cv_proto_iconv_arg1
="const"
34778 rm -f conftest.
$ac_objext conftest.
$ac_ext
34779 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);"
34782 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34783 echo "$as_me:$LINENO: result: ${ac_t:-
34784 }$am_cv_proto_iconv" >&5
34785 echo "${ECHO_T}${ac_t:-
34786 }$am_cv_proto_iconv" >&6
34788 cat >>confdefs.h
<<_ACEOF
34789 #define ICONV_CONST $am_cv_proto_iconv_arg1
34794 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34795 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34796 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34797 echo $ECHO_N "(cached) $ECHO_C" >&6
34800 if test "$cross_compiling" = yes; then
34801 jm_cv_func_unlink_busy_text
=no
34804 cat >conftest.
$ac_ext <<_ACEOF
34805 #line $LINENO "configure"
34808 cat confdefs.h
>>conftest.
$ac_ext
34809 cat >>conftest.
$ac_ext <<_ACEOF
34810 /* end confdefs.h. */
34818 exit (unlink (argv[0]));
34822 rm -f conftest
$ac_exeext
34823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34824 (eval $ac_link) 2>&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 jm_cv_func_unlink_busy_text
=yes
34835 echo "$as_me: program exited with status $ac_status" >&5
34836 echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.
$ac_ext >&5
34839 ( exit $ac_status )
34840 jm_cv_func_unlink_busy_text
=no
34842 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34847 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34848 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34850 if test $jm_cv_func_unlink_busy_text = no
; then
34851 INSTALL
=$ac_install_sh
34855 # These tests are for df.
34859 for ac_func
in listmntent getmntinfo
34861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34867 cat >conftest.
$ac_ext <<_ACEOF
34868 #line $LINENO "configure"
34871 cat confdefs.h
>>conftest.
$ac_ext
34872 cat >>conftest.
$ac_ext <<_ACEOF
34873 /* end confdefs.h. */
34874 /* System header to define __stub macros and hopefully few prototypes,
34875 which can conflict with char $ac_func (); below.
34876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877 <limits.h> exists even on freestanding compilers. */
34879 # include <limits.h>
34881 # include <assert.h>
34883 /* Override any gcc2 internal prototype to avoid an error. */
34888 /* We use char because int might match the return type of a gcc2
34889 builtin and then its argument prototype would still apply. */
34891 /* The GNU C library defines this for functions which it implements
34892 to always fail with ENOSYS. Some functions are actually named
34893 something starting with __ and the normal name is an alias. */
34894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34897 char (*f) () = $ac_func;
34906 return f != $ac_func;
34911 rm -f conftest.
$ac_objext conftest
$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913 (eval $ac_link) 2>&5
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); } &&
34917 { ac_try
='test -s conftest$ac_exeext'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; }; then
34923 eval "$as_ac_var=yes"
34925 echo "$as_me: failed program was:" >&5
34926 sed 's/^/| /' conftest.
$ac_ext >&5
34928 eval "$as_ac_var=no"
34930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34934 if test `eval echo '${'$as_ac_var'}'` = yes; then
34935 cat >>confdefs.h
<<_ACEOF
34936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34947 for ac_header
in mntent.h sys
/param.h sys
/ucred.h sys
/mount.h sys
/fs_types.h
34949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34951 echo "$as_me:$LINENO: checking for $ac_header" >&5
34952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34954 echo $ECHO_N "(cached) $ECHO_C" >&6
34956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34959 # Is the header compilable?
34960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34962 cat >conftest.
$ac_ext <<_ACEOF
34963 #line $LINENO "configure"
34966 cat confdefs.h
>>conftest.
$ac_ext
34967 cat >>conftest.
$ac_ext <<_ACEOF
34968 /* end confdefs.h. */
34969 $ac_includes_default
34970 #include <$ac_header>
34972 rm -f conftest.
$ac_objext
34973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34974 (eval $ac_compile) 2>&5
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } &&
34978 { ac_try
='test -s conftest.$ac_objext'
34979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34980 (eval $ac_try) 2>&5
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); }; }; then
34984 ac_header_compiler
=yes
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.
$ac_ext >&5
34989 ac_header_compiler
=no
34991 rm -f conftest.
$ac_objext conftest.
$ac_ext
34992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34993 echo "${ECHO_T}$ac_header_compiler" >&6
34995 # Is the header present?
34996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34998 cat >conftest.
$ac_ext <<_ACEOF
34999 #line $LINENO "configure"
35002 cat confdefs.h
>>conftest.
$ac_ext
35003 cat >>conftest.
$ac_ext <<_ACEOF
35004 /* end confdefs.h. */
35005 #include <$ac_header>
35007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35008 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35010 grep -v '^ *+' conftest.er1
>conftest.err
35012 cat conftest.err
>&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); } >/dev
/null
; then
35015 if test -s conftest.err
; then
35016 ac_cpp_err
=$ac_c_preproc_warn_flag
35023 if test -z "$ac_cpp_err"; then
35024 ac_header_preproc
=yes
35026 echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.
$ac_ext >&5
35029 ac_header_preproc
=no
35031 rm -f conftest.err conftest.
$ac_ext
35032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35033 echo "${ECHO_T}$ac_header_preproc" >&6
35035 # So? What about this header?
35036 case $ac_header_compiler:$ac_header_preproc in
35038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35044 ## ------------------------------------ ##
35045 ## Report this to bug-autoconf@gnu.org. ##
35046 ## ------------------------------------ ##
35049 sed "s/^/$as_me: WARNING: /" >&2
35052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35060 ## ------------------------------------ ##
35061 ## Report this to bug-autoconf@gnu.org. ##
35062 ## ------------------------------------ ##
35065 sed "s/^/$as_me: WARNING: /" >&2
35068 echo "$as_me:$LINENO: checking for $ac_header" >&5
35069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35071 echo $ECHO_N "(cached) $ECHO_C" >&6
35073 eval "$as_ac_Header=$ac_header_preproc"
35075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35080 cat >>confdefs.h
<<_ACEOF
35081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35088 getfsstat_includes
="\
35089 $ac_includes_default
35090 #if HAVE_SYS_PARAM_H
35091 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35093 #if HAVE_SYS_UCRED_H
35094 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35096 #if HAVE_SYS_MOUNT_H
35097 # include <sys/mount.h>
35099 #if HAVE_SYS_FS_TYPES_H
35100 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35103 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35104 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35105 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35106 echo $ECHO_N "(cached) $ECHO_C" >&6
35108 cat >conftest.
$ac_ext <<_ACEOF
35109 #line $LINENO "configure"
35112 cat confdefs.h
>>conftest.
$ac_ext
35113 cat >>conftest.
$ac_ext <<_ACEOF
35114 /* end confdefs.h. */
35115 $getfsstat_includes
35120 static struct fsstat ac_aggr;
35121 if (ac_aggr.f_fstypename)
35127 rm -f conftest.
$ac_objext
35128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35129 (eval $ac_compile) 2>&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } &&
35133 { ac_try
='test -s conftest.$ac_objext'
35134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135 (eval $ac_try) 2>&5
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); }; }; then
35139 ac_cv_member_struct_fsstat_f_fstypename
=yes
35141 echo "$as_me: failed program was:" >&5
35142 sed 's/^/| /' conftest.
$ac_ext >&5
35144 cat >conftest.
$ac_ext <<_ACEOF
35145 #line $LINENO "configure"
35148 cat confdefs.h
>>conftest.
$ac_ext
35149 cat >>conftest.
$ac_ext <<_ACEOF
35150 /* end confdefs.h. */
35151 $getfsstat_includes
35156 static struct fsstat ac_aggr;
35157 if (sizeof ac_aggr.f_fstypename)
35163 rm -f conftest.
$ac_objext
35164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35165 (eval $ac_compile) 2>&5
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
35169 { ac_try
='test -s conftest.$ac_objext'
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; }; then
35175 ac_cv_member_struct_fsstat_f_fstypename
=yes
35177 echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.
$ac_ext >&5
35180 ac_cv_member_struct_fsstat_f_fstypename
=no
35182 rm -f conftest.
$ac_objext conftest.
$ac_ext
35184 rm -f conftest.
$ac_objext conftest.
$ac_ext
35186 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35187 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35188 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35190 cat >>confdefs.h
<<_ACEOF
35191 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35198 # Determine how to get the list of mounted filesystems.
35199 ac_list_mounted_fs
=
35201 # If the getmntent function is available but not in the standard library,
35202 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35203 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35204 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35205 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35206 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35209 ac_check_lib_save_LIBS
=$LIBS
35211 cat >conftest.
$ac_ext <<_ACEOF
35212 #line $LINENO "configure"
35215 cat confdefs.h
>>conftest.
$ac_ext
35216 cat >>conftest.
$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35219 /* Override any gcc2 internal prototype to avoid an error. */
35223 /* We use char because int might match the return type of a gcc2
35224 builtin and then its argument prototype would still apply. */
35234 rm -f conftest.
$ac_objext conftest
$ac_exeext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35236 (eval $ac_link) 2>&5
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } &&
35240 { ac_try
='test -s conftest$ac_exeext'
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; }; then
35246 ac_cv_lib_sun_getmntent
=yes
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.
$ac_ext >&5
35251 ac_cv_lib_sun_getmntent
=no
35253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35254 LIBS
=$ac_check_lib_save_LIBS
35256 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35257 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35258 if test $ac_cv_lib_sun_getmntent = yes; then
35261 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35262 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35263 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35264 echo $ECHO_N "(cached) $ECHO_C" >&6
35266 ac_check_lib_save_LIBS
=$LIBS
35268 cat >conftest.
$ac_ext <<_ACEOF
35269 #line $LINENO "configure"
35272 cat confdefs.h
>>conftest.
$ac_ext
35273 cat >>conftest.
$ac_ext <<_ACEOF
35274 /* end confdefs.h. */
35276 /* Override any gcc2 internal prototype to avoid an error. */
35280 /* We use char because int might match the return type of a gcc2
35281 builtin and then its argument prototype would still apply. */
35291 rm -f conftest.
$ac_objext conftest
$ac_exeext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35293 (eval $ac_link) 2>&5
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); } &&
35297 { ac_try
='test -s conftest$ac_exeext'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; }; then
35303 ac_cv_lib_seq_getmntent
=yes
35305 echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.
$ac_ext >&5
35308 ac_cv_lib_seq_getmntent
=no
35310 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35311 LIBS
=$ac_check_lib_save_LIBS
35313 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35314 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35315 if test $ac_cv_lib_seq_getmntent = yes; then
35318 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35319 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35320 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35321 echo $ECHO_N "(cached) $ECHO_C" >&6
35323 ac_check_lib_save_LIBS
=$LIBS
35325 cat >conftest.
$ac_ext <<_ACEOF
35326 #line $LINENO "configure"
35329 cat confdefs.h
>>conftest.
$ac_ext
35330 cat >>conftest.
$ac_ext <<_ACEOF
35331 /* end confdefs.h. */
35333 /* Override any gcc2 internal prototype to avoid an error. */
35337 /* We use char because int might match the return type of a gcc2
35338 builtin and then its argument prototype would still apply. */
35348 rm -f conftest.
$ac_objext conftest
$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350 (eval $ac_link) 2>&5
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); } &&
35354 { ac_try
='test -s conftest$ac_exeext'
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; }; then
35360 ac_cv_lib_gen_getmntent
=yes
35362 echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.
$ac_ext >&5
35365 ac_cv_lib_gen_getmntent
=no
35367 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35368 LIBS
=$ac_check_lib_save_LIBS
35370 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35371 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35372 if test $ac_cv_lib_gen_getmntent = yes; then
35381 for ac_func
in getmntent
35383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35384 echo "$as_me:$LINENO: checking for $ac_func" >&5
35385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35386 if eval "test \"\${$as_ac_var+set}\" = set"; then
35387 echo $ECHO_N "(cached) $ECHO_C" >&6
35389 cat >conftest.
$ac_ext <<_ACEOF
35390 #line $LINENO "configure"
35393 cat confdefs.h
>>conftest.
$ac_ext
35394 cat >>conftest.
$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 /* System header to define __stub macros and hopefully few prototypes,
35397 which can conflict with char $ac_func (); below.
35398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35399 <limits.h> exists even on freestanding compilers. */
35401 # include <limits.h>
35403 # include <assert.h>
35405 /* Override any gcc2 internal prototype to avoid an error. */
35410 /* We use char because int might match the return type of a gcc2
35411 builtin and then its argument prototype would still apply. */
35413 /* The GNU C library defines this for functions which it implements
35414 to always fail with ENOSYS. Some functions are actually named
35415 something starting with __ and the normal name is an alias. */
35416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35419 char (*f) () = $ac_func;
35428 return f != $ac_func;
35433 rm -f conftest.
$ac_objext conftest
$ac_exeext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435 (eval $ac_link) 2>&5
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } &&
35439 { ac_try
='test -s conftest$ac_exeext'
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; }; then
35445 eval "$as_ac_var=yes"
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.
$ac_ext >&5
35450 eval "$as_ac_var=no"
35452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35456 if test `eval echo '${'$as_ac_var'}'` = yes; then
35457 cat >>confdefs.h
<<_ACEOF
35458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35466 # This test must precede the ones for getmntent because Unicos-9 is
35467 # reported to have the getmntent function, but its support is incompatible
35468 # with other getmntent implementations.
35470 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35471 # `CRAY' below since that goes against the whole autoconf philosophy. But
35472 # I think there is too great a chance that some non-Cray system has a
35473 # function named listmntent to risk the false positive.
35475 if test -z "$ac_list_mounted_fs"; then
35477 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35478 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35479 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35482 fu_cv_sys_mounted_cray_listmntent
=no
35483 cat >conftest.
$ac_ext <<_ACEOF
35484 #line $LINENO "configure"
35487 cat confdefs.h
>>conftest.
$ac_ext
35488 cat >>conftest.
$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35496 $EGREP "yes" >/dev
/null
2>&1; then
35497 test $ac_cv_func_listmntent = yes \
35498 && fu_cv_sys_mounted_cray_listmntent
=yes
35507 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35508 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35509 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35510 ac_list_mounted_fs
=found
35512 cat >>confdefs.h
<<\_ACEOF
35513 #define MOUNTED_LISTMNTENT 1
35519 if test $ac_cv_func_getmntent = yes; then
35521 # This system has the getmntent function.
35522 # Determine whether it's the one-argument variant or the two-argument one.
35524 if test -z "$ac_list_mounted_fs"; then
35525 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35526 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35527 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35528 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35531 cat >conftest.
$ac_ext <<_ACEOF
35532 #line $LINENO "configure"
35535 cat confdefs.h
>>conftest.
$ac_ext
35536 cat >>conftest.
$ac_ext <<_ACEOF
35537 /* end confdefs.h. */
35539 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35542 #include <mntent.h>
35543 #if !defined MOUNTED
35544 # if defined _PATH_MOUNTED /* GNU libc */
35545 # define MOUNTED _PATH_MOUNTED
35547 # if defined MNT_MNTTAB /* HP-UX. */
35548 # define MOUNTED MNT_MNTTAB
35550 # if defined MNTTABNAME /* Dynix. */
35551 # define MOUNTED MNTTABNAME
35558 struct mntent *mnt = 0; char *table = MOUNTED;
35563 rm -f conftest.
$ac_objext
35564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35565 (eval $ac_compile) 2>&5
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
35569 { ac_try
='test -s conftest.$ac_objext'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 fu_cv_sys_mounted_getmntent1
=yes
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.
$ac_ext >&5
35580 fu_cv_sys_mounted_getmntent1
=no
35582 rm -f conftest.
$ac_objext conftest.
$ac_ext
35585 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35586 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35587 if test $fu_cv_sys_mounted_getmntent1 = yes; then
35588 ac_list_mounted_fs
=found
35590 cat >>confdefs.h
<<\_ACEOF
35591 #define MOUNTED_GETMNTENT1 1
35597 if test -z "$ac_list_mounted_fs"; then
35599 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35600 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35601 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35602 echo $ECHO_N "(cached) $ECHO_C" >&6
35604 cat >conftest.
$ac_ext <<_ACEOF
35605 #line $LINENO "configure"
35608 cat confdefs.h
>>conftest.
$ac_ext
35609 cat >>conftest.
$ac_ext <<_ACEOF
35610 /* end confdefs.h. */
35611 #include <sys/mnttab.h>
35614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35615 $EGREP "getmntent" >/dev
/null
2>&1; then
35616 fu_cv_sys_mounted_getmntent2
=yes
35618 fu_cv_sys_mounted_getmntent2
=no
35624 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35625 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35626 if test $fu_cv_sys_mounted_getmntent2 = yes; then
35627 ac_list_mounted_fs
=found
35629 cat >>confdefs.h
<<\_ACEOF
35630 #define MOUNTED_GETMNTENT2 1
35638 if test -z "$ac_list_mounted_fs"; then
35639 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35640 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35642 echo "$as_me:$LINENO: checking for getfsstat function" >&5
35643 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35644 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35645 echo $ECHO_N "(cached) $ECHO_C" >&6
35647 cat >conftest.
$ac_ext <<_ACEOF
35648 #line $LINENO "configure"
35651 cat confdefs.h
>>conftest.
$ac_ext
35652 cat >>conftest.
$ac_ext <<_ACEOF
35653 /* end confdefs.h. */
35655 #include <sys/types.h>
35656 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35657 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35659 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35661 $getfsstat_includes
35666 struct statfs *stats;
35667 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35668 char *t = FS_TYPE (*stats);
35673 rm -f conftest.
$ac_objext conftest
$ac_exeext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35675 (eval $ac_link) 2>&5
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } &&
35679 { ac_try
='test -s conftest$ac_exeext'
35680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681 (eval $ac_try) 2>&5
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); }; }; then
35685 fu_cv_sys_mounted_getfsstat
=yes
35687 echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.
$ac_ext >&5
35690 fu_cv_sys_mounted_getfsstat
=no
35692 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35695 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35696 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35697 if test $fu_cv_sys_mounted_getfsstat = yes; then
35698 ac_list_mounted_fs
=found
35700 cat >>confdefs.h
<<\_ACEOF
35701 #define MOUNTED_GETFSSTAT 1
35707 if test -z "$ac_list_mounted_fs"; then
35709 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35710 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35711 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35712 echo $ECHO_N "(cached) $ECHO_C" >&6
35714 cat >conftest.
$ac_ext <<_ACEOF
35715 #line $LINENO "configure"
35718 cat confdefs.h
>>conftest.
$ac_ext
35719 cat >>conftest.
$ac_ext <<_ACEOF
35720 /* end confdefs.h. */
35721 #include <fshelp.h>
35723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35726 grep -v '^ *+' conftest.er1
>conftest.err
35728 cat conftest.err
>&5
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } >/dev
/null
; then
35731 if test -s conftest.err
; then
35732 ac_cpp_err
=$ac_c_preproc_warn_flag
35739 if test -z "$ac_cpp_err"; then
35740 fu_cv_sys_mounted_vmount
=yes
35742 echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.
$ac_ext >&5
35745 fu_cv_sys_mounted_vmount
=no
35747 rm -f conftest.err conftest.
$ac_ext
35750 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35751 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35752 if test $fu_cv_sys_mounted_vmount = yes; then
35753 ac_list_mounted_fs
=found
35755 cat >>confdefs.h
<<\_ACEOF
35756 #define MOUNTED_VMOUNT 1
35762 if test -z "$ac_list_mounted_fs"; then
35764 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35765 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35766 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35767 echo $ECHO_N "(cached) $ECHO_C" >&6
35769 cat >conftest.
$ac_ext <<_ACEOF
35770 #line $LINENO "configure"
35773 cat confdefs.h
>>conftest.
$ac_ext
35774 cat >>conftest.
$ac_ext <<_ACEOF
35775 /* end confdefs.h. */
35777 #include <sys/statfs.h>
35778 #include <sys/fstyp.h>
35779 #include <mnttab.h>
35781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35784 grep -v '^ *+' conftest.er1
>conftest.err
35786 cat conftest.err
>&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } >/dev
/null
; then
35789 if test -s conftest.err
; then
35790 ac_cpp_err
=$ac_c_preproc_warn_flag
35797 if test -z "$ac_cpp_err"; then
35798 fu_cv_sys_mounted_fread_fstyp
=yes
35800 echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.
$ac_ext >&5
35803 fu_cv_sys_mounted_fread_fstyp
=no
35805 rm -f conftest.err conftest.
$ac_ext
35808 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35809 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35810 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35811 ac_list_mounted_fs
=found
35813 cat >>confdefs.h
<<\_ACEOF
35814 #define MOUNTED_FREAD_FSTYP 1
35820 if test -z "$ac_list_mounted_fs"; then
35821 # 4.4BSD and DEC OSF/1.
35822 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35823 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35824 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35825 echo $ECHO_N "(cached) $ECHO_C" >&6
35828 test "$ac_cv_func_getmntinfo" = yes \
35829 && fu_cv_sys_mounted_getmntinfo
=yes \
35830 || fu_cv_sys_mounted_getmntinfo
=no
35834 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35835 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35836 if test $fu_cv_sys_mounted_getmntinfo = yes; then
35837 ac_list_mounted_fs
=found
35839 cat >>confdefs.h
<<\_ACEOF
35840 #define MOUNTED_GETMNTINFO 1
35846 if test -z "$ac_list_mounted_fs"; then
35848 echo "$as_me:$LINENO: checking for getmnt function" >&5
35849 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35850 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35851 echo $ECHO_N "(cached) $ECHO_C" >&6
35853 cat >conftest.
$ac_ext <<_ACEOF
35854 #line $LINENO "configure"
35857 cat confdefs.h
>>conftest.
$ac_ext
35858 cat >>conftest.
$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35861 #include <sys/fs_types.h>
35862 #include <sys/mount.h>
35864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35867 grep -v '^ *+' conftest.er1
>conftest.err
35869 cat conftest.err
>&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } >/dev
/null
; then
35872 if test -s conftest.err
; then
35873 ac_cpp_err
=$ac_c_preproc_warn_flag
35880 if test -z "$ac_cpp_err"; then
35881 fu_cv_sys_mounted_getmnt
=yes
35883 echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.
$ac_ext >&5
35886 fu_cv_sys_mounted_getmnt
=no
35888 rm -f conftest.err conftest.
$ac_ext
35891 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35892 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
35893 if test $fu_cv_sys_mounted_getmnt = yes; then
35894 ac_list_mounted_fs
=found
35896 cat >>confdefs.h
<<\_ACEOF
35897 #define MOUNTED_GETMNT 1
35903 if test -z "$ac_list_mounted_fs"; then
35907 for ac_func
in next_dev fs_stat_dev
35909 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35910 echo "$as_me:$LINENO: checking for $ac_func" >&5
35911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35912 if eval "test \"\${$as_ac_var+set}\" = set"; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35915 cat >conftest.
$ac_ext <<_ACEOF
35916 #line $LINENO "configure"
35919 cat confdefs.h
>>conftest.
$ac_ext
35920 cat >>conftest.
$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35922 /* System header to define __stub macros and hopefully few prototypes,
35923 which can conflict with char $ac_func (); below.
35924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35925 <limits.h> exists even on freestanding compilers. */
35927 # include <limits.h>
35929 # include <assert.h>
35931 /* Override any gcc2 internal prototype to avoid an error. */
35936 /* We use char because int might match the return type of a gcc2
35937 builtin and then its argument prototype would still apply. */
35939 /* The GNU C library defines this for functions which it implements
35940 to always fail with ENOSYS. Some functions are actually named
35941 something starting with __ and the normal name is an alias. */
35942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35945 char (*f) () = $ac_func;
35954 return f != $ac_func;
35959 rm -f conftest.
$ac_objext conftest
$ac_exeext
35960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35961 (eval $ac_link) 2>&5
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); } &&
35965 { ac_try
='test -s conftest$ac_exeext'
35966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967 (eval $ac_try) 2>&5
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); }; }; then
35971 eval "$as_ac_var=yes"
35973 echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.
$ac_ext >&5
35976 eval "$as_ac_var=no"
35978 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35982 if test `eval echo '${'$as_ac_var'}'` = yes; then
35983 cat >>confdefs.h
<<_ACEOF
35984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35991 for ac_header
in fs_info.h
35993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35995 echo "$as_me:$LINENO: checking for $ac_header" >&5
35996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35998 echo $ECHO_N "(cached) $ECHO_C" >&6
36000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36003 # Is the header compilable?
36004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36006 cat >conftest.
$ac_ext <<_ACEOF
36007 #line $LINENO "configure"
36010 cat confdefs.h
>>conftest.
$ac_ext
36011 cat >>conftest.
$ac_ext <<_ACEOF
36012 /* end confdefs.h. */
36013 $ac_includes_default
36014 #include <$ac_header>
36016 rm -f conftest.
$ac_objext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36018 (eval $ac_compile) 2>&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } &&
36022 { ac_try
='test -s conftest.$ac_objext'
36023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024 (eval $ac_try) 2>&5
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); }; }; then
36028 ac_header_compiler
=yes
36030 echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.
$ac_ext >&5
36033 ac_header_compiler
=no
36035 rm -f conftest.
$ac_objext conftest.
$ac_ext
36036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36037 echo "${ECHO_T}$ac_header_compiler" >&6
36039 # Is the header present?
36040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36042 cat >conftest.
$ac_ext <<_ACEOF
36043 #line $LINENO "configure"
36046 cat confdefs.h
>>conftest.
$ac_ext
36047 cat >>conftest.
$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36049 #include <$ac_header>
36051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36054 grep -v '^ *+' conftest.er1
>conftest.err
36056 cat conftest.err
>&5
36057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058 (exit $ac_status); } >/dev
/null
; then
36059 if test -s conftest.err
; then
36060 ac_cpp_err
=$ac_c_preproc_warn_flag
36067 if test -z "$ac_cpp_err"; then
36068 ac_header_preproc
=yes
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.
$ac_ext >&5
36073 ac_header_preproc
=no
36075 rm -f conftest.err conftest.
$ac_ext
36076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36077 echo "${ECHO_T}$ac_header_preproc" >&6
36079 # So? What about this header?
36080 case $ac_header_compiler:$ac_header_preproc in
36082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36088 ## ------------------------------------ ##
36089 ## Report this to bug-autoconf@gnu.org. ##
36090 ## ------------------------------------ ##
36093 sed "s/^/$as_me: WARNING: /" >&2
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36104 ## ------------------------------------ ##
36105 ## Report this to bug-autoconf@gnu.org. ##
36106 ## ------------------------------------ ##
36109 sed "s/^/$as_me: WARNING: /" >&2
36112 echo "$as_me:$LINENO: checking for $ac_header" >&5
36113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36115 echo $ECHO_N "(cached) $ECHO_C" >&6
36117 eval "$as_ac_Header=$ac_header_preproc"
36119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36124 cat >>confdefs.h
<<_ACEOF
36125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36132 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36133 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36134 if test $ac_cv_header_fs_info_h = yes \
36135 && test $ac_cv_func_next_dev = yes \
36136 && test $ac_cv_func_fs_stat_dev = yes; then
36141 echo "$as_me:$LINENO: result: $fu_result" >&5
36142 echo "${ECHO_T}$fu_result" >&6
36143 if test $fu_result = yes; then
36144 ac_list_mounted_fs
=found
36146 cat >>confdefs.h
<<\_ACEOF
36147 #define MOUNTED_FS_STAT_DEV 1
36153 if test -z "$ac_list_mounted_fs"; then
36155 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36156 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36157 if test "${fu_cv_sys_mounted_fread+set}" = set; then
36158 echo $ECHO_N "(cached) $ECHO_C" >&6
36160 cat >conftest.
$ac_ext <<_ACEOF
36161 #line $LINENO "configure"
36164 cat confdefs.h
>>conftest.
$ac_ext
36165 cat >>conftest.
$ac_ext <<_ACEOF
36166 /* end confdefs.h. */
36167 #include <mnttab.h>
36169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36172 grep -v '^ *+' conftest.er1
>conftest.err
36174 cat conftest.err
>&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } >/dev
/null
; then
36177 if test -s conftest.err
; then
36178 ac_cpp_err
=$ac_c_preproc_warn_flag
36185 if test -z "$ac_cpp_err"; then
36186 fu_cv_sys_mounted_fread
=yes
36188 echo "$as_me: failed program was:" >&5
36189 sed 's/^/| /' conftest.
$ac_ext >&5
36191 fu_cv_sys_mounted_fread
=no
36193 rm -f conftest.err conftest.
$ac_ext
36196 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36197 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36198 if test $fu_cv_sys_mounted_fread = yes; then
36199 ac_list_mounted_fs
=found
36201 cat >>confdefs.h
<<\_ACEOF
36202 #define MOUNTED_FREAD 1
36208 if test -z "$ac_list_mounted_fs"; then
36209 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36210 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36211 { (exit 1); exit 1; }; }
36212 # FIXME -- no need to abort building the whole package
36213 # Can't build mountlist.c or anything that needs its functions
36216 if test $ac_list_mounted_fs = found
; then
36217 list_mounted_fs
=yes
36225 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36226 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36227 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36231 cat >conftest.
$ac_ext <<_ACEOF
36232 #line $LINENO "configure"
36235 cat confdefs.h
>>conftest.
$ac_ext
36236 cat >>conftest.
$ac_ext <<_ACEOF
36237 /* end confdefs.h. */
36239 #include <sys/param.h>
36240 #include <sys/types.h>
36241 #include <sys/mount.h>
36246 struct statfs s; int i = sizeof s.f_fstypename;
36251 rm -f conftest.
$ac_objext
36252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36253 (eval $ac_compile) 2>&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } &&
36257 { ac_try
='test -s conftest.$ac_objext'
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; }; then
36263 fu_cv_sys_f_fstypename_in_statfs
=yes
36265 echo "$as_me: failed program was:" >&5
36266 sed 's/^/| /' conftest.
$ac_ext >&5
36268 fu_cv_sys_f_fstypename_in_statfs
=no
36271 rm -f conftest.
$ac_objext conftest.
$ac_ext
36275 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36276 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36278 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36280 cat >>confdefs.h
<<\_ACEOF
36281 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36289 echo "checking how to get filesystem space usage..."
36290 ac_fsusage_space
=no
36292 # Perform only the link test since it seems there are no variants of the
36293 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
36294 # because that got a false positive on SCO OSR5. Adding the declaration
36295 # of a `struct statvfs' causes this test to fail (as it should) on such
36296 # systems. That system is reported to work fine with STAT_STATFS4 which
36297 # is what it gets when this test fails.
36298 if test $ac_fsusage_space = no
; then
36300 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36301 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36302 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36303 echo $ECHO_N "(cached) $ECHO_C" >&6
36305 cat >conftest.
$ac_ext <<_ACEOF
36306 #line $LINENO "configure"
36309 cat confdefs.h
>>conftest.
$ac_ext
36310 cat >>conftest.
$ac_ext <<_ACEOF
36311 /* end confdefs.h. */
36312 #include <sys/types.h>
36313 #include <sys/statvfs.h>
36317 struct statvfs fsd; statvfs (0, &fsd);
36322 rm -f conftest.
$ac_objext conftest
$ac_exeext
36323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36324 (eval $ac_link) 2>&5
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } &&
36328 { ac_try
='test -s conftest$ac_exeext'
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; }; then
36334 fu_cv_sys_stat_statvfs
=yes
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.
$ac_ext >&5
36339 fu_cv_sys_stat_statvfs
=no
36341 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36343 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36344 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36345 if test $fu_cv_sys_stat_statvfs = yes; then
36346 ac_fsusage_space
=yes
36348 cat >>confdefs.h
<<\_ACEOF
36349 #define STAT_STATVFS 1
36355 if test $ac_fsusage_space = no
; then
36356 # DEC Alpha running OSF/1
36357 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36358 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36359 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36360 echo $ECHO_N "(cached) $ECHO_C" >&6
36362 if test "$cross_compiling" = yes; then
36363 fu_cv_sys_stat_statfs3_osf1
=no
36365 cat >conftest.
$ac_ext <<_ACEOF
36366 #line $LINENO "configure"
36369 cat confdefs.h
>>conftest.
$ac_ext
36370 cat >>conftest.
$ac_ext <<_ACEOF
36371 /* end confdefs.h. */
36373 #include <sys/param.h>
36374 #include <sys/types.h>
36375 #include <sys/mount.h>
36380 exit (statfs (".", &fsd, sizeof (struct statfs)));
36383 rm -f conftest
$ac_exeext
36384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36385 (eval $ac_link) 2>&5
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 fu_cv_sys_stat_statfs3_osf1
=yes
36396 echo "$as_me: program exited with status $ac_status" >&5
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.
$ac_ext >&5
36400 ( exit $ac_status )
36401 fu_cv_sys_stat_statfs3_osf1
=no
36403 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36407 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36408 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36409 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36410 ac_fsusage_space
=yes
36412 cat >>confdefs.h
<<\_ACEOF
36413 #define STAT_STATFS3_OSF1 1
36419 if test $ac_fsusage_space = no
; then
36421 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36422 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36423 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36424 echo $ECHO_N "(cached) $ECHO_C" >&6
36426 if test "$cross_compiling" = yes; then
36427 fu_cv_sys_stat_statfs2_bsize
=no
36429 cat >conftest.
$ac_ext <<_ACEOF
36430 #line $LINENO "configure"
36433 cat confdefs.h
>>conftest.
$ac_ext
36434 cat >>conftest.
$ac_ext <<_ACEOF
36435 /* end confdefs.h. */
36437 #ifdef HAVE_SYS_PARAM_H
36438 #include <sys/param.h>
36440 #ifdef HAVE_SYS_MOUNT_H
36441 #include <sys/mount.h>
36443 #ifdef HAVE_SYS_VFS_H
36444 #include <sys/vfs.h>
36450 exit (statfs (".", &fsd));
36453 rm -f conftest
$ac_exeext
36454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36455 (eval $ac_link) 2>&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460 (eval $ac_try) 2>&5
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); }; }; then
36464 fu_cv_sys_stat_statfs2_bsize
=yes
36466 echo "$as_me: program exited with status $ac_status" >&5
36467 echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.
$ac_ext >&5
36470 ( exit $ac_status )
36471 fu_cv_sys_stat_statfs2_bsize
=no
36473 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36477 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36478 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36479 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36480 ac_fsusage_space
=yes
36482 cat >>confdefs.h
<<\_ACEOF
36483 #define STAT_STATFS2_BSIZE 1
36489 if test $ac_fsusage_space = no
; then
36491 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36492 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36493 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36494 echo $ECHO_N "(cached) $ECHO_C" >&6
36496 if test "$cross_compiling" = yes; then
36497 fu_cv_sys_stat_statfs4
=no
36499 cat >conftest.
$ac_ext <<_ACEOF
36500 #line $LINENO "configure"
36503 cat confdefs.h
>>conftest.
$ac_ext
36504 cat >>conftest.
$ac_ext <<_ACEOF
36505 /* end confdefs.h. */
36506 #include <sys/types.h>
36507 #include <sys/statfs.h>
36511 exit (statfs (".", &fsd, sizeof fsd, 0));
36514 rm -f conftest
$ac_exeext
36515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36516 (eval $ac_link) 2>&5
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; }; then
36525 fu_cv_sys_stat_statfs4
=yes
36527 echo "$as_me: program exited with status $ac_status" >&5
36528 echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.
$ac_ext >&5
36531 ( exit $ac_status )
36532 fu_cv_sys_stat_statfs4
=no
36534 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36538 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36539 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36540 if test $fu_cv_sys_stat_statfs4 = yes; then
36541 ac_fsusage_space
=yes
36543 cat >>confdefs.h
<<\_ACEOF
36544 #define STAT_STATFS4 1
36550 if test $ac_fsusage_space = no
; then
36551 # 4.4BSD and NetBSD
36552 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36553 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36554 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36557 if test "$cross_compiling" = yes; then
36558 fu_cv_sys_stat_statfs2_fsize
=no
36560 cat >conftest.
$ac_ext <<_ACEOF
36561 #line $LINENO "configure"
36564 cat confdefs.h
>>conftest.
$ac_ext
36565 cat >>conftest.
$ac_ext <<_ACEOF
36566 /* end confdefs.h. */
36567 #include <sys/types.h>
36568 #ifdef HAVE_SYS_PARAM_H
36569 #include <sys/param.h>
36571 #ifdef HAVE_SYS_MOUNT_H
36572 #include <sys/mount.h>
36578 exit (statfs (".", &fsd));
36581 rm -f conftest
$ac_exeext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36583 (eval $ac_link) 2>&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; }; then
36592 fu_cv_sys_stat_statfs2_fsize
=yes
36594 echo "$as_me: program exited with status $ac_status" >&5
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.
$ac_ext >&5
36598 ( exit $ac_status )
36599 fu_cv_sys_stat_statfs2_fsize
=no
36601 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36605 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36606 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36607 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36608 ac_fsusage_space
=yes
36610 cat >>confdefs.h
<<\_ACEOF
36611 #define STAT_STATFS2_FSIZE 1
36617 if test $ac_fsusage_space = no
; then
36619 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36620 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36621 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 if test "$cross_compiling" = yes; then
36625 fu_cv_sys_stat_fs_data
=no
36627 cat >conftest.
$ac_ext <<_ACEOF
36628 #line $LINENO "configure"
36631 cat confdefs.h
>>conftest.
$ac_ext
36632 cat >>conftest.
$ac_ext <<_ACEOF
36633 /* end confdefs.h. */
36634 #include <sys/types.h>
36635 #ifdef HAVE_SYS_PARAM_H
36636 #include <sys/param.h>
36638 #ifdef HAVE_SYS_MOUNT_H
36639 #include <sys/mount.h>
36641 #ifdef HAVE_SYS_FS_TYPES_H
36642 #include <sys/fs_types.h>
36646 struct fs_data fsd;
36647 /* Ultrix's statfs returns 1 for success,
36648 0 for not mounted, -1 for failure. */
36649 exit (statfs (".", &fsd) != 1);
36652 rm -f conftest
$ac_exeext
36653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36654 (eval $ac_link) 2>&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; }; then
36663 fu_cv_sys_stat_fs_data
=yes
36665 echo "$as_me: program exited with status $ac_status" >&5
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.
$ac_ext >&5
36669 ( exit $ac_status )
36670 fu_cv_sys_stat_fs_data
=no
36672 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
36676 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36677 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36678 if test $fu_cv_sys_stat_fs_data = yes; then
36679 ac_fsusage_space
=yes
36681 cat >>confdefs.h
<<\_ACEOF
36682 #define STAT_STATFS2_FS_DATA 1
36688 if test $ac_fsusage_space = no
; then
36690 cat >conftest.
$ac_ext <<_ACEOF
36691 #line $LINENO "configure"
36694 cat confdefs.h
>>conftest.
$ac_ext
36695 cat >>conftest.
$ac_ext <<_ACEOF
36696 /* end confdefs.h. */
36697 #include <sys/filsys.h>
36700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36703 grep -v '^ *+' conftest.er1
>conftest.err
36705 cat conftest.err
>&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } >/dev
/null
; then
36708 if test -s conftest.err
; then
36709 ac_cpp_err
=$ac_c_preproc_warn_flag
36716 if test -z "$ac_cpp_err"; then
36718 cat >>confdefs.h
<<\_ACEOF
36719 #define STAT_READ_FILSYS 1
36722 ac_fsusage_space
=yes
36724 echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.
$ac_ext >&5
36729 rm -f conftest.err conftest.
$ac_ext
36732 if test $ac_fsusage_space = yes; then
36740 if test $list_mounted_fs = yes && test $space = yes; then
36742 LIBOBJS
="$LIBOBJS fsusage.$ac_objext"
36743 LIBOBJS
="$LIBOBJS mountlist.$ac_objext"
36750 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
36751 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
36752 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
36753 echo $ECHO_N "(cached) $ECHO_C" >&6
36755 cat >conftest.
$ac_ext <<_ACEOF
36756 #line $LINENO "configure"
36759 cat confdefs.h
>>conftest.
$ac_ext
36760 cat >>conftest.
$ac_ext <<_ACEOF
36761 /* end confdefs.h. */
36762 #include <sys/types.h>
36763 #include <termios.h>
36769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36770 $EGREP "yes" >/dev
/null
2>&1; then
36771 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
36773 ac_cv_sys_tiocgwinsz_in_termios_h
=no
36778 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
36779 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
36781 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
36782 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
36783 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
36784 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
36785 echo $ECHO_N "(cached) $ECHO_C" >&6
36787 cat >conftest.
$ac_ext <<_ACEOF
36788 #line $LINENO "configure"
36791 cat confdefs.h
>>conftest.
$ac_ext
36792 cat >>conftest.
$ac_ext <<_ACEOF
36793 /* end confdefs.h. */
36794 #include <sys/types.h>
36795 #include <sys/ioctl.h>
36801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36802 $EGREP "yes" >/dev
/null
2>&1; then
36803 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
36805 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
36810 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
36811 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
36813 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
36815 cat >>confdefs.h
<<\_ACEOF
36816 #define GWINSZ_IN_SYS_IOCTL 1
36822 echo "$as_me:$LINENO: checking POSIX termios" >&5
36823 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36824 if test "${ac_cv_sys_posix_termios+set}" = set; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36827 cat >conftest.
$ac_ext <<_ACEOF
36828 #line $LINENO "configure"
36831 cat confdefs.h
>>conftest.
$ac_ext
36832 cat >>conftest.
$ac_ext <<_ACEOF
36833 /* end confdefs.h. */
36834 #include <sys/types.h>
36835 #include <unistd.h>
36836 #include <termios.h>
36841 /* SunOS 4.0.3 has termios.h but not the library calls. */
36847 rm -f conftest.
$ac_objext conftest
$ac_exeext
36848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36849 (eval $ac_link) 2>&5
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); } &&
36853 { ac_try
='test -s conftest$ac_exeext'
36854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36855 (eval $ac_try) 2>&5
36857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858 (exit $ac_status); }; }; then
36859 ac_cv_sys_posix_termios
=yes
36861 echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.
$ac_ext >&5
36864 ac_cv_sys_posix_termios
=no
36866 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36868 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36869 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36872 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36873 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36874 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36875 echo $ECHO_N "(cached) $ECHO_C" >&6
36877 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
36878 if test $ac_cv_sys_posix_termios = yes; then
36879 cat >conftest.
$ac_ext <<_ACEOF
36880 #line $LINENO "configure"
36883 cat confdefs.h
>>conftest.
$ac_ext
36884 cat >>conftest.
$ac_ext <<_ACEOF
36885 /* end confdefs.h. */
36886 #include <termios.h>
36891 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36896 rm -f conftest.
$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898 (eval $ac_compile) 2>&5
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); } &&
36902 { ac_try
='test -s conftest.$ac_objext'
36903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36904 (eval $ac_try) 2>&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); }; }; then
36910 echo "$as_me: failed program was:" >&5
36911 sed 's/^/| /' conftest.
$ac_ext >&5
36914 rm -f conftest.
$ac_objext conftest.
$ac_ext
36916 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36917 cat >conftest.
$ac_ext <<_ACEOF
36918 #line $LINENO "configure"
36921 cat confdefs.h
>>conftest.
$ac_ext
36922 cat >>conftest.
$ac_ext <<_ACEOF
36923 /* end confdefs.h. */
36924 #include <sys/ptem.h>
36933 rm -f conftest.
$ac_objext
36934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36935 (eval $ac_compile) 2>&5
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } &&
36939 { ac_try
='test -s conftest.$ac_objext'
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; }; then
36947 echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.
$ac_ext >&5
36950 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
36952 rm -f conftest.
$ac_objext conftest.
$ac_ext
36955 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36956 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36957 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36959 cat >>confdefs.h
<<\_ACEOF
36960 #define WINSIZE_IN_PTEM 1
36965 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
36966 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
36967 # enable the work-around code in fsusage.c.
36968 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
36969 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
36970 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
36971 echo $ECHO_N "(cached) $ECHO_C" >&6
36973 cat >conftest.
$ac_ext <<_ACEOF
36974 #line $LINENO "configure"
36977 cat confdefs.h
>>conftest.
$ac_ext
36978 cat >>conftest.
$ac_ext <<_ACEOF
36979 /* end confdefs.h. */
36981 #if !defined(sun) && !defined(__sun)
36982 choke -- this is a workaround for a Sun-specific problem
36984 #include <sys/types.h>
36985 #include <sys/vfs.h>
36989 struct statfs t; long c = *(t.f_spare);
36994 rm -f conftest.
$ac_objext
36995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36996 (eval $ac_compile) 2>&5
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); } &&
37000 { ac_try
='test -s conftest.$ac_objext'
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; }; then
37006 fu_cv_sys_truncating_statfs
=yes
37008 echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.
$ac_ext >&5
37011 fu_cv_sys_truncating_statfs
=no
37013 rm -f conftest.
$ac_objext conftest.
$ac_ext
37016 if test $fu_cv_sys_truncating_statfs = yes; then
37018 cat >>confdefs.h
<<\_ACEOF
37019 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37023 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37024 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37026 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37027 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37028 if test "${utils_cv_localtime_cache+set}" = set; then
37029 echo $ECHO_N "(cached) $ECHO_C" >&6
37031 if test x
$ac_cv_func_tzset = xyes
; then
37032 if test "$cross_compiling" = yes; then
37033 # If we have tzset, assume the worst when cross-compiling.
37034 utils_cv_localtime_cache
=yes
37036 cat >conftest.
$ac_ext <<_ACEOF
37037 #line $LINENO "configure"
37040 cat confdefs.h
>>conftest.
$ac_ext
37041 cat >>conftest.
$ac_ext <<_ACEOF
37042 /* end confdefs.h. */
37045 # include <stdlib.h>
37047 extern char **environ;
37051 for (to = from = environ; (*to = *from); from++)
37052 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37057 time_t now = time ((time_t *) 0);
37058 int hour_GMT0, hour_unset;
37059 if (putenv ("TZ=GMT0") != 0)
37061 hour_GMT0 = localtime (&now)->tm_hour;
37063 hour_unset = localtime (&now)->tm_hour;
37064 if (putenv ("TZ=PST8") != 0)
37066 if (localtime (&now)->tm_hour == hour_GMT0)
37069 if (localtime (&now)->tm_hour != hour_unset)
37074 rm -f conftest
$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076 (eval $ac_link) 2>&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
37080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081 (eval $ac_try) 2>&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; }; then
37085 utils_cv_localtime_cache
=no
37087 echo "$as_me: program exited with status $ac_status" >&5
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.
$ac_ext >&5
37091 ( exit $ac_status )
37092 utils_cv_localtime_cache
=yes
37094 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
37097 # If we lack tzset, report that localtime does not cache TZ,
37098 # since we can't invalidate the cache if we don't have tzset.
37099 utils_cv_localtime_cache
=no
37102 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37103 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37104 if test $utils_cv_localtime_cache = yes; then
37106 cat >>confdefs.h
<<\_ACEOF
37107 #define LOCALTIME_CACHE 1
37112 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37114 for ac_func
in initgroups
37116 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37117 echo "$as_me:$LINENO: checking for $ac_func" >&5
37118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37119 if eval "test \"\${$as_ac_var+set}\" = set"; then
37120 echo $ECHO_N "(cached) $ECHO_C" >&6
37122 cat >conftest.
$ac_ext <<_ACEOF
37123 #line $LINENO "configure"
37126 cat confdefs.h
>>conftest.
$ac_ext
37127 cat >>conftest.
$ac_ext <<_ACEOF
37128 /* end confdefs.h. */
37129 /* System header to define __stub macros and hopefully few prototypes,
37130 which can conflict with char $ac_func (); below.
37131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37132 <limits.h> exists even on freestanding compilers. */
37134 # include <limits.h>
37136 # include <assert.h>
37138 /* Override any gcc2 internal prototype to avoid an error. */
37143 /* We use char because int might match the return type of a gcc2
37144 builtin and then its argument prototype would still apply. */
37146 /* The GNU C library defines this for functions which it implements
37147 to always fail with ENOSYS. Some functions are actually named
37148 something starting with __ and the normal name is an alias. */
37149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37152 char (*f) () = $ac_func;
37161 return f != $ac_func;
37166 rm -f conftest.
$ac_objext conftest
$ac_exeext
37167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37168 (eval $ac_link) 2>&5
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); } &&
37172 { ac_try
='test -s conftest$ac_exeext'
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 eval "$as_ac_var=yes"
37180 echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.
$ac_ext >&5
37183 eval "$as_ac_var=no"
37185 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37189 if test `eval echo '${'$as_ac_var'}'` = yes; then
37190 cat >>confdefs.h
<<_ACEOF
37191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37197 if test $ac_cv_func_initgroups = no
; then
37199 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37200 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37201 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37202 echo $ECHO_N "(cached) $ECHO_C" >&6
37204 ac_check_lib_save_LIBS
=$LIBS
37206 cat >conftest.
$ac_ext <<_ACEOF
37207 #line $LINENO "configure"
37210 cat confdefs.h
>>conftest.
$ac_ext
37211 cat >>conftest.
$ac_ext <<_ACEOF
37212 /* end confdefs.h. */
37214 /* Override any gcc2 internal prototype to avoid an error. */
37218 /* We use char because int might match the return type of a gcc2
37219 builtin and then its argument prototype would still apply. */
37220 char initgroups ();
37229 rm -f conftest.
$ac_objext conftest
$ac_exeext
37230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37231 (eval $ac_link) 2>&5
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
37235 { ac_try
='test -s conftest$ac_exeext'
37236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237 (eval $ac_try) 2>&5
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); }; }; then
37241 ac_cv_lib_os_initgroups
=yes
37243 echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.
$ac_ext >&5
37246 ac_cv_lib_os_initgroups
=no
37248 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37249 LIBS
=$ac_check_lib_save_LIBS
37251 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37252 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37253 if test $ac_cv_lib_os_initgroups = yes; then
37254 cat >>confdefs.h
<<_ACEOF
37255 #define HAVE_LIBOS 1
37265 for ac_func
in syslog
37267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37268 echo "$as_me:$LINENO: checking for $ac_func" >&5
37269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37270 if eval "test \"\${$as_ac_var+set}\" = set"; then
37271 echo $ECHO_N "(cached) $ECHO_C" >&6
37273 cat >conftest.
$ac_ext <<_ACEOF
37274 #line $LINENO "configure"
37277 cat confdefs.h
>>conftest.
$ac_ext
37278 cat >>conftest.
$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 /* System header to define __stub macros and hopefully few prototypes,
37281 which can conflict with char $ac_func (); below.
37282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37283 <limits.h> exists even on freestanding compilers. */
37285 # include <limits.h>
37287 # include <assert.h>
37289 /* Override any gcc2 internal prototype to avoid an error. */
37294 /* We use char because int might match the return type of a gcc2
37295 builtin and then its argument prototype would still apply. */
37297 /* The GNU C library defines this for functions which it implements
37298 to always fail with ENOSYS. Some functions are actually named
37299 something starting with __ and the normal name is an alias. */
37300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37303 char (*f) () = $ac_func;
37312 return f != $ac_func;
37317 rm -f conftest.
$ac_objext conftest
$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319 (eval $ac_link) 2>&5
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); } &&
37323 { ac_try
='test -s conftest$ac_exeext'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 eval "$as_ac_var=yes"
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.
$ac_ext >&5
37334 eval "$as_ac_var=no"
37336 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37340 if test `eval echo '${'$as_ac_var'}'` = yes; then
37341 cat >>confdefs.h
<<_ACEOF
37342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37348 if test $ac_cv_func_syslog = no
; then
37349 # syslog is not in the default libraries. See if it's in some other.
37350 for lib
in bsd socket inet
; do
37351 as_ac_Lib
=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37352 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37353 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37354 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37355 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 ac_check_lib_save_LIBS
=$LIBS
37358 LIBS
="-l$lib $LIBS"
37359 cat >conftest.
$ac_ext <<_ACEOF
37360 #line $LINENO "configure"
37363 cat confdefs.h
>>conftest.
$ac_ext
37364 cat >>conftest.
$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37367 /* Override any gcc2 internal prototype to avoid an error. */
37371 /* We use char because int might match the return type of a gcc2
37372 builtin and then its argument prototype would still apply. */
37382 rm -f conftest.
$ac_objext conftest
$ac_exeext
37383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37384 (eval $ac_link) 2>&5
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); } &&
37388 { ac_try
='test -s conftest$ac_exeext'
37389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390 (eval $ac_try) 2>&5
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); }; }; then
37394 eval "$as_ac_Lib=yes"
37396 echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.
$ac_ext >&5
37399 eval "$as_ac_Lib=no"
37401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37402 LIBS
=$ac_check_lib_save_LIBS
37404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37405 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37406 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37408 cat >>confdefs.h
<<\_ACEOF
37409 #define HAVE_SYSLOG 1
37412 LIBS
="$LIBS -l$lib"; break
37418 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37419 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37420 if test "${utils_cv_func_setpriority+set}" = set; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 cat >conftest.
$ac_ext <<_ACEOF
37424 #line $LINENO "configure"
37427 cat confdefs.h
>>conftest.
$ac_ext
37428 cat >>conftest.
$ac_ext <<_ACEOF
37429 /* end confdefs.h. */
37430 #include <sys/time.h>
37431 #include <sys/resource.h>
37435 setpriority(0, 0, 0);
37440 rm -f conftest.
$ac_objext conftest
$ac_exeext
37441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37442 (eval $ac_link) 2>&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); } &&
37446 { ac_try
='test -s conftest$ac_exeext'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; }; then
37452 utils_cv_func_setpriority
=yes
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.
$ac_ext >&5
37457 utils_cv_func_setpriority
=no
37459 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37462 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37463 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37464 if test $utils_cv_func_setpriority = yes; then
37465 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
37466 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
37467 MAN
="$MAN nice.1 nohup.1"
37469 echo "$as_me:$LINENO: checking for nice function" >&5
37470 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37471 if test "${utils_cv_func_nice+set}" = set; then
37472 echo $ECHO_N "(cached) $ECHO_C" >&6
37474 cat >conftest.
$ac_ext <<_ACEOF
37475 #line $LINENO "configure"
37478 cat confdefs.h
>>conftest.
$ac_ext
37479 cat >>conftest.
$ac_ext <<_ACEOF
37480 /* end confdefs.h. */
37490 rm -f conftest.
$ac_objext conftest
$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492 (eval $ac_link) 2>&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); } &&
37496 { ac_try
='test -s conftest$ac_exeext'
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; }; then
37502 utils_cv_func_nice
=yes
37504 echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.
$ac_ext >&5
37507 utils_cv_func_nice
=no
37509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37512 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37513 echo "${ECHO_T}$utils_cv_func_nice" >&6
37514 if test $utils_cv_func_nice = yes; then
37516 cat >>confdefs.h
<<\_ACEOF
37517 #define NICE_PRIORITY 1
37520 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
37521 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
37522 MAN
="$MAN nice.1 nohup.1"
37529 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
37530 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS pinky users who"
37531 MAN
="$MAN pinky.1 users.1 who.1"
37535 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37536 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37537 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37540 cat >conftest.
$ac_ext <<_ACEOF
37541 #line $LINENO "configure"
37544 cat confdefs.h
>>conftest.
$ac_ext
37545 cat >>conftest.
$ac_ext <<_ACEOF
37546 /* end confdefs.h. */
37547 #include <sys/types.h>
37552 struct utmp ut; ut.ut_host;
37557 rm -f conftest.
$ac_objext conftest
$ac_exeext
37558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37559 (eval $ac_link) 2>&5
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
37563 { ac_try
='test -s conftest$ac_exeext'
37564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565 (eval $ac_try) 2>&5
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); }; }; then
37569 su_cv_func_ut_host_in_utmp
=yes
37571 echo "$as_me: failed program was:" >&5
37572 sed 's/^/| /' conftest.
$ac_ext >&5
37574 su_cv_func_ut_host_in_utmp
=no
37576 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37579 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37580 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37581 if test $su_cv_func_ut_host_in_utmp = yes; then
37584 cat >>confdefs.h
<<\_ACEOF
37585 #define HAVE_UT_HOST 1
37590 if test -z "$have_ut_host"; then
37591 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37592 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37593 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37596 cat >conftest.
$ac_ext <<_ACEOF
37597 #line $LINENO "configure"
37600 cat confdefs.h
>>conftest.
$ac_ext
37601 cat >>conftest.
$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37603 #include <sys/types.h>
37608 struct utmpx ut; ut.ut_host;
37613 rm -f conftest.
$ac_objext conftest
$ac_exeext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37615 (eval $ac_link) 2>&5
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } &&
37619 { ac_try
='test -s conftest$ac_exeext'
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; }; then
37625 su_cv_func_ut_host_in_utmpx
=yes
37627 echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.
$ac_ext >&5
37630 su_cv_func_ut_host_in_utmpx
=no
37632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37635 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37636 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37637 if test $su_cv_func_ut_host_in_utmpx = yes; then
37639 cat >>confdefs.h
<<\_ACEOF
37640 #define HAVE_UTMPX_H 1
37644 cat >>confdefs.h
<<\_ACEOF
37645 #define HAVE_UT_HOST 1
37653 for ac_func
in sysctl
37655 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37656 echo "$as_me:$LINENO: checking for $ac_func" >&5
37657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37658 if eval "test \"\${$as_ac_var+set}\" = set"; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 cat >conftest.
$ac_ext <<_ACEOF
37662 #line $LINENO "configure"
37665 cat confdefs.h
>>conftest.
$ac_ext
37666 cat >>conftest.
$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37668 /* System header to define __stub macros and hopefully few prototypes,
37669 which can conflict with char $ac_func (); below.
37670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37671 <limits.h> exists even on freestanding compilers. */
37673 # include <limits.h>
37675 # include <assert.h>
37677 /* Override any gcc2 internal prototype to avoid an error. */
37682 /* We use char because int might match the return type of a gcc2
37683 builtin and then its argument prototype would still apply. */
37685 /* The GNU C library defines this for functions which it implements
37686 to always fail with ENOSYS. Some functions are actually named
37687 something starting with __ and the normal name is an alias. */
37688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37691 char (*f) () = $ac_func;
37700 return f != $ac_func;
37705 rm -f conftest.
$ac_objext conftest
$ac_exeext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37707 (eval $ac_link) 2>&5
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); } &&
37711 { ac_try
='test -s conftest$ac_exeext'
37712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713 (eval $ac_try) 2>&5
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); }; }; then
37717 eval "$as_ac_var=yes"
37719 echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.
$ac_ext >&5
37722 eval "$as_ac_var=no"
37724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37728 if test `eval echo '${'$as_ac_var'}'` = yes; then
37729 cat >>confdefs.h
<<_ACEOF
37730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37737 for ac_header
in sys
/sysctl.h
37739 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37741 echo "$as_me:$LINENO: checking for $ac_header" >&5
37742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37744 echo $ECHO_N "(cached) $ECHO_C" >&6
37746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37749 # Is the header compilable?
37750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37752 cat >conftest.
$ac_ext <<_ACEOF
37753 #line $LINENO "configure"
37756 cat confdefs.h
>>conftest.
$ac_ext
37757 cat >>conftest.
$ac_ext <<_ACEOF
37758 /* end confdefs.h. */
37759 $ac_includes_default
37760 #include <$ac_header>
37762 rm -f conftest.
$ac_objext
37763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37764 (eval $ac_compile) 2>&5
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); } &&
37768 { ac_try
='test -s conftest.$ac_objext'
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; }; then
37774 ac_header_compiler
=yes
37776 echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.
$ac_ext >&5
37779 ac_header_compiler
=no
37781 rm -f conftest.
$ac_objext conftest.
$ac_ext
37782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37783 echo "${ECHO_T}$ac_header_compiler" >&6
37785 # Is the header present?
37786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37788 cat >conftest.
$ac_ext <<_ACEOF
37789 #line $LINENO "configure"
37792 cat confdefs.h
>>conftest.
$ac_ext
37793 cat >>conftest.
$ac_ext <<_ACEOF
37794 /* end confdefs.h. */
37795 #include <$ac_header>
37797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37798 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
37800 grep -v '^ *+' conftest.er1
>conftest.err
37802 cat conftest.err
>&5
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } >/dev
/null
; then
37805 if test -s conftest.err
; then
37806 ac_cpp_err
=$ac_c_preproc_warn_flag
37813 if test -z "$ac_cpp_err"; then
37814 ac_header_preproc
=yes
37816 echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.
$ac_ext >&5
37819 ac_header_preproc
=no
37821 rm -f conftest.err conftest.
$ac_ext
37822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37823 echo "${ECHO_T}$ac_header_preproc" >&6
37825 # So? What about this header?
37826 case $ac_header_compiler:$ac_header_preproc in
37828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37834 ## ------------------------------------ ##
37835 ## Report this to bug-autoconf@gnu.org. ##
37836 ## ------------------------------------ ##
37839 sed "s/^/$as_me: WARNING: /" >&2
37842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37850 ## ------------------------------------ ##
37851 ## Report this to bug-autoconf@gnu.org. ##
37852 ## ------------------------------------ ##
37855 sed "s/^/$as_me: WARNING: /" >&2
37858 echo "$as_me:$LINENO: checking for $ac_header" >&5
37859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37861 echo $ECHO_N "(cached) $ECHO_C" >&6
37863 eval "$as_ac_Header=$ac_header_preproc"
37865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37870 cat >>confdefs.h
<<_ACEOF
37871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37878 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
37879 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
37880 if test "${gnulib_cv_have_boot_time+set}" = set; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37884 cat >conftest.
$ac_ext <<_ACEOF
37885 #line $LINENO "configure"
37888 cat confdefs.h
>>conftest.
$ac_ext
37889 cat >>conftest.
$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37891 $ac_includes_default
37892 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
37893 # include <sys/param.h> /* needed for OpenBSD 3.0 */
37894 # include <sys/sysctl.h>
37896 #ifdef HAVE_UTMPX_H
37897 # include <utmpx.h>
37906 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
37907 /* your system *does* have the infrastructure to determine boot time */
37909 please_tell_us_how_to_determine_boot_time_on_your_system
37916 rm -f conftest.
$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918 (eval $ac_compile) 2>&5
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } &&
37922 { ac_try
='test -s conftest.$ac_objext'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; }; then
37928 gnulib_cv_have_boot_time
=yes
37930 echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.
$ac_ext >&5
37933 gnulib_cv_have_boot_time
=no
37935 rm -f conftest.
$ac_objext conftest.
$ac_ext
37938 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
37939 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
37940 if test $gnulib_cv_have_boot_time = yes; then
37941 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uptime" MAN
="$MAN uptime.1"
37946 echo "$as_me:$LINENO: checking POSIX termios" >&5
37947 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37948 if test "${ac_cv_sys_posix_termios+set}" = set; then
37949 echo $ECHO_N "(cached) $ECHO_C" >&6
37951 cat >conftest.
$ac_ext <<_ACEOF
37952 #line $LINENO "configure"
37955 cat confdefs.h
>>conftest.
$ac_ext
37956 cat >>conftest.
$ac_ext <<_ACEOF
37957 /* end confdefs.h. */
37958 #include <sys/types.h>
37959 #include <unistd.h>
37960 #include <termios.h>
37965 /* SunOS 4.0.3 has termios.h but not the library calls. */
37971 rm -f conftest.
$ac_objext conftest
$ac_exeext
37972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973 (eval $ac_link) 2>&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } &&
37977 { ac_try
='test -s conftest$ac_exeext'
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; }; then
37983 ac_cv_sys_posix_termios
=yes
37985 echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.
$ac_ext >&5
37988 ac_cv_sys_posix_termios
=no
37990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37992 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37993 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37996 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
37997 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
37998 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
37999 echo $ECHO_N "(cached) $ECHO_C" >&6
38001 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
38003 if test $ac_cv_sys_posix_termios = yes; then
38004 cat >conftest.
$ac_ext <<_ACEOF
38005 #line $LINENO "configure"
38008 cat confdefs.h
>>conftest.
$ac_ext
38009 cat >>conftest.
$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38011 #include <sys/types.h>
38012 # include <termios.h>
38018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38019 $EGREP "yes" >/dev
/null
2>&1; then
38020 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
38027 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38028 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38031 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38032 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38033 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38036 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=no
38038 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
; then
38039 cat >conftest.
$ac_ext <<_ACEOF
38040 #line $LINENO "configure"
38043 cat confdefs.h
>>conftest.
$ac_ext
38044 cat >>conftest.
$ac_ext <<_ACEOF
38045 /* end confdefs.h. */
38046 #include <sys/types.h>
38047 # include <sys/ioctl.h>
38053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38054 $EGREP "yes" >/dev
/null
2>&1; then
38055 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=yes
38062 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38063 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38064 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38066 cat >>confdefs.h
<<\_ACEOF
38067 #define GWINSZ_IN_SYS_IOCTL 1
38073 if test $ac_cv_sys_posix_termios = yes; then
38074 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS stty" MAN
="$MAN stty.1"
38076 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38077 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38078 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38081 cat >conftest.
$ac_ext <<_ACEOF
38082 #line $LINENO "configure"
38085 cat confdefs.h
>>conftest.
$ac_ext
38086 cat >>conftest.
$ac_ext <<_ACEOF
38087 /* end confdefs.h. */
38088 #include <termios.h>
38093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38094 $EGREP "yes" >/dev
/null
2>&1; then
38095 su_cv_sys_termios_needs_xopen_source
=no
38097 cat >conftest.
$ac_ext <<_ACEOF
38098 #line $LINENO "configure"
38101 cat confdefs.h
>>conftest.
$ac_ext
38102 cat >>conftest.
$ac_ext <<_ACEOF
38103 /* end confdefs.h. */
38104 #define _XOPEN_SOURCE
38105 #include <termios.h>
38110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38111 $EGREP "yes" >/dev
/null
2>&1; then
38112 su_cv_sys_termios_needs_xopen_source
=yes
38114 su_cv_sys_termios_needs_xopen_source
=no
38123 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38124 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38125 test $su_cv_sys_termios_needs_xopen_source = yes &&
38127 cat >>confdefs.h
<<\_ACEOF
38128 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38132 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38133 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38134 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38135 echo $ECHO_N "(cached) $ECHO_C" >&6
38137 cat >conftest.
$ac_ext <<_ACEOF
38138 #line $LINENO "configure"
38141 cat confdefs.h
>>conftest.
$ac_ext
38142 cat >>conftest.
$ac_ext <<_ACEOF
38143 /* end confdefs.h. */
38144 #if TERMIOS_NEEDS_XOPEN_SOURCE
38145 #define _XOPEN_SOURCE
38147 #include <sys/types.h>
38148 #include <termios.h>
38152 struct termios t; t.c_line;
38157 rm -f conftest.
$ac_objext conftest
$ac_exeext
38158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38159 (eval $ac_link) 2>&5
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); } &&
38163 { ac_try
='test -s conftest$ac_exeext'
38164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165 (eval $ac_try) 2>&5
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); }; }; then
38169 su_cv_sys_c_line_in_termios
=yes
38171 echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.
$ac_ext >&5
38174 su_cv_sys_c_line_in_termios
=no
38176 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38179 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38180 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38181 test $su_cv_sys_c_line_in_termios = yes \
38183 cat >>confdefs.h
<<\_ACEOF
38184 #define HAVE_C_LINE 1
38189 # FIXME: note that this macro appears above, too.
38190 # I'm leaving it here for now. This whole thing needs to be modernized...
38192 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38193 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38194 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38195 echo $ECHO_N "(cached) $ECHO_C" >&6
38197 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
38198 if test $ac_cv_sys_posix_termios = yes; then
38199 cat >conftest.
$ac_ext <<_ACEOF
38200 #line $LINENO "configure"
38203 cat confdefs.h
>>conftest.
$ac_ext
38204 cat >>conftest.
$ac_ext <<_ACEOF
38205 /* end confdefs.h. */
38206 #include <termios.h>
38211 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38216 rm -f conftest.
$ac_objext
38217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38218 (eval $ac_compile) 2>&5
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); } &&
38222 { ac_try
='test -s conftest.$ac_objext'
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; }; then
38230 echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.
$ac_ext >&5
38234 rm -f conftest.
$ac_objext conftest.
$ac_ext
38236 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38237 cat >conftest.
$ac_ext <<_ACEOF
38238 #line $LINENO "configure"
38241 cat confdefs.h
>>conftest.
$ac_ext
38242 cat >>conftest.
$ac_ext <<_ACEOF
38243 /* end confdefs.h. */
38244 #include <sys/ptem.h>
38253 rm -f conftest.
$ac_objext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38255 (eval $ac_compile) 2>&5
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); } &&
38259 { ac_try
='test -s conftest.$ac_objext'
38260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261 (eval $ac_try) 2>&5
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38267 echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.
$ac_ext >&5
38270 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
38272 rm -f conftest.
$ac_objext conftest.
$ac_ext
38275 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38276 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38277 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38279 cat >>confdefs.h
<<\_ACEOF
38280 #define WINSIZE_IN_PTEM 1
38286 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38287 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38288 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38289 echo $ECHO_N "(cached) $ECHO_C" >&6
38291 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
38293 if test $ac_cv_sys_posix_termios = yes; then
38294 cat >conftest.
$ac_ext <<_ACEOF
38295 #line $LINENO "configure"
38298 cat confdefs.h
>>conftest.
$ac_ext
38299 cat >>conftest.
$ac_ext <<_ACEOF
38300 /* end confdefs.h. */
38301 #include <sys/types.h>
38302 # include <termios.h>
38308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38309 $EGREP "yes" >/dev
/null
2>&1; then
38310 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
38317 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38318 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38321 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
&& \
38322 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no
; then
38323 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38324 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38325 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38328 cat >conftest.
$ac_ext <<_ACEOF
38329 #line $LINENO "configure"
38332 cat confdefs.h
>>conftest.
$ac_ext
38333 cat >>conftest.
$ac_ext <<_ACEOF
38334 /* end confdefs.h. */
38335 #include <sys/types.h>
38336 #ifdef WINSIZE_IN_PTEM
38337 # include <sys/stream.h>
38338 # include <sys/ptem.h>
38340 #include <sys/ioctl.h>
38341 #include <sys/tty.h>
38342 #include <sys/pty.h>
38346 int x = TIOCGWINSZ;
38351 rm -f conftest.
$ac_objext conftest
$ac_exeext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38353 (eval $ac_link) 2>&5
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); } &&
38357 { ac_try
='test -s conftest$ac_exeext'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; }; then
38363 su_cv_sys_tiocgwinsz_in_sys_pty_h
=yes
38365 echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.
$ac_ext >&5
38368 su_cv_sys_tiocgwinsz_in_sys_pty_h
=no
38370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38373 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38374 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38376 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38378 cat >>confdefs.h
<<\_ACEOF
38379 #define GWINSZ_IN_SYS_PTY 1
38385 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38386 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38387 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38390 cat >conftest.
$ac_ext <<_ACEOF
38391 #line $LINENO "configure"
38394 cat confdefs.h
>>conftest.
$ac_ext
38395 cat >>conftest.
$ac_ext <<_ACEOF
38396 /* end confdefs.h. */
38397 $ac_includes_default
38402 char *p = (char *) strsignal;
38409 rm -f conftest.
$ac_objext
38410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38411 (eval $ac_compile) 2>&5
38413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414 (exit $ac_status); } &&
38415 { ac_try
='test -s conftest.$ac_objext'
38416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417 (eval $ac_try) 2>&5
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); }; }; then
38421 ac_cv_have_decl_strsignal
=yes
38423 echo "$as_me: failed program was:" >&5
38424 sed 's/^/| /' conftest.
$ac_ext >&5
38426 ac_cv_have_decl_strsignal
=no
38428 rm -f conftest.
$ac_objext conftest.
$ac_ext
38430 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38431 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38432 if test $ac_cv_have_decl_strsignal = yes; then
38434 cat >>confdefs.h
<<_ACEOF
38435 #define HAVE_DECL_STRSIGNAL 1
38440 cat >>confdefs.h
<<_ACEOF
38441 #define HAVE_DECL_STRSIGNAL 0
38446 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38447 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38448 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38449 echo $ECHO_N "(cached) $ECHO_C" >&6
38451 cat >conftest.
$ac_ext <<_ACEOF
38452 #line $LINENO "configure"
38455 cat confdefs.h
>>conftest.
$ac_ext
38456 cat >>conftest.
$ac_ext <<_ACEOF
38457 /* end confdefs.h. */
38458 $ac_includes_default
38463 char *p = (char *) strtoimax;
38470 rm -f conftest.
$ac_objext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38472 (eval $ac_compile) 2>&5
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); } &&
38476 { ac_try
='test -s conftest.$ac_objext'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; }; then
38482 ac_cv_have_decl_strtoimax
=yes
38484 echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.
$ac_ext >&5
38487 ac_cv_have_decl_strtoimax
=no
38489 rm -f conftest.
$ac_objext conftest.
$ac_ext
38491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38492 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38493 if test $ac_cv_have_decl_strtoimax = yes; then
38495 cat >>confdefs.h
<<_ACEOF
38496 #define HAVE_DECL_STRTOIMAX 1
38501 cat >>confdefs.h
<<_ACEOF
38502 #define HAVE_DECL_STRTOIMAX 0
38507 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38508 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38509 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38512 cat >conftest.
$ac_ext <<_ACEOF
38513 #line $LINENO "configure"
38516 cat confdefs.h
>>conftest.
$ac_ext
38517 cat >>conftest.
$ac_ext <<_ACEOF
38518 /* end confdefs.h. */
38519 $ac_includes_default
38523 #ifndef sys_siglist
38524 char *p = (char *) sys_siglist;
38531 rm -f conftest.
$ac_objext
38532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38533 (eval $ac_compile) 2>&5
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); } &&
38537 { ac_try
='test -s conftest.$ac_objext'
38538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539 (eval $ac_try) 2>&5
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); }; }; then
38543 ac_cv_have_decl_sys_siglist
=yes
38545 echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.
$ac_ext >&5
38548 ac_cv_have_decl_sys_siglist
=no
38550 rm -f conftest.
$ac_objext conftest.
$ac_ext
38552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38553 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38554 if test $ac_cv_have_decl_sys_siglist = yes; then
38556 cat >>confdefs.h
<<_ACEOF
38557 #define HAVE_DECL_SYS_SIGLIST 1
38562 cat >>confdefs.h
<<_ACEOF
38563 #define HAVE_DECL_SYS_SIGLIST 0
38568 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38569 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38570 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38571 echo $ECHO_N "(cached) $ECHO_C" >&6
38573 cat >conftest.
$ac_ext <<_ACEOF
38574 #line $LINENO "configure"
38577 cat confdefs.h
>>conftest.
$ac_ext
38578 cat >>conftest.
$ac_ext <<_ACEOF
38579 /* end confdefs.h. */
38580 $ac_includes_default
38584 #ifndef _sys_siglist
38585 char *p = (char *) _sys_siglist;
38592 rm -f conftest.
$ac_objext
38593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38594 (eval $ac_compile) 2>&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } &&
38598 { ac_try
='test -s conftest.$ac_objext'
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; }; then
38604 ac_cv_have_decl__sys_siglist
=yes
38606 echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.
$ac_ext >&5
38609 ac_cv_have_decl__sys_siglist
=no
38611 rm -f conftest.
$ac_objext conftest.
$ac_ext
38613 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38614 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38615 if test $ac_cv_have_decl__sys_siglist = yes; then
38617 cat >>confdefs.h
<<_ACEOF
38618 #define HAVE_DECL__SYS_SIGLIST 1
38623 cat >>confdefs.h
<<_ACEOF
38624 #define HAVE_DECL__SYS_SIGLIST 0
38634 # Check for libypsec.a on Dolphin M88K machines.
38636 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38637 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38638 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38639 echo $ECHO_N "(cached) $ECHO_C" >&6
38641 ac_check_lib_save_LIBS
=$LIBS
38642 LIBS
="-lypsec $LIBS"
38643 cat >conftest.
$ac_ext <<_ACEOF
38644 #line $LINENO "configure"
38647 cat confdefs.h
>>conftest.
$ac_ext
38648 cat >>conftest.
$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38660 rm -f conftest.
$ac_objext conftest
$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662 (eval $ac_link) 2>&5
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); } &&
38666 { ac_try
='test -s conftest$ac_exeext'
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; }; then
38672 ac_cv_lib_ypsec_main
=yes
38674 echo "$as_me: failed program was:" >&5
38675 sed 's/^/| /' conftest.
$ac_ext >&5
38677 ac_cv_lib_ypsec_main
=no
38679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38680 LIBS
=$ac_check_lib_save_LIBS
38682 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38683 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38684 if test $ac_cv_lib_ypsec_main = yes; then
38685 cat >>confdefs.h
<<_ACEOF
38686 #define HAVE_LIBYPSEC 1
38689 LIBS
="-lypsec $LIBS"
38694 # m88k running dgux 5.4 needs this
38696 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38697 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38698 if test "${ac_cv_lib_ldgc_main+set}" = set; then
38699 echo $ECHO_N "(cached) $ECHO_C" >&6
38701 ac_check_lib_save_LIBS
=$LIBS
38702 LIBS
="-lldgc $LIBS"
38703 cat >conftest.
$ac_ext <<_ACEOF
38704 #line $LINENO "configure"
38707 cat confdefs.h
>>conftest.
$ac_ext
38708 cat >>conftest.
$ac_ext <<_ACEOF
38709 /* end confdefs.h. */
38720 rm -f conftest.
$ac_objext conftest
$ac_exeext
38721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38722 (eval $ac_link) 2>&5
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } &&
38726 { ac_try
='test -s conftest$ac_exeext'
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; }; then
38732 ac_cv_lib_ldgc_main
=yes
38734 echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.
$ac_ext >&5
38737 ac_cv_lib_ldgc_main
=no
38739 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38740 LIBS
=$ac_check_lib_save_LIBS
38742 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
38743 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
38744 if test $ac_cv_lib_ldgc_main = yes; then
38745 cat >>confdefs.h
<<_ACEOF
38746 #define HAVE_LIBLDGC 1
38749 LIBS
="-lldgc $LIBS"
38754 # Some programs need to link with -lm. printf does if it uses
38755 # lib/strtod.c which uses pow. And seq uses the math functions,
38756 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
38758 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
38759 # Check for these math functions used by seq.
38760 ac_su_saved_lib
="$LIBS"
38765 for ac_func
in floor modf rint
38767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38768 echo "$as_me:$LINENO: checking for $ac_func" >&5
38769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38770 if eval "test \"\${$as_ac_var+set}\" = set"; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38773 cat >conftest.
$ac_ext <<_ACEOF
38774 #line $LINENO "configure"
38777 cat confdefs.h
>>conftest.
$ac_ext
38778 cat >>conftest.
$ac_ext <<_ACEOF
38779 /* end confdefs.h. */
38780 /* System header to define __stub macros and hopefully few prototypes,
38781 which can conflict with char $ac_func (); below.
38782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783 <limits.h> exists even on freestanding compilers. */
38785 # include <limits.h>
38787 # include <assert.h>
38789 /* Override any gcc2 internal prototype to avoid an error. */
38794 /* We use char because int might match the return type of a gcc2
38795 builtin and then its argument prototype would still apply. */
38797 /* The GNU C library defines this for functions which it implements
38798 to always fail with ENOSYS. Some functions are actually named
38799 something starting with __ and the normal name is an alias. */
38800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38803 char (*f) () = $ac_func;
38812 return f != $ac_func;
38817 rm -f conftest.
$ac_objext conftest
$ac_exeext
38818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38819 (eval $ac_link) 2>&5
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
38823 { ac_try
='test -s conftest$ac_exeext'
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; }; then
38829 eval "$as_ac_var=yes"
38831 echo "$as_me: failed program was:" >&5
38832 sed 's/^/| /' conftest.
$ac_ext >&5
38834 eval "$as_ac_var=no"
38836 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38840 if test `eval echo '${'$as_ac_var'}'` = yes; then
38841 cat >>confdefs.h
<<_ACEOF
38842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38848 LIBS
="$ac_su_saved_lib"
38852 for ac_func
in sqrt
38854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38855 echo "$as_me:$LINENO: checking for $ac_func" >&5
38856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38857 if eval "test \"\${$as_ac_var+set}\" = set"; then
38858 echo $ECHO_N "(cached) $ECHO_C" >&6
38860 cat >conftest.
$ac_ext <<_ACEOF
38861 #line $LINENO "configure"
38864 cat confdefs.h
>>conftest.
$ac_ext
38865 cat >>conftest.
$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38867 /* System header to define __stub macros and hopefully few prototypes,
38868 which can conflict with char $ac_func (); below.
38869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38870 <limits.h> exists even on freestanding compilers. */
38872 # include <limits.h>
38874 # include <assert.h>
38876 /* Override any gcc2 internal prototype to avoid an error. */
38881 /* We use char because int might match the return type of a gcc2
38882 builtin and then its argument prototype would still apply. */
38884 /* The GNU C library defines this for functions which it implements
38885 to always fail with ENOSYS. Some functions are actually named
38886 something starting with __ and the normal name is an alias. */
38887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38890 char (*f) () = $ac_func;
38899 return f != $ac_func;
38904 rm -f conftest.
$ac_objext conftest
$ac_exeext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38906 (eval $ac_link) 2>&5
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); } &&
38910 { ac_try
='test -s conftest$ac_exeext'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; }; then
38916 eval "$as_ac_var=yes"
38918 echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.
$ac_ext >&5
38921 eval "$as_ac_var=no"
38923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38927 if test `eval echo '${'$as_ac_var'}'` = yes; then
38928 cat >>confdefs.h
<<_ACEOF
38929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38935 if test $ac_cv_func_sqrt = no
; then
38936 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
38937 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
38938 if test "${ac_cv_lib_m_sqrt+set}" = set; then
38939 echo $ECHO_N "(cached) $ECHO_C" >&6
38941 ac_check_lib_save_LIBS
=$LIBS
38943 cat >conftest.
$ac_ext <<_ACEOF
38944 #line $LINENO "configure"
38947 cat confdefs.h
>>conftest.
$ac_ext
38948 cat >>conftest.
$ac_ext <<_ACEOF
38949 /* end confdefs.h. */
38951 /* Override any gcc2 internal prototype to avoid an error. */
38955 /* We use char because int might match the return type of a gcc2
38956 builtin and then its argument prototype would still apply. */
38966 rm -f conftest.
$ac_objext conftest
$ac_exeext
38967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38968 (eval $ac_link) 2>&5
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); } &&
38972 { ac_try
='test -s conftest$ac_exeext'
38973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974 (eval $ac_try) 2>&5
38976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); }; }; then
38978 ac_cv_lib_m_sqrt
=yes
38980 echo "$as_me: failed program was:" >&5
38981 sed 's/^/| /' conftest.
$ac_ext >&5
38983 ac_cv_lib_m_sqrt
=no
38985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38986 LIBS
=$ac_check_lib_save_LIBS
38988 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
38989 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
38990 if test $ac_cv_lib_m_sqrt = yes; then
38998 for ac_func
in fesetround
39000 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39001 echo "$as_me:$LINENO: checking for $ac_func" >&5
39002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39003 if eval "test \"\${$as_ac_var+set}\" = set"; then
39004 echo $ECHO_N "(cached) $ECHO_C" >&6
39006 cat >conftest.
$ac_ext <<_ACEOF
39007 #line $LINENO "configure"
39010 cat confdefs.h
>>conftest.
$ac_ext
39011 cat >>conftest.
$ac_ext <<_ACEOF
39012 /* end confdefs.h. */
39013 /* System header to define __stub macros and hopefully few prototypes,
39014 which can conflict with char $ac_func (); below.
39015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39016 <limits.h> exists even on freestanding compilers. */
39018 # include <limits.h>
39020 # include <assert.h>
39022 /* Override any gcc2 internal prototype to avoid an error. */
39027 /* We use char because int might match the return type of a gcc2
39028 builtin and then its argument prototype would still apply. */
39030 /* The GNU C library defines this for functions which it implements
39031 to always fail with ENOSYS. Some functions are actually named
39032 something starting with __ and the normal name is an alias. */
39033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39036 char (*f) () = $ac_func;
39045 return f != $ac_func;
39050 rm -f conftest.
$ac_objext conftest
$ac_exeext
39051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39052 (eval $ac_link) 2>&5
39054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055 (exit $ac_status); } &&
39056 { ac_try
='test -s conftest$ac_exeext'
39057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058 (eval $ac_try) 2>&5
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); }; }; then
39062 eval "$as_ac_var=yes"
39064 echo "$as_me: failed program was:" >&5
39065 sed 's/^/| /' conftest.
$ac_ext >&5
39067 eval "$as_ac_var=no"
39069 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39073 if test `eval echo '${'$as_ac_var'}'` = yes; then
39074 cat >>confdefs.h
<<_ACEOF
39075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39081 if test $ac_cv_func_fesetround = no
; then
39082 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39083 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39084 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39085 echo $ECHO_N "(cached) $ECHO_C" >&6
39087 ac_check_lib_save_LIBS
=$LIBS
39089 cat >conftest.
$ac_ext <<_ACEOF
39090 #line $LINENO "configure"
39093 cat confdefs.h
>>conftest.
$ac_ext
39094 cat >>conftest.
$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39097 /* Override any gcc2 internal prototype to avoid an error. */
39101 /* We use char because int might match the return type of a gcc2
39102 builtin and then its argument prototype would still apply. */
39103 char fesetround ();
39112 rm -f conftest.
$ac_objext conftest
$ac_exeext
39113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39114 (eval $ac_link) 2>&5
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); } &&
39118 { ac_try
='test -s conftest$ac_exeext'
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39124 ac_cv_lib_m_fesetround
=yes
39126 echo "$as_me: failed program was:" >&5
39127 sed 's/^/| /' conftest.
$ac_ext >&5
39129 ac_cv_lib_m_fesetround
=no
39131 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39132 LIBS
=$ac_check_lib_save_LIBS
39134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39135 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39136 if test $ac_cv_lib_m_fesetround = yes; then
39137 FESETROUND_LIBM
=-lm
39142 # The -lsun library is required for YP support on Irix-4.0.5 systems.
39143 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39145 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39146 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39147 if test "${ac_cv_search_yp_match+set}" = set; then
39148 echo $ECHO_N "(cached) $ECHO_C" >&6
39151 ac_func_search_save_LIBS
=$LIBS
39152 ac_cv_search_yp_match
=no
39153 cat >conftest.
$ac_ext <<_ACEOF
39154 #line $LINENO "configure"
39157 cat confdefs.h
>>conftest.
$ac_ext
39158 cat >>conftest.
$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39161 /* Override any gcc2 internal prototype to avoid an error. */
39165 /* We use char because int might match the return type of a gcc2
39166 builtin and then its argument prototype would still apply. */
39176 rm -f conftest.
$ac_objext conftest
$ac_exeext
39177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39178 (eval $ac_link) 2>&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); } &&
39182 { ac_try
='test -s conftest$ac_exeext'
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; }; then
39188 ac_cv_search_yp_match
='none required'
39190 echo "$as_me: failed program was:" >&5
39191 sed 's/^/| /' conftest.
$ac_ext >&5
39194 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39195 if test "$ac_cv_search_yp_match" = no
; then
39196 for ac_lib
in sun ypsec
; do
39197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39198 cat >conftest.
$ac_ext <<_ACEOF
39199 #line $LINENO "configure"
39202 cat confdefs.h
>>conftest.
$ac_ext
39203 cat >>conftest.
$ac_ext <<_ACEOF
39204 /* end confdefs.h. */
39206 /* Override any gcc2 internal prototype to avoid an error. */
39210 /* We use char because int might match the return type of a gcc2
39211 builtin and then its argument prototype would still apply. */
39221 rm -f conftest.
$ac_objext conftest
$ac_exeext
39222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39223 (eval $ac_link) 2>&5
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); } &&
39227 { ac_try
='test -s conftest$ac_exeext'
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; }; then
39233 ac_cv_search_yp_match
="-l$ac_lib"; break
39235 echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.
$ac_ext >&5
39239 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39242 LIBS
=$ac_func_search_save_LIBS
39245 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39246 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39248 if test "$ac_cv_search_yp_match" = no
; then :
39251 if test "$ac_cv_search_yp_match" = 'none required'; then :
39254 LIBS
="$ac_cv_search_yp_match $LIBS"
39260 # SysV needs -lsec, older versions of Linux need -lshadow for
39261 # shadow passwords. UnixWare 7 needs -lgen.
39263 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39264 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39265 if test "${ac_cv_search_getspnam+set}" = set; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39269 ac_func_search_save_LIBS
=$LIBS
39270 ac_cv_search_getspnam
=no
39271 cat >conftest.
$ac_ext <<_ACEOF
39272 #line $LINENO "configure"
39275 cat confdefs.h
>>conftest.
$ac_ext
39276 cat >>conftest.
$ac_ext <<_ACEOF
39277 /* end confdefs.h. */
39279 /* Override any gcc2 internal prototype to avoid an error. */
39283 /* We use char because int might match the return type of a gcc2
39284 builtin and then its argument prototype would still apply. */
39294 rm -f conftest.
$ac_objext conftest
$ac_exeext
39295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39296 (eval $ac_link) 2>&5
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); } &&
39300 { ac_try
='test -s conftest$ac_exeext'
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; }; then
39306 ac_cv_search_getspnam
='none required'
39308 echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.
$ac_ext >&5
39312 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39313 if test "$ac_cv_search_getspnam" = no
; then
39314 for ac_lib
in shadow sec gen
; do
39315 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39316 cat >conftest.
$ac_ext <<_ACEOF
39317 #line $LINENO "configure"
39320 cat confdefs.h
>>conftest.
$ac_ext
39321 cat >>conftest.
$ac_ext <<_ACEOF
39322 /* end confdefs.h. */
39324 /* Override any gcc2 internal prototype to avoid an error. */
39328 /* We use char because int might match the return type of a gcc2
39329 builtin and then its argument prototype would still apply. */
39339 rm -f conftest.
$ac_objext conftest
$ac_exeext
39340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39341 (eval $ac_link) 2>&5
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } &&
39345 { ac_try
='test -s conftest$ac_exeext'
39346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347 (eval $ac_try) 2>&5
39349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); }; }; then
39351 ac_cv_search_getspnam
="-l$ac_lib"; break
39353 echo "$as_me: failed program was:" >&5
39354 sed 's/^/| /' conftest.
$ac_ext >&5
39357 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39360 LIBS
=$ac_func_search_save_LIBS
39363 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39364 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39366 if test "$ac_cv_search_getspnam" = no
; then :
39369 if test "$ac_cv_search_getspnam" = 'none required'; then :
39372 LIBS
="$ac_cv_search_getspnam $LIBS"
39379 for ac_header
in shadow.h
39381 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39383 echo "$as_me:$LINENO: checking for $ac_header" >&5
39384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39386 echo $ECHO_N "(cached) $ECHO_C" >&6
39388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39391 # Is the header compilable?
39392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39394 cat >conftest.
$ac_ext <<_ACEOF
39395 #line $LINENO "configure"
39398 cat confdefs.h
>>conftest.
$ac_ext
39399 cat >>conftest.
$ac_ext <<_ACEOF
39400 /* end confdefs.h. */
39401 $ac_includes_default
39402 #include <$ac_header>
39404 rm -f conftest.
$ac_objext
39405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39406 (eval $ac_compile) 2>&5
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); } &&
39410 { ac_try
='test -s conftest.$ac_objext'
39411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39412 (eval $ac_try) 2>&5
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); }; }; then
39416 ac_header_compiler
=yes
39418 echo "$as_me: failed program was:" >&5
39419 sed 's/^/| /' conftest.
$ac_ext >&5
39421 ac_header_compiler
=no
39423 rm -f conftest.
$ac_objext conftest.
$ac_ext
39424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39425 echo "${ECHO_T}$ac_header_compiler" >&6
39427 # Is the header present?
39428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39430 cat >conftest.
$ac_ext <<_ACEOF
39431 #line $LINENO "configure"
39434 cat confdefs.h
>>conftest.
$ac_ext
39435 cat >>conftest.
$ac_ext <<_ACEOF
39436 /* end confdefs.h. */
39437 #include <$ac_header>
39439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39440 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
39442 grep -v '^ *+' conftest.er1
>conftest.err
39444 cat conftest.err
>&5
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); } >/dev
/null
; then
39447 if test -s conftest.err
; then
39448 ac_cpp_err
=$ac_c_preproc_warn_flag
39455 if test -z "$ac_cpp_err"; then
39456 ac_header_preproc
=yes
39458 echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.
$ac_ext >&5
39461 ac_header_preproc
=no
39463 rm -f conftest.err conftest.
$ac_ext
39464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39465 echo "${ECHO_T}$ac_header_preproc" >&6
39467 # So? What about this header?
39468 case $ac_header_compiler:$ac_header_preproc in
39470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39476 ## ------------------------------------ ##
39477 ## Report this to bug-autoconf@gnu.org. ##
39478 ## ------------------------------------ ##
39481 sed "s/^/$as_me: WARNING: /" >&2
39484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39492 ## ------------------------------------ ##
39493 ## Report this to bug-autoconf@gnu.org. ##
39494 ## ------------------------------------ ##
39497 sed "s/^/$as_me: WARNING: /" >&2
39500 echo "$as_me:$LINENO: checking for $ac_header" >&5
39501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39503 echo $ECHO_N "(cached) $ECHO_C" >&6
39505 eval "$as_ac_Header=$ac_header_preproc"
39507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39512 cat >>confdefs.h
<<_ACEOF
39513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39521 # Requirements for su.c.
39523 $ac_includes_default
39525 # include <shadow.h>
39528 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39529 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39530 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39531 echo $ECHO_N "(cached) $ECHO_C" >&6
39533 cat >conftest.
$ac_ext <<_ACEOF
39534 #line $LINENO "configure"
39537 cat confdefs.h
>>conftest.
$ac_ext
39538 cat >>conftest.
$ac_ext <<_ACEOF
39539 /* end confdefs.h. */
39545 static struct spwd ac_aggr;
39546 if (ac_aggr.sp_pwdp)
39552 rm -f conftest.
$ac_objext
39553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39554 (eval $ac_compile) 2>&5
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); } &&
39558 { ac_try
='test -s conftest.$ac_objext'
39559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560 (eval $ac_try) 2>&5
39562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563 (exit $ac_status); }; }; then
39564 ac_cv_member_struct_spwd_sp_pwdp
=yes
39566 echo "$as_me: failed program was:" >&5
39567 sed 's/^/| /' conftest.
$ac_ext >&5
39569 cat >conftest.
$ac_ext <<_ACEOF
39570 #line $LINENO "configure"
39573 cat confdefs.h
>>conftest.
$ac_ext
39574 cat >>conftest.
$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39581 static struct spwd ac_aggr;
39582 if (sizeof ac_aggr.sp_pwdp)
39588 rm -f conftest.
$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590 (eval $ac_compile) 2>&5
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } &&
39594 { ac_try
='test -s conftest.$ac_objext'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39600 ac_cv_member_struct_spwd_sp_pwdp
=yes
39602 echo "$as_me: failed program was:" >&5
39603 sed 's/^/| /' conftest.
$ac_ext >&5
39605 ac_cv_member_struct_spwd_sp_pwdp
=no
39607 rm -f conftest.
$ac_objext conftest.
$ac_ext
39609 rm -f conftest.
$ac_objext conftest.
$ac_ext
39611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39612 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39613 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39615 cat >>confdefs.h
<<_ACEOF
39616 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39623 for ac_func
in getspnam
39625 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39626 echo "$as_me:$LINENO: checking for $ac_func" >&5
39627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39628 if eval "test \"\${$as_ac_var+set}\" = set"; then
39629 echo $ECHO_N "(cached) $ECHO_C" >&6
39631 cat >conftest.
$ac_ext <<_ACEOF
39632 #line $LINENO "configure"
39635 cat confdefs.h
>>conftest.
$ac_ext
39636 cat >>conftest.
$ac_ext <<_ACEOF
39637 /* end confdefs.h. */
39638 /* System header to define __stub macros and hopefully few prototypes,
39639 which can conflict with char $ac_func (); below.
39640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39641 <limits.h> exists even on freestanding compilers. */
39643 # include <limits.h>
39645 # include <assert.h>
39647 /* Override any gcc2 internal prototype to avoid an error. */
39652 /* We use char because int might match the return type of a gcc2
39653 builtin and then its argument prototype would still apply. */
39655 /* The GNU C library defines this for functions which it implements
39656 to always fail with ENOSYS. Some functions are actually named
39657 something starting with __ and the normal name is an alias. */
39658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39661 char (*f) () = $ac_func;
39670 return f != $ac_func;
39675 rm -f conftest.
$ac_objext conftest
$ac_exeext
39676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39677 (eval $ac_link) 2>&5
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); } &&
39681 { ac_try
='test -s conftest$ac_exeext'
39682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39683 (eval $ac_try) 2>&5
39685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686 (exit $ac_status); }; }; then
39687 eval "$as_ac_var=yes"
39689 echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.
$ac_ext >&5
39692 eval "$as_ac_var=no"
39694 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39698 if test `eval echo '${'$as_ac_var'}'` = yes; then
39699 cat >>confdefs.h
<<_ACEOF
39700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39707 # SCO-ODT-3.0 is reported to need -lufc for crypt.
39708 # NetBSD needs -lcrypt for crypt.
39709 ac_su_saved_lib
="$LIBS"
39711 echo "$as_me:$LINENO: checking for library containing crypt" >&5
39712 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39713 if test "${ac_cv_search_crypt+set}" = set; then
39714 echo $ECHO_N "(cached) $ECHO_C" >&6
39717 ac_func_search_save_LIBS
=$LIBS
39718 ac_cv_search_crypt
=no
39719 cat >conftest.
$ac_ext <<_ACEOF
39720 #line $LINENO "configure"
39723 cat confdefs.h
>>conftest.
$ac_ext
39724 cat >>conftest.
$ac_ext <<_ACEOF
39725 /* end confdefs.h. */
39727 /* Override any gcc2 internal prototype to avoid an error. */
39731 /* We use char because int might match the return type of a gcc2
39732 builtin and then its argument prototype would still apply. */
39742 rm -f conftest.
$ac_objext conftest
$ac_exeext
39743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39744 (eval $ac_link) 2>&5
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); } &&
39748 { ac_try
='test -s conftest$ac_exeext'
39749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39750 (eval $ac_try) 2>&5
39752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39753 (exit $ac_status); }; }; then
39754 ac_cv_search_crypt
='none required'
39756 echo "$as_me: failed program was:" >&5
39757 sed 's/^/| /' conftest.
$ac_ext >&5
39760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39761 if test "$ac_cv_search_crypt" = no
; then
39762 for ac_lib
in ufc
crypt; do
39763 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
39764 cat >conftest.
$ac_ext <<_ACEOF
39765 #line $LINENO "configure"
39768 cat confdefs.h
>>conftest.
$ac_ext
39769 cat >>conftest.
$ac_ext <<_ACEOF
39770 /* end confdefs.h. */
39772 /* Override any gcc2 internal prototype to avoid an error. */
39776 /* We use char because int might match the return type of a gcc2
39777 builtin and then its argument prototype would still apply. */
39787 rm -f conftest.
$ac_objext conftest
$ac_exeext
39788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39789 (eval $ac_link) 2>&5
39791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792 (exit $ac_status); } &&
39793 { ac_try
='test -s conftest$ac_exeext'
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; }; then
39799 ac_cv_search_crypt
="-l$ac_lib"; break
39801 echo "$as_me: failed program was:" >&5
39802 sed 's/^/| /' conftest.
$ac_ext >&5
39805 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39808 LIBS
=$ac_func_search_save_LIBS
39811 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
39812 echo "${ECHO_T}$ac_cv_search_crypt" >&6
39814 if test "$ac_cv_search_crypt" = no
; then :
39817 if test "$ac_cv_search_crypt" = 'none required'; then :
39820 LIBS
="$ac_cv_search_crypt $LIBS"
39821 LIB_CRYPT
="$ac_cv_search_crypt"
39825 LIBS
="$ac_su_saved_lib"
39831 if test -n "$ac_aux_dir"; then
39832 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
39834 if test -z "$MKINSTALLDIRS"; then
39835 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
39842 # Extract the first word of "msgfmt", so it can be a program name with args.
39843 set dummy msgfmt
; ac_word
=$2
39844 echo "$as_me:$LINENO: checking for $ac_word" >&5
39845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39846 if test "${ac_cv_path_MSGFMT+set}" = set; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39851 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
39854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
39855 for ac_dir
in $PATH; do
39856 test -z "$ac_dir" && ac_dir
=.
39857 if test -f $ac_dir/$ac_word; then
39858 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
39859 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
39860 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
39866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
39870 MSGFMT
="$ac_cv_path_MSGFMT"
39871 if test "$MSGFMT" != ":"; then
39872 echo "$as_me:$LINENO: result: $MSGFMT" >&5
39873 echo "${ECHO_T}$MSGFMT" >&6
39875 echo "$as_me:$LINENO: result: no" >&5
39876 echo "${ECHO_T}no" >&6
39879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
39880 set dummy gmsgfmt
; ac_word
=$2
39881 echo "$as_me:$LINENO: checking for $ac_word" >&5
39882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39883 if test "${ac_cv_path_GMSGFMT+set}" = set; then
39884 echo $ECHO_N "(cached) $ECHO_C" >&6
39888 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
39891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
39892 for as_dir
in $PATH
39895 test -z "$as_dir" && as_dir
=.
39896 for ac_exec_ext
in '' $ac_executable_extensions; do
39897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39898 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
39899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39905 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
39909 GMSGFMT
=$ac_cv_path_GMSGFMT
39911 if test -n "$GMSGFMT"; then
39912 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
39913 echo "${ECHO_T}$GMSGFMT" >&6
39915 echo "$as_me:$LINENO: result: no" >&5
39916 echo "${ECHO_T}no" >&6
39920 # Extract the first word of "xgettext", so it can be a program name with args.
39921 set dummy xgettext
; ac_word
=$2
39922 echo "$as_me:$LINENO: checking for $ac_word" >&5
39923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39924 if test "${ac_cv_path_XGETTEXT+set}" = set; then
39925 echo $ECHO_N "(cached) $ECHO_C" >&6
39927 case "$XGETTEXT" in
39929 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
39932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
39933 for ac_dir
in $PATH; do
39934 test -z "$ac_dir" && ac_dir
=.
39935 if test -f $ac_dir/$ac_word; then
39936 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
39937 (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
39938 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
39944 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
39948 XGETTEXT
="$ac_cv_path_XGETTEXT"
39949 if test "$XGETTEXT" != ":"; then
39950 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
39951 echo "${ECHO_T}$XGETTEXT" >&6
39953 echo "$as_me:$LINENO: result: no" >&5
39954 echo "${ECHO_T}no" >&6
39959 # Extract the first word of "msgmerge", so it can be a program name with args.
39960 set dummy msgmerge
; ac_word
=$2
39961 echo "$as_me:$LINENO: checking for $ac_word" >&5
39962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39963 if test "${ac_cv_path_MSGMERGE+set}" = set; then
39964 echo $ECHO_N "(cached) $ECHO_C" >&6
39966 case "$MSGMERGE" in
39968 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
39971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
39972 for ac_dir
in $PATH; do
39973 test -z "$ac_dir" && ac_dir
=.
39974 if test -f $ac_dir/$ac_word; then
39975 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
39976 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
39982 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
39986 MSGMERGE
="$ac_cv_path_MSGMERGE"
39987 if test "$MSGMERGE" != ":"; then
39988 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
39989 echo "${ECHO_T}$MSGMERGE" >&6
39991 echo "$as_me:$LINENO: result: no" >&5
39992 echo "${ECHO_T}no" >&6
39996 if test "$GMSGFMT" != ":"; then
39997 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
39998 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40001 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40002 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40003 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40008 if test "$XGETTEXT" != ":"; then
40009 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
40010 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
40013 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40014 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40020 ac_config_commands
="$ac_config_commands default-1"
40038 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40039 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40040 # Check whether --enable-nls or --disable-nls was given.
40041 if test "${enable_nls+set}" = set; then
40042 enableval
="$enable_nls"
40047 echo "$as_me:$LINENO: result: $USE_NLS" >&5
40048 echo "${ECHO_T}$USE_NLS" >&6
40056 if test "$USE_NLS" = "yes"; then
40057 gt_use_preinstalled_gnugettext
=no
40064 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40065 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40066 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40069 cat >conftest.
$ac_ext <<_ACEOF
40070 #line $LINENO "configure"
40073 cat confdefs.h
>>conftest.
$ac_ext
40074 cat >>conftest.
$ac_ext <<_ACEOF
40075 /* end confdefs.h. */
40076 #include <libintl.h>
40077 extern int _nl_msg_cat_cntr;
40078 extern int *_nl_domain_bindings;
40082 bindtextdomain ("", "");
40083 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40088 rm -f conftest.
$ac_objext conftest
$ac_exeext
40089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40090 (eval $ac_link) 2>&5
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } &&
40094 { ac_try
='test -s conftest$ac_exeext'
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; }; then
40100 gt_cv_func_gnugettext2_libc
=yes
40102 echo "$as_me: failed program was:" >&5
40103 sed 's/^/| /' conftest.
$ac_ext >&5
40105 gt_cv_func_gnugettext2_libc
=no
40107 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40109 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40110 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40112 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40118 am_save_CPPFLAGS
="$CPPFLAGS"
40120 for element
in $INCICONV; do
40122 for x
in $CPPFLAGS; do
40124 acl_save_prefix
="$prefix"
40125 prefix
="$acl_final_prefix"
40126 acl_save_exec_prefix
="$exec_prefix"
40127 exec_prefix
="$acl_final_exec_prefix"
40129 exec_prefix
="$acl_save_exec_prefix"
40130 prefix
="$acl_save_prefix"
40132 if test "X$x" = "X$element"; then
40137 if test -z "$haveit"; then
40138 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
40143 echo "$as_me:$LINENO: checking for iconv" >&5
40144 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40145 if test "${am_cv_func_iconv+set}" = set; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40149 am_cv_func_iconv
="no, consider installing GNU libiconv"
40151 cat >conftest.
$ac_ext <<_ACEOF
40152 #line $LINENO "configure"
40155 cat confdefs.h
>>conftest.
$ac_ext
40156 cat >>conftest.
$ac_ext <<_ACEOF
40157 /* end confdefs.h. */
40158 #include <stdlib.h>
40163 iconv_t cd = iconv_open("","");
40164 iconv(cd,NULL,NULL,NULL,NULL);
40170 rm -f conftest.
$ac_objext conftest
$ac_exeext
40171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40172 (eval $ac_link) 2>&5
40174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175 (exit $ac_status); } &&
40176 { ac_try
='test -s conftest$ac_exeext'
40177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178 (eval $ac_try) 2>&5
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); }; }; then
40182 am_cv_func_iconv
=yes
40184 echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.
$ac_ext >&5
40188 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40189 if test "$am_cv_func_iconv" != yes; then
40190 am_save_LIBS
="$LIBS"
40191 LIBS
="$LIBS $LIBICONV"
40192 cat >conftest.
$ac_ext <<_ACEOF
40193 #line $LINENO "configure"
40196 cat confdefs.h
>>conftest.
$ac_ext
40197 cat >>conftest.
$ac_ext <<_ACEOF
40198 /* end confdefs.h. */
40199 #include <stdlib.h>
40204 iconv_t cd = iconv_open("","");
40205 iconv(cd,NULL,NULL,NULL,NULL);
40211 rm -f conftest.
$ac_objext conftest
$ac_exeext
40212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40213 (eval $ac_link) 2>&5
40215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216 (exit $ac_status); } &&
40217 { ac_try
='test -s conftest$ac_exeext'
40218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40219 (eval $ac_try) 2>&5
40221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222 (exit $ac_status); }; }; then
40223 am_cv_lib_iconv
=yes
40224 am_cv_func_iconv
=yes
40226 echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.
$ac_ext >&5
40230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40231 LIBS
="$am_save_LIBS"
40235 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40236 echo "${ECHO_T}$am_cv_func_iconv" >&6
40237 if test "$am_cv_func_iconv" = yes; then
40239 cat >>confdefs.h
<<\_ACEOF
40240 #define HAVE_ICONV 1
40244 if test "$am_cv_lib_iconv" = yes; then
40245 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40246 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40247 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40248 echo "${ECHO_T}$LIBICONV" >&6
40250 CPPFLAGS
="$am_save_CPPFLAGS"
40262 acl_save_prefix
="$prefix"
40263 prefix
="$acl_final_prefix"
40264 acl_save_exec_prefix
="$exec_prefix"
40265 exec_prefix
="$acl_final_exec_prefix"
40267 eval additional_includedir
=\"$includedir\"
40268 eval additional_libdir
=\"$libdir\"
40270 exec_prefix
="$acl_save_exec_prefix"
40271 prefix
="$acl_save_prefix"
40274 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40275 if test "${with_libintl_prefix+set}" = set; then
40276 withval
="$with_libintl_prefix"
40278 if test "X$withval" = "Xno"; then
40281 if test "X$withval" = "X"; then
40283 acl_save_prefix
="$prefix"
40284 prefix
="$acl_final_prefix"
40285 acl_save_exec_prefix
="$exec_prefix"
40286 exec_prefix
="$acl_final_exec_prefix"
40288 eval additional_includedir
=\"$includedir\"
40289 eval additional_libdir
=\"$libdir\"
40291 exec_prefix
="$acl_save_exec_prefix"
40292 prefix
="$acl_save_prefix"
40295 additional_includedir
="$withval/include"
40296 additional_libdir
="$withval/lib"
40306 names_already_handled
=
40307 names_next_round
='intl '
40308 while test -n "$names_next_round"; do
40309 names_this_round
="$names_next_round"
40311 for name
in $names_this_round; do
40313 for n
in $names_already_handled; do
40314 if test "$n" = "$name"; then
40315 already_handled
=yes
40319 if test -z "$already_handled"; then
40320 names_already_handled
="$names_already_handled $name"
40321 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40322 eval value
=\"\
$HAVE_LIB$uppername\"
40323 if test -n "$value"; then
40324 if test "$value" = yes; then
40325 eval value
=\"\
$LIB$uppername\"
40326 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
40327 eval value
=\"\
$LTLIB$uppername\"
40328 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
40337 if test $use_additional = yes; then
40338 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40339 found_dir
="$additional_libdir"
40340 found_so
="$additional_libdir/lib$name.$shlibext"
40341 if test -f "$additional_libdir/lib$name.la"; then
40342 found_la
="$additional_libdir/lib$name.la"
40345 if test -f "$additional_libdir/lib$name.$libext"; then
40346 found_dir
="$additional_libdir"
40347 found_a
="$additional_libdir/lib$name.$libext"
40348 if test -f "$additional_libdir/lib$name.la"; then
40349 found_la
="$additional_libdir/lib$name.la"
40354 if test "X$found_dir" = "X"; then
40355 for x
in $LDFLAGS $LTLIBINTL; do
40357 acl_save_prefix
="$prefix"
40358 prefix
="$acl_final_prefix"
40359 acl_save_exec_prefix
="$exec_prefix"
40360 exec_prefix
="$acl_final_exec_prefix"
40362 exec_prefix
="$acl_save_exec_prefix"
40363 prefix
="$acl_save_prefix"
40367 dir
=`echo "X$x" | sed -e 's/^X-L//'`
40368 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40370 found_so
="$dir/lib$name.$shlibext"
40371 if test -f "$dir/lib$name.la"; then
40372 found_la
="$dir/lib$name.la"
40375 if test -f "$dir/lib$name.$libext"; then
40377 found_a
="$dir/lib$name.$libext"
40378 if test -f "$dir/lib$name.la"; then
40379 found_la
="$dir/lib$name.la"
40385 if test "X$found_dir" != "X"; then
40390 if test "X$found_dir" != "X"; then
40391 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40392 if test "X$found_so" != "X"; then
40393 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
40394 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40397 for x
in $ltrpathdirs; do
40398 if test "X$x" = "X$found_dir"; then
40403 if test -z "$haveit"; then
40404 ltrpathdirs
="$ltrpathdirs $found_dir"
40406 if test "$hardcode_direct" = yes; then
40407 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40409 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
40410 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40412 for x
in $rpathdirs; do
40413 if test "X$x" = "X$found_dir"; then
40418 if test -z "$haveit"; then
40419 rpathdirs
="$rpathdirs $found_dir"
40423 for x
in $LDFLAGS $LIBINTL; do
40425 acl_save_prefix
="$prefix"
40426 prefix
="$acl_final_prefix"
40427 acl_save_exec_prefix
="$exec_prefix"
40428 exec_prefix
="$acl_final_exec_prefix"
40430 exec_prefix
="$acl_save_exec_prefix"
40431 prefix
="$acl_save_prefix"
40433 if test "X$x" = "X-L$found_dir"; then
40438 if test -z "$haveit"; then
40439 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40441 if test "$hardcode_minus_L" != no
; then
40442 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
40444 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
40450 if test "X$found_a" != "X"; then
40451 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
40453 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40456 additional_includedir
=
40457 case "$found_dir" in
40459 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40460 additional_includedir
="$basedir/include"
40463 if test "X$additional_includedir" != "X"; then
40464 if test "X$additional_includedir" != "X/usr/include"; then
40466 if test "X$additional_includedir" = "X/usr/local/include"; then
40467 if test -n "$GCC"; then
40469 linux
*) haveit
=yes;;
40473 if test -z "$haveit"; then
40474 for x
in $CPPFLAGS $INCINTL; do
40476 acl_save_prefix
="$prefix"
40477 prefix
="$acl_final_prefix"
40478 acl_save_exec_prefix
="$exec_prefix"
40479 exec_prefix
="$acl_final_exec_prefix"
40481 exec_prefix
="$acl_save_exec_prefix"
40482 prefix
="$acl_save_prefix"
40484 if test "X$x" = "X-I$additional_includedir"; then
40489 if test -z "$haveit"; then
40490 if test -d "$additional_includedir"; then
40491 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40497 if test -n "$found_la"; then
40498 save_libdir
="$libdir"
40499 case "$found_la" in
40500 */* |
*\\*) .
"$found_la" ;;
40501 *) .
"./$found_la" ;;
40503 libdir
="$save_libdir"
40504 for dep
in $dependency_libs; do
40507 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
40508 if test "X$additional_libdir" != "X/usr/lib"; then
40510 if test "X$additional_libdir" = "X/usr/local/lib"; then
40511 if test -n "$GCC"; then
40513 linux
*) haveit
=yes;;
40517 if test -z "$haveit"; then
40519 for x
in $LDFLAGS $LIBINTL; do
40521 acl_save_prefix
="$prefix"
40522 prefix
="$acl_final_prefix"
40523 acl_save_exec_prefix
="$exec_prefix"
40524 exec_prefix
="$acl_final_exec_prefix"
40526 exec_prefix
="$acl_save_exec_prefix"
40527 prefix
="$acl_save_prefix"
40529 if test "X$x" = "X-L$additional_libdir"; then
40534 if test -z "$haveit"; then
40535 if test -d "$additional_libdir"; then
40536 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40540 for x
in $LDFLAGS $LTLIBINTL; do
40542 acl_save_prefix
="$prefix"
40543 prefix
="$acl_final_prefix"
40544 acl_save_exec_prefix
="$exec_prefix"
40545 exec_prefix
="$acl_final_exec_prefix"
40547 exec_prefix
="$acl_save_exec_prefix"
40548 prefix
="$acl_save_prefix"
40550 if test "X$x" = "X-L$additional_libdir"; then
40555 if test -z "$haveit"; then
40556 if test -d "$additional_libdir"; then
40557 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40564 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
40565 if test "$enable_rpath" != no
; then
40567 for x
in $rpathdirs; do
40568 if test "X$x" = "X$dir"; then
40573 if test -z "$haveit"; then
40574 rpathdirs
="$rpathdirs $dir"
40577 for x
in $ltrpathdirs; do
40578 if test "X$x" = "X$dir"; then
40583 if test -z "$haveit"; then
40584 ltrpathdirs
="$ltrpathdirs $dir"
40589 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40592 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40595 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
40596 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40602 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
40603 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40609 if test "X$rpathdirs" != "X"; then
40610 if test -n "$hardcode_libdir_separator"; then
40612 for found_dir
in $rpathdirs; do
40613 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40615 acl_save_libdir
="$libdir"
40617 eval flag
=\"$hardcode_libdir_flag_spec\"
40618 libdir
="$acl_save_libdir"
40619 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
40621 for found_dir
in $rpathdirs; do
40622 acl_save_libdir
="$libdir"
40623 libdir
="$found_dir"
40624 eval flag
=\"$hardcode_libdir_flag_spec\"
40625 libdir
="$acl_save_libdir"
40626 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
40630 if test "X$ltrpathdirs" != "X"; then
40631 for found_dir
in $ltrpathdirs; do
40632 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40636 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40637 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40638 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40639 echo $ECHO_N "(cached) $ECHO_C" >&6
40641 gt_save_CPPFLAGS
="$CPPFLAGS"
40642 CPPFLAGS
="$CPPFLAGS $INCINTL"
40643 gt_save_LIBS
="$LIBS"
40644 LIBS
="$LIBS $LIBINTL"
40645 cat >conftest.
$ac_ext <<_ACEOF
40646 #line $LINENO "configure"
40649 cat confdefs.h
>>conftest.
$ac_ext
40650 cat >>conftest.
$ac_ext <<_ACEOF
40651 /* end confdefs.h. */
40652 #include <libintl.h>
40653 extern int _nl_msg_cat_cntr;
40658 const char *_nl_expand_alias ();
40662 bindtextdomain ("", "");
40663 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40668 rm -f conftest.
$ac_objext conftest
$ac_exeext
40669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40670 (eval $ac_link) 2>&5
40672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673 (exit $ac_status); } &&
40674 { ac_try
='test -s conftest$ac_exeext'
40675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676 (eval $ac_try) 2>&5
40678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679 (exit $ac_status); }; }; then
40680 gt_cv_func_gnugettext2_libintl
=yes
40682 echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.
$ac_ext >&5
40685 gt_cv_func_gnugettext2_libintl
=no
40687 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40688 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40689 LIBS
="$LIBS $LIBICONV"
40690 cat >conftest.
$ac_ext <<_ACEOF
40691 #line $LINENO "configure"
40694 cat confdefs.h
>>conftest.
$ac_ext
40695 cat >>conftest.
$ac_ext <<_ACEOF
40696 /* end confdefs.h. */
40697 #include <libintl.h>
40698 extern int _nl_msg_cat_cntr;
40703 const char *_nl_expand_alias ();
40707 bindtextdomain ("", "");
40708 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40713 rm -f conftest.
$ac_objext conftest
$ac_exeext
40714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40715 (eval $ac_link) 2>&5
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); } &&
40719 { ac_try
='test -s conftest$ac_exeext'
40720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721 (eval $ac_try) 2>&5
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); }; }; then
40725 LIBINTL
="$LIBINTL $LIBICONV"
40726 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
40727 gt_cv_func_gnugettext2_libintl
=yes
40730 echo "$as_me: failed program was:" >&5
40731 sed 's/^/| /' conftest.
$ac_ext >&5
40734 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
40736 CPPFLAGS
="$gt_save_CPPFLAGS"
40737 LIBS
="$gt_save_LIBS"
40739 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
40740 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
40743 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
40744 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
40745 && test "$PACKAGE" != gettext; }; then
40746 gt_use_preinstalled_gnugettext
=yes
40755 if test "$gt_use_preinstalled_gnugettext" = "yes" \
40756 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
40758 cat >>confdefs.h
<<\_ACEOF
40759 #define ENABLE_NLS 1
40767 if test "$USE_NLS" = "yes"; then
40769 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40770 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
40771 echo "$as_me:$LINENO: checking how to link with libintl" >&5
40772 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
40773 echo "$as_me:$LINENO: result: $LIBINTL" >&5
40774 echo "${ECHO_T}$LIBINTL" >&6
40776 for element
in $INCINTL; do
40778 for x
in $CPPFLAGS; do
40780 acl_save_prefix
="$prefix"
40781 prefix
="$acl_final_prefix"
40782 acl_save_exec_prefix
="$exec_prefix"
40783 exec_prefix
="$acl_final_exec_prefix"
40785 exec_prefix
="$acl_save_exec_prefix"
40786 prefix
="$acl_save_prefix"
40788 if test "X$x" = "X$element"; then
40793 if test -z "$haveit"; then
40794 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
40801 cat >>confdefs.h
<<\_ACEOF
40802 #define HAVE_GETTEXT 1
40806 cat >>confdefs.h
<<\_ACEOF
40807 #define HAVE_DCGETTEXT 1
40817 INTLLIBS
="$LIBINTL"
40826 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"
40828 cat >confcache
<<\_ACEOF
40829 # This file is a shell script that caches the results of configure
40830 # tests run on this system so they can be shared between configure
40831 # scripts and configure runs, see configure's option --config-cache.
40832 # It is not useful on other systems. If it contains results you don't
40833 # want to keep, you may remove or edit it.
40835 # config.status only pays attention to the cache file if you give it
40836 # the --recheck option to rerun configure.
40838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40840 # following values.
40844 # The following way of writing the cache mishandles newlines in values,
40845 # but we know of no workaround that is simple, portable, and efficient.
40846 # So, don't put newlines in cache variables' values.
40847 # Ultrix sh set writes to stderr and can't be redirected directly,
40848 # and sets the high bit in the cache file unless we assign to the vars.
40851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40853 # `set' does not quote correctly, so add quotes (double-quote
40854 # substitution turns \\\\ into \\, and sed turns \\ into \).
40857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40860 # `set' quotes correctly as required by POSIX, so do not add quotes.
40862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40873 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
40874 if test -w $cache_file; then
40875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40876 cat confcache
>$cache_file
40878 echo "not updating unwritable cache $cache_file"
40883 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
40884 # Let make expand exec_prefix.
40885 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
40887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40889 # trailing colons and then remove the whole line if VPATH becomes empty
40890 # (actually we leave an empty line to preserve line numbers).
40891 if test "x$srcdir" = x.
; then
40892 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
40893 s/:*\$(srcdir):*/:/;
40894 s/:*\${srcdir}:*/:/;
40896 s/^\([^=]*=[ ]*\):*/\1/;
40902 DEFS
=-DHAVE_CONFIG_H
40906 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
40907 # 1. Remove the extension, and $U if already installed.
40908 ac_i
=`echo "$ac_i" |
40909 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40911 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
40912 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
40914 LIBOBJS
=$ac_libobjs
40916 LTLIBOBJS
=$ac_ltlibobjs
40919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40920 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40921 Usually this means the macro was only invoked conditionally." >&5
40922 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40923 Usually this means the macro was only invoked conditionally." >&2;}
40924 { (exit 1); exit 1; }; }
40926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40927 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40928 Usually this means the macro was only invoked conditionally." >&5
40929 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40930 Usually this means the macro was only invoked conditionally." >&2;}
40931 { (exit 1); exit 1; }; }
40934 : ${CONFIG_STATUS=./config.status}
40935 ac_clean_files_save
=$ac_clean_files
40936 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
40937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40939 cat >$CONFIG_STATUS <<_ACEOF
40941 # Generated by $as_me.
40942 # Run this file to recreate the current configuration.
40943 # Compiler output produced by configure, useful for debugging
40944 # configure, is in config.log if it exists.
40947 ac_cs_recheck=false
40949 SHELL=\${CONFIG_SHELL-$SHELL}
40952 cat >>$CONFIG_STATUS <<\_ACEOF
40953 ## --------------------- ##
40954 ## M4sh Initialization. ##
40955 ## --------------------- ##
40957 # Be Bourne compatible
40958 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
40961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40962 # is contrary to our usage. Disable this feature.
40963 alias -g '${1+"$@"}'='"$@"'
40964 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
40968 # Support unset when possible.
40969 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
40976 # Work around bugs in pre-3.0 UWIN ksh.
40977 $as_unset ENV MAIL MAILPATH
40984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40986 LC_TELEPHONE LC_TIME
40988 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
40989 eval $as_var=C
; export $as_var
40995 # Required to use basename.
40996 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41002 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
41003 as_basename
=basename
41009 # Name of the executable.
41010 as_me
=`$as_basename "$0" ||
41011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41012 X"$0" : 'X\(//\)$' \| \
41013 X"$0" : 'X\(/\)$' \| \
41014 . : '\(.\)' 2>/dev/null ||
41016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41017 /^X\/\(\/\/\)$/{ s//\1/; q; }
41018 /^X\/\(\/\).*/{ s//\1/; q; }
41022 # PATH needs CR, and LINENO needs CR and PATH.
41023 # Avoid depending upon Character Ranges.
41024 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41025 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41026 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41027 as_cr_digits
='0123456789'
41028 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41030 # The user is always right.
41031 if test "${PATH_SEPARATOR+set}" != set; then
41032 echo "#! /bin/sh" >conf$$.sh
41033 echo "exit 0" >>conf$$.sh
41035 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
41044 as_lineno_1
=$LINENO
41045 as_lineno_2
=$LINENO
41046 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
41047 test "x$as_lineno_1" != "x$as_lineno_2" &&
41048 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
41049 # Find who we are. Look in the path if we contain no path at all
41052 *[\\/]* ) as_myself
=$0 ;;
41053 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
41054 for as_dir
in $PATH
41057 test -z "$as_dir" && as_dir
=.
41058 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
41063 # We did not find ourselves, most probably we were run as `sh COMMAND'
41064 # in which case we are not to be found in the path.
41065 if test "x$as_myself" = x
; then
41068 if test ! -f "$as_myself"; then
41069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41071 { (exit 1); exit 1; }; }
41073 case $CONFIG_SHELL in
41075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
41076 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
41079 test -z "$as_dir" && as_dir
=.
41080 for as_base
in sh bash ksh sh5
; do
41083 if ("$as_dir/$as_base" -c '
41084 as_lineno_1=$LINENO
41085 as_lineno_2=$LINENO
41086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41087 test "x$as_lineno_1" != "x$as_lineno_2" &&
41088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
41089 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
41090 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
41091 CONFIG_SHELL
=$as_dir/$as_base
41092 export CONFIG_SHELL
41093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41102 # uniformly replaced by the line number. The first 'sed' inserts a
41103 # line-number line before each line; the second 'sed' does the real
41104 # work. The second script uses 'N' to pair each line-number line
41105 # with the numbered line, and appends trailing '-' during
41106 # substitution so that $LINENO is not a special case at line end.
41107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41109 sed '=' <$as_myself |
41114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41117 s,^['$as_cr_digits']*\n,,
41118 ' >$as_me.lineno
&&
41119 chmod +x
$as_me.lineno ||
41120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41122 { (exit 1); exit 1; }; }
41124 # Don't try to exec as it changes $[0], causing all sort of problems
41125 # (the dirname of $[0] is not the place where we might find the
41126 # original and so on. Autoconf is especially sensible to this).
41128 # Exit status is that of the last command.
41133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41134 *c
*,-n*) ECHO_N
= ECHO_C
='
41136 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
41137 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
41140 if expr a
: '\(a\)' >/dev
/null
2>&1; then
41146 rm -f conf$$ conf$$.exe conf$$.
file
41148 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41149 # We could just check for DJGPP; but this test a) works b) is more generic
41150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41151 if test -f conf$$.exe
; then
41152 # Don't use ln at all; we don't have any links
41157 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41162 rm -f conf$$ conf$$.exe conf$$.
file
41164 if mkdir
-p .
2>/dev
/null
; then
41170 as_executable_p
="test -f"
41172 # Sed expression to map a string onto a valid CPP name.
41173 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41175 # Sed expression to map a string onto a valid variable name.
41176 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41180 # We need space, tab and new line, in precisely that order.
41190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41191 # report actual input values of CONFIG_FILES etc. instead of their
41192 # values after options handling. Logging --version etc. is OK.
41196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41197 ## Running $as_me. ##
41202 This file was extended by GNU coreutils $as_me 4.5.7, which was
41203 generated by GNU Autoconf 2.57. Invocation command line was
41205 CONFIG_FILES = $CONFIG_FILES
41206 CONFIG_HEADERS = $CONFIG_HEADERS
41207 CONFIG_LINKS = $CONFIG_LINKS
41208 CONFIG_COMMANDS = $CONFIG_COMMANDS
41212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41216 # Files that config.status was made for.
41217 if test -n "$ac_config_files"; then
41218 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41221 if test -n "$ac_config_headers"; then
41222 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41225 if test -n "$ac_config_links"; then
41226 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41229 if test -n "$ac_config_commands"; then
41230 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41233 cat >>$CONFIG_STATUS <<\_ACEOF
41236 \`$as_me' instantiates files from templates according to the
41237 current configuration.
41239 Usage: $0 [OPTIONS] [FILE]...
41241 -h, --help print this help, then exit
41242 -V, --version print version number, then exit
41243 -q, --quiet do not print progress messages
41244 -d, --debug don't remove temporary files
41245 --recheck update $as_me by reconfiguring in the same conditions
41246 --file=FILE[:TEMPLATE]
41247 instantiate the configuration file FILE
41248 --header=FILE[:TEMPLATE]
41249 instantiate the configuration header FILE
41251 Configuration files:
41254 Configuration headers:
41257 Configuration links:
41260 Configuration commands:
41263 Report bugs to <bug-autoconf@gnu.org>."
41266 cat >>$CONFIG_STATUS <<_ACEOF
41268 GNU coreutils config.status 4.5.7
41269 configured by $0, generated by GNU Autoconf 2.57,
41270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41272 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41273 Free Software Foundation, Inc.
41274 This config.status script is free software; the Free Software Foundation
41275 gives unlimited permission to copy, distribute and modify it."
41280 cat >>$CONFIG_STATUS <<\_ACEOF
41281 # If no file are specified by the user, then we need to provide default
41282 # value. By we need to know if files were specified by the user.
41288 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
41289 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
41297 *) # This is not an option, so the user has probably given explicit
41300 ac_need_defaults
=false
;;
41304 # Handling of the options.
41306 cat >>$CONFIG_STATUS <<\_ACEOF
41307 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41309 --version |
--vers* |
-V )
41310 echo "$ac_cs_version"; exit 0 ;;
41312 # Conflict between --help and --header
41313 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41314 Try \`$0 --help' for more information." >&5
41315 echo "$as_me: error: ambiguous option: $1
41316 Try \`$0 --help' for more information." >&2;}
41317 { (exit 1); exit 1; }; };;
41318 --help |
--hel |
-h )
41319 echo "$ac_cs_usage"; exit 0 ;;
41320 --debug |
--d* |
-d )
41322 --file |
--fil |
--fi |
--f )
41324 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
41325 ac_need_defaults
=false
;;
41326 --header |
--heade |
--head |
--hea )
41328 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
41329 ac_need_defaults
=false
;;
41330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41331 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41334 # This is an error.
41335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41336 Try \`$0 --help' for more information." >&5
41337 echo "$as_me: error: unrecognized option: $1
41338 Try \`$0 --help' for more information." >&2;}
41339 { (exit 1); exit 1; }; } ;;
41341 *) ac_config_targets
="$ac_config_targets $1" ;;
41347 ac_configure_extra_args
=
41349 if $ac_cs_silent; then
41351 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41355 cat >>$CONFIG_STATUS <<_ACEOF
41356 if \$ac_cs_recheck; then
41357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41363 cat >>$CONFIG_STATUS <<_ACEOF
41365 # INIT-COMMANDS section.
41368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41370 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41372 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41373 # Capture the value of LINGUAS because we need it to compute CATALOGS.
41374 LINGUAS="${LINGUAS-%UNSET%}"
41381 cat >>$CONFIG_STATUS <<\_ACEOF
41382 for ac_config_target
in $ac_config_targets
41384 case "$ac_config_target" in
41385 # Handling of arguments.
41386 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
41387 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
41388 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
41389 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
41390 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
41391 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
41392 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
41393 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
41394 "tests/basename/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/basename/Makefile" ;;
41395 "tests/chgrp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chgrp/Makefile" ;;
41396 "tests/chmod/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chmod/Makefile" ;;
41397 "tests/chown/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chown/Makefile" ;;
41398 "tests/cp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cp/Makefile" ;;
41399 "tests/cut/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cut/Makefile" ;;
41400 "tests/date/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/date/Makefile" ;;
41401 "tests/dd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dd/Makefile" ;;
41402 "tests/dircolors/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dircolors/Makefile" ;;
41403 "tests/du/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/du/Makefile" ;;
41404 "tests/expr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/expr/Makefile" ;;
41405 "tests/factor/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/factor/Makefile" ;;
41406 "tests/fmt/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/fmt/Makefile" ;;
41407 "tests/head/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/head/Makefile" ;;
41408 "tests/install/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/install/Makefile" ;;
41409 "tests/join/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/join/Makefile" ;;
41410 "tests/ln/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ln/Makefile" ;;
41411 "tests/ls-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls-2/Makefile" ;;
41412 "tests/ls/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls/Makefile" ;;
41413 "tests/md5sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/md5sum/Makefile" ;;
41414 "tests/misc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/misc/Makefile" ;;
41415 "tests/mkdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mkdir/Makefile" ;;
41416 "tests/mv/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mv/Makefile" ;;
41417 "tests/od/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/od/Makefile" ;;
41418 "tests/pr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/pr/Makefile" ;;
41419 "tests/rm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rm/Makefile" ;;
41420 "tests/rmdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rmdir/Makefile" ;;
41421 "tests/seq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/seq/Makefile" ;;
41422 "tests/sha1sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41423 "tests/shred/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/shred/Makefile" ;;
41424 "tests/sort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sort/Makefile" ;;
41425 "tests/stty/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/stty/Makefile" ;;
41426 "tests/sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sum/Makefile" ;;
41427 "tests/tac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tac/Makefile" ;;
41428 "tests/tail-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail-2/Makefile" ;;
41429 "tests/tail/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail/Makefile" ;;
41430 "tests/test/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/test/Makefile" ;;
41431 "tests/touch/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/touch/Makefile" ;;
41432 "tests/tr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tr/Makefile" ;;
41433 "tests/tsort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tsort/Makefile" ;;
41434 "tests/unexpand/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/unexpand/Makefile" ;;
41435 "tests/uniq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/uniq/Makefile" ;;
41436 "tests/wc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/wc/Makefile" ;;
41437 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41438 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41439 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41440 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
41441 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
41442 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
41443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41445 { (exit 1); exit 1; }; };;
41449 # If the user did not use the arguments to specify the items to instantiate,
41450 # then the envvar interface is used. Set only those that are not.
41451 # We use the long form for the default assignment because of an extremely
41452 # bizarre bug on SunOS 4.1.3.
41453 if $ac_need_defaults; then
41454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
41455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
41456 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
41457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
41460 # Have a temporary directory for convenience. Make it in the build tree
41461 # simply because there is no reason to put it here, and in addition,
41462 # creating and moving files from /tmp can sometimes cause problems.
41463 # Create a temporary directory, and hook for its removal unless debugging.
41466 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41467 trap '{ (exit 1); exit 1; }' 1 2 13 15
41470 # Create a (secure) tmp directory for tmp files.
41473 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41474 test -n "$tmp" && test -d "$tmp"
41477 tmp
=.
/confstat$$
-$RANDOM
41478 (umask 077 && mkdir
$tmp)
41481 echo "$me: cannot create a temporary directory in ." >&2
41482 { (exit 1); exit 1; }
41487 cat >>$CONFIG_STATUS <<_ACEOF
41490 # CONFIG_FILES section.
41493 # No need to generate the scripts if there are no CONFIG_FILES.
41494 # This happens for instance when ./config.status config.h
41495 if test -n "\$CONFIG_FILES"; then
41496 # Protect against being on the right side of a sed subst in config.status.
41497 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41498 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41499 s,@SHELL@,$SHELL,;t t
41500 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41501 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41502 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41503 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41504 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41505 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41506 s,@exec_prefix@,$exec_prefix,;t t
41507 s,@prefix@,$prefix,;t t
41508 s,@program_transform_name@,$program_transform_name,;t t
41509 s,@bindir@,$bindir,;t t
41510 s,@sbindir@,$sbindir,;t t
41511 s,@libexecdir@,$libexecdir,;t t
41512 s,@datadir@,$datadir,;t t
41513 s,@sysconfdir@,$sysconfdir,;t t
41514 s,@sharedstatedir@,$sharedstatedir,;t t
41515 s,@localstatedir@,$localstatedir,;t t
41516 s,@libdir@,$libdir,;t t
41517 s,@includedir@,$includedir,;t t
41518 s,@oldincludedir@,$oldincludedir,;t t
41519 s,@infodir@,$infodir,;t t
41520 s,@mandir@,$mandir,;t t
41521 s,@build_alias@,$build_alias,;t t
41522 s,@host_alias@,$host_alias,;t t
41523 s,@target_alias@,$target_alias,;t t
41524 s,@DEFS@,$DEFS,;t t
41525 s,@ECHO_C@,$ECHO_C,;t t
41526 s,@ECHO_N@,$ECHO_N,;t t
41527 s,@ECHO_T@,$ECHO_T,;t t
41528 s,@LIBS@,$LIBS,;t t
41529 s,@build@,$build,;t t
41530 s,@build_cpu@,$build_cpu,;t t
41531 s,@build_vendor@,$build_vendor,;t t
41532 s,@build_os@,$build_os,;t t
41533 s,@host@,$host,;t t
41534 s,@host_cpu@,$host_cpu,;t t
41535 s,@host_vendor@,$host_vendor,;t t
41536 s,@host_os@,$host_os,;t t
41537 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41538 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41539 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41540 s,@CYGPATH_W@,$CYGPATH_W,;t t
41541 s,@PACKAGE@,$PACKAGE,;t t
41542 s,@VERSION@,$VERSION,;t t
41543 s,@ACLOCAL@,$ACLOCAL,;t t
41544 s,@AUTOCONF@,$AUTOCONF,;t t
41545 s,@AUTOMAKE@,$AUTOMAKE,;t t
41546 s,@AUTOHEADER@,$AUTOHEADER,;t t
41547 s,@MAKEINFO@,$MAKEINFO,;t t
41548 s,@AMTAR@,$AMTAR,;t t
41549 s,@install_sh@,$install_sh,;t t
41550 s,@STRIP@,$STRIP,;t t
41551 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41552 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41554 s,@SET_MAKE@,$SET_MAKE,;t t
41555 s,@PERL@,$PERL,;t t
41557 s,@CFLAGS@,$CFLAGS,;t t
41558 s,@LDFLAGS@,$LDFLAGS,;t t
41559 s,@CPPFLAGS@,$CPPFLAGS,;t t
41560 s,@ac_ct_CC@,$ac_ct_CC,;t t
41561 s,@EXEEXT@,$EXEEXT,;t t
41562 s,@OBJEXT@,$OBJEXT,;t t
41563 s,@DEPDIR@,$DEPDIR,;t t
41564 s,@am__include@,$am__include,;t t
41565 s,@am__quote@,$am__quote,;t t
41566 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41567 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41568 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41569 s,@CCDEPMODE@,$CCDEPMODE,;t t
41570 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41571 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41573 s,@EGREP@,$EGREP,;t t
41574 s,@RANLIB@,$RANLIB,;t t
41575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41576 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41577 s,@HELP2MAN@,$HELP2MAN,;t t
41578 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41579 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41581 s,@DF_PROG@,$DF_PROG,;t t
41583 s,@ANSI2KNR@,$ANSI2KNR,;t t
41584 s,@LIBOBJS@,$LIBOBJS,;t t
41585 s,@ALLOCA@,$ALLOCA,;t t
41586 s,@YACC@,$YACC,;t t
41587 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41588 s,@NEED_SETGID@,$NEED_SETGID,;t t
41589 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41590 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41591 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41592 s,@POW_LIB@,$POW_LIB,;t t
41593 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41594 s,@GLIBC21@,$GLIBC21,;t t
41595 s,@LIBICONV@,$LIBICONV,;t t
41596 s,@LTLIBICONV@,$LTLIBICONV,;t t
41597 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41598 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41599 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41600 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41601 s,@MSGFMT@,$MSGFMT,;t t
41602 s,@GMSGFMT@,$GMSGFMT,;t t
41603 s,@XGETTEXT@,$XGETTEXT,;t t
41604 s,@MSGMERGE@,$MSGMERGE,;t t
41605 s,@USE_NLS@,$USE_NLS,;t t
41606 s,@INTLLIBS@,$INTLLIBS,;t t
41607 s,@LIBINTL@,$LIBINTL,;t t
41608 s,@LTLIBINTL@,$LTLIBINTL,;t t
41609 s,@POSUB@,$POSUB,;t t
41610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41615 cat >>$CONFIG_STATUS <<\_ACEOF
41616 # Split the substitutions into bite-sized pieces for seds with
41617 # small command number limits, like on Digital OSF/1 and HP-UX.
41618 ac_max_sed_lines
=48
41619 ac_sed_frag
=1 # Number of current file.
41620 ac_beg
=1 # First line for current file.
41621 ac_end
=$ac_max_sed_lines # Line after last line for current file.
41624 while $ac_more_lines; do
41625 if test $ac_beg -gt 1; then
41626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
41628 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
41630 if test ! -s $tmp/subs.frag
; then
41631 ac_more_lines
=false
41633 # The purpose of the label and of the branching condition is to
41634 # speed up the sed processing (if there are no `@' at all, there
41635 # is no need to browse any of the substitutions).
41636 # These are the two extra sed commands mentioned above.
41638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
41639 if test -z "$ac_sed_cmds"; then
41640 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
41642 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41644 ac_sed_frag
=`expr $ac_sed_frag + 1`
41646 ac_end
=`expr $ac_end + $ac_max_sed_lines`
41649 if test -z "$ac_sed_cmds"; then
41652 fi # test -n "$CONFIG_FILES"
41655 cat >>$CONFIG_STATUS <<\_ACEOF
41656 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
41657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41659 - |
*:- |
*:-:* ) # input from stdin
41661 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41662 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41663 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41664 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41665 * ) ac_file_in
=$ac_file.
in ;;
41668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41669 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
41670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41671 X"$ac_file" : 'X\(//\)[^/]' \| \
41672 X"$ac_file" : 'X\(//\)$' \| \
41673 X"$ac_file" : 'X\(/\)' \| \
41674 . : '\(.\)' 2>/dev/null ||
41676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41678 /^X\(\/\/\)$/{ s//\1/; q; }
41679 /^X\(\/\).*/{ s//\1/; q; }
41681 { if $as_mkdir_p; then
41686 while test ! -d "$as_dir"; do
41687 as_dirs
="$as_dir $as_dirs"
41688 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
41689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41690 X"$as_dir" : 'X\(//\)[^/]' \| \
41691 X"$as_dir" : 'X\(//\)$' \| \
41692 X"$as_dir" : 'X\(/\)' \| \
41693 . : '\(.\)' 2>/dev/null ||
41695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41697 /^X\(\/\/\)$/{ s//\1/; q; }
41698 /^X\(\/\).*/{ s//\1/; q; }
41701 test ! -n "$as_dirs" || mkdir
$as_dirs
41702 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41704 { (exit 1); exit 1; }; }; }
41708 if test "$ac_dir" != .
; then
41709 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41710 # A "../" for each directory in $ac_dir_suffix.
41711 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41713 ac_dir_suffix
= ac_top_builddir
=
41717 .
) # No --srcdir option. We are building in place.
41719 if test -z "$ac_top_builddir"; then
41722 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
41724 [\\/]* | ?
:[\\/]* ) # Absolute path.
41725 ac_srcdir
=$srcdir$ac_dir_suffix;
41726 ac_top_srcdir
=$srcdir ;;
41727 *) # Relative path.
41728 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
41729 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
41731 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
41733 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
41734 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
41735 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
41736 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
41740 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
41741 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
41744 if test x
"$ac_file" != x-
; then
41745 { echo "$as_me:$LINENO: creating $ac_file" >&5
41746 echo "$as_me: creating $ac_file" >&6;}
41749 # Let's still pretend it is `configure' which instantiates (i.e., don't
41750 # use $as_me), people would be surprised to read:
41751 # /* config.h. Generated by config.status. */
41752 if test x
"$ac_file" = x-
; then
41755 configure_input
="$ac_file. "
41757 configure_input
=$configure_input"Generated from `echo $ac_file_in |
41758 sed 's,.*/,,'` by configure."
41760 # First look for the input files in the build tree, otherwise in the
41762 ac_file_inputs
=`IFS=:
41763 for f in $ac_file_in; do
41765 -) echo $tmp/stdin ;;
41767 # Absolute (can't be DOS-style, as IFS=:)
41768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41769 echo "$as_me: error: cannot find input file: $f" >&2;}
41770 { (exit 1); exit 1; }; }
41773 if test -f "$f"; then
41776 elif test -f "$srcdir/$f"; then
41781 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41782 echo "$as_me: error: cannot find input file: $f" >&2;}
41783 { (exit 1); exit 1; }; }
41786 done` ||
{ (exit 1); exit 1; }
41788 cat >>$CONFIG_STATUS <<_ACEOF
41792 cat >>$CONFIG_STATUS <<\_ACEOF
41794 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
41795 s
,@configure_input@
,$configure_input,;t t
41796 s
,@srcdir@
,$ac_srcdir,;t t
41797 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
41798 s
,@top_srcdir@
,$ac_top_srcdir,;t t
41799 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
41800 s
,@builddir@
,$ac_builddir,;t t
41801 s
,@abs_builddir@
,$ac_abs_builddir,;t t
41802 s
,@top_builddir@
,$ac_top_builddir,;t t
41803 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
41804 s
,@INSTALL@
,$ac_INSTALL,;t t
41805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41807 if test x"$ac_file" != x-; then
41808 mv $tmp/out $ac_file
41816 cat >>$CONFIG_STATUS <<\_ACEOF
41819 # CONFIG_HEADER section.
41822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
41823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41825 # ac_d sets the value in "#define NAME VALUE" lines.
41826 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41827 ac_dB
='[ ].*$,\1#\2'
41830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41831 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41832 ac_uB
='$,\1#\2define\3'
41836 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
41837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41839 - |
*:- |
*:-:* ) # input from stdin
41841 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41842 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41843 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
41844 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
41845 * ) ac_file_in
=$ac_file.
in ;;
41848 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
41849 echo "$as_me: creating $ac_file" >&6;}
41851 # First look for the input files in the build tree, otherwise in the
41853 ac_file_inputs
=`IFS=:
41854 for f in $ac_file_in; do
41856 -) echo $tmp/stdin ;;
41858 # Absolute (can't be DOS-style, as IFS=:)
41859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41860 echo "$as_me: error: cannot find input file: $f" >&2;}
41861 { (exit 1); exit 1; }; }
41864 if test -f "$f"; then
41867 elif test -f "$srcdir/$f"; then
41872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41873 echo "$as_me: error: cannot find input file: $f" >&2;}
41874 { (exit 1); exit 1; }; }
41877 done` ||
{ (exit 1); exit 1; }
41878 # Remove the trailing spaces.
41879 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41884 # `conftest.undefs', that substitutes the proper values into
41885 # config.h.in to produce config.h. The first handles `#define'
41886 # templates, and the second `#undef' templates.
41887 # And first: Protect against being on the right side of a sed subst in
41888 # config.status. Protect against being in an unquoted here document
41889 # in config.status.
41890 rm -f conftest.defines conftest.undefs
41891 # Using a here document instead of a string reduces the quoting nightmare.
41892 # Putting comments in sed scripts is not portable.
41894 # `end' is used to avoid that the second main sed command (meant for
41895 # 0-ary CPP macros) applies to n-ary macro definitions.
41896 # See the Autoconf documentation for `clear'.
41897 cat >confdef2sed.
sed <<\_ACEOF
41902 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41904 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41907 # If some macros were called several times there might be several times
41908 # the same #defines, which is useless. Nevertheless, we may not want to
41909 # sort them, since we want the *last* AC-DEFINE to be honored.
41910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41912 rm -f confdef2sed.sed
41914 # This sed command replaces #undef with comments. This is necessary, for
41915 # example, in the case of _POSIX_SOURCE, which is predefined and required
41916 # on some systems where configure will not decide to define it.
41917 cat >>conftest.undefs <<\_ACEOF
41918 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41921 # Break up conftest.defines because some shells have a limit on the size
41922 # of here documents, and old seds have small limits too (100 cmds).
41923 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41924 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41925 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41926 echo ' :' >>$CONFIG_STATUS
41927 rm -f conftest.tail
41928 while grep . conftest.defines >/dev/null
41930 # Write a limited-size here document to $tmp/defines.sed.
41931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41932 # Speed up: don't consider the non `#define' lines.
41933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41934 # Work around the forget-to-reset-the-flag bug.
41935 echo 't clr' >>$CONFIG_STATUS
41936 echo ': clr' >>$CONFIG_STATUS
41937 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
41939 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41941 mv $tmp/out $tmp/in
41943 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
41944 rm -f conftest.defines
41945 mv conftest.
tail conftest.defines
41947 rm -f conftest.defines
41948 echo ' fi # grep' >>$CONFIG_STATUS
41949 echo >>$CONFIG_STATUS
41951 # Break up conftest.undefs because some shells have a limit on the size
41952 # of here documents, and old seds have small limits too (100 cmds).
41953 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41954 rm -f conftest.
tail
41955 while grep . conftest.undefs
>/dev
/null
41957 # Write a limited-size here document to $tmp/undefs.sed.
41958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41959 # Speed up: don't consider the non
`#undef'
41960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41961 # Work around the forget-to-reset-the-flag bug.
41962 echo 't clr' >>$CONFIG_STATUS
41963 echo ': clr' >>$CONFIG_STATUS
41964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41968 mv $tmp/out $tmp/in
41970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41971 rm -f conftest.undefs
41972 mv conftest.tail conftest.undefs
41974 rm -f conftest.undefs
41976 cat >>$CONFIG_STATUS <<\_ACEOF
41977 # Let's still pretend it is `configure
' which instantiates (i.e., don't
41978 # use $as_me), people would be surprised to read:
41979 # /* config.h. Generated by config.status. */
41980 if test x
"$ac_file" = x-
; then
41981 echo "/* Generated by configure. */" >$tmp/config.h
41983 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41985 cat $tmp/in >>$tmp/config.h
41987 if test x
"$ac_file" != x-
; then
41988 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
41989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41990 echo "$as_me: $ac_file is unchanged" >&6;}
41992 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
41993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41994 X"$ac_file" : 'X\(//\)[^/]' \| \
41995 X"$ac_file" : 'X\(//\)$' \| \
41996 X"$ac_file" : 'X\(/\)' \| \
41997 . : '\(.\)' 2>/dev/null ||
41999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42001 /^X\(\/\/\)$/{ s//\1/; q; }
42002 /^X\(\/\).*/{ s//\1/; q; }
42004 { if $as_mkdir_p; then
42009 while test ! -d "$as_dir"; do
42010 as_dirs
="$as_dir $as_dirs"
42011 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42013 X"$as_dir" : 'X\(//\)[^/]' \| \
42014 X"$as_dir" : 'X\(//\)$' \| \
42015 X"$as_dir" : 'X\(/\)' \| \
42016 . : '\(.\)' 2>/dev/null ||
42018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42020 /^X\(\/\/\)$/{ s//\1/; q; }
42021 /^X\(\/\).*/{ s//\1/; q; }
42024 test ! -n "$as_dirs" || mkdir
$as_dirs
42025 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42027 { (exit 1); exit 1; }; }; }
42030 mv $tmp/config.h
$ac_file
42034 rm -f $tmp/config.h
42036 _am_stamp_count
=`expr ${_am_stamp_count-0} + 1`
42037 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42038 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42039 X$ac_file : 'X\(//\)[^/]' \| \
42040 X$ac_file : 'X\(//\)$' \| \
42041 X$ac_file : 'X\(/\)' \| \
42042 . : '\(.\)' 2>/dev/null ||
42044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42046 /^X\(\/\/\)$/{ s//\1/; q; }
42047 /^X\(\/\).*/{ s//\1/; q; }
42048 s/.*/./; q'`/stamp-h
$_am_stamp_count
42051 cat >>$CONFIG_STATUS <<\_ACEOF
42054 # CONFIG_LINKS section.
42057 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
42058 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
42059 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42061 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42062 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42064 if test ! -r $srcdir/$ac_source; then
42065 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42066 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42067 { (exit 1); exit 1; }; }
42071 # Make relative symlinks.
42072 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
42073 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42074 X"$ac_dest" : 'X\(//\)[^/]' \| \
42075 X"$ac_dest" : 'X\(//\)$' \| \
42076 X"$ac_dest" : 'X\(/\)' \| \
42077 . : '\(.\)' 2>/dev/null ||
42079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42081 /^X\(\/\/\)$/{ s//\1/; q; }
42082 /^X\(\/\).*/{ s//\1/; q; }
42084 { if $as_mkdir_p; then
42085 mkdir
-p "$ac_dest_dir"
42087 as_dir
="$ac_dest_dir"
42089 while test ! -d "$as_dir"; do
42090 as_dirs
="$as_dir $as_dirs"
42091 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42093 X"$as_dir" : 'X\(//\)[^/]' \| \
42094 X"$as_dir" : 'X\(//\)$' \| \
42095 X"$as_dir" : 'X\(/\)' \| \
42096 . : '\(.\)' 2>/dev/null ||
42098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42100 /^X\(\/\/\)$/{ s//\1/; q; }
42101 /^X\(\/\).*/{ s//\1/; q; }
42104 test ! -n "$as_dirs" || mkdir
$as_dirs
42105 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42106 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42107 { (exit 1); exit 1; }; }; }
42111 if test "$ac_dest_dir" != .
; then
42112 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42113 # A "../" for each directory in $ac_dir_suffix.
42114 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42116 ac_dir_suffix
= ac_top_builddir
=
42120 .
) # No --srcdir option. We are building in place.
42122 if test -z "$ac_top_builddir"; then
42125 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
42127 [\\/]* | ?
:[\\/]* ) # Absolute path.
42128 ac_srcdir
=$srcdir$ac_dir_suffix;
42129 ac_top_srcdir
=$srcdir ;;
42130 *) # Relative path.
42131 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
42132 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
42134 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42136 ac_abs_builddir
=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42137 ac_abs_top_builddir
=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42138 ac_abs_srcdir
=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42139 ac_abs_top_srcdir
=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42143 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
42144 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
42147 # Try a symlink, then a hard link, then a copy.
42148 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
42149 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
42150 cp -p $srcdir/$ac_source $ac_dest ||
42151 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42152 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42153 { (exit 1); exit 1; }; }
42156 cat >>$CONFIG_STATUS <<\_ACEOF
42159 # CONFIG_COMMANDS section.
42161 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
42162 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
42163 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
42164 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
42165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42166 X"$ac_dest" : 'X\(//\)[^/]' \| \
42167 X"$ac_dest" : 'X\(//\)$' \| \
42168 X"$ac_dest" : 'X\(/\)' \| \
42169 . : '\(.\)' 2>/dev/null ||
42171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42173 /^X\(\/\/\)$/{ s//\1/; q; }
42174 /^X\(\/\).*/{ s//\1/; q; }
42178 if test "$ac_dir" != .
; then
42179 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42180 # A "../" for each directory in $ac_dir_suffix.
42181 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42183 ac_dir_suffix
= ac_top_builddir
=
42187 .
) # No --srcdir option. We are building in place.
42189 if test -z "$ac_top_builddir"; then
42192 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
42194 [\\/]* | ?
:[\\/]* ) # Absolute path.
42195 ac_srcdir
=$srcdir$ac_dir_suffix;
42196 ac_top_srcdir
=$srcdir ;;
42197 *) # Relative path.
42198 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
42199 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
42201 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42203 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
42204 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42205 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42206 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42209 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42210 echo "$as_me: executing $ac_dest commands" >&6;}
42212 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
42213 # Strip MF so we end up with the name of the file.
42214 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42215 # Check whether this is an Automake generated Makefile or not.
42216 # We used to match only the files named `Makefile.in', but
42217 # some people rename them; so instead we look at the file content.
42218 # Grep'ing the first line is not enough: some people post-process
42219 # each Makefile.in and add a new line on top of each file to say so.
42220 # So let's grep whole file.
42221 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
42222 dirpart
=`(dirname "$mf") 2>/dev/null ||
42223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42224 X"$mf" : 'X\(//\)[^/]' \| \
42225 X"$mf" : 'X\(//\)$' \| \
42226 X"$mf" : 'X\(/\)' \| \
42227 . : '\(.\)' 2>/dev/null ||
42229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42231 /^X\(\/\/\)$/{ s//\1/; q; }
42232 /^X\(\/\).*/{ s//\1/; q; }
42237 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
42238 # Extract the definition of DEP_FILES from the Makefile without
42240 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42241 test -z "$DEPDIR" && continue
42242 # When using ansi2knr, U may be empty or an underscore; expand it
42243 U
=`sed -n -e '/^U = / s///p' < "$mf"`
42244 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
42245 # We invoke sed twice because it is the simplest approach to
42246 # changing $(DEPDIR) to its actual value in the expansion.
42247 for file in `sed -n -e '
42248 /^DEP_FILES = .*\\\\$/ {
42257 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42259 # Make sure the directory exists.
42260 test -f "$dirpart/$file" && continue
42261 fdir
=`(dirname "$file") 2>/dev/null ||
42262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42263 X"$file" : 'X\(//\)[^/]' \| \
42264 X"$file" : 'X\(//\)$' \| \
42265 X"$file" : 'X\(/\)' \| \
42266 . : '\(.\)' 2>/dev/null ||
42268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42270 /^X\(\/\/\)$/{ s//\1/; q; }
42271 /^X\(\/\).*/{ s//\1/; q; }
42273 { if $as_mkdir_p; then
42274 mkdir
-p $dirpart/$fdir
42276 as_dir
=$dirpart/$fdir
42278 while test ! -d "$as_dir"; do
42279 as_dirs
="$as_dir $as_dirs"
42280 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
42281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42282 X"$as_dir" : 'X\(//\)[^/]' \| \
42283 X"$as_dir" : 'X\(//\)$' \| \
42284 X"$as_dir" : 'X\(/\)' \| \
42285 . : '\(.\)' 2>/dev/null ||
42287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42289 /^X\(\/\/\)$/{ s//\1/; q; }
42290 /^X\(\/\).*/{ s//\1/; q; }
42293 test ! -n "$as_dirs" || mkdir
$as_dirs
42294 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42295 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42296 { (exit 1); exit 1; }; }; }
42298 # echo "creating $dirpart/$file"
42299 echo '# dummy' > "$dirpart/$file"
42304 for ac_file
in $CONFIG_FILES; do
42305 # Support "outfile[:infile[:infile...]]"
42307 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
42309 # PO directories have a Makefile.in generated from Makefile.in.in.
42310 case "$ac_file" in */Makefile.
in)
42311 # Adjust a relative srcdir.
42312 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42313 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
42314 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42315 # In autoconf-2.13 it is called $ac_given_srcdir.
42316 # In autoconf-2.50 it is called $srcdir.
42317 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
42318 case "$ac_given_srcdir" in
42319 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
42320 /*) top_srcdir
="$ac_given_srcdir" ;;
42321 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
42323 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42324 rm -f "$ac_dir/POTFILES"
42325 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
42326 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42327 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42328 # on $ac_dir but don't depend on user-specified configuration
42330 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42331 # The LINGUAS file contains the set of available languages.
42332 if test -n "$ALL_LINGUAS"; then
42333 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
42335 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42336 # Hide the ALL_LINGUAS assigment from automake.
42337 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42339 case "$ac_given_srcdir" in
42341 *) srcdirpre
='$(srcdir)/' ;;
42347 for lang
in $ALL_LINGUAS; do
42348 POFILES
="$POFILES $srcdirpre$lang.po"
42349 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
42350 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
42351 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
42353 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42354 # environment variable.
42356 if test -n "$ALL_LINGUAS"; then
42357 for presentlang
in $ALL_LINGUAS; do
42359 if test "%UNSET%" != "$LINGUAS"; then
42360 desiredlanguages
="$LINGUAS"
42362 desiredlanguages
="$ALL_LINGUAS"
42364 for desiredlang
in $desiredlanguages; do
42365 # Use the presentlang catalog if desiredlang is
42366 # a. equal to presentlang, or
42367 # b. a variant of presentlang (because in this case,
42368 # presentlang can be used as a fallback for messages
42369 # which are not translated in the desiredlang catalog).
42370 case "$desiredlang" in
42371 "$presentlang"*) useit
=yes;;
42374 if test $useit = yes; then
42375 INST_LINGUAS
="$INST_LINGUAS $presentlang"
42380 if test -n "$INST_LINGUAS"; then
42381 for lang
in $INST_LINGUAS; do
42382 CATALOGS
="$CATALOGS $lang.gmo"
42385 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
42386 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"
42387 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
42388 if test -f "$f"; then
42390 *.orig |
*.bak |
*~
) ;;
42391 *) cat "$f" >> "$ac_dir/Makefile" ;;
42403 cat >>$CONFIG_STATUS <<\_ACEOF
42405 { (exit 0); exit 0; }
42407 chmod +x
$CONFIG_STATUS
42408 ac_clean_files
=$ac_clean_files_save
42411 # configure is writing to config.log, and then calls config.status.
42412 # config.status does its own redirection, appending to config.log.
42413 # Unfortunately, on DOS this fails, as config.log is still kept open
42414 # by configure, so config.status won't be able to write to it; its
42415 # output is simply discarded. So we exec the FD to /dev/null,
42416 # effectively closing config.log, so it can be properly (re)opened and
42417 # appended to by config.status. When coming back to configure, we
42418 # need to make the FD available again.
42419 if test "$no_create" != yes; then
42421 ac_config_status_args
=
42422 test "$silent" = yes &&
42423 ac_config_status_args
="$ac_config_status_args --quiet"
42425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
42427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42428 # would make configure fail if this is the last instruction.
42429 $ac_cs_success ||
{ (exit 1); exit 1; }