2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.4.
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.4'
272 PACKAGE_STRING
='GNU coreutils 4.5.4'
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 YACC ALLOCA 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.4 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.4:";;
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.4
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.4, 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
7124 echo "$as_me:$LINENO: checking host operating system" >&5
7125 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
7126 if test "${utils_cv_host_operating_system+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 # These operating system names do not use the default heuristic below.
7132 # They are in reverse order, so that more-specific prefixes come first.
7133 winnt
*) os
='Windows NT';;
7135 sysv
*) os
='Unix System V';;
7136 superux
*) os
='SUPER-UX';;
7137 sunos
*) os
='SunOS';;
7139 sco
*) os
='SCO Unix';;
7140 riscos
*) os
='RISC OS';;
7141 riscix
*) os
='RISCiX';;
7145 plan9
*) os
='Plan 9';;
7148 openbsd
*) os
='OpenBSD';;
7149 nsk
*) os
='NonStop Kernel';;
7150 nonstopux
*) os
='NonStop-UX';;
7151 netbsd
*) os
='NetBSD';;
7152 msdosdjgpp
*) os
='DJGPP';;
7153 mpeix
*) os
='MPE/iX';;
7155 mingw
*) os
='MinGW';;
7156 lynxos
*) os
='LynxOS';;
7157 linux
*) os
='GNU/Linux';;
7161 freebsd
*-gnu*) os
='GNU/FreeBSD';;
7162 freebsd
*) os
='FreeBSD';;
7164 bsdi
*) os
='BSD/OS';;
7168 atheos
*) os
='AtheOS';;
7169 amigaos
*) os
='Amiga OS';;
7172 # The default heuristic takes the initial alphabetic string
7173 # from $host_os, but capitalizes its first letter.
7176 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
7178 expr "X$host_os" : 'X.\([A-Za-z]*\)'
7182 # If $host_os does not start with an alphabetic string, use it unchanged.
7186 utils_cv_host_operating_system
=$os
7188 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
7189 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
7191 cat >>confdefs.h
<<_ACEOF
7192 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
7196 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
7197 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
7198 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 # Arrange for deletion of the temporary directory this test might create.
7203 ac_clean_files
="$ac_clean_files confdir-slash"
7204 if test "$cross_compiling" = yes; then
7205 utils_cv_func_mkdir_trailing_slash_bug
=yes
7208 cat >conftest.
$ac_ext <<_ACEOF
7209 #line $LINENO "configure"
7212 cat confdefs.h
>>conftest.
$ac_ext
7213 cat >>conftest.
$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7216 # include <sys/types.h>
7217 # include <sys/stat.h>
7218 # include <stdlib.h>
7221 rmdir ("confdir-slash");
7222 exit (mkdir ("confdir-slash/", 0700));
7226 rm -f conftest
$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 utils_cv_func_mkdir_trailing_slash_bug
=no
7239 echo "$as_me: program exited with status $ac_status" >&5
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.
$ac_ext >&5
7244 utils_cv_func_mkdir_trailing_slash_bug
=yes
7246 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7251 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
7252 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
7254 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
7255 LIBOBJS
="$LIBOBJS mkdir.$ac_objext"
7257 cat >>confdefs.h
<<\_ACEOF
7258 #define mkdir rpl_mkdir
7264 # getdate.y works with bison only.
7265 : ${YACC='bison -y'}
7269 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
7270 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
7271 # Check whether --enable-assert or --disable-assert was given.
7272 if test "${enable_assert+set}" = set; then
7273 enableval
="$enable_assert"
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7277 cat >>confdefs.h
<<\_ACEOF
7282 echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6
7289 for ac_header
in utime.h
7291 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293 echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7301 # Is the header compilable?
7302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7304 cat >conftest.
$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7308 cat confdefs.h
>>conftest.
$ac_ext
7309 cat >>conftest.
$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7312 #include <$ac_header>
7314 rm -f conftest.
$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try
='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler
=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.
$ac_ext >&5
7331 ac_header_compiler
=no
7333 rm -f conftest.
$ac_objext conftest.
$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.
$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <$ac_header>
7349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7352 grep -v '^ *+' conftest.er1
>conftest.err
7354 cat conftest.err
>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev
/null
; then
7357 if test -s conftest.err
; then
7358 ac_cpp_err
=$ac_c_preproc_warn_flag
7365 if test -z "$ac_cpp_err"; then
7366 ac_header_preproc
=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 ac_header_preproc
=no
7373 rm -f conftest.err conftest.
$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375 echo "${ECHO_T}$ac_header_preproc" >&6
7377 # So? What about this header?
7378 case $ac_header_compiler:$ac_header_preproc in
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7386 ## ------------------------------------ ##
7387 ## Report this to bug-autoconf@gnu.org. ##
7388 ## ------------------------------------ ##
7391 sed "s/^/$as_me: WARNING: /" >&2
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7402 ## ------------------------------------ ##
7403 ## Report this to bug-autoconf@gnu.org. ##
7404 ## ------------------------------------ ##
7407 sed "s/^/$as_me: WARNING: /" >&2
7410 echo "$as_me:$LINENO: checking for $ac_header" >&5
7411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 eval "$as_ac_Header=$ac_header_preproc"
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7422 cat >>confdefs.h
<<_ACEOF
7423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7432 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
7433 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 cat >conftest.
$ac_ext <<_ACEOF
7437 #line $LINENO "configure"
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 #ifdef TIME_WITH_SYS_TIME
7445 # include <sys/time.h>
7448 # ifdef HAVE_SYS_TIME_H
7449 # include <sys/time.h>
7461 static struct utimbuf x; x.actime = x.modtime;
7466 rm -f conftest.
$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try
='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 fu_cv_sys_struct_utimbuf
=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.
$ac_ext >&5
7483 fu_cv_sys_struct_utimbuf
=no
7485 rm -f conftest.
$ac_objext conftest.
$ac_ext
7488 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
7489 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
7491 if test $fu_cv_sys_struct_utimbuf = yes; then
7493 cat >>confdefs.h
<<\_ACEOF
7494 #define HAVE_STRUCT_UTIMBUF 1
7499 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
7500 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7501 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7508 cat confdefs.h
>>conftest.
$ac_ext
7509 cat >>conftest.
$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7512 #include <sys/types.h>
7513 #ifdef HAVE_DIRENT_H
7514 # include <dirent.h>
7515 #else /* not HAVE_DIRENT_H */
7516 # define dirent direct
7517 # ifdef HAVE_SYS_NDIR_H
7518 # include <sys/ndir.h>
7519 # endif /* HAVE_SYS_NDIR_H */
7520 # ifdef HAVE_SYS_DIR_H
7521 # include <sys/dir.h>
7522 # endif /* HAVE_SYS_DIR_H */
7525 # endif /* HAVE_NDIR_H */
7526 #endif /* HAVE_DIRENT_H */
7531 struct dirent dp; dp.d_type = 0;
7536 rm -f conftest.
$ac_objext conftest
$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try
='test -s conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 jm_cv_struct_dirent_d_type
=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.
$ac_ext >&5
7553 jm_cv_struct_dirent_d_type
=no
7555 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7559 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
7560 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7561 if test $jm_cv_struct_dirent_d_type = yes; then
7563 cat >>confdefs.h
<<\_ACEOF
7564 #define HAVE_STRUCT_DIRENT_D_TYPE 1
7570 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
7571 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7572 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 cat >conftest.
$ac_ext <<_ACEOF
7576 #line $LINENO "configure"
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7583 #include <sys/types.h>
7584 #ifdef HAVE_DIRENT_H
7585 # include <dirent.h>
7586 #else /* not HAVE_DIRENT_H */
7587 # define dirent direct
7588 # ifdef HAVE_SYS_NDIR_H
7589 # include <sys/ndir.h>
7590 # endif /* HAVE_SYS_NDIR_H */
7591 # ifdef HAVE_SYS_DIR_H
7592 # include <sys/dir.h>
7593 # endif /* HAVE_SYS_DIR_H */
7596 # endif /* HAVE_NDIR_H */
7597 #endif /* HAVE_DIRENT_H */
7602 struct dirent dp; dp.d_ino = 0;
7607 rm -f conftest.
$ac_objext conftest
$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try
='test -s conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 jm_cv_struct_dirent_d_ino
=yes
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.
$ac_ext >&5
7624 jm_cv_struct_dirent_d_ino
=no
7626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7631 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7632 if test $jm_cv_struct_dirent_d_ino = yes; then
7634 cat >>confdefs.h
<<\_ACEOF
7635 #define D_INO_IN_DIRENT 1
7653 for ac_header
in grp.h memory.h
pwd.h string.h
strings.h stdlib.h \
7654 unistd.h sys
/time.h utmp.h utmpx.h
7656 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658 echo "$as_me:$LINENO: checking for $ac_header" >&5
7659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666 # Is the header compilable?
7667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7673 cat confdefs.h
>>conftest.
$ac_ext
7674 cat >>conftest.
$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7676 $ac_includes_default
7677 #include <$ac_header>
7679 rm -f conftest.
$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try
='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_header_compiler
=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.
$ac_ext >&5
7696 ac_header_compiler
=no
7698 rm -f conftest.
$ac_objext conftest.
$ac_ext
7699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7700 echo "${ECHO_T}$ac_header_compiler" >&6
7702 # Is the header present?
7703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7705 cat >conftest.
$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7709 cat confdefs.h
>>conftest.
$ac_ext
7710 cat >>conftest.
$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 #include <$ac_header>
7714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7717 grep -v '^ *+' conftest.er1
>conftest.err
7719 cat conftest.err
>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } >/dev
/null
; then
7722 if test -s conftest.err
; then
7723 ac_cpp_err
=$ac_c_preproc_warn_flag
7730 if test -z "$ac_cpp_err"; then
7731 ac_header_preproc
=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.
$ac_ext >&5
7736 ac_header_preproc
=no
7738 rm -f conftest.err conftest.
$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7740 echo "${ECHO_T}$ac_header_preproc" >&6
7742 # So? What about this header?
7743 case $ac_header_compiler:$ac_header_preproc in
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7751 ## ------------------------------------ ##
7752 ## Report this to bug-autoconf@gnu.org. ##
7753 ## ------------------------------------ ##
7756 sed "s/^/$as_me: WARNING: /" >&2
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7767 ## ------------------------------------ ##
7768 ## Report this to bug-autoconf@gnu.org. ##
7769 ## ------------------------------------ ##
7772 sed "s/^/$as_me: WARNING: /" >&2
7775 echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 eval "$as_ac_Header=$ac_header_preproc"
7782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7787 cat >>confdefs.h
<<_ACEOF
7788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7802 # if !STDC_HEADERS && HAVE_MEMORY_H
7803 # include <memory.h>
7805 # include <string.h>
7808 # include <strings.h>
7812 # include <stdlib.h>
7815 # include <unistd.h>
7818 #include <sys/types.h>
7819 #if TIME_WITH_SYS_TIME
7820 # include <sys/time.h>
7823 # if HAVE_SYS_TIME_H
7824 # include <sys/time.h>
7843 echo "$as_me:$LINENO: checking whether free is declared" >&5
7844 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7845 if test "${ac_cv_have_decl_free+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 cat >conftest.
$ac_ext <<_ACEOF
7849 #line $LINENO "configure"
7852 cat confdefs.h
>>conftest.
$ac_ext
7853 cat >>conftest.
$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7861 char *p = (char *) free;
7868 rm -f conftest.
$ac_objext
7869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870 (eval $ac_compile) 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try
='test -s conftest.$ac_objext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_have_decl_free
=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7885 ac_cv_have_decl_free
=no
7887 rm -f conftest.
$ac_objext conftest.
$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7891 if test $ac_cv_have_decl_free = yes; then
7893 cat >>confdefs.h
<<_ACEOF
7894 #define HAVE_DECL_FREE 1
7899 cat >>confdefs.h
<<_ACEOF
7900 #define HAVE_DECL_FREE 0
7905 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7906 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7907 if test "${ac_cv_have_decl_getenv+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.
$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7923 char *p = (char *) getenv;
7930 rm -f conftest.
$ac_objext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7932 (eval $ac_compile) 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try
='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_have_decl_getenv
=yes
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.
$ac_ext >&5
7947 ac_cv_have_decl_getenv
=no
7949 rm -f conftest.
$ac_objext conftest.
$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7952 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7953 if test $ac_cv_have_decl_getenv = yes; then
7955 cat >>confdefs.h
<<_ACEOF
7956 #define HAVE_DECL_GETENV 1
7961 cat >>confdefs.h
<<_ACEOF
7962 #define HAVE_DECL_GETENV 0
7967 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7968 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7969 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.
$ac_ext <<_ACEOF
7973 #line $LINENO "configure"
7976 cat confdefs.h
>>conftest.
$ac_ext
7977 cat >>conftest.
$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7985 char *p = (char *) geteuid;
7992 rm -f conftest.
$ac_objext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try
='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_have_decl_geteuid
=yes
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.
$ac_ext >&5
8009 ac_cv_have_decl_geteuid
=no
8011 rm -f conftest.
$ac_objext conftest.
$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
8014 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
8015 if test $ac_cv_have_decl_geteuid = yes; then
8017 cat >>confdefs.h
<<_ACEOF
8018 #define HAVE_DECL_GETEUID 1
8023 cat >>confdefs.h
<<_ACEOF
8024 #define HAVE_DECL_GETEUID 0
8029 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
8030 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
8031 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 cat >conftest.
$ac_ext <<_ACEOF
8035 #line $LINENO "configure"
8038 cat confdefs.h
>>conftest.
$ac_ext
8039 cat >>conftest.
$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8047 char *p = (char *) getgrgid;
8054 rm -f conftest.
$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try
='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_have_decl_getgrgid
=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.
$ac_ext >&5
8071 ac_cv_have_decl_getgrgid
=no
8073 rm -f conftest.
$ac_objext conftest.
$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
8076 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
8077 if test $ac_cv_have_decl_getgrgid = yes; then
8079 cat >>confdefs.h
<<_ACEOF
8080 #define HAVE_DECL_GETGRGID 1
8085 cat >>confdefs.h
<<_ACEOF
8086 #define HAVE_DECL_GETGRGID 0
8091 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
8092 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
8093 if test "${ac_cv_have_decl_getlogin+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.
$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8100 cat confdefs.h
>>conftest.
$ac_ext
8101 cat >>conftest.
$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8109 char *p = (char *) getlogin;
8116 rm -f conftest.
$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try
='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_have_decl_getlogin
=yes
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.
$ac_ext >&5
8133 ac_cv_have_decl_getlogin
=no
8135 rm -f conftest.
$ac_objext conftest.
$ac_ext
8137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
8138 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
8139 if test $ac_cv_have_decl_getlogin = yes; then
8141 cat >>confdefs.h
<<_ACEOF
8142 #define HAVE_DECL_GETLOGIN 1
8147 cat >>confdefs.h
<<_ACEOF
8148 #define HAVE_DECL_GETLOGIN 0
8153 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
8154 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
8155 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 cat >conftest.
$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8162 cat confdefs.h
>>conftest.
$ac_ext
8163 cat >>conftest.
$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8171 char *p = (char *) getpwuid;
8178 rm -f conftest.
$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try
='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_have_decl_getpwuid
=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.
$ac_ext >&5
8195 ac_cv_have_decl_getpwuid
=no
8197 rm -f conftest.
$ac_objext conftest.
$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
8200 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
8201 if test $ac_cv_have_decl_getpwuid = yes; then
8203 cat >>confdefs.h
<<_ACEOF
8204 #define HAVE_DECL_GETPWUID 1
8209 cat >>confdefs.h
<<_ACEOF
8210 #define HAVE_DECL_GETPWUID 0
8215 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
8216 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
8217 if test "${ac_cv_have_decl_getuid+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.
$ac_ext <<_ACEOF
8221 #line $LINENO "configure"
8224 cat confdefs.h
>>conftest.
$ac_ext
8225 cat >>conftest.
$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8233 char *p = (char *) getuid;
8240 rm -f conftest.
$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try
='test -s conftest.$ac_objext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_have_decl_getuid
=yes
8254 echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.
$ac_ext >&5
8257 ac_cv_have_decl_getuid
=no
8259 rm -f conftest.
$ac_objext conftest.
$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
8263 if test $ac_cv_have_decl_getuid = yes; then
8265 cat >>confdefs.h
<<_ACEOF
8266 #define HAVE_DECL_GETUID 1
8271 cat >>confdefs.h
<<_ACEOF
8272 #define HAVE_DECL_GETUID 0
8277 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
8278 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_getutent+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8286 cat confdefs.h
>>conftest.
$ac_ext
8287 cat >>conftest.
$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8295 char *p = (char *) getutent;
8302 rm -f conftest.
$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304 (eval $ac_compile) 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try
='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_have_decl_getutent
=yes
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.
$ac_ext >&5
8319 ac_cv_have_decl_getutent
=no
8321 rm -f conftest.
$ac_objext conftest.
$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
8324 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
8325 if test $ac_cv_have_decl_getutent = yes; then
8327 cat >>confdefs.h
<<_ACEOF
8328 #define HAVE_DECL_GETUTENT 1
8333 cat >>confdefs.h
<<_ACEOF
8334 #define HAVE_DECL_GETUTENT 0
8339 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
8340 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
8341 if test "${ac_cv_have_decl_lseek+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.
$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8348 cat confdefs.h
>>conftest.
$ac_ext
8349 cat >>conftest.
$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8357 char *p = (char *) lseek;
8364 rm -f conftest.
$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try
='test -s conftest.$ac_objext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_have_decl_lseek
=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.
$ac_ext >&5
8381 ac_cv_have_decl_lseek
=no
8383 rm -f conftest.
$ac_objext conftest.
$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
8386 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
8387 if test $ac_cv_have_decl_lseek = yes; then
8389 cat >>confdefs.h
<<_ACEOF
8390 #define HAVE_DECL_LSEEK 1
8395 cat >>confdefs.h
<<_ACEOF
8396 #define HAVE_DECL_LSEEK 0
8401 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8402 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8403 if test "${ac_cv_have_decl_malloc+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 cat >conftest.
$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8410 cat confdefs.h
>>conftest.
$ac_ext
8411 cat >>conftest.
$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8419 char *p = (char *) malloc;
8426 rm -f conftest.
$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try
='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_have_decl_malloc
=yes
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.
$ac_ext >&5
8443 ac_cv_have_decl_malloc
=no
8445 rm -f conftest.
$ac_objext conftest.
$ac_ext
8447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8448 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8449 if test $ac_cv_have_decl_malloc = yes; then
8451 cat >>confdefs.h
<<_ACEOF
8452 #define HAVE_DECL_MALLOC 1
8457 cat >>confdefs.h
<<_ACEOF
8458 #define HAVE_DECL_MALLOC 0
8463 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
8464 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
8465 if test "${ac_cv_have_decl_memchr+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.
$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8472 cat confdefs.h
>>conftest.
$ac_ext
8473 cat >>conftest.
$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8481 char *p = (char *) memchr;
8488 rm -f conftest.
$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try
='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_have_decl_memchr
=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 ac_cv_have_decl_memchr
=no
8507 rm -f conftest.
$ac_objext conftest.
$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
8510 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
8511 if test $ac_cv_have_decl_memchr = yes; then
8513 cat >>confdefs.h
<<_ACEOF
8514 #define HAVE_DECL_MEMCHR 1
8519 cat >>confdefs.h
<<_ACEOF
8520 #define HAVE_DECL_MEMCHR 0
8525 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
8526 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
8527 if test "${ac_cv_have_decl_memrchr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.
$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8534 cat confdefs.h
>>conftest.
$ac_ext
8535 cat >>conftest.
$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8543 char *p = (char *) memrchr;
8550 rm -f conftest.
$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552 (eval $ac_compile) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try
='test -s conftest.$ac_objext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_have_decl_memrchr
=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.
$ac_ext >&5
8567 ac_cv_have_decl_memrchr
=no
8569 rm -f conftest.
$ac_objext conftest.
$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
8572 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
8573 if test $ac_cv_have_decl_memrchr = yes; then
8575 cat >>confdefs.h
<<_ACEOF
8576 #define HAVE_DECL_MEMRCHR 1
8581 cat >>confdefs.h
<<_ACEOF
8582 #define HAVE_DECL_MEMRCHR 0
8587 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
8588 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
8589 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.
$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8596 cat confdefs.h
>>conftest.
$ac_ext
8597 cat >>conftest.
$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8605 char *p = (char *) nanosleep;
8612 rm -f conftest.
$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try
='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_have_decl_nanosleep
=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.
$ac_ext >&5
8629 ac_cv_have_decl_nanosleep
=no
8631 rm -f conftest.
$ac_objext conftest.
$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
8634 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
8635 if test $ac_cv_have_decl_nanosleep = yes; then
8637 cat >>confdefs.h
<<_ACEOF
8638 #define HAVE_DECL_NANOSLEEP 1
8643 cat >>confdefs.h
<<_ACEOF
8644 #define HAVE_DECL_NANOSLEEP 0
8649 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8650 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8651 if test "${ac_cv_have_decl_realloc+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.
$ac_ext <<_ACEOF
8655 #line $LINENO "configure"
8658 cat confdefs.h
>>conftest.
$ac_ext
8659 cat >>conftest.
$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8667 char *p = (char *) realloc;
8674 rm -f conftest.
$ac_objext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676 (eval $ac_compile) 2>&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try
='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_have_decl_realloc
=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.
$ac_ext >&5
8691 ac_cv_have_decl_realloc
=no
8693 rm -f conftest.
$ac_objext conftest.
$ac_ext
8695 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8696 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8697 if test $ac_cv_have_decl_realloc = yes; then
8699 cat >>confdefs.h
<<_ACEOF
8700 #define HAVE_DECL_REALLOC 1
8705 cat >>confdefs.h
<<_ACEOF
8706 #define HAVE_DECL_REALLOC 0
8711 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8712 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8713 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.
$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8720 cat confdefs.h
>>conftest.
$ac_ext
8721 cat >>conftest.
$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8729 char *p = (char *) stpcpy;
8736 rm -f conftest.
$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try
='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_cv_have_decl_stpcpy
=yes
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.
$ac_ext >&5
8753 ac_cv_have_decl_stpcpy
=no
8755 rm -f conftest.
$ac_objext conftest.
$ac_ext
8757 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8758 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8759 if test $ac_cv_have_decl_stpcpy = yes; then
8761 cat >>confdefs.h
<<_ACEOF
8762 #define HAVE_DECL_STPCPY 1
8767 cat >>confdefs.h
<<_ACEOF
8768 #define HAVE_DECL_STPCPY 0
8773 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8774 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8775 if test "${ac_cv_have_decl_strndup+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 cat >conftest.
$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8791 char *p = (char *) strndup;
8798 rm -f conftest.
$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try
='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_cv_have_decl_strndup
=yes
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.
$ac_ext >&5
8815 ac_cv_have_decl_strndup
=no
8817 rm -f conftest.
$ac_objext conftest.
$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8820 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8821 if test $ac_cv_have_decl_strndup = yes; then
8823 cat >>confdefs.h
<<_ACEOF
8824 #define HAVE_DECL_STRNDUP 1
8829 cat >>confdefs.h
<<_ACEOF
8830 #define HAVE_DECL_STRNDUP 0
8835 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8836 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8837 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 cat >conftest.
$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8844 cat confdefs.h
>>conftest.
$ac_ext
8845 cat >>conftest.
$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8853 char *p = (char *) strnlen;
8860 rm -f conftest.
$ac_objext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try
='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_cv_have_decl_strnlen
=yes
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.
$ac_ext >&5
8877 ac_cv_have_decl_strnlen
=no
8879 rm -f conftest.
$ac_objext conftest.
$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8882 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8883 if test $ac_cv_have_decl_strnlen = yes; then
8885 cat >>confdefs.h
<<_ACEOF
8886 #define HAVE_DECL_STRNLEN 1
8891 cat >>confdefs.h
<<_ACEOF
8892 #define HAVE_DECL_STRNLEN 0
8897 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8898 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8899 if test "${ac_cv_have_decl_strstr+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.
$ac_ext <<_ACEOF
8903 #line $LINENO "configure"
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8915 char *p = (char *) strstr;
8922 rm -f conftest.
$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try
='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_have_decl_strstr
=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8939 ac_cv_have_decl_strstr
=no
8941 rm -f conftest.
$ac_objext conftest.
$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8944 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8945 if test $ac_cv_have_decl_strstr = yes; then
8947 cat >>confdefs.h
<<_ACEOF
8948 #define HAVE_DECL_STRSTR 1
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_DECL_STRSTR 0
8959 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8960 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8961 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 cat >conftest.
$ac_ext <<_ACEOF
8965 #line $LINENO "configure"
8968 cat confdefs.h
>>conftest.
$ac_ext
8969 cat >>conftest.
$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8977 char *p = (char *) strtoul;
8984 rm -f conftest.
$ac_objext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8986 (eval $ac_compile) 2>&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 { ac_try
='test -s conftest.$ac_objext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_have_decl_strtoul
=yes
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9001 ac_cv_have_decl_strtoul
=no
9003 rm -f conftest.
$ac_objext conftest.
$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
9006 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
9007 if test $ac_cv_have_decl_strtoul = yes; then
9009 cat >>confdefs.h
<<_ACEOF
9010 #define HAVE_DECL_STRTOUL 1
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_DECL_STRTOUL 0
9021 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
9022 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
9023 if test "${ac_cv_have_decl_strtoull+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.
$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9030 cat confdefs.h
>>conftest.
$ac_ext
9031 cat >>conftest.
$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9039 char *p = (char *) strtoull;
9046 rm -f conftest.
$ac_objext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try
='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_have_decl_strtoull
=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.
$ac_ext >&5
9063 ac_cv_have_decl_strtoull
=no
9065 rm -f conftest.
$ac_objext conftest.
$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
9068 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
9069 if test $ac_cv_have_decl_strtoull = yes; then
9071 cat >>confdefs.h
<<_ACEOF
9072 #define HAVE_DECL_STRTOULL 1
9077 cat >>confdefs.h
<<_ACEOF
9078 #define HAVE_DECL_STRTOULL 0
9083 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
9084 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
9085 if test "${ac_cv_have_decl_ttyname+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 cat >conftest.
$ac_ext <<_ACEOF
9089 #line $LINENO "configure"
9092 cat confdefs.h
>>conftest.
$ac_ext
9093 cat >>conftest.
$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9101 char *p = (char *) ttyname;
9108 rm -f conftest.
$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try
='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_have_decl_ttyname
=yes
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.
$ac_ext >&5
9125 ac_cv_have_decl_ttyname
=no
9127 rm -f conftest.
$ac_objext conftest.
$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
9130 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
9131 if test $ac_cv_have_decl_ttyname = yes; then
9133 cat >>confdefs.h
<<_ACEOF
9134 #define HAVE_DECL_TTYNAME 1
9139 cat >>confdefs.h
<<_ACEOF
9140 #define HAVE_DECL_TTYNAME 0
9148 echo "$as_me:$LINENO: checking for long file names" >&5
9149 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
9150 if test "${ac_cv_sys_long_file_names+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_cv_sys_long_file_names
=yes
9154 # Test for long file names in all the places we know might matter:
9155 # . the current directory, where building will happen
9156 # $prefix/lib where we will be installing things
9157 # $exec_prefix/lib likewise
9158 # eval it to expand exec_prefix.
9159 # $TMPDIR if set, where it might want to write temporary files
9160 # if $TMPDIR is not set:
9161 # /tmp where it might want to write temporary files
9164 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
9167 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
9169 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
9170 test -d $ac_dir ||
continue
9171 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
9172 ac_xdir
=$ac_dir/cf$$
9173 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
9174 ac_tf1
=$ac_xdir/conftest9012345
9175 ac_tf2
=$ac_xdir/conftest9012346
9176 (echo 1 >$ac_tf1) 2>/dev
/null
9177 (echo 2 >$ac_tf2) 2>/dev
/null
9178 ac_val
=`cat $ac_tf1 2>/dev/null`
9179 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
9180 ac_cv_sys_long_file_names
=no
9181 rm -rf $ac_xdir 2>/dev
/null
9184 rm -rf $ac_xdir 2>/dev
/null
9187 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9188 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
9189 if test $ac_cv_sys_long_file_names = yes; then
9191 cat >>confdefs.h
<<\_ACEOF
9192 #define HAVE_LONG_FILE_NAMES 1
9200 for ac_func
in pathconf
9202 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9203 echo "$as_me:$LINENO: checking for $ac_func" >&5
9204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_var+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 cat >conftest.
$ac_ext <<_ACEOF
9209 #line $LINENO "configure"
9212 cat confdefs.h
>>conftest.
$ac_ext
9213 cat >>conftest.
$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 /* System header to define __stub macros and hopefully few prototypes,
9216 which can conflict with char $ac_func (); below.
9217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9218 <limits.h> exists even on freestanding compilers. */
9220 # include <limits.h>
9222 # include <assert.h>
9224 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9232 /* The GNU C library defines this for functions which it implements
9233 to always fail with ENOSYS. Some functions are actually named
9234 something starting with __ and the normal name is an alias. */
9235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238 char (*f) () = $ac_func;
9247 return f != $ac_func;
9252 rm -f conftest.
$ac_objext conftest
$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try
='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 eval "$as_ac_var=yes"
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.
$ac_ext >&5
9269 eval "$as_ac_var=no"
9271 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9275 if test `eval echo '${'$as_ac_var'}'` = yes; then
9276 cat >>confdefs.h
<<_ACEOF
9277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9286 for ac_header
in limits.h string.h unistd.h
9288 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9298 # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.
$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9305 cat confdefs.h
>>conftest.
$ac_ext
9306 cat >>conftest.
$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 #include <$ac_header>
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_header_compiler
=yes
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.
$ac_ext >&5
9328 ac_header_compiler
=no
9330 rm -f conftest.
$ac_objext conftest.
$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6
9334 # Is the header present?
9335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9337 cat >conftest.
$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9341 cat confdefs.h
>>conftest.
$ac_ext
9342 cat >>conftest.
$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <$ac_header>
9346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9347 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9349 grep -v '^ *+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev
/null
; then
9354 if test -s conftest.err
; then
9355 ac_cpp_err
=$ac_c_preproc_warn_flag
9362 if test -z "$ac_cpp_err"; then
9363 ac_header_preproc
=yes
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.
$ac_ext >&5
9368 ac_header_preproc
=no
9370 rm -f conftest.err conftest.
$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9372 echo "${ECHO_T}$ac_header_preproc" >&6
9374 # So? What about this header?
9375 case $ac_header_compiler:$ac_header_preproc in
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9383 ## ------------------------------------ ##
9384 ## Report this to bug-autoconf@gnu.org. ##
9385 ## ------------------------------------ ##
9388 sed "s/^/$as_me: WARNING: /" >&2
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9399 ## ------------------------------------ ##
9400 ## Report this to bug-autoconf@gnu.org. ##
9401 ## ------------------------------------ ##
9404 sed "s/^/$as_me: WARNING: /" >&2
9407 echo "$as_me:$LINENO: checking for $ac_header" >&5
9408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 eval "$as_ac_Header=$ac_header_preproc"
9414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9419 cat >>confdefs.h
<<_ACEOF
9420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9429 # for constant arguments. Useless!
9430 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9431 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9432 if test "${ac_cv_working_alloca_h+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 cat >conftest.
$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9439 cat confdefs.h
>>conftest.
$ac_ext
9440 cat >>conftest.
$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9446 char *p = (char *) alloca (2 * sizeof (int));
9451 rm -f conftest.
$ac_objext conftest
$ac_exeext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try
='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_working_alloca_h
=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.
$ac_ext >&5
9468 ac_cv_working_alloca_h
=no
9470 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9472 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9473 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9474 if test $ac_cv_working_alloca_h = yes; then
9476 cat >>confdefs.h
<<\_ACEOF
9477 #define HAVE_ALLOCA_H 1
9482 echo "$as_me:$LINENO: checking for alloca" >&5
9483 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9484 if test "${ac_cv_func_alloca_works+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.
$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9491 cat confdefs.h
>>conftest.
$ac_ext
9492 cat >>conftest.
$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9495 # define alloca __builtin_alloca
9498 # include <malloc.h>
9499 # define alloca _alloca
9502 # include <alloca.h>
9507 # ifndef alloca /* predefined by HP cc +Olibcalls */
9518 char *p = (char *) alloca (1);
9523 rm -f conftest.
$ac_objext conftest
$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try
='test -s conftest$ac_exeext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_func_alloca_works
=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.
$ac_ext >&5
9540 ac_cv_func_alloca_works
=no
9542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9547 if test $ac_cv_func_alloca_works = yes; then
9549 cat >>confdefs.h
<<\_ACEOF
9550 #define HAVE_ALLOCA 1
9554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble. Some versions do not even contain alloca or
9556 # contain a buggy version. If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9559 ALLOCA
=alloca.
$ac_objext
9561 cat >>confdefs.h
<<\_ACEOF
9566 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9568 if test "${ac_cv_os_cray+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 cat >conftest.
$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #if defined(CRAY) && ! defined(CRAY2)
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "webecray" >/dev
/null
2>&1; then
9594 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9595 echo "${ECHO_T}$ac_cv_os_cray" >&6
9596 if test $ac_cv_os_cray = yes; then
9597 for ac_func
in _getb67 GETB67 getb67
; do
9598 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599 echo "$as_me:$LINENO: checking for $ac_func" >&5
9600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9601 if eval "test \"\${$as_ac_var+set}\" = set"; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 cat >conftest.
$ac_ext <<_ACEOF
9605 #line $LINENO "configure"
9608 cat confdefs.h
>>conftest.
$ac_ext
9609 cat >>conftest.
$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func (); below.
9613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614 <limits.h> exists even on freestanding compilers. */
9616 # include <limits.h>
9618 # include <assert.h>
9620 /* Override any gcc2 internal prototype to avoid an error. */
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9634 char (*f) () = $ac_func;
9643 return f != $ac_func;
9648 rm -f conftest.
$ac_objext conftest
$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try
='test -s conftest$ac_exeext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 eval "$as_ac_var=yes"
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.
$ac_ext >&5
9665 eval "$as_ac_var=no"
9667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9671 if test `eval echo '${'$as_ac_var'}'` = yes; then
9673 cat >>confdefs.h
<<_ACEOF
9674 #define CRAY_STACKSEG_END $ac_func
9683 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9685 if test "${ac_cv_c_stack_direction+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 if test "$cross_compiling" = yes; then
9689 ac_cv_c_stack_direction
=0
9691 cat >conftest.
$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9695 cat confdefs.h
>>conftest.
$ac_ext
9696 cat >>conftest.
$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9699 find_stack_direction ()
9701 static char *addr = 0;
9706 return find_stack_direction ();
9709 return (&dummy > addr) ? 1 : -1;
9715 exit (find_stack_direction () < 0);
9718 rm -f conftest
$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_c_stack_direction
=1
9731 echo "$as_me: program exited with status $ac_status" >&5
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.
$ac_ext >&5
9736 ac_cv_c_stack_direction
=-1
9738 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9741 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9742 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9744 cat >>confdefs.h
<<_ACEOF
9745 #define STACK_DIRECTION $ac_cv_c_stack_direction
9751 # for STACK_DIRECTION
9754 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
9755 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
9756 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 if test "$cross_compiling" = yes; then
9760 ac_cv_sys_xsi_stack_overflow_heuristic
=cross-compiling
9762 cat >conftest.
$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9766 cat confdefs.h
>>conftest.
$ac_ext
9767 cat >>conftest.
$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9771 #include <ucontext.h>
9775 char buffer[SIGSTKSZ];
9779 } alternate_signal_stack;
9782 # define find_stack_direction(ptr) STACK_DIRECTION
9785 find_stack_direction (char const *addr)
9788 return (! addr ? find_stack_direction (&dummy)
9789 : addr < &dummy ? 1 : -1);
9794 segv_handler (int signo, siginfo_t *info, void *context)
9796 if (0 < info->si_code)
9798 ucontext_t const *user_context = context;
9799 char const *stack_min = user_context->uc_stack.ss_sp;
9800 size_t stack_size = user_context->uc_stack.ss_size;
9801 char const *faulting_address = info->si_addr;
9802 size_t s = faulting_address - stack_min;
9803 size_t page_size = sysconf (_SC_PAGESIZE);
9804 if (find_stack_direction (0) < 0)
9806 if (s < stack_size + page_size)
9814 c_stack_action (void)
9817 struct sigaction act;
9821 st.ss_sp = alternate_signal_stack.buffer;
9822 st.ss_size = sizeof alternate_signal_stack.buffer;
9823 r = sigaltstack (&st, 0);
9827 sigemptyset (&act.sa_mask);
9828 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
9829 act.sa_sigaction = segv_handler;
9830 return sigaction (SIGSEGV, &act, 0);
9838 return *p + recurse (array);
9845 return recurse ("\1");
9849 rm -f conftest
$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_sys_xsi_stack_overflow_heuristic
=yes
9862 echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9867 ac_cv_sys_xsi_stack_overflow_heuristic
=no
9869 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
9873 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
9875 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
9877 cat >>confdefs.h
<<\_ACEOF
9878 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
9884 # for STACK_DIRECTION
9889 for ac_func
in getcontext sigaltstack
9891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9892 echo "$as_me:$LINENO: checking for $ac_func" >&5
9893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9894 if eval "test \"\${$as_ac_var+set}\" = set"; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.
$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9901 cat confdefs.h
>>conftest.
$ac_ext
9902 cat >>conftest.
$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char $ac_func (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9909 # include <limits.h>
9911 # include <assert.h>
9913 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9927 char (*f) () = $ac_func;
9936 return f != $ac_func;
9941 rm -f conftest.
$ac_objext conftest
$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try
='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 eval "$as_ac_var=yes"
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.
$ac_ext >&5
9958 eval "$as_ac_var=no"
9960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h
<<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9972 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
9973 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
9974 if test "${ac_cv_have_decl_getcontext+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.
$ac_ext <<_ACEOF
9978 #line $LINENO "configure"
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <ucontext.h>
9990 char *p = (char *) getcontext;
9997 rm -f conftest.
$ac_objext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999 (eval $ac_compile) 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try
='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_have_decl_getcontext
=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.
$ac_ext >&5
10014 ac_cv_have_decl_getcontext
=no
10016 rm -f conftest.
$ac_objext conftest.
$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10019 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10020 if test $ac_cv_have_decl_getcontext = yes; then
10022 cat >>confdefs.h
<<_ACEOF
10023 #define HAVE_DECL_GETCONTEXT 1
10028 cat >>confdefs.h
<<_ACEOF
10029 #define HAVE_DECL_GETCONTEXT 0
10036 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10037 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10038 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 cat >conftest.
$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <signal.h>
10053 #ifndef sigaltstack
10054 char *p = (char *) sigaltstack;
10061 rm -f conftest.
$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try
='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_have_decl_sigaltstack
=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.
$ac_ext >&5
10078 ac_cv_have_decl_sigaltstack
=no
10080 rm -f conftest.
$ac_objext conftest.
$ac_ext
10082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10083 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10084 if test $ac_cv_have_decl_sigaltstack = yes; then
10086 cat >>confdefs.h
<<_ACEOF
10087 #define HAVE_DECL_SIGALTSTACK 1
10092 cat >>confdefs.h
<<_ACEOF
10093 #define HAVE_DECL_SIGALTSTACK 0
10104 for ac_header
in sys
/resource.h ucontext.h unistd.h
10106 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10108 echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10116 # Is the header compilable?
10117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10119 cat >conftest.
$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10123 cat confdefs.h
>>conftest.
$ac_ext
10124 cat >>conftest.
$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.
$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try
='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler
=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.
$ac_ext >&5
10146 ac_header_compiler
=no
10148 rm -f conftest.
$ac_objext conftest.
$ac_ext
10149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6
10152 # Is the header present?
10153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155 cat >conftest.
$ac_ext <<_ACEOF
10156 #line $LINENO "configure"
10159 cat confdefs.h
>>conftest.
$ac_ext
10160 cat >>conftest.
$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <$ac_header>
10164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10167 grep -v '^ *+' conftest.er1
>conftest.err
10169 cat conftest.err
>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } >/dev
/null
; then
10172 if test -s conftest.err
; then
10173 ac_cpp_err
=$ac_c_preproc_warn_flag
10180 if test -z "$ac_cpp_err"; then
10181 ac_header_preproc
=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.
$ac_ext >&5
10186 ac_header_preproc
=no
10188 rm -f conftest.err conftest.
$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6
10192 # So? What about this header?
10193 case $ac_header_compiler:$ac_header_preproc in
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10201 ## ------------------------------------ ##
10202 ## Report this to bug-autoconf@gnu.org. ##
10203 ## ------------------------------------ ##
10206 sed "s/^/$as_me: WARNING: /" >&2
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 ## ------------------------------------ ##
10218 ## Report this to bug-autoconf@gnu.org. ##
10219 ## ------------------------------------ ##
10222 sed "s/^/$as_me: WARNING: /" >&2
10225 echo "$as_me:$LINENO: checking for $ac_header" >&5
10226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 eval "$as_ac_Header=$ac_header_preproc"
10232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10237 cat >>confdefs.h
<<_ACEOF
10238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10246 echo "$as_me:$LINENO: checking for stack_t" >&5
10247 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10248 if test "${ac_cv_type_stack_t+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.
$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10255 cat confdefs.h
>>conftest.
$ac_ext
10256 cat >>conftest.
$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <signal.h>
10265 if (sizeof (stack_t))
10271 rm -f conftest.
$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try
='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_type_stack_t
=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 ac_cv_type_stack_t
=no
10290 rm -f conftest.
$ac_objext conftest.
$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
10293 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
10294 if test $ac_cv_type_stack_t = yes; then
10296 cat >>confdefs.h
<<_ACEOF
10297 #define HAVE_STACK_T 1
10305 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10306 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
10307 if test "${ac_cv_search_gethostbyname+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_func_search_save_LIBS
=$LIBS
10312 ac_cv_search_gethostbyname
=no
10313 cat >conftest.
$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10321 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char gethostbyname ();
10336 rm -f conftest.
$ac_objext conftest
$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try
='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_search_gethostbyname
='none required'
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.
$ac_ext >&5
10354 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10355 if test "$ac_cv_search_gethostbyname" = no
; then
10356 for ac_lib
in inet nsl
; do
10357 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10358 cat >conftest.
$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10362 cat confdefs.h
>>conftest.
$ac_ext
10363 cat >>conftest.
$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10366 /* Override any gcc2 internal prototype to avoid an error. */
10370 /* We use char because int might match the return type of a gcc2
10371 builtin and then its argument prototype would still apply. */
10372 char gethostbyname ();
10381 rm -f conftest.
$ac_objext conftest
$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try
='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_search_gethostbyname
="-l$ac_lib"; break
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10402 LIBS
=$ac_func_search_save_LIBS
10405 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10406 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
10408 if test "$ac_cv_search_gethostbyname" = no
; then :
10411 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
10414 LIBS
="$ac_cv_search_gethostbyname $LIBS"
10423 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
10425 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10426 echo "$as_me:$LINENO: checking for $ac_func" >&5
10427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10428 if eval "test \"\${$as_ac_var+set}\" = set"; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.
$ac_ext <<_ACEOF
10432 #line $LINENO "configure"
10435 cat confdefs.h
>>conftest.
$ac_ext
10436 cat >>conftest.
$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 /* System header to define __stub macros and hopefully few prototypes,
10439 which can conflict with char $ac_func (); below.
10440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10441 <limits.h> exists even on freestanding compilers. */
10443 # include <limits.h>
10445 # include <assert.h>
10447 /* Override any gcc2 internal prototype to avoid an error. */
10452 /* We use char because int might match the return type of a gcc2
10453 builtin and then its argument prototype would still apply. */
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10461 char (*f) () = $ac_func;
10470 return f != $ac_func;
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try
='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 eval "$as_ac_var=yes"
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.
$ac_ext >&5
10492 eval "$as_ac_var=no"
10494 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10498 if test `eval echo '${'$as_ac_var'}'` = yes; then
10499 cat >>confdefs.h
<<_ACEOF
10500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10513 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
10514 netinet
/in.h arpa
/inet.h
10516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10518 echo "$as_me:$LINENO: checking for $ac_header" >&5
10519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526 # Is the header compilable?
10527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10529 cat >conftest.
$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10533 cat confdefs.h
>>conftest.
$ac_ext
10534 cat >>conftest.
$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 #include <$ac_header>
10539 rm -f conftest.
$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try
='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler
=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.
$ac_ext >&5
10556 ac_header_compiler
=no
10558 rm -f conftest.
$ac_objext conftest.
$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 echo "${ECHO_T}$ac_header_compiler" >&6
10562 # Is the header present?
10563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10565 cat >conftest.
$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10569 cat confdefs.h
>>conftest.
$ac_ext
10570 cat >>conftest.
$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10577 grep -v '^ *+' conftest.er1
>conftest.err
10579 cat conftest.err
>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } >/dev
/null
; then
10582 if test -s conftest.err
; then
10583 ac_cpp_err
=$ac_c_preproc_warn_flag
10590 if test -z "$ac_cpp_err"; then
10591 ac_header_preproc
=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 ac_header_preproc
=no
10598 rm -f conftest.err conftest.
$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600 echo "${ECHO_T}$ac_header_preproc" >&6
10602 # So? What about this header?
10603 case $ac_header_compiler:$ac_header_preproc in
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10616 sed "s/^/$as_me: WARNING: /" >&2
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10627 ## ------------------------------------ ##
10628 ## Report this to bug-autoconf@gnu.org. ##
10629 ## ------------------------------------ ##
10632 sed "s/^/$as_me: WARNING: /" >&2
10635 echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 eval "$as_ac_Header=$ac_header_preproc"
10642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10647 cat >>confdefs.h
<<_ACEOF
10648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659 for ac_header
in string.h
10661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10663 echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10671 # Is the header compilable?
10672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10674 cat >conftest.
$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10678 cat confdefs.h
>>conftest.
$ac_ext
10679 cat >>conftest.
$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 $ac_includes_default
10682 #include <$ac_header>
10684 rm -f conftest.
$ac_objext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try
='test -s conftest.$ac_objext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_header_compiler
=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ac_header_compiler
=no
10703 rm -f conftest.
$ac_objext conftest.
$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 echo "${ECHO_T}$ac_header_compiler" >&6
10707 # Is the header present?
10708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10710 cat >conftest.
$ac_ext <<_ACEOF
10711 #line $LINENO "configure"
10714 cat confdefs.h
>>conftest.
$ac_ext
10715 cat >>conftest.
$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <$ac_header>
10719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10722 grep -v '^ *+' conftest.er1
>conftest.err
10724 cat conftest.err
>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } >/dev
/null
; then
10727 if test -s conftest.err
; then
10728 ac_cpp_err
=$ac_c_preproc_warn_flag
10735 if test -z "$ac_cpp_err"; then
10736 ac_header_preproc
=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.
$ac_ext >&5
10741 ac_header_preproc
=no
10743 rm -f conftest.err conftest.
$ac_ext
10744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 echo "${ECHO_T}$ac_header_preproc" >&6
10747 # So? What about this header?
10748 case $ac_header_compiler:$ac_header_preproc in
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10756 ## ------------------------------------ ##
10757 ## Report this to bug-autoconf@gnu.org. ##
10758 ## ------------------------------------ ##
10761 sed "s/^/$as_me: WARNING: /" >&2
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10772 ## ------------------------------------ ##
10773 ## Report this to bug-autoconf@gnu.org. ##
10774 ## ------------------------------------ ##
10777 sed "s/^/$as_me: WARNING: /" >&2
10780 echo "$as_me:$LINENO: checking for $ac_header" >&5
10781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 eval "$as_ac_Header=$ac_header_preproc"
10787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10792 cat >>confdefs.h
<<_ACEOF
10793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10805 for ac_func
in strerror vprintf doprnt
10807 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808 echo "$as_me:$LINENO: checking for $ac_func" >&5
10809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10810 if eval "test \"\${$as_ac_var+set}\" = set"; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.
$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 /* System header to define __stub macros and hopefully few prototypes,
10821 which can conflict with char $ac_func (); below.
10822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10823 <limits.h> exists even on freestanding compilers. */
10825 # include <limits.h>
10827 # include <assert.h>
10829 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10837 /* The GNU C library defines this for functions which it implements
10838 to always fail with ENOSYS. Some functions are actually named
10839 something starting with __ and the normal name is an alias. */
10840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10843 char (*f) () = $ac_func;
10852 return f != $ac_func;
10857 rm -f conftest.
$ac_objext conftest
$ac_exeext
10858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10859 (eval $ac_link) 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try
='test -s conftest$ac_exeext'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; }; then
10869 eval "$as_ac_var=yes"
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.
$ac_ext >&5
10874 eval "$as_ac_var=no"
10876 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10880 if test `eval echo '${'$as_ac_var'}'` = yes; then
10881 cat >>confdefs.h
<<_ACEOF
10882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10889 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
10890 if test "${ac_cv_have_decl_strerror+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.
$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10897 cat confdefs.h
>>conftest.
$ac_ext
10898 cat >>conftest.
$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10905 char *p = (char *) strerror;
10912 rm -f conftest.
$ac_objext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try
='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_have_decl_strerror
=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.
$ac_ext >&5
10929 ac_cv_have_decl_strerror
=no
10931 rm -f conftest.
$ac_objext conftest.
$ac_ext
10933 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10934 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
10935 if test $ac_cv_have_decl_strerror = yes; then
10937 cat >>confdefs.h
<<_ACEOF
10938 #define HAVE_DECL_STRERROR 1
10943 cat >>confdefs.h
<<_ACEOF
10944 #define HAVE_DECL_STRERROR 0
10952 for ac_header
in libintl.h
10954 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10956 echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 # Is the header compilable?
10965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10967 cat >conftest.
$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10971 cat confdefs.h
>>conftest.
$ac_ext
10972 cat >>conftest.
$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 $ac_includes_default
10975 #include <$ac_header>
10977 rm -f conftest.
$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try
='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_header_compiler
=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.
$ac_ext >&5
10994 ac_header_compiler
=no
10996 rm -f conftest.
$ac_objext conftest.
$ac_ext
10997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998 echo "${ECHO_T}$ac_header_compiler" >&6
11000 # Is the header present?
11001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11003 cat >conftest.
$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11007 cat confdefs.h
>>conftest.
$ac_ext
11008 cat >>conftest.
$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <$ac_header>
11012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } >/dev
/null
; then
11020 if test -s conftest.err
; then
11021 ac_cpp_err
=$ac_c_preproc_warn_flag
11028 if test -z "$ac_cpp_err"; then
11029 ac_header_preproc
=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.
$ac_ext >&5
11034 ac_header_preproc
=no
11036 rm -f conftest.err conftest.
$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11038 echo "${ECHO_T}$ac_header_preproc" >&6
11040 # So? What about this header?
11041 case $ac_header_compiler:$ac_header_preproc in
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11049 ## ------------------------------------ ##
11050 ## Report this to bug-autoconf@gnu.org. ##
11051 ## ------------------------------------ ##
11054 sed "s/^/$as_me: WARNING: /" >&2
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11065 ## ------------------------------------ ##
11066 ## Report this to bug-autoconf@gnu.org. ##
11067 ## ------------------------------------ ##
11070 sed "s/^/$as_me: WARNING: /" >&2
11073 echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 eval "$as_ac_Header=$ac_header_preproc"
11080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11085 cat >>confdefs.h
<<_ACEOF
11086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11094 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11095 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.
$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11102 cat confdefs.h
>>conftest.
$ac_ext
11103 cat >>conftest.
$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11110 char *p = (char *) strerror_r;
11117 rm -f conftest.
$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try
='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_have_decl_strerror_r
=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.
$ac_ext >&5
11134 ac_cv_have_decl_strerror_r
=no
11136 rm -f conftest.
$ac_objext conftest.
$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11139 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11140 if test $ac_cv_have_decl_strerror_r = yes; then
11142 cat >>confdefs.h
<<_ACEOF
11143 #define HAVE_DECL_STRERROR_R 1
11148 cat >>confdefs.h
<<_ACEOF
11149 #define HAVE_DECL_STRERROR_R 0
11157 for ac_func
in strerror_r
11159 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11160 echo "$as_me:$LINENO: checking for $ac_func" >&5
11161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_var+set}\" = set"; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 cat >conftest.
$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11169 cat confdefs.h
>>conftest.
$ac_ext
11170 cat >>conftest.
$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11177 # include <limits.h>
11179 # include <assert.h>
11181 /* Override any gcc2 internal prototype to avoid an error. */
11186 /* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11189 /* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11195 char (*f) () = $ac_func;
11204 return f != $ac_func;
11209 rm -f conftest.
$ac_objext conftest
$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211 (eval $ac_link) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try
='test -s conftest$ac_exeext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 eval "$as_ac_var=yes"
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11226 eval "$as_ac_var=no"
11228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11232 if test `eval echo '${'$as_ac_var'}'` = yes; then
11233 cat >>confdefs.h
<<_ACEOF
11234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11241 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11242 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 ac_cv_func_strerror_r_char_p
=no
11247 if test $ac_cv_have_decl_strerror_r = yes; then
11248 cat >conftest.
$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11261 char x = *strerror_r (0, buf, sizeof buf);
11262 char *p = strerror_r (0, buf, sizeof buf);
11268 rm -f conftest.
$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try
='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_func_strerror_r_char_p
=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.
$ac_ext >&5
11286 rm -f conftest.
$ac_objext conftest.
$ac_ext
11288 # strerror_r is not declared. Choose between
11289 # systems that have relatively inaccessible declarations for the
11290 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11291 # former has a strerror_r that returns char*, while the latter
11292 # has a strerror_r that returns `int'.
11293 # This test should segfault on the DEC system.
11294 if test "$cross_compiling" = yes; then
11297 cat >conftest.
$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11305 extern char *strerror_r ();
11310 char x = *strerror_r (0, buf, sizeof buf);
11311 exit (!isalpha (x));
11316 rm -f conftest
$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_func_strerror_r_char_p
=yes
11329 echo "$as_me: program exited with status $ac_status" >&5
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11334 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11339 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11340 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
11341 if test $ac_cv_func_strerror_r_char_p = yes; then
11343 cat >>confdefs.h
<<\_ACEOF
11344 #define STRERROR_R_CHAR_P 1
11349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11351 if test "${ac_cv_header_stdc+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 cat >conftest.
$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11358 cat confdefs.h
>>conftest.
$ac_ext
11359 cat >>conftest.
$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <stdlib.h>
11362 #include <stdarg.h>
11363 #include <string.h>
11374 rm -f conftest.
$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try
='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_header_stdc
=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11391 ac_cv_header_stdc
=no
11393 rm -f conftest.
$ac_objext conftest.
$ac_ext
11395 if test $ac_cv_header_stdc = yes; then
11396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11397 cat >conftest.
$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11401 cat confdefs.h
>>conftest.
$ac_ext
11402 cat >>conftest.
$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 #include <string.h>
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 $EGREP "memchr" >/dev
/null
2>&1; then
11411 ac_cv_header_stdc
=no
11417 if test $ac_cv_header_stdc = yes; then
11418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11419 cat >conftest.
$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11423 cat confdefs.h
>>conftest.
$ac_ext
11424 cat >>conftest.
$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <stdlib.h>
11429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11430 $EGREP "free" >/dev
/null
2>&1; then
11433 ac_cv_header_stdc
=no
11439 if test $ac_cv_header_stdc = yes; then
11440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11441 if test "$cross_compiling" = yes; then
11444 cat >conftest.
$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11448 cat confdefs.h
>>conftest.
$ac_ext
11449 cat >>conftest.
$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 #if ((' ' & 0x0FF) == 0x020)
11453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11456 # define ISLOWER(c) \
11457 (('a' <= (c) && (c) <= 'i') \
11458 || ('j' <= (c) && (c) <= 'r') \
11459 || ('s' <= (c) && (c) <= 'z'))
11460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11468 for (i = 0; i < 256; i++)
11469 if (XOR (islower (i), ISLOWER (i))
11470 || toupper (i) != TOUPPER (i))
11475 rm -f conftest
$ac_exeext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11488 echo "$as_me: program exited with status $ac_status" >&5
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11492 ( exit $ac_status )
11493 ac_cv_header_stdc
=no
11495 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11501 if test $ac_cv_header_stdc = yes; then
11503 cat >>confdefs.h
<<\_ACEOF
11504 #define STDC_HEADERS 1
11510 echo "$as_me:$LINENO: checking for mbstate_t" >&5
11511 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11512 if test "${ac_cv_type_mbstate_t+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.
$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11519 cat confdefs.h
>>conftest.
$ac_ext
11520 cat >>conftest.
$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11523 # include <wchar.h>
11527 mbstate_t x; return sizeof x;
11532 rm -f conftest.
$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try
='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_type_mbstate_t
=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.
$ac_ext >&5
11549 ac_cv_type_mbstate_t
=no
11551 rm -f conftest.
$ac_objext conftest.
$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11554 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11555 if test $ac_cv_type_mbstate_t = yes; then
11557 cat >>confdefs.h
<<\_ACEOF
11558 #define HAVE_MBSTATE_T 1
11563 cat >>confdefs.h
<<\_ACEOF
11564 #define mbstate_t int
11569 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
11570 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
11571 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 # Some versions of Solaris, SCO, and the GNU C Library
11575 # have a broken or incompatible fnmatch.
11576 # So we run a test program. If we are cross-compiling, take no chance.
11577 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
11578 if test "$cross_compiling" = yes; then
11579 ac_cv_func_fnmatch_gnu
=cross
11581 cat >conftest.
$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11585 cat confdefs.h
>>conftest.
$ac_ext
11586 cat >>conftest.
$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 #include <fnmatch.h>
11589 # define y(a, b, c) (fnmatch (a, b, c) == 0)
11590 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
11596 (!(y ("a*", "abc", 0)
11597 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
11598 && y ("a\\\\bc", "abc", 0)
11599 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
11600 && y ("*x", ".x", 0)
11601 && n ("*x", ".x", FNM_PERIOD)
11602 && y ("xxXX", "xXxX", FNM_CASEFOLD)
11603 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
11604 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
11605 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
11606 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
11607 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
11612 rm -f conftest
$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_func_fnmatch_gnu
=yes
11625 echo "$as_me: program exited with status $ac_status" >&5
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.
$ac_ext >&5
11629 ( exit $ac_status )
11630 ac_cv_func_fnmatch_gnu
=no
11632 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11635 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
11636 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
11637 if test $ac_cv_func_fnmatch_gnu = yes; then
11638 rm -f $ac_config_libobj_dir/fnmatch.h
11640 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11641 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11642 if test "${ac_cv_have_decl_getenv+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 cat >conftest.
$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11649 cat confdefs.h
>>conftest.
$ac_ext
11650 cat >>conftest.
$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 $ac_includes_default
11657 char *p = (char *) getenv;
11664 rm -f conftest.
$ac_objext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try
='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_have_decl_getenv
=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.
$ac_ext >&5
11681 ac_cv_have_decl_getenv
=no
11683 rm -f conftest.
$ac_objext conftest.
$ac_ext
11685 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11686 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11687 if test $ac_cv_have_decl_getenv = yes; then
11689 cat >>confdefs.h
<<_ACEOF
11690 #define HAVE_DECL_GETENV 1
11695 cat >>confdefs.h
<<_ACEOF
11696 #define HAVE_DECL_GETENV 0
11707 for ac_func
in btowc mbsrtowcs mempcpy wmempcpy
11709 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11712 if eval "test \"\${$as_ac_var+set}\" = set"; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.
$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below.
11724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11725 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11731 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11745 char (*f) () = $ac_func;
11754 return f != $ac_func;
11759 rm -f conftest.
$ac_objext conftest
$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try
='test -s conftest$ac_exeext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_var=yes"
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.
$ac_ext >&5
11776 eval "$as_ac_var=no"
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783 cat >>confdefs.h
<<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11792 for ac_header
in wchar.h wctype.h
11794 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11796 echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11804 # Is the header compilable?
11805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11807 cat >conftest.
$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11811 cat confdefs.h
>>conftest.
$ac_ext
11812 cat >>conftest.
$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 #include <$ac_header>
11817 rm -f conftest.
$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try
='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 ac_header_compiler
=yes
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.
$ac_ext >&5
11834 ac_header_compiler
=no
11836 rm -f conftest.
$ac_objext conftest.
$ac_ext
11837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6
11840 # Is the header present?
11841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11843 cat >conftest.
$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11847 cat confdefs.h
>>conftest.
$ac_ext
11848 cat >>conftest.
$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 #include <$ac_header>
11852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11855 grep -v '^ *+' conftest.er1
>conftest.err
11857 cat conftest.err
>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev
/null
; then
11860 if test -s conftest.err
; then
11861 ac_cpp_err
=$ac_c_preproc_warn_flag
11868 if test -z "$ac_cpp_err"; then
11869 ac_header_preproc
=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.
$ac_ext >&5
11874 ac_header_preproc
=no
11876 rm -f conftest.err conftest.
$ac_ext
11877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6
11880 # So? What about this header?
11881 case $ac_header_compiler:$ac_header_preproc in
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11889 ## ------------------------------------ ##
11890 ## Report this to bug-autoconf@gnu.org. ##
11891 ## ------------------------------------ ##
11894 sed "s/^/$as_me: WARNING: /" >&2
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11905 ## ------------------------------------ ##
11906 ## Report this to bug-autoconf@gnu.org. ##
11907 ## ------------------------------------ ##
11910 sed "s/^/$as_me: WARNING: /" >&2
11913 echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 eval "$as_ac_Header=$ac_header_preproc"
11920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925 cat >>confdefs.h
<<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
11934 ac_config_links
="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
11937 cat >>confdefs.h
<<\_ACEOF
11938 #define fnmatch rpl_fnmatch
11946 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11947 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11948 if test "${ac_cv_header_stdbool_h+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.
$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11955 cat confdefs.h
>>conftest.
$ac_ext
11956 cat >>conftest.
$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 #include <stdbool.h>
11961 "error: bool is not defined"
11964 "error: false is not defined"
11967 "error: false is not 0"
11970 "error: false is not defined"
11973 "error: true is not 1"
11975 #ifndef __bool_true_false_are_defined
11976 "error: __bool_true_false_are_defined is not defined"
11979 struct s { _Bool s: 1; _Bool t; } s;
11981 char a[true == 1 ? 1 : -1];
11982 char b[false == 0 ? 1 : -1];
11983 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11984 char d[(bool) -0.5 == true ? 1 : -1];
11986 char f[(_Bool) -0.0 == false ? 1 : -1];
11988 char h[sizeof (_Bool)];
11989 char i[sizeof s.t];
11994 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11999 rm -f conftest.
$ac_objext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12001 (eval $ac_compile) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try
='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_header_stdbool_h
=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12016 ac_cv_header_stdbool_h
=no
12018 rm -f conftest.
$ac_objext conftest.
$ac_ext
12020 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12021 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12022 if test $ac_cv_header_stdbool_h = yes; then
12024 cat >>confdefs.h
<<\_ACEOF
12025 #define HAVE_STDBOOL_H 1
12035 for ac_func
in getpagesize
12037 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12040 if eval "test \"\${$as_ac_var+set}\" = set"; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.
$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12047 cat confdefs.h
>>conftest.
$ac_ext
12048 cat >>conftest.
$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char $ac_func (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12055 # include <limits.h>
12057 # include <assert.h>
12059 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12067 /* The GNU C library defines this for functions which it implements
12068 to always fail with ENOSYS. Some functions are actually named
12069 something starting with __ and the normal name is an alias. */
12070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12073 char (*f) () = $ac_func;
12082 return f != $ac_func;
12087 rm -f conftest.
$ac_objext conftest
$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try
='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 eval "$as_ac_var=yes"
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.
$ac_ext >&5
12104 eval "$as_ac_var=no"
12106 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h
<<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 for ac_header
in OS.h unistd.h
12122 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12124 echo "$as_me:$LINENO: checking for $ac_header" >&5
12125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12132 # Is the header compilable?
12133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12135 cat >conftest.
$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <$ac_header>
12145 rm -f conftest.
$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try
='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_header_compiler
=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.
$ac_ext >&5
12162 ac_header_compiler
=no
12164 rm -f conftest.
$ac_objext conftest.
$ac_ext
12165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12166 echo "${ECHO_T}$ac_header_compiler" >&6
12168 # Is the header present?
12169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12171 cat >conftest.
$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12175 cat confdefs.h
>>conftest.
$ac_ext
12176 cat >>conftest.
$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <$ac_header>
12180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12183 grep -v '^ *+' conftest.er1
>conftest.err
12185 cat conftest.err
>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } >/dev
/null
; then
12188 if test -s conftest.err
; then
12189 ac_cpp_err
=$ac_c_preproc_warn_flag
12196 if test -z "$ac_cpp_err"; then
12197 ac_header_preproc
=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.
$ac_ext >&5
12202 ac_header_preproc
=no
12204 rm -f conftest.err conftest.
$ac_ext
12205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12206 echo "${ECHO_T}$ac_header_preproc" >&6
12208 # So? What about this header?
12209 case $ac_header_compiler:$ac_header_preproc in
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12217 ## ------------------------------------ ##
12218 ## Report this to bug-autoconf@gnu.org. ##
12219 ## ------------------------------------ ##
12222 sed "s/^/$as_me: WARNING: /" >&2
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12233 ## ------------------------------------ ##
12234 ## Report this to bug-autoconf@gnu.org. ##
12235 ## ------------------------------------ ##
12238 sed "s/^/$as_me: WARNING: /" >&2
12241 echo "$as_me:$LINENO: checking for $ac_header" >&5
12242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 eval "$as_ac_Header=$ac_header_preproc"
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12253 cat >>confdefs.h
<<_ACEOF
12254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12266 for ac_header
in locale.h stdlib.h string.h
12268 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270 echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12278 # Is the header compilable?
12279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12281 cat >conftest.
$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12285 cat confdefs.h
>>conftest.
$ac_ext
12286 cat >>conftest.
$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 #include <$ac_header>
12291 rm -f conftest.
$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try
='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_header_compiler
=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 ac_header_compiler
=no
12310 rm -f conftest.
$ac_objext conftest.
$ac_ext
12311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12312 echo "${ECHO_T}$ac_header_compiler" >&6
12314 # Is the header present?
12315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12317 cat >conftest.
$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12321 cat confdefs.h
>>conftest.
$ac_ext
12322 cat >>conftest.
$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <$ac_header>
12326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12327 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12329 grep -v '^ *+' conftest.er1
>conftest.err
12331 cat conftest.err
>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } >/dev
/null
; then
12334 if test -s conftest.err
; then
12335 ac_cpp_err
=$ac_c_preproc_warn_flag
12342 if test -z "$ac_cpp_err"; then
12343 ac_header_preproc
=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.
$ac_ext >&5
12348 ac_header_preproc
=no
12350 rm -f conftest.err conftest.
$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6
12354 # So? What about this header?
12355 case $ac_header_compiler:$ac_header_preproc in
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12363 ## ------------------------------------ ##
12364 ## Report this to bug-autoconf@gnu.org. ##
12365 ## ------------------------------------ ##
12368 sed "s/^/$as_me: WARNING: /" >&2
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12379 ## ------------------------------------ ##
12380 ## Report this to bug-autoconf@gnu.org. ##
12381 ## ------------------------------------ ##
12384 sed "s/^/$as_me: WARNING: /" >&2
12387 echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 eval "$as_ac_Header=$ac_header_preproc"
12394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12399 cat >>confdefs.h
<<_ACEOF
12400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 for ac_func
in setlocale
12410 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12411 echo "$as_me:$LINENO: checking for $ac_func" >&5
12412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12413 if eval "test \"\${$as_ac_var+set}\" = set"; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 cat >conftest.
$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12420 cat confdefs.h
>>conftest.
$ac_ext
12421 cat >>conftest.
$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 /* System header to define __stub macros and hopefully few prototypes,
12424 which can conflict with char $ac_func (); below.
12425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426 <limits.h> exists even on freestanding compilers. */
12428 # include <limits.h>
12430 # include <assert.h>
12432 /* Override any gcc2 internal prototype to avoid an error. */
12437 /* We use char because int might match the return type of a gcc2
12438 builtin and then its argument prototype would still apply. */
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446 char (*f) () = $ac_func;
12455 return f != $ac_func;
12460 rm -f conftest.
$ac_objext conftest
$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try
='test -s conftest$ac_exeext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 eval "$as_ac_var=yes"
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.
$ac_ext >&5
12477 eval "$as_ac_var=no"
12479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12483 if test `eval echo '${'$as_ac_var'}'` = yes; then
12484 cat >>confdefs.h
<<_ACEOF
12485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12495 for ac_header
in stdlib.h
12497 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12507 # Is the header compilable?
12508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510 cat >conftest.
$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12514 cat confdefs.h
>>conftest.
$ac_ext
12515 cat >>conftest.
$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 $ac_includes_default
12518 #include <$ac_header>
12520 rm -f conftest.
$ac_objext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try
='test -s conftest.$ac_objext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_header_compiler
=yes
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.
$ac_ext >&5
12537 ac_header_compiler
=no
12539 rm -f conftest.
$ac_objext conftest.
$ac_ext
12540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12541 echo "${ECHO_T}$ac_header_compiler" >&6
12543 # Is the header present?
12544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12546 cat >conftest.
$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12550 cat confdefs.h
>>conftest.
$ac_ext
12551 cat >>conftest.
$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #include <$ac_header>
12555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } >/dev
/null
; then
12563 if test -s conftest.err
; then
12564 ac_cpp_err
=$ac_c_preproc_warn_flag
12571 if test -z "$ac_cpp_err"; then
12572 ac_header_preproc
=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.
$ac_ext >&5
12577 ac_header_preproc
=no
12579 rm -f conftest.err conftest.
$ac_ext
12580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12581 echo "${ECHO_T}$ac_header_preproc" >&6
12583 # So? What about this header?
12584 case $ac_header_compiler:$ac_header_preproc in
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12592 ## ------------------------------------ ##
12593 ## Report this to bug-autoconf@gnu.org. ##
12594 ## ------------------------------------ ##
12597 sed "s/^/$as_me: WARNING: /" >&2
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12608 ## ------------------------------------ ##
12609 ## Report this to bug-autoconf@gnu.org. ##
12610 ## ------------------------------------ ##
12613 sed "s/^/$as_me: WARNING: /" >&2
12616 echo "$as_me:$LINENO: checking for $ac_header" >&5
12617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 eval "$as_ac_Header=$ac_header_preproc"
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12628 cat >>confdefs.h
<<_ACEOF
12629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12641 for ac_header
in locale.h
12643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12653 # Is the header compilable?
12654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12656 cat >conftest.
$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12660 cat confdefs.h
>>conftest.
$ac_ext
12661 cat >>conftest.
$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 $ac_includes_default
12664 #include <$ac_header>
12666 rm -f conftest.
$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try
='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_header_compiler
=yes
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.
$ac_ext >&5
12683 ac_header_compiler
=no
12685 rm -f conftest.
$ac_objext conftest.
$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12687 echo "${ECHO_T}$ac_header_compiler" >&6
12689 # Is the header present?
12690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12692 cat >conftest.
$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12696 cat confdefs.h
>>conftest.
$ac_ext
12697 cat >>conftest.
$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 #include <$ac_header>
12701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12704 grep -v '^ *+' conftest.er1
>conftest.err
12706 cat conftest.err
>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } >/dev
/null
; then
12709 if test -s conftest.err
; then
12710 ac_cpp_err
=$ac_c_preproc_warn_flag
12717 if test -z "$ac_cpp_err"; then
12718 ac_header_preproc
=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.
$ac_ext >&5
12723 ac_header_preproc
=no
12725 rm -f conftest.err conftest.
$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12727 echo "${ECHO_T}$ac_header_preproc" >&6
12729 # So? What about this header?
12730 case $ac_header_compiler:$ac_header_preproc in
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12738 ## ------------------------------------ ##
12739 ## Report this to bug-autoconf@gnu.org. ##
12740 ## ------------------------------------ ##
12743 sed "s/^/$as_me: WARNING: /" >&2
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 ## ------------------------------------ ##
12755 ## Report this to bug-autoconf@gnu.org. ##
12756 ## ------------------------------------ ##
12759 sed "s/^/$as_me: WARNING: /" >&2
12762 echo "$as_me:$LINENO: checking for $ac_header" >&5
12763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 eval "$as_ac_Header=$ac_header_preproc"
12769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12774 cat >>confdefs.h
<<_ACEOF
12775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12782 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12783 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12784 if test "${ac_cv_have_decl_getenv+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.
$ac_ext <<_ACEOF
12788 #line $LINENO "configure"
12791 cat confdefs.h
>>conftest.
$ac_ext
12792 cat >>conftest.
$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 $ac_includes_default
12799 char *p = (char *) getenv;
12806 rm -f conftest.
$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try
='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_have_decl_getenv
=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.
$ac_ext >&5
12823 ac_cv_have_decl_getenv
=no
12825 rm -f conftest.
$ac_objext conftest.
$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12828 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12829 if test $ac_cv_have_decl_getenv = yes; then
12831 cat >>confdefs.h
<<_ACEOF
12832 #define HAVE_DECL_GETENV 1
12837 cat >>confdefs.h
<<_ACEOF
12838 #define HAVE_DECL_GETENV 0
12846 for ac_func
in localeconv
12848 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849 echo "$as_me:$LINENO: checking for $ac_func" >&5
12850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12851 if eval "test \"\${$as_ac_var+set}\" = set"; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 cat >conftest.
$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12858 cat confdefs.h
>>conftest.
$ac_ext
12859 cat >>conftest.
$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 /* System header to define __stub macros and hopefully few prototypes,
12862 which can conflict with char $ac_func (); below.
12863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12864 <limits.h> exists even on freestanding compilers. */
12866 # include <limits.h>
12868 # include <assert.h>
12870 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12878 /* The GNU C library defines this for functions which it implements
12879 to always fail with ENOSYS. Some functions are actually named
12880 something starting with __ and the normal name is an alias. */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12884 char (*f) () = $ac_func;
12893 return f != $ac_func;
12898 rm -f conftest.
$ac_objext conftest
$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try
='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 eval "$as_ac_var=yes"
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.
$ac_ext >&5
12915 eval "$as_ac_var=no"
12917 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12921 if test `eval echo '${'$as_ac_var'}'` = yes; then
12922 cat >>confdefs.h
<<_ACEOF
12923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
12941 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943 echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12951 # Is the header compilable?
12952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12954 cat >conftest.
$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12958 cat confdefs.h
>>conftest.
$ac_ext
12959 cat >>conftest.
$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 $ac_includes_default
12962 #include <$ac_header>
12964 rm -f conftest.
$ac_objext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try
='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_header_compiler
=yes
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.
$ac_ext >&5
12981 ac_header_compiler
=no
12983 rm -f conftest.
$ac_objext conftest.
$ac_ext
12984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12985 echo "${ECHO_T}$ac_header_compiler" >&6
12987 # Is the header present?
12988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12990 cat >conftest.
$ac_ext <<_ACEOF
12991 #line $LINENO "configure"
12994 cat confdefs.h
>>conftest.
$ac_ext
12995 cat >>conftest.
$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 #include <$ac_header>
12999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13000 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13002 grep -v '^ *+' conftest.er1
>conftest.err
13004 cat conftest.err
>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } >/dev
/null
; then
13007 if test -s conftest.err
; then
13008 ac_cpp_err
=$ac_c_preproc_warn_flag
13015 if test -z "$ac_cpp_err"; then
13016 ac_header_preproc
=yes
13018 echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.
$ac_ext >&5
13021 ac_header_preproc
=no
13023 rm -f conftest.err conftest.
$ac_ext
13024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13025 echo "${ECHO_T}$ac_header_preproc" >&6
13027 # So? What about this header?
13028 case $ac_header_compiler:$ac_header_preproc in
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13036 ## ------------------------------------ ##
13037 ## Report this to bug-autoconf@gnu.org. ##
13038 ## ------------------------------------ ##
13041 sed "s/^/$as_me: WARNING: /" >&2
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052 ## ------------------------------------ ##
13053 ## Report this to bug-autoconf@gnu.org. ##
13054 ## ------------------------------------ ##
13057 sed "s/^/$as_me: WARNING: /" >&2
13060 echo "$as_me:$LINENO: checking for $ac_header" >&5
13061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 eval "$as_ac_Header=$ac_header_preproc"
13067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13072 cat >>confdefs.h
<<_ACEOF
13073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13085 for ac_func
in isascii iswcntrl iswprint mbsinit wcwidth
13087 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13088 echo "$as_me:$LINENO: checking for $ac_func" >&5
13089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13090 if eval "test \"\${$as_ac_var+set}\" = set"; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 cat >conftest.
$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13097 cat confdefs.h
>>conftest.
$ac_ext
13098 cat >>conftest.
$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 /* System header to define __stub macros and hopefully few prototypes,
13101 which can conflict with char $ac_func (); below.
13102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13103 <limits.h> exists even on freestanding compilers. */
13105 # include <limits.h>
13107 # include <assert.h>
13109 /* Override any gcc2 internal prototype to avoid an error. */
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13117 /* The GNU C library defines this for functions which it implements
13118 to always fail with ENOSYS. Some functions are actually named
13119 something starting with __ and the normal name is an alias. */
13120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13123 char (*f) () = $ac_func;
13132 return f != $ac_func;
13137 rm -f conftest.
$ac_objext conftest
$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try
='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.
$ac_ext >&5
13154 eval "$as_ac_var=no"
13156 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13160 if test `eval echo '${'$as_ac_var'}'` = yes; then
13161 cat >>confdefs.h
<<_ACEOF
13162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13169 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13170 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13171 if test "${jm_cv_func_mbrtowc+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 cat >conftest.
$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13178 cat confdefs.h
>>conftest.
$ac_ext
13179 cat >>conftest.
$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13185 mbstate_t state; return ! (sizeof state && mbrtowc);
13190 rm -f conftest.
$ac_objext conftest
$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192 (eval $ac_link) 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try
='test -s conftest$ac_exeext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 jm_cv_func_mbrtowc
=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.
$ac_ext >&5
13207 jm_cv_func_mbrtowc
=no
13209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13211 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13212 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13213 if test $jm_cv_func_mbrtowc = yes; then
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_MBRTOWC 1
13222 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13223 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13224 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 cat >conftest.
$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13231 cat confdefs.h
>>conftest.
$ac_ext
13232 cat >>conftest.
$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13237 # include <string.h>
13240 # include <wchar.h>
13248 char *p = (char *) wcwidth;
13255 rm -f conftest.
$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try
='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_have_decl_wcwidth
=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.
$ac_ext >&5
13272 ac_cv_have_decl_wcwidth
=no
13274 rm -f conftest.
$ac_objext conftest.
$ac_ext
13276 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
13277 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
13278 if test $ac_cv_have_decl_wcwidth = yes; then
13284 cat >>confdefs.h
<<_ACEOF
13285 #define HAVE_DECL_WCWIDTH $ac_val
13289 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13290 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13291 if test "${ac_cv_type_mbstate_t+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 cat >conftest.
$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13298 cat confdefs.h
>>conftest.
$ac_ext
13299 cat >>conftest.
$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 # include <wchar.h>
13306 mbstate_t x; return sizeof x;
13311 rm -f conftest.
$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try
='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 ac_cv_type_mbstate_t
=yes
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.
$ac_ext >&5
13328 ac_cv_type_mbstate_t
=no
13330 rm -f conftest.
$ac_objext conftest.
$ac_ext
13332 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13333 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13334 if test $ac_cv_type_mbstate_t = yes; then
13336 cat >>confdefs.h
<<\_ACEOF
13337 #define HAVE_MBSTATE_T 1
13342 cat >>confdefs.h
<<\_ACEOF
13343 #define mbstate_t int
13352 for ac_header
in limits.h stdlib.h bp-sym.h
13354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13356 echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13364 # Is the header compilable?
13365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13367 cat >conftest.
$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13377 rm -f conftest.
$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try
='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_header_compiler
=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.
$ac_ext >&5
13394 ac_header_compiler
=no
13396 rm -f conftest.
$ac_objext conftest.
$ac_ext
13397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13398 echo "${ECHO_T}$ac_header_compiler" >&6
13400 # Is the header present?
13401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13403 cat >conftest.
$ac_ext <<_ACEOF
13404 #line $LINENO "configure"
13407 cat confdefs.h
>>conftest.
$ac_ext
13408 cat >>conftest.
$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <$ac_header>
13412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13415 grep -v '^ *+' conftest.er1
>conftest.err
13417 cat conftest.err
>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } >/dev
/null
; then
13420 if test -s conftest.err
; then
13421 ac_cpp_err
=$ac_c_preproc_warn_flag
13428 if test -z "$ac_cpp_err"; then
13429 ac_header_preproc
=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.
$ac_ext >&5
13434 ac_header_preproc
=no
13436 rm -f conftest.err conftest.
$ac_ext
13437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438 echo "${ECHO_T}$ac_header_preproc" >&6
13440 # So? What about this header?
13441 case $ac_header_compiler:$ac_header_preproc in
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13449 ## ------------------------------------ ##
13450 ## Report this to bug-autoconf@gnu.org. ##
13451 ## ------------------------------------ ##
13454 sed "s/^/$as_me: WARNING: /" >&2
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 ## ------------------------------------ ##
13466 ## Report this to bug-autoconf@gnu.org. ##
13467 ## ------------------------------------ ##
13470 sed "s/^/$as_me: WARNING: /" >&2
13473 echo "$as_me:$LINENO: checking for $ac_header" >&5
13474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 eval "$as_ac_Header=$ac_header_preproc"
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13485 cat >>confdefs.h
<<_ACEOF
13486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13497 for ac_header
in sys
/pstat.h unistd.h
13499 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13501 echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13509 # Is the header compilable?
13510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13512 cat >conftest.
$ac_ext <<_ACEOF
13513 #line $LINENO "configure"
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 $ac_includes_default
13520 #include <$ac_header>
13522 rm -f conftest.
$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try
='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_header_compiler
=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.
$ac_ext >&5
13539 ac_header_compiler
=no
13541 rm -f conftest.
$ac_objext conftest.
$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13543 echo "${ECHO_T}$ac_header_compiler" >&6
13545 # Is the header present?
13546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13548 cat >conftest.
$ac_ext <<_ACEOF
13549 #line $LINENO "configure"
13552 cat confdefs.h
>>conftest.
$ac_ext
13553 cat >>conftest.
$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <$ac_header>
13557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13560 grep -v '^ *+' conftest.er1
>conftest.err
13562 cat conftest.err
>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev
/null
; then
13565 if test -s conftest.err
; then
13566 ac_cpp_err
=$ac_c_preproc_warn_flag
13573 if test -z "$ac_cpp_err"; then
13574 ac_header_preproc
=yes
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.
$ac_ext >&5
13579 ac_header_preproc
=no
13581 rm -f conftest.err conftest.
$ac_ext
13582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 echo "${ECHO_T}$ac_header_preproc" >&6
13585 # So? What about this header?
13586 case $ac_header_compiler:$ac_header_preproc in
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13594 ## ------------------------------------ ##
13595 ## Report this to bug-autoconf@gnu.org. ##
13596 ## ------------------------------------ ##
13599 sed "s/^/$as_me: WARNING: /" >&2
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13610 ## ------------------------------------ ##
13611 ## Report this to bug-autoconf@gnu.org. ##
13612 ## ------------------------------------ ##
13615 sed "s/^/$as_me: WARNING: /" >&2
13618 echo "$as_me:$LINENO: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 eval "$as_ac_Header=$ac_header_preproc"
13625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13630 cat >>confdefs.h
<<_ACEOF
13631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13640 for ac_func
in pstat_getstatic pstat_getdynamic
13642 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13643 echo "$as_me:$LINENO: checking for $ac_func" >&5
13644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_var+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 cat >conftest.
$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13652 cat confdefs.h
>>conftest.
$ac_ext
13653 cat >>conftest.
$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 /* System header to define __stub macros and hopefully few prototypes,
13656 which can conflict with char $ac_func (); below.
13657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13658 <limits.h> exists even on freestanding compilers. */
13660 # include <limits.h>
13662 # include <assert.h>
13664 /* Override any gcc2 internal prototype to avoid an error. */
13669 /* We use char because int might match the return type of a gcc2
13670 builtin and then its argument prototype would still apply. */
13672 /* The GNU C library defines this for functions which it implements
13673 to always fail with ENOSYS. Some functions are actually named
13674 something starting with __ and the normal name is an alias. */
13675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13678 char (*f) () = $ac_func;
13687 return f != $ac_func;
13692 rm -f conftest.
$ac_objext conftest
$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try
='test -s conftest$ac_exeext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 eval "$as_ac_var=yes"
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.
$ac_ext >&5
13709 eval "$as_ac_var=no"
13711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13715 if test `eval echo '${'$as_ac_var'}'` = yes; then
13716 cat >>confdefs.h
<<_ACEOF
13717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13726 for ac_header
in unistd.h
13728 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13730 echo "$as_me:$LINENO: checking for $ac_header" >&5
13731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13738 # Is the header compilable?
13739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13741 cat >conftest.
$ac_ext <<_ACEOF
13742 #line $LINENO "configure"
13745 cat confdefs.h
>>conftest.
$ac_ext
13746 cat >>conftest.
$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 $ac_includes_default
13749 #include <$ac_header>
13751 rm -f conftest.
$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try
='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_header_compiler
=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13768 ac_header_compiler
=no
13770 rm -f conftest.
$ac_objext conftest.
$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6
13774 # Is the header present?
13775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13777 cat >conftest.
$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13781 cat confdefs.h
>>conftest.
$ac_ext
13782 cat >>conftest.
$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <$ac_header>
13786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13789 grep -v '^ *+' conftest.er1
>conftest.err
13791 cat conftest.err
>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev
/null
; then
13794 if test -s conftest.err
; then
13795 ac_cpp_err
=$ac_c_preproc_warn_flag
13802 if test -z "$ac_cpp_err"; then
13803 ac_header_preproc
=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.
$ac_ext >&5
13808 ac_header_preproc
=no
13810 rm -f conftest.err conftest.
$ac_ext
13811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13812 echo "${ECHO_T}$ac_header_preproc" >&6
13814 # So? What about this header?
13815 case $ac_header_compiler:$ac_header_preproc in
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13823 ## ------------------------------------ ##
13824 ## Report this to bug-autoconf@gnu.org. ##
13825 ## ------------------------------------ ##
13828 sed "s/^/$as_me: WARNING: /" >&2
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13839 ## ------------------------------------ ##
13840 ## Report this to bug-autoconf@gnu.org. ##
13841 ## ------------------------------------ ##
13844 sed "s/^/$as_me: WARNING: /" >&2
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=$ac_header_preproc"
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13859 cat >>confdefs.h
<<_ACEOF
13860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13867 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13868 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13869 if test "${ac_cv_have_decl_getenv+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 cat >conftest.
$ac_ext <<_ACEOF
13873 #line $LINENO "configure"
13876 cat confdefs.h
>>conftest.
$ac_ext
13877 cat >>conftest.
$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 $ac_includes_default
13884 char *p = (char *) getenv;
13891 rm -f conftest.
$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893 (eval $ac_compile) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try
='test -s conftest.$ac_objext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_cv_have_decl_getenv
=yes
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.
$ac_ext >&5
13908 ac_cv_have_decl_getenv
=no
13910 rm -f conftest.
$ac_objext conftest.
$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13913 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13914 if test $ac_cv_have_decl_getenv = yes; then
13916 cat >>confdefs.h
<<_ACEOF
13917 #define HAVE_DECL_GETENV 1
13922 cat >>confdefs.h
<<_ACEOF
13923 #define HAVE_DECL_GETENV 0
13931 echo "$as_me:$LINENO: checking for working memcmp" >&5
13932 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
13933 if test "${ac_cv_func_memcmp_working+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 if test "$cross_compiling" = yes; then
13937 ac_cv_func_memcmp_working
=no
13939 cat >conftest.
$ac_ext <<_ACEOF
13940 #line $LINENO "configure"
13943 cat confdefs.h
>>conftest.
$ac_ext
13944 cat >>conftest.
$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13951 /* Some versions of memcmp are not 8-bit clean. */
13952 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13953 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13956 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13957 or more and with at least one buffer not starting on a 4-byte boundary.
13958 William Lewis provided this test program. */
13963 for (i = 0; i < 4; i++)
13967 strcpy (a, "--------01111111");
13968 strcpy (b, "--------10000000");
13969 if (memcmp (a, b, 16) >= 0)
13979 rm -f conftest
$ac_exeext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_func_memcmp_working
=yes
13992 echo "$as_me: program exited with status $ac_status" >&5
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.
$ac_ext >&5
13996 ( exit $ac_status )
13997 ac_cv_func_memcmp_working
=no
13999 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14003 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14004 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
14006 if test $ac_cv_func_memcmp_working = no
; then
14008 cat >>confdefs.h
<<\_ACEOF
14009 #define memcmp rpl_memcmp
14015 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14016 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14017 if test "${ac_cv_c_backslash_a+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 cat >conftest.
$ac_ext <<_ACEOF
14021 #line $LINENO "configure"
14024 cat confdefs.h
>>conftest.
$ac_ext
14025 cat >>conftest.
$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14035 char buf['\a' == 'a' ? -1 : 1];
14037 return buf[0] != "\a"[0];
14043 rm -f conftest.
$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try
='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_c_backslash_a
=yes
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.
$ac_ext >&5
14060 ac_cv_c_backslash_a
=no
14062 rm -f conftest.
$ac_objext conftest.
$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14065 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14066 if test $ac_cv_c_backslash_a = yes; then
14068 cat >>confdefs.h
<<\_ACEOF
14069 #define HAVE_C_BACKSLASH_A 1
14077 for ac_func
in isascii iswprint
14079 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14080 echo "$as_me:$LINENO: checking for $ac_func" >&5
14081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14082 if eval "test \"\${$as_ac_var+set}\" = set"; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 cat >conftest.
$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14089 cat confdefs.h
>>conftest.
$ac_ext
14090 cat >>conftest.
$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 /* System header to define __stub macros and hopefully few prototypes,
14093 which can conflict with char $ac_func (); below.
14094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14095 <limits.h> exists even on freestanding compilers. */
14097 # include <limits.h>
14099 # include <assert.h>
14101 /* Override any gcc2 internal prototype to avoid an error. */
14106 /* We use char because int might match the return type of a gcc2
14107 builtin and then its argument prototype would still apply. */
14109 /* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14115 char (*f) () = $ac_func;
14124 return f != $ac_func;
14129 rm -f conftest.
$ac_objext conftest
$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try
='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 eval "$as_ac_var=yes"
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.
$ac_ext >&5
14146 eval "$as_ac_var=no"
14148 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14152 if test `eval echo '${'$as_ac_var'}'` = yes; then
14153 cat >>confdefs.h
<<_ACEOF
14154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14168 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14170 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14172 echo "$as_me:$LINENO: checking for $ac_header" >&5
14173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14180 # Is the header compilable?
14181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14183 cat >conftest.
$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14187 cat confdefs.h
>>conftest.
$ac_ext
14188 cat >>conftest.
$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14191 #include <$ac_header>
14193 rm -f conftest.
$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try
='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_header_compiler
=yes
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.
$ac_ext >&5
14210 ac_header_compiler
=no
14212 rm -f conftest.
$ac_objext conftest.
$ac_ext
14213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14214 echo "${ECHO_T}$ac_header_compiler" >&6
14216 # Is the header present?
14217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14219 cat >conftest.
$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14223 cat confdefs.h
>>conftest.
$ac_ext
14224 cat >>conftest.
$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 #include <$ac_header>
14228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14229 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14231 grep -v '^ *+' conftest.er1
>conftest.err
14233 cat conftest.err
>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } >/dev
/null
; then
14236 if test -s conftest.err
; then
14237 ac_cpp_err
=$ac_c_preproc_warn_flag
14244 if test -z "$ac_cpp_err"; then
14245 ac_header_preproc
=yes
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.
$ac_ext >&5
14250 ac_header_preproc
=no
14252 rm -f conftest.err conftest.
$ac_ext
14253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14254 echo "${ECHO_T}$ac_header_preproc" >&6
14256 # So? What about this header?
14257 case $ac_header_compiler:$ac_header_preproc in
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14265 ## ------------------------------------ ##
14266 ## Report this to bug-autoconf@gnu.org. ##
14267 ## ------------------------------------ ##
14270 sed "s/^/$as_me: WARNING: /" >&2
14273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14281 ## ------------------------------------ ##
14282 ## Report this to bug-autoconf@gnu.org. ##
14283 ## ------------------------------------ ##
14286 sed "s/^/$as_me: WARNING: /" >&2
14289 echo "$as_me:$LINENO: checking for $ac_header" >&5
14290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 eval "$as_ac_Header=$ac_header_preproc"
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14301 cat >>confdefs.h
<<_ACEOF
14302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14320 for ac_header
in string.h utmp.h utmpx.h sys
/param.h
14322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14324 echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14332 # Is the header compilable?
14333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14335 cat >conftest.
$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14339 cat confdefs.h
>>conftest.
$ac_ext
14340 cat >>conftest.
$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14343 #include <$ac_header>
14345 rm -f conftest.
$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try
='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_header_compiler
=yes
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.
$ac_ext >&5
14362 ac_header_compiler
=no
14364 rm -f conftest.
$ac_objext conftest.
$ac_ext
14365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14366 echo "${ECHO_T}$ac_header_compiler" >&6
14368 # Is the header present?
14369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14371 cat >conftest.
$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14375 cat confdefs.h
>>conftest.
$ac_ext
14376 cat >>conftest.
$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <$ac_header>
14380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14381 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14383 grep -v '^ *+' conftest.er1
>conftest.err
14385 cat conftest.err
>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev
/null
; then
14388 if test -s conftest.err
; then
14389 ac_cpp_err
=$ac_c_preproc_warn_flag
14396 if test -z "$ac_cpp_err"; then
14397 ac_header_preproc
=yes
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.
$ac_ext >&5
14402 ac_header_preproc
=no
14404 rm -f conftest.err conftest.
$ac_ext
14405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14406 echo "${ECHO_T}$ac_header_preproc" >&6
14408 # So? What about this header?
14409 case $ac_header_compiler:$ac_header_preproc in
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14417 ## ------------------------------------ ##
14418 ## Report this to bug-autoconf@gnu.org. ##
14419 ## ------------------------------------ ##
14422 sed "s/^/$as_me: WARNING: /" >&2
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14433 ## ------------------------------------ ##
14434 ## Report this to bug-autoconf@gnu.org. ##
14435 ## ------------------------------------ ##
14438 sed "s/^/$as_me: WARNING: /" >&2
14441 echo "$as_me:$LINENO: checking for $ac_header" >&5
14442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 eval "$as_ac_Header=$ac_header_preproc"
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14453 cat >>confdefs.h
<<_ACEOF
14454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14462 for ac_func
in utmpname
14464 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14465 echo "$as_me:$LINENO: checking for $ac_func" >&5
14466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14467 if eval "test \"\${$as_ac_var+set}\" = set"; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 cat >conftest.
$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14474 cat confdefs.h
>>conftest.
$ac_ext
14475 cat >>conftest.
$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* System header to define __stub macros and hopefully few prototypes,
14478 which can conflict with char $ac_func (); below.
14479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14480 <limits.h> exists even on freestanding compilers. */
14482 # include <limits.h>
14484 # include <assert.h>
14486 /* Override any gcc2 internal prototype to avoid an error. */
14491 /* We use char because int might match the return type of a gcc2
14492 builtin and then its argument prototype would still apply. */
14494 /* The GNU C library defines this for functions which it implements
14495 to always fail with ENOSYS. Some functions are actually named
14496 something starting with __ and the normal name is an alias. */
14497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14500 char (*f) () = $ac_func;
14509 return f != $ac_func;
14514 rm -f conftest.
$ac_objext conftest
$ac_exeext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516 (eval $ac_link) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try
='test -s conftest$ac_exeext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14526 eval "$as_ac_var=yes"
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.
$ac_ext >&5
14531 eval "$as_ac_var=no"
14533 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14537 if test `eval echo '${'$as_ac_var'}'` = yes; then
14538 cat >>confdefs.h
<<_ACEOF
14539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14546 for ac_func
in utmpxname
14548 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 echo "$as_me:$LINENO: checking for $ac_func" >&5
14550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_var+set}\" = set"; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.
$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14558 cat confdefs.h
>>conftest.
$ac_ext
14559 cat >>conftest.
$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 /* System header to define __stub macros and hopefully few prototypes,
14562 which can conflict with char $ac_func (); below.
14563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14564 <limits.h> exists even on freestanding compilers. */
14566 # include <limits.h>
14568 # include <assert.h>
14570 /* Override any gcc2 internal prototype to avoid an error. */
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 char (*f) () = $ac_func;
14593 return f != $ac_func;
14598 rm -f conftest.
$ac_objext conftest
$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try
='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 eval "$as_ac_var=yes"
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.
$ac_ext >&5
14615 eval "$as_ac_var=no"
14617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14621 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622 cat >>confdefs.h
<<_ACEOF
14623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
14633 $ac_includes_default
14634 #ifdef HAVE_UTMPX_H
14635 # include <utmpx.h>
14641 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
14642 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
14643 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.
$ac_ext <<_ACEOF
14647 #line $LINENO "configure"
14650 cat confdefs.h
>>conftest.
$ac_ext
14651 cat >>conftest.
$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14658 static struct utmpx ac_aggr;
14659 if (ac_aggr.ut_user)
14665 rm -f conftest.
$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try
='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_member_struct_utmpx_ut_user
=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.
$ac_ext >&5
14682 cat >conftest.
$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14686 cat confdefs.h
>>conftest.
$ac_ext
14687 cat >>conftest.
$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14694 static struct utmpx ac_aggr;
14695 if (sizeof ac_aggr.ut_user)
14701 rm -f conftest.
$ac_objext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try
='test -s conftest.$ac_objext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_cv_member_struct_utmpx_ut_user
=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.
$ac_ext >&5
14718 ac_cv_member_struct_utmpx_ut_user
=no
14720 rm -f conftest.
$ac_objext conftest.
$ac_ext
14722 rm -f conftest.
$ac_objext conftest.
$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
14725 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
14726 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
14728 cat >>confdefs.h
<<_ACEOF
14729 #define HAVE_STRUCT_UTMPX_UT_USER 1
14735 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
14736 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
14737 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.
$ac_ext <<_ACEOF
14741 #line $LINENO "configure"
14744 cat confdefs.h
>>conftest.
$ac_ext
14745 cat >>conftest.
$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14752 static struct utmp ac_aggr;
14753 if (ac_aggr.ut_user)
14759 rm -f conftest.
$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try
='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_cv_member_struct_utmp_ut_user
=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.
$ac_ext >&5
14776 cat >conftest.
$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14780 cat confdefs.h
>>conftest.
$ac_ext
14781 cat >>conftest.
$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14788 static struct utmp ac_aggr;
14789 if (sizeof ac_aggr.ut_user)
14795 rm -f conftest.
$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try
='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_member_struct_utmp_ut_user
=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.
$ac_ext >&5
14812 ac_cv_member_struct_utmp_ut_user
=no
14814 rm -f conftest.
$ac_objext conftest.
$ac_ext
14816 rm -f conftest.
$ac_objext conftest.
$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
14819 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
14820 if test $ac_cv_member_struct_utmp_ut_user = yes; then
14822 cat >>confdefs.h
<<_ACEOF
14823 #define HAVE_STRUCT_UTMP_UT_USER 1
14829 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
14830 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
14831 if test "${ac_cv_member_struct_utmpx_ut_name+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. */
14846 static struct utmpx ac_aggr;
14847 if (ac_aggr.ut_name)
14853 rm -f conftest.
$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try
='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_member_struct_utmpx_ut_name
=yes
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.
$ac_ext >&5
14870 cat >conftest.
$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14882 static struct utmpx ac_aggr;
14883 if (sizeof ac_aggr.ut_name)
14889 rm -f conftest.
$ac_objext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try
='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_member_struct_utmpx_ut_name
=yes
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 ac_cv_member_struct_utmpx_ut_name
=no
14908 rm -f conftest.
$ac_objext conftest.
$ac_ext
14910 rm -f conftest.
$ac_objext conftest.
$ac_ext
14912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
14913 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
14914 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
14916 cat >>confdefs.h
<<_ACEOF
14917 #define HAVE_STRUCT_UTMPX_UT_NAME 1
14923 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
14924 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
14925 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cat >conftest.
$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14932 cat confdefs.h
>>conftest.
$ac_ext
14933 cat >>conftest.
$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14940 static struct utmp ac_aggr;
14941 if (ac_aggr.ut_name)
14947 rm -f conftest.
$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949 (eval $ac_compile) 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try
='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_member_struct_utmp_ut_name
=yes
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.
$ac_ext >&5
14964 cat >conftest.
$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14968 cat confdefs.h
>>conftest.
$ac_ext
14969 cat >>conftest.
$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14976 static struct utmp ac_aggr;
14977 if (sizeof ac_aggr.ut_name)
14983 rm -f conftest.
$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try
='test -s conftest.$ac_objext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_cv_member_struct_utmp_ut_name
=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.
$ac_ext >&5
15000 ac_cv_member_struct_utmp_ut_name
=no
15002 rm -f conftest.
$ac_objext conftest.
$ac_ext
15004 rm -f conftest.
$ac_objext conftest.
$ac_ext
15006 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15007 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15008 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15010 cat >>confdefs.h
<<_ACEOF
15011 #define HAVE_STRUCT_UTMP_UT_NAME 1
15017 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15018 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15019 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 cat >conftest.
$ac_ext <<_ACEOF
15023 #line $LINENO "configure"
15026 cat confdefs.h
>>conftest.
$ac_ext
15027 cat >>conftest.
$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15034 static struct utmpx ac_aggr;
15035 if (ac_aggr.ut_type)
15041 rm -f conftest.
$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try
='test -s conftest.$ac_objext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_member_struct_utmpx_ut_type
=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.
$ac_ext >&5
15058 cat >conftest.
$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15062 cat confdefs.h
>>conftest.
$ac_ext
15063 cat >>conftest.
$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15070 static struct utmpx ac_aggr;
15071 if (sizeof ac_aggr.ut_type)
15077 rm -f conftest.
$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try
='test -s conftest.$ac_objext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_member_struct_utmpx_ut_type
=yes
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.
$ac_ext >&5
15094 ac_cv_member_struct_utmpx_ut_type
=no
15096 rm -f conftest.
$ac_objext conftest.
$ac_ext
15098 rm -f conftest.
$ac_objext conftest.
$ac_ext
15100 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15101 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15102 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15104 cat >>confdefs.h
<<_ACEOF
15105 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15111 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15112 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15113 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.
$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15120 cat confdefs.h
>>conftest.
$ac_ext
15121 cat >>conftest.
$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15128 static struct utmp ac_aggr;
15129 if (ac_aggr.ut_type)
15135 rm -f conftest.
$ac_objext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try
='test -s conftest.$ac_objext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_member_struct_utmp_ut_type
=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15152 cat >conftest.
$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15156 cat confdefs.h
>>conftest.
$ac_ext
15157 cat >>conftest.
$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15164 static struct utmp ac_aggr;
15165 if (sizeof ac_aggr.ut_type)
15171 rm -f conftest.
$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try
='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_cv_member_struct_utmp_ut_type
=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.
$ac_ext >&5
15188 ac_cv_member_struct_utmp_ut_type
=no
15190 rm -f conftest.
$ac_objext conftest.
$ac_ext
15192 rm -f conftest.
$ac_objext conftest.
$ac_ext
15194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15195 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15196 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15198 cat >>confdefs.h
<<_ACEOF
15199 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15205 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15206 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15207 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 cat >conftest.
$ac_ext <<_ACEOF
15211 #line $LINENO "configure"
15214 cat confdefs.h
>>conftest.
$ac_ext
15215 cat >>conftest.
$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15222 static struct utmpx ac_aggr;
15223 if (ac_aggr.ut_pid)
15229 rm -f conftest.
$ac_objext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15231 (eval $ac_compile) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try
='test -s conftest.$ac_objext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_member_struct_utmpx_ut_pid
=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.
$ac_ext >&5
15246 cat >conftest.
$ac_ext <<_ACEOF
15247 #line $LINENO "configure"
15250 cat confdefs.h
>>conftest.
$ac_ext
15251 cat >>conftest.
$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15258 static struct utmpx ac_aggr;
15259 if (sizeof ac_aggr.ut_pid)
15265 rm -f conftest.
$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try
='test -s conftest.$ac_objext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_member_struct_utmpx_ut_pid
=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.
$ac_ext >&5
15282 ac_cv_member_struct_utmpx_ut_pid
=no
15284 rm -f conftest.
$ac_objext conftest.
$ac_ext
15286 rm -f conftest.
$ac_objext conftest.
$ac_ext
15288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
15289 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
15290 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
15292 cat >>confdefs.h
<<_ACEOF
15293 #define HAVE_STRUCT_UTMPX_UT_PID 1
15299 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
15300 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
15301 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 cat >conftest.
$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15308 cat confdefs.h
>>conftest.
$ac_ext
15309 cat >>conftest.
$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15316 static struct utmp ac_aggr;
15317 if (ac_aggr.ut_pid)
15323 rm -f conftest.
$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try
='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_member_struct_utmp_ut_pid
=yes
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.
$ac_ext >&5
15340 cat >conftest.
$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15344 cat confdefs.h
>>conftest.
$ac_ext
15345 cat >>conftest.
$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15352 static struct utmp ac_aggr;
15353 if (sizeof ac_aggr.ut_pid)
15359 rm -f conftest.
$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try
='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_member_struct_utmp_ut_pid
=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.
$ac_ext >&5
15376 ac_cv_member_struct_utmp_ut_pid
=no
15378 rm -f conftest.
$ac_objext conftest.
$ac_ext
15380 rm -f conftest.
$ac_objext conftest.
$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
15383 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
15384 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
15386 cat >>confdefs.h
<<_ACEOF
15387 #define HAVE_STRUCT_UTMP_UT_PID 1
15393 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
15394 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
15395 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 cat >conftest.
$ac_ext <<_ACEOF
15399 #line $LINENO "configure"
15402 cat confdefs.h
>>conftest.
$ac_ext
15403 cat >>conftest.
$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15410 static struct utmpx ac_aggr;
15417 rm -f conftest.
$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try
='test -s conftest.$ac_objext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_member_struct_utmpx_ut_id
=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.
$ac_ext >&5
15434 cat >conftest.
$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15438 cat confdefs.h
>>conftest.
$ac_ext
15439 cat >>conftest.
$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15446 static struct utmpx ac_aggr;
15447 if (sizeof ac_aggr.ut_id)
15453 rm -f conftest.
$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try
='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_cv_member_struct_utmpx_ut_id
=yes
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.
$ac_ext >&5
15470 ac_cv_member_struct_utmpx_ut_id
=no
15472 rm -f conftest.
$ac_objext conftest.
$ac_ext
15474 rm -f conftest.
$ac_objext conftest.
$ac_ext
15476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
15477 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
15478 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
15480 cat >>confdefs.h
<<_ACEOF
15481 #define HAVE_STRUCT_UTMPX_UT_ID 1
15487 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
15488 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
15489 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 cat >conftest.
$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15496 cat confdefs.h
>>conftest.
$ac_ext
15497 cat >>conftest.
$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15504 static struct utmp ac_aggr;
15511 rm -f conftest.
$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try
='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_member_struct_utmp_ut_id
=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.
$ac_ext >&5
15528 cat >conftest.
$ac_ext <<_ACEOF
15529 #line $LINENO "configure"
15532 cat confdefs.h
>>conftest.
$ac_ext
15533 cat >>conftest.
$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15540 static struct utmp ac_aggr;
15541 if (sizeof ac_aggr.ut_id)
15547 rm -f conftest.
$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try
='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_member_struct_utmp_ut_id
=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.
$ac_ext >&5
15564 ac_cv_member_struct_utmp_ut_id
=no
15566 rm -f conftest.
$ac_objext conftest.
$ac_ext
15568 rm -f conftest.
$ac_objext conftest.
$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
15571 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
15572 if test $ac_cv_member_struct_utmp_ut_id = yes; then
15574 cat >>confdefs.h
<<_ACEOF
15575 #define HAVE_STRUCT_UTMP_UT_ID 1
15582 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
15583 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
15584 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 cat >conftest.
$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15591 cat confdefs.h
>>conftest.
$ac_ext
15592 cat >>conftest.
$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15599 static struct utmpx ac_aggr;
15600 if (ac_aggr.ut_exit.ut_exit)
15606 rm -f conftest.
$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try
='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.
$ac_ext >&5
15623 cat >conftest.
$ac_ext <<_ACEOF
15624 #line $LINENO "configure"
15627 cat confdefs.h
>>conftest.
$ac_ext
15628 cat >>conftest.
$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15635 static struct utmpx ac_aggr;
15636 if (sizeof ac_aggr.ut_exit.ut_exit)
15642 rm -f conftest.
$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try
='test -s conftest.$ac_objext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.
$ac_ext >&5
15659 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=no
15661 rm -f conftest.
$ac_objext conftest.
$ac_ext
15663 rm -f conftest.
$ac_objext conftest.
$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
15666 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
15667 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
15669 cat >>confdefs.h
<<_ACEOF
15670 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
15676 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
15677 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
15678 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 cat >conftest.
$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15685 cat confdefs.h
>>conftest.
$ac_ext
15686 cat >>conftest.
$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15693 static struct utmp ac_aggr;
15694 if (ac_aggr.ut_exit.ut_exit)
15700 rm -f conftest.
$ac_objext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15702 (eval $ac_compile) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try
='test -s conftest.$ac_objext'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15712 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.
$ac_ext >&5
15717 cat >conftest.
$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15721 cat confdefs.h
>>conftest.
$ac_ext
15722 cat >>conftest.
$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15729 static struct utmp ac_aggr;
15730 if (sizeof ac_aggr.ut_exit.ut_exit)
15736 rm -f conftest.
$ac_objext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15738 (eval $ac_compile) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try
='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.
$ac_ext >&5
15753 ac_cv_member_struct_utmp_ut_exit_ut_exit
=no
15755 rm -f conftest.
$ac_objext conftest.
$ac_ext
15757 rm -f conftest.
$ac_objext conftest.
$ac_ext
15759 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
15760 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
15761 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
15763 cat >>confdefs.h
<<_ACEOF
15764 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
15770 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
15771 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
15772 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 cat >conftest.
$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15779 cat confdefs.h
>>conftest.
$ac_ext
15780 cat >>conftest.
$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15787 static struct utmpx ac_aggr;
15788 if (ac_aggr.ut_exit.e_exit)
15794 rm -f conftest.
$ac_objext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796 (eval $ac_compile) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } &&
15800 { ac_try
='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.
$ac_ext >&5
15811 cat >conftest.
$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15815 cat confdefs.h
>>conftest.
$ac_ext
15816 cat >>conftest.
$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15823 static struct utmpx ac_aggr;
15824 if (sizeof ac_aggr.ut_exit.e_exit)
15830 rm -f conftest.
$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try
='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.
$ac_ext >&5
15847 ac_cv_member_struct_utmpx_ut_exit_e_exit
=no
15849 rm -f conftest.
$ac_objext conftest.
$ac_ext
15851 rm -f conftest.
$ac_objext conftest.
$ac_ext
15853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
15854 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
15855 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
15857 cat >>confdefs.h
<<_ACEOF
15858 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
15864 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
15865 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
15866 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 cat >conftest.
$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15873 cat confdefs.h
>>conftest.
$ac_ext
15874 cat >>conftest.
$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15881 static struct utmp ac_aggr;
15882 if (ac_aggr.ut_exit.e_exit)
15888 rm -f conftest.
$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -s conftest.$ac_objext'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.
$ac_ext >&5
15905 cat >conftest.
$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15909 cat confdefs.h
>>conftest.
$ac_ext
15910 cat >>conftest.
$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15917 static struct utmp ac_aggr;
15918 if (sizeof ac_aggr.ut_exit.e_exit)
15924 rm -f conftest.
$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try
='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.
$ac_ext >&5
15941 ac_cv_member_struct_utmp_ut_exit_e_exit
=no
15943 rm -f conftest.
$ac_objext conftest.
$ac_ext
15945 rm -f conftest.
$ac_objext conftest.
$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
15948 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
15949 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
15951 cat >>confdefs.h
<<_ACEOF
15952 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
15959 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
15960 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
15961 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 cat >conftest.
$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15968 cat confdefs.h
>>conftest.
$ac_ext
15969 cat >>conftest.
$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15976 static struct utmpx ac_aggr;
15977 if (ac_aggr.ut_exit.ut_termination)
15983 rm -f conftest.
$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try
='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.
$ac_ext >&5
16000 cat >conftest.
$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16004 cat confdefs.h
>>conftest.
$ac_ext
16005 cat >>conftest.
$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16012 static struct utmpx ac_aggr;
16013 if (sizeof ac_aggr.ut_exit.ut_termination)
16019 rm -f conftest.
$ac_objext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try
='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.
$ac_ext >&5
16036 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=no
16038 rm -f conftest.
$ac_objext conftest.
$ac_ext
16040 rm -f conftest.
$ac_objext conftest.
$ac_ext
16042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16043 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16044 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16046 cat >>confdefs.h
<<_ACEOF
16047 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16053 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16054 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16055 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 cat >conftest.
$ac_ext <<_ACEOF
16059 #line $LINENO "configure"
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16070 static struct utmp ac_aggr;
16071 if (ac_aggr.ut_exit.ut_termination)
16077 rm -f conftest.
$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try
='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.
$ac_ext >&5
16094 cat >conftest.
$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16098 cat confdefs.h
>>conftest.
$ac_ext
16099 cat >>conftest.
$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16106 static struct utmp ac_aggr;
16107 if (sizeof ac_aggr.ut_exit.ut_termination)
16113 rm -f conftest.
$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115 (eval $ac_compile) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try
='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.
$ac_ext >&5
16130 ac_cv_member_struct_utmp_ut_exit_ut_termination
=no
16132 rm -f conftest.
$ac_objext conftest.
$ac_ext
16134 rm -f conftest.
$ac_objext conftest.
$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16137 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16138 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16140 cat >>confdefs.h
<<_ACEOF
16141 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16147 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16148 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16149 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 cat >conftest.
$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16156 cat confdefs.h
>>conftest.
$ac_ext
16157 cat >>conftest.
$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16164 static struct utmpx ac_aggr;
16165 if (ac_aggr.ut_exit.e_termination)
16171 rm -f conftest.
$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try
='test -s conftest.$ac_objext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.
$ac_ext >&5
16188 cat >conftest.
$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16192 cat confdefs.h
>>conftest.
$ac_ext
16193 cat >>conftest.
$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16200 static struct utmpx ac_aggr;
16201 if (sizeof ac_aggr.ut_exit.e_termination)
16207 rm -f conftest.
$ac_objext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try
='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.
$ac_ext >&5
16224 ac_cv_member_struct_utmpx_ut_exit_e_termination
=no
16226 rm -f conftest.
$ac_objext conftest.
$ac_ext
16228 rm -f conftest.
$ac_objext conftest.
$ac_ext
16230 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16231 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16232 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16234 cat >>confdefs.h
<<_ACEOF
16235 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16241 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16242 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16243 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 cat >conftest.
$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16250 cat confdefs.h
>>conftest.
$ac_ext
16251 cat >>conftest.
$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16258 static struct utmp ac_aggr;
16259 if (ac_aggr.ut_exit.e_termination)
16265 rm -f conftest.
$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try
='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 cat >conftest.
$ac_ext <<_ACEOF
16283 #line $LINENO "configure"
16286 cat confdefs.h
>>conftest.
$ac_ext
16287 cat >>conftest.
$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16294 static struct utmp ac_aggr;
16295 if (sizeof ac_aggr.ut_exit.e_termination)
16301 rm -f conftest.
$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try
='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.
$ac_ext >&5
16318 ac_cv_member_struct_utmp_ut_exit_e_termination
=no
16320 rm -f conftest.
$ac_objext conftest.
$ac_ext
16322 rm -f conftest.
$ac_objext conftest.
$ac_ext
16324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
16325 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
16326 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
16328 cat >>confdefs.h
<<_ACEOF
16329 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16335 LIBOBJS
="$LIBOBJS readutmp.$ac_objext"
16343 for ac_func
in bzero bcopy isascii btowc
16345 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16346 echo "$as_me:$LINENO: checking for $ac_func" >&5
16347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16348 if eval "test \"\${$as_ac_var+set}\" = set"; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 cat >conftest.
$ac_ext <<_ACEOF
16352 #line $LINENO "configure"
16355 cat confdefs.h
>>conftest.
$ac_ext
16356 cat >>conftest.
$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 /* System header to define __stub macros and hopefully few prototypes,
16359 which can conflict with char $ac_func (); below.
16360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 <limits.h> exists even on freestanding compilers. */
16363 # include <limits.h>
16365 # include <assert.h>
16367 /* Override any gcc2 internal prototype to avoid an error. */
16372 /* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16375 /* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16381 char (*f) () = $ac_func;
16390 return f != $ac_func;
16395 rm -f conftest.
$ac_objext conftest
$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try
='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 eval "$as_ac_var=yes"
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.
$ac_ext >&5
16412 eval "$as_ac_var=no"
16414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16418 if test `eval echo '${'$as_ac_var'}'` = yes; then
16419 cat >>confdefs.h
<<_ACEOF
16420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16430 for ac_header
in alloca.h libintl.h wctype.h wchar.h
16432 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16434 echo "$as_me:$LINENO: checking for $ac_header" >&5
16435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16442 # Is the header compilable?
16443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16445 cat >conftest.
$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16449 cat confdefs.h
>>conftest.
$ac_ext
16450 cat >>conftest.
$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 $ac_includes_default
16453 #include <$ac_header>
16455 rm -f conftest.
$ac_objext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457 (eval $ac_compile) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try
='test -s conftest.$ac_objext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 ac_header_compiler
=yes
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.
$ac_ext >&5
16472 ac_header_compiler
=no
16474 rm -f conftest.
$ac_objext conftest.
$ac_ext
16475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16476 echo "${ECHO_T}$ac_header_compiler" >&6
16478 # Is the header present?
16479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16481 cat >conftest.
$ac_ext <<_ACEOF
16482 #line $LINENO "configure"
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #include <$ac_header>
16490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16493 grep -v '^ *+' conftest.er1
>conftest.err
16495 cat conftest.err
>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } >/dev
/null
; then
16498 if test -s conftest.err
; then
16499 ac_cpp_err
=$ac_c_preproc_warn_flag
16506 if test -z "$ac_cpp_err"; then
16507 ac_header_preproc
=yes
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.
$ac_ext >&5
16512 ac_header_preproc
=no
16514 rm -f conftest.err conftest.
$ac_ext
16515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16516 echo "${ECHO_T}$ac_header_preproc" >&6
16518 # So? What about this header?
16519 case $ac_header_compiler:$ac_header_preproc in
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16527 ## ------------------------------------ ##
16528 ## Report this to bug-autoconf@gnu.org. ##
16529 ## ------------------------------------ ##
16532 sed "s/^/$as_me: WARNING: /" >&2
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16543 ## ------------------------------------ ##
16544 ## Report this to bug-autoconf@gnu.org. ##
16545 ## ------------------------------------ ##
16548 sed "s/^/$as_me: WARNING: /" >&2
16551 echo "$as_me:$LINENO: checking for $ac_header" >&5
16552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 eval "$as_ac_Header=$ac_header_preproc"
16558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16563 cat >>confdefs.h
<<_ACEOF
16564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16575 echo "$as_me:$LINENO: checking for long long" >&5
16576 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16577 if test "${ac_cv_type_long_long+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 cat >conftest.
$ac_ext <<_ACEOF
16581 #line $LINENO "configure"
16584 cat confdefs.h
>>conftest.
$ac_ext
16585 cat >>conftest.
$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 long long ll = 1; int i = 63;
16591 long long llmax = (long long) -1;
16592 return ll << i | ll >> i | llmax / ll | llmax % ll;
16597 rm -f conftest.
$ac_objext conftest
$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try
='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_type_long_long
=yes
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.
$ac_ext >&5
16614 ac_cv_type_long_long
=no
16616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16618 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16619 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16620 if test $ac_cv_type_long_long = yes; then
16622 cat >>confdefs.h
<<\_ACEOF
16623 #define HAVE_LONG_LONG 1
16633 for ac_header
in sys
/sysmacros.h sys
/statvfs.h sys
/vfs.h inttypes.h
16635 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16637 echo "$as_me:$LINENO: checking for $ac_header" >&5
16638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16645 # Is the header compilable?
16646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16648 cat >conftest.
$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16652 cat confdefs.h
>>conftest.
$ac_ext
16653 cat >>conftest.
$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 #include <$ac_header>
16658 rm -f conftest.
$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try
='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_header_compiler
=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.
$ac_ext >&5
16675 ac_header_compiler
=no
16677 rm -f conftest.
$ac_objext conftest.
$ac_ext
16678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16679 echo "${ECHO_T}$ac_header_compiler" >&6
16681 # Is the header present?
16682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16684 cat >conftest.
$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16688 cat confdefs.h
>>conftest.
$ac_ext
16689 cat >>conftest.
$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 #include <$ac_header>
16693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16694 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16696 grep -v '^ *+' conftest.er1
>conftest.err
16698 cat conftest.err
>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev
/null
; then
16701 if test -s conftest.err
; then
16702 ac_cpp_err
=$ac_c_preproc_warn_flag
16709 if test -z "$ac_cpp_err"; then
16710 ac_header_preproc
=yes
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.
$ac_ext >&5
16715 ac_header_preproc
=no
16717 rm -f conftest.err conftest.
$ac_ext
16718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719 echo "${ECHO_T}$ac_header_preproc" >&6
16721 # So? What about this header?
16722 case $ac_header_compiler:$ac_header_preproc in
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 ## ------------------------------------ ##
16731 ## Report this to bug-autoconf@gnu.org. ##
16732 ## ------------------------------------ ##
16735 sed "s/^/$as_me: WARNING: /" >&2
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16746 ## ------------------------------------ ##
16747 ## Report this to bug-autoconf@gnu.org. ##
16748 ## ------------------------------------ ##
16751 sed "s/^/$as_me: WARNING: /" >&2
16754 echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 eval "$as_ac_Header=$ac_header_preproc"
16761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h
<<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16776 for ac_header
in sys
/param.h sys
/mount.h
16778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780 echo "$as_me:$LINENO: checking for $ac_header" >&5
16781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16788 # Is the header compilable?
16789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16791 cat >conftest.
$ac_ext <<_ACEOF
16792 #line $LINENO "configure"
16795 cat confdefs.h
>>conftest.
$ac_ext
16796 cat >>conftest.
$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 $ac_includes_default
16799 #include <$ac_header>
16801 rm -f conftest.
$ac_objext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try
='test -s conftest.$ac_objext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_header_compiler
=yes
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.
$ac_ext >&5
16818 ac_header_compiler
=no
16820 rm -f conftest.
$ac_objext conftest.
$ac_ext
16821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16822 echo "${ECHO_T}$ac_header_compiler" >&6
16824 # Is the header present?
16825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16827 cat >conftest.
$ac_ext <<_ACEOF
16828 #line $LINENO "configure"
16831 cat confdefs.h
>>conftest.
$ac_ext
16832 cat >>conftest.
$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <$ac_header>
16836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16839 grep -v '^ *+' conftest.er1
>conftest.err
16841 cat conftest.err
>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } >/dev
/null
; then
16844 if test -s conftest.err
; then
16845 ac_cpp_err
=$ac_c_preproc_warn_flag
16852 if test -z "$ac_cpp_err"; then
16853 ac_header_preproc
=yes
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.
$ac_ext >&5
16858 ac_header_preproc
=no
16860 rm -f conftest.err conftest.
$ac_ext
16861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16862 echo "${ECHO_T}$ac_header_preproc" >&6
16864 # So? What about this header?
16865 case $ac_header_compiler:$ac_header_preproc in
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16873 ## ------------------------------------ ##
16874 ## Report this to bug-autoconf@gnu.org. ##
16875 ## ------------------------------------ ##
16878 sed "s/^/$as_me: WARNING: /" >&2
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16889 ## ------------------------------------ ##
16890 ## Report this to bug-autoconf@gnu.org. ##
16891 ## ------------------------------------ ##
16894 sed "s/^/$as_me: WARNING: /" >&2
16897 echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 eval "$as_ac_Header=$ac_header_preproc"
16904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16909 cat >>confdefs.h
<<_ACEOF
16910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16918 for ac_func
in statvfs
16920 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16923 if eval "test \"\${$as_ac_var+set}\" = set"; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.
$ac_ext <<_ACEOF
16927 #line $LINENO "configure"
16930 cat confdefs.h
>>conftest.
$ac_ext
16931 cat >>conftest.
$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 /* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char $ac_func (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16942 /* Override any gcc2 internal prototype to avoid an error. */
16947 /* We use char because int might match the return type of a gcc2
16948 builtin and then its argument prototype would still apply. */
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16956 char (*f) () = $ac_func;
16965 return f != $ac_func;
16970 rm -f conftest.
$ac_objext conftest
$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try
='test -s conftest$ac_exeext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 eval "$as_ac_var=yes"
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.
$ac_ext >&5
16987 eval "$as_ac_var=no"
16989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16993 if test `eval echo '${'$as_ac_var'}'` = yes; then
16994 cat >>confdefs.h
<<_ACEOF
16995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17003 statxfs_includes
="\
17004 $ac_includes_default
17005 #if HAVE_SYS_STATVFS_H
17006 # include <sys/statvfs.h>
17009 # include <sys/vfs.h>
17011 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17012 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17013 # include <sys/param.h>
17014 # include <sys/mount.h>
17017 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17018 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17019 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 cat >conftest.
$ac_ext <<_ACEOF
17023 #line $LINENO "configure"
17026 cat confdefs.h
>>conftest.
$ac_ext
17027 cat >>conftest.
$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17034 static struct statfs ac_aggr;
17035 if (ac_aggr.f_basetype)
17041 rm -f conftest.
$ac_objext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try
='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_member_struct_statfs_f_basetype
=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.
$ac_ext >&5
17058 cat >conftest.
$ac_ext <<_ACEOF
17059 #line $LINENO "configure"
17062 cat confdefs.h
>>conftest.
$ac_ext
17063 cat >>conftest.
$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17070 static struct statfs ac_aggr;
17071 if (sizeof ac_aggr.f_basetype)
17077 rm -f conftest.
$ac_objext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17079 (eval $ac_compile) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try
='test -s conftest.$ac_objext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_member_struct_statfs_f_basetype
=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.
$ac_ext >&5
17094 ac_cv_member_struct_statfs_f_basetype
=no
17096 rm -f conftest.
$ac_objext conftest.
$ac_ext
17098 rm -f conftest.
$ac_objext conftest.
$ac_ext
17100 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17101 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17102 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17104 cat >>confdefs.h
<<_ACEOF
17105 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17111 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17112 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17113 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 cat >conftest.
$ac_ext <<_ACEOF
17117 #line $LINENO "configure"
17120 cat confdefs.h
>>conftest.
$ac_ext
17121 cat >>conftest.
$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17128 static struct statvfs ac_aggr;
17129 if (ac_aggr.f_basetype)
17135 rm -f conftest.
$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try
='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_member_struct_statvfs_f_basetype
=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.
$ac_ext >&5
17152 cat >conftest.
$ac_ext <<_ACEOF
17153 #line $LINENO "configure"
17156 cat confdefs.h
>>conftest.
$ac_ext
17157 cat >>conftest.
$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17164 static struct statvfs ac_aggr;
17165 if (sizeof ac_aggr.f_basetype)
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_cv_member_struct_statvfs_f_basetype
=yes
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.
$ac_ext >&5
17188 ac_cv_member_struct_statvfs_f_basetype
=no
17190 rm -f conftest.
$ac_objext conftest.
$ac_ext
17192 rm -f conftest.
$ac_objext conftest.
$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17195 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17196 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17198 cat >>confdefs.h
<<_ACEOF
17199 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17205 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17206 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17207 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.
$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17222 static struct statfs ac_aggr;
17223 if (ac_aggr.f_fstypename)
17229 rm -f conftest.
$ac_objext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
17235 { ac_try
='test -s conftest.$ac_objext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 ac_cv_member_struct_statfs_f_fstypename
=yes
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.
$ac_ext >&5
17246 cat >conftest.
$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17250 cat confdefs.h
>>conftest.
$ac_ext
17251 cat >>conftest.
$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17258 static struct statfs ac_aggr;
17259 if (sizeof ac_aggr.f_fstypename)
17265 rm -f conftest.
$ac_objext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17267 (eval $ac_compile) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try
='test -s conftest.$ac_objext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_member_struct_statfs_f_fstypename
=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.
$ac_ext >&5
17282 ac_cv_member_struct_statfs_f_fstypename
=no
17284 rm -f conftest.
$ac_objext conftest.
$ac_ext
17286 rm -f conftest.
$ac_objext conftest.
$ac_ext
17288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17289 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17290 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17292 cat >>confdefs.h
<<_ACEOF
17293 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17299 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17300 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17301 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17302 echo $ECHO_N "(cached) $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. */
17316 static struct statfs ac_aggr;
17317 if (ac_aggr.f_type)
17323 rm -f conftest.
$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try
='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_member_struct_statfs_f_type
=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
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. */
17352 static struct statfs ac_aggr;
17353 if (sizeof ac_aggr.f_type)
17359 rm -f conftest.
$ac_objext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17361 (eval $ac_compile) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try
='test -s conftest.$ac_objext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_member_struct_statfs_f_type
=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.
$ac_ext >&5
17376 ac_cv_member_struct_statfs_f_type
=no
17378 rm -f conftest.
$ac_objext conftest.
$ac_ext
17380 rm -f conftest.
$ac_objext conftest.
$ac_ext
17382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17383 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17384 if test $ac_cv_member_struct_statfs_f_type = yes; then
17386 cat >>confdefs.h
<<_ACEOF
17387 #define HAVE_STRUCT_STATFS_F_TYPE 1
17393 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17394 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17395 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.
$ac_ext <<_ACEOF
17399 #line $LINENO "configure"
17402 cat confdefs.h
>>conftest.
$ac_ext
17403 cat >>conftest.
$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17410 static struct statvfs ac_aggr;
17411 if (ac_aggr.f_type)
17417 rm -f conftest.
$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try
='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_member_struct_statvfs_f_type
=yes
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.
$ac_ext >&5
17434 cat >conftest.
$ac_ext <<_ACEOF
17435 #line $LINENO "configure"
17438 cat confdefs.h
>>conftest.
$ac_ext
17439 cat >>conftest.
$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17446 static struct statvfs ac_aggr;
17447 if (sizeof ac_aggr.f_type)
17453 rm -f conftest.
$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try
='test -s conftest.$ac_objext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_member_struct_statvfs_f_type
=yes
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.
$ac_ext >&5
17470 ac_cv_member_struct_statvfs_f_type
=no
17472 rm -f conftest.
$ac_objext conftest.
$ac_ext
17474 rm -f conftest.
$ac_objext conftest.
$ac_ext
17476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17477 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17478 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17480 cat >>confdefs.h
<<_ACEOF
17481 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17487 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
17488 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
17489 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.
$ac_ext <<_ACEOF
17493 #line $LINENO "configure"
17496 cat confdefs.h
>>conftest.
$ac_ext
17497 cat >>conftest.
$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17504 static struct statfs ac_aggr;
17505 if (ac_aggr.f_fsid.__val)
17511 rm -f conftest.
$ac_objext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17513 (eval $ac_compile) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try
='test -s conftest.$ac_objext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_member_struct_statfs_f_fsid___val
=yes
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.
$ac_ext >&5
17528 cat >conftest.
$ac_ext <<_ACEOF
17529 #line $LINENO "configure"
17532 cat confdefs.h
>>conftest.
$ac_ext
17533 cat >>conftest.
$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17540 static struct statfs ac_aggr;
17541 if (sizeof ac_aggr.f_fsid.__val)
17547 rm -f conftest.
$ac_objext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try
='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_member_struct_statfs_f_fsid___val
=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.
$ac_ext >&5
17564 ac_cv_member_struct_statfs_f_fsid___val
=no
17566 rm -f conftest.
$ac_objext conftest.
$ac_ext
17568 rm -f conftest.
$ac_objext conftest.
$ac_ext
17570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
17571 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
17572 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
17574 cat >>confdefs.h
<<_ACEOF
17575 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
17581 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
17582 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
17583 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.
$ac_ext <<_ACEOF
17587 #line $LINENO "configure"
17590 cat confdefs.h
>>conftest.
$ac_ext
17591 cat >>conftest.
$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17598 static struct statvfs ac_aggr;
17599 if (ac_aggr.f_fsid.__val)
17605 rm -f conftest.
$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try
='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 ac_cv_member_struct_statvfs_f_fsid___val
=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.
$ac_ext >&5
17622 cat >conftest.
$ac_ext <<_ACEOF
17623 #line $LINENO "configure"
17626 cat confdefs.h
>>conftest.
$ac_ext
17627 cat >>conftest.
$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17634 static struct statvfs ac_aggr;
17635 if (sizeof ac_aggr.f_fsid.__val)
17641 rm -f conftest.
$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try
='test -s conftest.$ac_objext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_member_struct_statvfs_f_fsid___val
=yes
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.
$ac_ext >&5
17658 ac_cv_member_struct_statvfs_f_fsid___val
=no
17660 rm -f conftest.
$ac_objext conftest.
$ac_ext
17662 rm -f conftest.
$ac_objext conftest.
$ac_ext
17664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
17665 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
17666 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
17668 cat >>confdefs.h
<<_ACEOF
17669 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
17675 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
17676 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
17677 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 cat >conftest.
$ac_ext <<_ACEOF
17681 #line $LINENO "configure"
17684 cat confdefs.h
>>conftest.
$ac_ext
17685 cat >>conftest.
$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17692 static struct statfs ac_aggr;
17693 if (ac_aggr.f_namemax)
17699 rm -f conftest.
$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try
='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 ac_cv_member_struct_statfs_f_namemax
=yes
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.
$ac_ext >&5
17716 cat >conftest.
$ac_ext <<_ACEOF
17717 #line $LINENO "configure"
17720 cat confdefs.h
>>conftest.
$ac_ext
17721 cat >>conftest.
$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17728 static struct statfs ac_aggr;
17729 if (sizeof ac_aggr.f_namemax)
17735 rm -f conftest.
$ac_objext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try
='test -s conftest.$ac_objext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_member_struct_statfs_f_namemax
=yes
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.
$ac_ext >&5
17752 ac_cv_member_struct_statfs_f_namemax
=no
17754 rm -f conftest.
$ac_objext conftest.
$ac_ext
17756 rm -f conftest.
$ac_objext conftest.
$ac_ext
17758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
17759 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
17760 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
17762 cat >>confdefs.h
<<_ACEOF
17763 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
17769 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
17770 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
17771 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17774 cat >conftest.
$ac_ext <<_ACEOF
17775 #line $LINENO "configure"
17778 cat confdefs.h
>>conftest.
$ac_ext
17779 cat >>conftest.
$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17786 static struct statvfs ac_aggr;
17787 if (ac_aggr.f_namemax)
17793 rm -f conftest.
$ac_objext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try
='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_member_struct_statvfs_f_namemax
=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.
$ac_ext >&5
17810 cat >conftest.
$ac_ext <<_ACEOF
17811 #line $LINENO "configure"
17814 cat confdefs.h
>>conftest.
$ac_ext
17815 cat >>conftest.
$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17822 static struct statvfs ac_aggr;
17823 if (sizeof ac_aggr.f_namemax)
17829 rm -f conftest.
$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try
='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_member_struct_statvfs_f_namemax
=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.
$ac_ext >&5
17846 ac_cv_member_struct_statvfs_f_namemax
=no
17848 rm -f conftest.
$ac_objext conftest.
$ac_ext
17850 rm -f conftest.
$ac_objext conftest.
$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
17853 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
17854 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
17856 cat >>confdefs.h
<<_ACEOF
17857 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
17863 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17864 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17865 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.
$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17872 cat confdefs.h
>>conftest.
$ac_ext
17873 cat >>conftest.
$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17880 static struct statfs ac_aggr;
17881 if (ac_aggr.f_namelen)
17887 rm -f conftest.
$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try
='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_member_struct_statfs_f_namelen
=yes
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.
$ac_ext >&5
17904 cat >conftest.
$ac_ext <<_ACEOF
17905 #line $LINENO "configure"
17908 cat confdefs.h
>>conftest.
$ac_ext
17909 cat >>conftest.
$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17916 static struct statfs ac_aggr;
17917 if (sizeof ac_aggr.f_namelen)
17923 rm -f conftest.
$ac_objext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17925 (eval $ac_compile) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try
='test -s conftest.$ac_objext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_member_struct_statfs_f_namelen
=yes
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.
$ac_ext >&5
17940 ac_cv_member_struct_statfs_f_namelen
=no
17942 rm -f conftest.
$ac_objext conftest.
$ac_ext
17944 rm -f conftest.
$ac_objext conftest.
$ac_ext
17946 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17947 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17948 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17950 cat >>confdefs.h
<<_ACEOF
17951 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17957 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
17958 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
17959 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.
$ac_ext <<_ACEOF
17963 #line $LINENO "configure"
17966 cat confdefs.h
>>conftest.
$ac_ext
17967 cat >>conftest.
$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17974 static struct statvfs ac_aggr;
17975 if (ac_aggr.f_namelen)
17981 rm -f conftest.
$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983 (eval $ac_compile) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try
='test -s conftest.$ac_objext'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; }; then
17993 ac_cv_member_struct_statvfs_f_namelen
=yes
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.
$ac_ext >&5
17998 cat >conftest.
$ac_ext <<_ACEOF
17999 #line $LINENO "configure"
18002 cat confdefs.h
>>conftest.
$ac_ext
18003 cat >>conftest.
$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18010 static struct statvfs ac_aggr;
18011 if (sizeof ac_aggr.f_namelen)
18017 rm -f conftest.
$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019 (eval $ac_compile) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try
='test -s conftest.$ac_objext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_member_struct_statvfs_f_namelen
=yes
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.
$ac_ext >&5
18034 ac_cv_member_struct_statvfs_f_namelen
=no
18036 rm -f conftest.
$ac_objext conftest.
$ac_ext
18038 rm -f conftest.
$ac_objext conftest.
$ac_ext
18040 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18041 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18042 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18044 cat >>confdefs.h
<<_ACEOF
18045 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18052 echo "$as_me:$LINENO: checking for working strnlen" >&5
18053 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18054 if test "${ac_cv_func_strnlen_working+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 if test "$cross_compiling" = yes; then
18058 ac_cv_func_strnlen_working
=no
18060 cat >conftest.
$ac_ext <<_ACEOF
18061 #line $LINENO "configure"
18064 cat confdefs.h
>>conftest.
$ac_ext
18065 cat >>conftest.
$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18073 #define S_LEN (sizeof S - 1)
18075 /* At least one implementation is buggy: that of AIX 4.3 would
18076 give strnlen (S, 1) == 3. */
18079 for (i = 0; i < S_LEN + 1; ++i)
18081 int expected = i <= S_LEN ? i : S_LEN;
18082 if (strnlen (S, i) != expected)
18091 rm -f conftest
$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_func_strnlen_working
=yes
18104 echo "$as_me: program exited with status $ac_status" >&5
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.
$ac_ext >&5
18108 ( exit $ac_status )
18109 ac_cv_func_strnlen_working
=no
18111 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18114 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18115 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18116 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18122 for ac_header
in memory.h
18124 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18126 echo "$as_me:$LINENO: checking for $ac_header" >&5
18127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18134 # Is the header compilable?
18135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18137 cat >conftest.
$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18141 cat confdefs.h
>>conftest.
$ac_ext
18142 cat >>conftest.
$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 $ac_includes_default
18145 #include <$ac_header>
18147 rm -f conftest.
$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try
='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_header_compiler
=yes
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.
$ac_ext >&5
18164 ac_header_compiler
=no
18166 rm -f conftest.
$ac_objext conftest.
$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6
18170 # Is the header present?
18171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18173 cat >conftest.
$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18177 cat confdefs.h
>>conftest.
$ac_ext
18178 cat >>conftest.
$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <$ac_header>
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18185 grep -v '^ *+' conftest.er1
>conftest.err
18187 cat conftest.err
>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } >/dev
/null
; then
18190 if test -s conftest.err
; then
18191 ac_cpp_err
=$ac_c_preproc_warn_flag
18198 if test -z "$ac_cpp_err"; then
18199 ac_header_preproc
=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.
$ac_ext >&5
18204 ac_header_preproc
=no
18206 rm -f conftest.err conftest.
$ac_ext
18207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc in
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18219 ## ------------------------------------ ##
18220 ## Report this to bug-autoconf@gnu.org. ##
18221 ## ------------------------------------ ##
18224 sed "s/^/$as_me: WARNING: /" >&2
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18235 ## ------------------------------------ ##
18236 ## Report this to bug-autoconf@gnu.org. ##
18237 ## ------------------------------------ ##
18240 sed "s/^/$as_me: WARNING: /" >&2
18243 echo "$as_me:$LINENO: checking for $ac_header" >&5
18244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 eval "$as_ac_Header=$ac_header_preproc"
18250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18255 cat >>confdefs.h
<<_ACEOF
18256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18263 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18264 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18265 if test "${ac_cv_have_decl_memchr+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 cat >conftest.
$ac_ext <<_ACEOF
18269 #line $LINENO "configure"
18272 cat confdefs.h
>>conftest.
$ac_ext
18273 cat >>conftest.
$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 $ac_includes_default
18280 char *p = (char *) memchr;
18287 rm -f conftest.
$ac_objext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try
='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_have_decl_memchr
=yes
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.
$ac_ext >&5
18304 ac_cv_have_decl_memchr
=no
18306 rm -f conftest.
$ac_objext conftest.
$ac_ext
18308 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18309 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18310 if test $ac_cv_have_decl_memchr = yes; then
18312 cat >>confdefs.h
<<_ACEOF
18313 #define HAVE_DECL_MEMCHR 1
18318 cat >>confdefs.h
<<_ACEOF
18319 #define HAVE_DECL_MEMCHR 0
18327 # This is necessary because automake-1.6.1 doesn't understand
18328 # that the above use of AC_FUNC_STRNLEN means we may have to use
18330 test $ac_cv_func_strnlen_working = yes \
18331 && LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18340 for ac_header
in fcntl.h sys
/time.h stdint.h unistd.h
18342 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18352 # Is the header compilable?
18353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18355 cat >conftest.
$ac_ext <<_ACEOF
18356 #line $LINENO "configure"
18359 cat confdefs.h
>>conftest.
$ac_ext
18360 cat >>conftest.
$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 $ac_includes_default
18363 #include <$ac_header>
18365 rm -f conftest.
$ac_objext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18367 (eval $ac_compile) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try
='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler
=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.
$ac_ext >&5
18382 ac_header_compiler
=no
18384 rm -f conftest.
$ac_objext conftest.
$ac_ext
18385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386 echo "${ECHO_T}$ac_header_compiler" >&6
18388 # Is the header present?
18389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18391 cat >conftest.
$ac_ext <<_ACEOF
18392 #line $LINENO "configure"
18395 cat confdefs.h
>>conftest.
$ac_ext
18396 cat >>conftest.
$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <$ac_header>
18400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18403 grep -v '^ *+' conftest.er1
>conftest.err
18405 cat conftest.err
>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } >/dev
/null
; then
18408 if test -s conftest.err
; then
18409 ac_cpp_err
=$ac_c_preproc_warn_flag
18416 if test -z "$ac_cpp_err"; then
18417 ac_header_preproc
=yes
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.
$ac_ext >&5
18422 ac_header_preproc
=no
18424 rm -f conftest.err conftest.
$ac_ext
18425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426 echo "${ECHO_T}$ac_header_preproc" >&6
18428 # So? What about this header?
18429 case $ac_header_compiler:$ac_header_preproc in
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18437 ## ------------------------------------ ##
18438 ## Report this to bug-autoconf@gnu.org. ##
18439 ## ------------------------------------ ##
18442 sed "s/^/$as_me: WARNING: /" >&2
18445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18453 ## ------------------------------------ ##
18454 ## Report this to bug-autoconf@gnu.org. ##
18455 ## ------------------------------------ ##
18458 sed "s/^/$as_me: WARNING: /" >&2
18461 echo "$as_me:$LINENO: checking for $ac_header" >&5
18462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 eval "$as_ac_Header=$ac_header_preproc"
18468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18473 cat >>confdefs.h
<<_ACEOF
18474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18483 for ac_func
in __secure_getenv gettimeofday
18485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18486 echo "$as_me:$LINENO: checking for $ac_func" >&5
18487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18488 if eval "test \"\${$as_ac_var+set}\" = set"; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 cat >conftest.
$ac_ext <<_ACEOF
18492 #line $LINENO "configure"
18495 cat confdefs.h
>>conftest.
$ac_ext
18496 cat >>conftest.
$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 /* System header to define __stub macros and hopefully few prototypes,
18499 which can conflict with char $ac_func (); below.
18500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501 <limits.h> exists even on freestanding compilers. */
18503 # include <limits.h>
18505 # include <assert.h>
18507 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18515 /* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18521 char (*f) () = $ac_func;
18530 return f != $ac_func;
18535 rm -f conftest.
$ac_objext conftest
$ac_exeext
18536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18537 (eval $ac_link) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try
='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.
$ac_ext >&5
18552 eval "$as_ac_var=no"
18554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h
<<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18566 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18567 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18568 if test "${ac_cv_have_decl_getenv+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 cat >conftest.
$ac_ext <<_ACEOF
18572 #line $LINENO "configure"
18575 cat confdefs.h
>>conftest.
$ac_ext
18576 cat >>conftest.
$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 $ac_includes_default
18583 char *p = (char *) getenv;
18590 rm -f conftest.
$ac_objext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18592 (eval $ac_compile) 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try
='test -s conftest.$ac_objext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_have_decl_getenv
=yes
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.
$ac_ext >&5
18607 ac_cv_have_decl_getenv
=no
18609 rm -f conftest.
$ac_objext conftest.
$ac_ext
18611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18612 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18613 if test $ac_cv_have_decl_getenv = yes; then
18615 cat >>confdefs.h
<<_ACEOF
18616 #define HAVE_DECL_GETENV 1
18621 cat >>confdefs.h
<<_ACEOF
18622 #define HAVE_DECL_GETENV 0
18631 echo "$as_me:$LINENO: checking for function prototypes" >&5
18632 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18633 if test "$ac_cv_prog_cc_stdc" != no
; then
18634 echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6
18637 cat >>confdefs.h
<<\_ACEOF
18638 #define PROTOTYPES 1
18642 cat >>confdefs.h
<<\_ACEOF
18643 #define __PROTOTYPES 1
18647 echo "$as_me:$LINENO: result: no" >&5
18648 echo "${ECHO_T}no" >&6
18653 for ac_header
in stdlib.h unistd.h
18655 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18657 echo "$as_me:$LINENO: checking for $ac_header" >&5
18658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18665 # Is the header compilable?
18666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18668 cat >conftest.
$ac_ext <<_ACEOF
18669 #line $LINENO "configure"
18672 cat confdefs.h
>>conftest.
$ac_ext
18673 cat >>conftest.
$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 $ac_includes_default
18676 #include <$ac_header>
18678 rm -f conftest.
$ac_objext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680 (eval $ac_compile) 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try
='test -s conftest.$ac_objext'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_header_compiler
=yes
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.
$ac_ext >&5
18695 ac_header_compiler
=no
18697 rm -f conftest.
$ac_objext conftest.
$ac_ext
18698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18699 echo "${ECHO_T}$ac_header_compiler" >&6
18701 # Is the header present?
18702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18704 cat >conftest.
$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18708 cat confdefs.h
>>conftest.
$ac_ext
18709 cat >>conftest.
$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18711 #include <$ac_header>
18713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1
>conftest.err
18718 cat conftest.err
>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } >/dev
/null
; then
18721 if test -s conftest.err
; then
18722 ac_cpp_err
=$ac_c_preproc_warn_flag
18729 if test -z "$ac_cpp_err"; then
18730 ac_header_preproc
=yes
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.
$ac_ext >&5
18735 ac_header_preproc
=no
18737 rm -f conftest.err conftest.
$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18739 echo "${ECHO_T}$ac_header_preproc" >&6
18741 # So? What about this header?
18742 case $ac_header_compiler:$ac_header_preproc in
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18750 ## ------------------------------------ ##
18751 ## Report this to bug-autoconf@gnu.org. ##
18752 ## ------------------------------------ ##
18755 sed "s/^/$as_me: WARNING: /" >&2
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18766 ## ------------------------------------ ##
18767 ## Report this to bug-autoconf@gnu.org. ##
18768 ## ------------------------------------ ##
18771 sed "s/^/$as_me: WARNING: /" >&2
18774 echo "$as_me:$LINENO: checking for $ac_header" >&5
18775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 eval "$as_ac_Header=$ac_header_preproc"
18781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18786 cat >>confdefs.h
<<_ACEOF
18787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18794 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
18795 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
18796 if test "${ac_cv_func_getcwd_null+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 if test "$cross_compiling" = yes; then
18800 ac_cv_func_getcwd_null
=no
18802 cat >conftest.
$ac_ext <<_ACEOF
18803 #line $LINENO "configure"
18806 cat confdefs.h
>>conftest.
$ac_ext
18807 cat >>conftest.
$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 # ifdef HAVE_STDLIB_H
18811 # include <stdlib.h>
18813 # ifdef HAVE_UNISTD_H
18814 # include <unistd.h>
18822 if (chdir ("/") != 0)
18826 char *f = getcwd (NULL, 0);
18827 exit (! (f && f[0] == '/' && !f[1]));
18831 rm -f conftest
$ac_exeext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_func_getcwd_null
=yes
18844 echo "$as_me: program exited with status $ac_status" >&5
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.
$ac_ext >&5
18848 ( exit $ac_status )
18849 ac_cv_func_getcwd_null
=no
18851 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18854 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
18855 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
18856 if test $ac_cv_func_getcwd_null = yes; then
18858 cat >>confdefs.h
<<\_ACEOF
18859 #define HAVE_GETCWD_NULL 1
18869 for ac_header
in limits.h stdlib.h sys
/param.h unistd.h
18871 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18873 echo "$as_me:$LINENO: checking for $ac_header" >&5
18874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18881 # Is the header compilable?
18882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18884 cat >conftest.
$ac_ext <<_ACEOF
18885 #line $LINENO "configure"
18888 cat confdefs.h
>>conftest.
$ac_ext
18889 cat >>conftest.
$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 $ac_includes_default
18892 #include <$ac_header>
18894 rm -f conftest.
$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
18900 { ac_try
='test -s conftest.$ac_objext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_header_compiler
=yes
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.
$ac_ext >&5
18911 ac_header_compiler
=no
18913 rm -f conftest.
$ac_objext conftest.
$ac_ext
18914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18915 echo "${ECHO_T}$ac_header_compiler" >&6
18917 # Is the header present?
18918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18920 cat >conftest.
$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18924 cat confdefs.h
>>conftest.
$ac_ext
18925 cat >>conftest.
$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 #include <$ac_header>
18929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18932 grep -v '^ *+' conftest.er1
>conftest.err
18934 cat conftest.err
>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } >/dev
/null
; then
18937 if test -s conftest.err
; then
18938 ac_cpp_err
=$ac_c_preproc_warn_flag
18945 if test -z "$ac_cpp_err"; then
18946 ac_header_preproc
=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.
$ac_ext >&5
18951 ac_header_preproc
=no
18953 rm -f conftest.err conftest.
$ac_ext
18954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18955 echo "${ECHO_T}$ac_header_preproc" >&6
18957 # So? What about this header?
18958 case $ac_header_compiler:$ac_header_preproc in
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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: WARNING: $ac_header: present but cannot be compiled" >&5
18975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18982 ## ------------------------------------ ##
18983 ## Report this to bug-autoconf@gnu.org. ##
18984 ## ------------------------------------ ##
18987 sed "s/^/$as_me: WARNING: /" >&2
18990 echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 eval "$as_ac_Header=$ac_header_preproc"
18997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19002 cat >>confdefs.h
<<_ACEOF
19003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19011 for ac_func
in getcwd
19013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19014 echo "$as_me:$LINENO: checking for $ac_func" >&5
19015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19016 if eval "test \"\${$as_ac_var+set}\" = set"; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 cat >conftest.
$ac_ext <<_ACEOF
19020 #line $LINENO "configure"
19023 cat confdefs.h
>>conftest.
$ac_ext
19024 cat >>conftest.
$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char $ac_func (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19031 # include <limits.h>
19033 # include <assert.h>
19035 /* Override any gcc2 internal prototype to avoid an error. */
19040 /* We use char because int might match the return type of a gcc2
19041 builtin and then its argument prototype would still apply. */
19043 /* The GNU C library defines this for functions which it implements
19044 to always fail with ENOSYS. Some functions are actually named
19045 something starting with __ and the normal name is an alias. */
19046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19049 char (*f) () = $ac_func;
19058 return f != $ac_func;
19063 rm -f conftest.
$ac_objext conftest
$ac_exeext
19064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19065 (eval $ac_link) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try
='test -s conftest$ac_exeext'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 eval "$as_ac_var=yes"
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.
$ac_ext >&5
19080 eval "$as_ac_var=no"
19082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19086 if test `eval echo '${'$as_ac_var'}'` = yes; then
19087 cat >>confdefs.h
<<_ACEOF
19088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19102 for ac_header
in limits.h stdlib.h sys
/types.h unistd.h
19104 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19106 echo "$as_me:$LINENO: checking for $ac_header" >&5
19107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19114 # Is the header compilable?
19115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19117 cat >conftest.
$ac_ext <<_ACEOF
19118 #line $LINENO "configure"
19121 cat confdefs.h
>>conftest.
$ac_ext
19122 cat >>conftest.
$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 #include <$ac_header>
19127 rm -f conftest.
$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try
='test -s conftest.$ac_objext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_header_compiler
=yes
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.
$ac_ext >&5
19144 ac_header_compiler
=no
19146 rm -f conftest.
$ac_objext conftest.
$ac_ext
19147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19148 echo "${ECHO_T}$ac_header_compiler" >&6
19150 # Is the header present?
19151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19153 cat >conftest.
$ac_ext <<_ACEOF
19154 #line $LINENO "configure"
19157 cat confdefs.h
>>conftest.
$ac_ext
19158 cat >>conftest.
$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #include <$ac_header>
19162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19163 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19165 grep -v '^ *+' conftest.er1
>conftest.err
19167 cat conftest.err
>&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } >/dev
/null
; then
19170 if test -s conftest.err
; then
19171 ac_cpp_err
=$ac_c_preproc_warn_flag
19178 if test -z "$ac_cpp_err"; then
19179 ac_header_preproc
=yes
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.
$ac_ext >&5
19184 ac_header_preproc
=no
19186 rm -f conftest.err conftest.
$ac_ext
19187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19188 echo "${ECHO_T}$ac_header_preproc" >&6
19190 # So? What about this header?
19191 case $ac_header_compiler:$ac_header_preproc in
19193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19199 ## ------------------------------------ ##
19200 ## Report this to bug-autoconf@gnu.org. ##
19201 ## ------------------------------------ ##
19204 sed "s/^/$as_me: WARNING: /" >&2
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19215 ## ------------------------------------ ##
19216 ## Report this to bug-autoconf@gnu.org. ##
19217 ## ------------------------------------ ##
19220 sed "s/^/$as_me: WARNING: /" >&2
19223 echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 eval "$as_ac_Header=$ac_header_preproc"
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19235 cat >>confdefs.h
<<_ACEOF
19236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264 # called by mkstemp
19274 ac_header_dirent
=no
19275 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19276 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19277 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19278 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19282 cat >conftest.
$ac_ext <<_ACEOF
19283 #line $LINENO "configure"
19286 cat confdefs.h
>>conftest.
$ac_ext
19287 cat >>conftest.
$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19289 #include <sys/types.h>
19301 rm -f conftest.
$ac_objext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303 (eval $ac_compile) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try
='test -s conftest.$ac_objext'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; }; then
19313 eval "$as_ac_Header=yes"
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.
$ac_ext >&5
19318 eval "$as_ac_Header=no"
19320 rm -f conftest.
$ac_objext conftest.
$ac_ext
19322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19325 cat >>confdefs.h
<<_ACEOF
19326 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19329 ac_header_dirent
=$ac_hdr; break
19333 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19334 if test $ac_header_dirent = dirent.h
; then
19336 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19337 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19338 if test "${ac_cv_search_opendir+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 ac_func_search_save_LIBS
=$LIBS
19343 ac_cv_search_opendir
=no
19344 cat >conftest.
$ac_ext <<_ACEOF
19345 #line $LINENO "configure"
19348 cat confdefs.h
>>conftest.
$ac_ext
19349 cat >>conftest.
$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19352 /* Override any gcc2 internal prototype to avoid an error. */
19356 /* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19367 rm -f conftest.
$ac_objext conftest
$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try
='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_search_opendir
='none required'
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.
$ac_ext >&5
19385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19386 if test "$ac_cv_search_opendir" = no
; then
19387 for ac_lib
in dir
; do
19388 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19389 cat >conftest.
$ac_ext <<_ACEOF
19390 #line $LINENO "configure"
19393 cat confdefs.h
>>conftest.
$ac_ext
19394 cat >>conftest.
$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19397 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19412 rm -f conftest.
$ac_objext conftest
$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try
='test -s conftest$ac_exeext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_search_opendir
="-l$ac_lib"; break
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.
$ac_ext >&5
19430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19433 LIBS
=$ac_func_search_save_LIBS
19436 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19437 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19439 if test "$ac_cv_search_opendir" = no
; then :
19442 if test "$ac_cv_search_opendir" = 'none required'; then :
19445 LIBS
="$ac_cv_search_opendir $LIBS"
19452 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19454 if test "${ac_cv_search_opendir+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 ac_func_search_save_LIBS
=$LIBS
19459 ac_cv_search_opendir
=no
19460 cat >conftest.
$ac_ext <<_ACEOF
19461 #line $LINENO "configure"
19464 cat confdefs.h
>>conftest.
$ac_ext
19465 cat >>conftest.
$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19468 /* Override any gcc2 internal prototype to avoid an error. */
19472 /* We use char because int might match the return type of a gcc2
19473 builtin and then its argument prototype would still apply. */
19483 rm -f conftest.
$ac_objext conftest
$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485 (eval $ac_link) 2>&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try
='test -s conftest$ac_exeext'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; }; then
19495 ac_cv_search_opendir
='none required'
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.
$ac_ext >&5
19501 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19502 if test "$ac_cv_search_opendir" = no
; then
19503 for ac_lib
in x
; do
19504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19505 cat >conftest.
$ac_ext <<_ACEOF
19506 #line $LINENO "configure"
19509 cat confdefs.h
>>conftest.
$ac_ext
19510 cat >>conftest.
$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19513 /* Override any gcc2 internal prototype to avoid an error. */
19517 /* We use char because int might match the return type of a gcc2
19518 builtin and then its argument prototype would still apply. */
19528 rm -f conftest.
$ac_objext conftest
$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530 (eval $ac_link) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try
='test -s conftest$ac_exeext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_search_opendir
="-l$ac_lib"; break
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.
$ac_ext >&5
19546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19549 LIBS
=$ac_func_search_save_LIBS
19552 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19553 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19555 if test "$ac_cv_search_opendir" = no
; then :
19558 if test "$ac_cv_search_opendir" = 'none required'; then :
19561 LIBS
="$ac_cv_search_opendir $LIBS"
19570 # include <dirent.h>
19571 #else /* not HAVE_DIRENT_H */
19572 # define dirent direct
19573 # if HAVE_SYS_NDIR_H
19574 # include <sys/ndir.h>
19575 # endif /* HAVE_SYS_NDIR_H */
19576 # if HAVE_SYS_DIR_H
19577 # include <sys/dir.h>
19578 # endif /* HAVE_SYS_DIR_H */
19581 # endif /* HAVE_NDIR_H */
19582 #endif /* HAVE_DIRENT_H */
19585 for ac_func
in dirfd
19587 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19588 echo "$as_me:$LINENO: checking for $ac_func" >&5
19589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19590 if eval "test \"\${$as_ac_var+set}\" = set"; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.
$ac_ext <<_ACEOF
19594 #line $LINENO "configure"
19597 cat confdefs.h
>>conftest.
$ac_ext
19598 cat >>conftest.
$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 /* System header to define __stub macros and hopefully few prototypes,
19601 which can conflict with char $ac_func (); below.
19602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19603 <limits.h> exists even on freestanding compilers. */
19605 # include <limits.h>
19607 # include <assert.h>
19609 /* Override any gcc2 internal prototype to avoid an error. */
19614 /* We use char because int might match the return type of a gcc2
19615 builtin and then its argument prototype would still apply. */
19617 /* The GNU C library defines this for functions which it implements
19618 to always fail with ENOSYS. Some functions are actually named
19619 something starting with __ and the normal name is an alias. */
19620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19623 char (*f) () = $ac_func;
19632 return f != $ac_func;
19637 rm -f conftest.
$ac_objext conftest
$ac_exeext
19638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19639 (eval $ac_link) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } &&
19643 { ac_try
='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.
$ac_ext >&5
19654 eval "$as_ac_var=no"
19656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19660 if test `eval echo '${'$as_ac_var'}'` = yes; then
19661 cat >>confdefs.h
<<_ACEOF
19662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19668 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19669 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
19670 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 cat >conftest.
$ac_ext <<_ACEOF
19674 #line $LINENO "configure"
19677 cat confdefs.h
>>conftest.
$ac_ext
19678 cat >>conftest.
$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19686 char *p = (char *) dirfd;
19693 rm -f conftest.
$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695 (eval $ac_compile) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try
='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_have_decl_dirfd
=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.
$ac_ext >&5
19710 ac_cv_have_decl_dirfd
=no
19712 rm -f conftest.
$ac_objext conftest.
$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19715 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
19716 if test $ac_cv_have_decl_dirfd = yes; then
19718 cat >>confdefs.h
<<_ACEOF
19719 #define HAVE_DECL_DIRFD 1
19724 cat >>confdefs.h
<<_ACEOF
19725 #define HAVE_DECL_DIRFD 0
19733 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19734 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
19735 if test "${jm_cv_func_dirfd_macro+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19738 cat >conftest.
$ac_ext <<_ACEOF
19739 #line $LINENO "configure"
19742 cat confdefs.h
>>conftest.
$ac_ext
19743 cat >>conftest.
$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19747 dirent_header_defines_dirfd
19750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19751 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then
19752 jm_cv_func_dirfd_macro
=yes
19754 jm_cv_func_dirfd_macro
=no
19759 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
19760 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
19762 # Use the replacement only if we have no function, macro,
19763 # or declaration with that name.
19764 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
19767 for ac_func
in dirfd
19769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19772 if eval "test \"\${$as_ac_var+set}\" = set"; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 cat >conftest.
$ac_ext <<_ACEOF
19776 #line $LINENO "configure"
19779 cat confdefs.h
>>conftest.
$ac_ext
19780 cat >>conftest.
$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 /* System header to define __stub macros and hopefully few prototypes,
19783 which can conflict with char $ac_func (); below.
19784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785 <limits.h> exists even on freestanding compilers. */
19787 # include <limits.h>
19789 # include <assert.h>
19791 /* Override any gcc2 internal prototype to avoid an error. */
19796 /* We use char because int might match the return type of a gcc2
19797 builtin and then its argument prototype would still apply. */
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19805 char (*f) () = $ac_func;
19814 return f != $ac_func;
19819 rm -f conftest.
$ac_objext conftest
$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try
='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 eval "$as_ac_var=yes"
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.
$ac_ext >&5
19836 eval "$as_ac_var=no"
19838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19842 if test `eval echo '${'$as_ac_var'}'` = yes; then
19843 cat >>confdefs.h
<<_ACEOF
19844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19848 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19853 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19854 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
19855 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 dirfd_save_CFLAGS
=$CFLAGS
19860 for ac_expr
in d_fd dd_fd
; do
19862 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19863 cat >conftest.
$ac_ext <<_ACEOF
19864 #line $LINENO "configure"
19867 cat confdefs.h
>>conftest.
$ac_ext
19868 cat >>conftest.
$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19875 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19880 rm -f conftest.
$ac_objext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19882 (eval $ac_compile) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try
='test -s conftest.$ac_objext'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.
$ac_ext >&5
19899 rm -f conftest.
$ac_objext conftest.
$ac_ext
19900 CFLAGS
=$dirfd_save_CFLAGS
19901 test "$dir_fd_found" = yes && break
19903 test "$dir_fd_found" = yes || ac_expr
=-1
19905 ac_cv_sys_dir_fd_member_name
=$ac_expr
19909 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
19910 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
19911 if test $ac_cv_have_decl_dirfd = -1; then
19913 cat >>confdefs.h
<<_ACEOF
19914 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
19923 for ac_header
in sys
/acl.h
19925 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19927 echo "$as_me:$LINENO: checking for $ac_header" >&5
19928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19935 # Is the header compilable?
19936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19938 cat >conftest.
$ac_ext <<_ACEOF
19939 #line $LINENO "configure"
19942 cat confdefs.h
>>conftest.
$ac_ext
19943 cat >>conftest.
$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 #include <$ac_header>
19948 rm -f conftest.
$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try
='test -s conftest.$ac_objext'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960 ac_header_compiler
=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.
$ac_ext >&5
19965 ac_header_compiler
=no
19967 rm -f conftest.
$ac_objext conftest.
$ac_ext
19968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19969 echo "${ECHO_T}$ac_header_compiler" >&6
19971 # Is the header present?
19972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19974 cat >conftest.
$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19978 cat confdefs.h
>>conftest.
$ac_ext
19979 cat >>conftest.
$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <$ac_header>
19983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1
>conftest.err
19988 cat conftest.err
>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } >/dev
/null
; then
19991 if test -s conftest.err
; then
19992 ac_cpp_err
=$ac_c_preproc_warn_flag
19999 if test -z "$ac_cpp_err"; then
20000 ac_header_preproc
=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.
$ac_ext >&5
20005 ac_header_preproc
=no
20007 rm -f conftest.err conftest.
$ac_ext
20008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20009 echo "${ECHO_T}$ac_header_preproc" >&6
20011 # So? What about this header?
20012 case $ac_header_compiler:$ac_header_preproc in
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20020 ## ------------------------------------ ##
20021 ## Report this to bug-autoconf@gnu.org. ##
20022 ## ------------------------------------ ##
20025 sed "s/^/$as_me: WARNING: /" >&2
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20036 ## ------------------------------------ ##
20037 ## Report this to bug-autoconf@gnu.org. ##
20038 ## ------------------------------------ ##
20041 sed "s/^/$as_me: WARNING: /" >&2
20044 echo "$as_me:$LINENO: checking for $ac_header" >&5
20045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 eval "$as_ac_Header=$ac_header_preproc"
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056 cat >>confdefs.h
<<_ACEOF
20057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20067 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_var+set}\" = set"; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cat >conftest.
$ac_ext <<_ACEOF
20074 #line $LINENO "configure"
20077 cat confdefs.h
>>conftest.
$ac_ext
20078 cat >>conftest.
$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char $ac_func (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20085 # include <limits.h>
20087 # include <assert.h>
20089 /* Override any gcc2 internal prototype to avoid an error. */
20094 /* We use char because int might match the return type of a gcc2
20095 builtin and then its argument prototype would still apply. */
20097 /* The GNU C library defines this for functions which it implements
20098 to always fail with ENOSYS. Some functions are actually named
20099 something starting with __ and the normal name is an alias. */
20100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20103 char (*f) () = $ac_func;
20112 return f != $ac_func;
20117 rm -f conftest.
$ac_objext conftest
$ac_exeext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119 (eval $ac_link) 2>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try
='test -s conftest$ac_exeext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 eval "$as_ac_var=yes"
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.
$ac_ext >&5
20134 eval "$as_ac_var=no"
20136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20140 if test `eval echo '${'$as_ac_var'}'` = yes; then
20141 cat >>confdefs.h
<<_ACEOF
20142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20151 for ac_func
in lchown
20153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20154 echo "$as_me:$LINENO: checking for $ac_func" >&5
20155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20156 if eval "test \"\${$as_ac_var+set}\" = set"; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 cat >conftest.
$ac_ext <<_ACEOF
20160 #line $LINENO "configure"
20163 cat confdefs.h
>>conftest.
$ac_ext
20164 cat >>conftest.
$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 /* System header to define __stub macros and hopefully few prototypes,
20167 which can conflict with char $ac_func (); below.
20168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20169 <limits.h> exists even on freestanding compilers. */
20171 # include <limits.h>
20173 # include <assert.h>
20175 /* Override any gcc2 internal prototype to avoid an error. */
20180 /* We use char because int might match the return type of a gcc2
20181 builtin and then its argument prototype would still apply. */
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20189 char (*f) () = $ac_func;
20198 return f != $ac_func;
20203 rm -f conftest.
$ac_objext conftest
$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205 (eval $ac_link) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
20209 { ac_try
='test -s conftest$ac_exeext'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 eval "$as_ac_var=yes"
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.
$ac_ext >&5
20220 eval "$as_ac_var=no"
20222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20226 if test `eval echo '${'$as_ac_var'}'` = yes; then
20227 cat >>confdefs.h
<<_ACEOF
20228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20232 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20238 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
20239 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
20240 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 # Arrange for deletion of the temporary directory this test creates.
20245 ac_clean_files
="$ac_clean_files confdir2"
20246 mkdir confdir2
; : > confdir
2/file
20247 if test "$cross_compiling" = yes; then
20248 fetish_cv_func_rmdir_errno_not_empty
=ENOTEMPTY
20251 cat >conftest.
$ac_ext <<_ACEOF
20252 #line $LINENO "configure"
20255 cat confdefs.h
>>conftest.
$ac_ext
20256 cat >>conftest.
$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20268 rmdir ("confdir2");
20270 s = fopen ("confdir2/errno", "w");
20271 fprintf (s, "%d\n", val);
20276 rm -f conftest
$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 fetish_cv_func_rmdir_errno_not_empty
=`cat confdir2/errno`
20289 echo "$as_me: program exited with status $ac_status" >&5
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.
$ac_ext >&5
20293 ( exit $ac_status )
20294 fetish_cv_func_rmdir_errno_not_empty
='configure error in rmdir-errno.m4'
20296 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20301 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
20302 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
20305 cat >>confdefs.h
<<_ACEOF
20306 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
20310 test -z "$ac_cv_header_unistd_h" \
20312 for ac_header
in unistd.h
20314 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20316 echo "$as_me:$LINENO: checking for $ac_header" >&5
20317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20324 # Is the header compilable?
20325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20327 cat >conftest.
$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20331 cat confdefs.h
>>conftest.
$ac_ext
20332 cat >>conftest.
$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 $ac_includes_default
20335 #include <$ac_header>
20337 rm -f conftest.
$ac_objext
20338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20339 (eval $ac_compile) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
20343 { ac_try
='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler
=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.
$ac_ext >&5
20354 ac_header_compiler
=no
20356 rm -f conftest.
$ac_objext conftest.
$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.
$ac_ext <<_ACEOF
20364 #line $LINENO "configure"
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <$ac_header>
20372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20375 grep -v '^ *+' conftest.er1
>conftest.err
20377 cat conftest.err
>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } >/dev
/null
; then
20380 if test -s conftest.err
; then
20381 ac_cpp_err
=$ac_c_preproc_warn_flag
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc
=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.
$ac_ext >&5
20394 ac_header_preproc
=no
20396 rm -f conftest.err conftest.
$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc in
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20409 ## ------------------------------------ ##
20410 ## Report this to bug-autoconf@gnu.org. ##
20411 ## ------------------------------------ ##
20414 sed "s/^/$as_me: WARNING: /" >&2
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20425 ## ------------------------------------ ##
20426 ## Report this to bug-autoconf@gnu.org. ##
20427 ## ------------------------------------ ##
20430 sed "s/^/$as_me: WARNING: /" >&2
20433 echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 eval "$as_ac_Header=$ac_header_preproc"
20440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445 cat >>confdefs.h
<<_ACEOF
20446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 echo "$as_me:$LINENO: checking for working chown" >&5
20454 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
20455 if test "${jm_cv_func_working_chown+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 if test "$cross_compiling" = yes; then
20459 jm_cv_func_working_chown
=no
20461 cat >conftest.
$ac_ext <<_ACEOF
20462 #line $LINENO "configure"
20465 cat confdefs.h
>>conftest.
$ac_ext
20466 cat >>conftest.
$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20469 # include <sys/types.h>
20470 # include <sys/stat.h>
20471 # include <fcntl.h>
20472 # ifdef HAVE_UNISTD_H
20473 # include <unistd.h>
20479 char *f = "conftest.chown";
20480 struct stat before, after;
20482 if (creat (f, 0600) < 0)
20484 if (stat (f, &before) < 0)
20486 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20488 if (stat (f, &after) < 0)
20490 exit ((before.st_uid == after.st_uid
20491 && before.st_gid == after.st_gid) ? 0 : 1);
20495 rm -f conftest
$ac_exeext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497 (eval $ac_link) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 jm_cv_func_working_chown
=yes
20508 echo "$as_me: program exited with status $ac_status" >&5
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.
$ac_ext >&5
20512 ( exit $ac_status )
20513 jm_cv_func_working_chown
=no
20515 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20519 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
20520 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
20521 if test $jm_cv_func_working_chown = no
; then
20522 LIBOBJS
="$LIBOBJS chown.$ac_objext"
20524 cat >>confdefs.h
<<\_ACEOF
20525 #define chown rpl_chown
20532 for ac_header
in sys
/time.h unistd.h
20534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20536 echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20544 # Is the header compilable?
20545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20547 cat >conftest.
$ac_ext <<_ACEOF
20548 #line $LINENO "configure"
20551 cat confdefs.h
>>conftest.
$ac_ext
20552 cat >>conftest.
$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 $ac_includes_default
20555 #include <$ac_header>
20557 rm -f conftest.
$ac_objext
20558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20559 (eval $ac_compile) 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try
='test -s conftest.$ac_objext'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20569 ac_header_compiler
=yes
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.
$ac_ext >&5
20574 ac_header_compiler
=no
20576 rm -f conftest.
$ac_objext conftest.
$ac_ext
20577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20578 echo "${ECHO_T}$ac_header_compiler" >&6
20580 # Is the header present?
20581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20583 cat >conftest.
$ac_ext <<_ACEOF
20584 #line $LINENO "configure"
20587 cat confdefs.h
>>conftest.
$ac_ext
20588 cat >>conftest.
$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <$ac_header>
20592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20593 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20595 grep -v '^ *+' conftest.er1
>conftest.err
20597 cat conftest.err
>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } >/dev
/null
; then
20600 if test -s conftest.err
; then
20601 ac_cpp_err
=$ac_c_preproc_warn_flag
20608 if test -z "$ac_cpp_err"; then
20609 ac_header_preproc
=yes
20611 echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.
$ac_ext >&5
20614 ac_header_preproc
=no
20616 rm -f conftest.err conftest.
$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20618 echo "${ECHO_T}$ac_header_preproc" >&6
20620 # So? What about this header?
20621 case $ac_header_compiler:$ac_header_preproc in
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20629 ## ------------------------------------ ##
20630 ## Report this to bug-autoconf@gnu.org. ##
20631 ## ------------------------------------ ##
20634 sed "s/^/$as_me: WARNING: /" >&2
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20645 ## ------------------------------------ ##
20646 ## Report this to bug-autoconf@gnu.org. ##
20647 ## ------------------------------------ ##
20650 sed "s/^/$as_me: WARNING: /" >&2
20653 echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 eval "$as_ac_Header=$ac_header_preproc"
20660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20665 cat >>confdefs.h
<<_ACEOF
20666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20674 for ac_func
in alarm
20676 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20677 echo "$as_me:$LINENO: checking for $ac_func" >&5
20678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_var+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 cat >conftest.
$ac_ext <<_ACEOF
20683 #line $LINENO "configure"
20686 cat confdefs.h
>>conftest.
$ac_ext
20687 cat >>conftest.
$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 /* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char $ac_func (); below.
20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692 <limits.h> exists even on freestanding compilers. */
20694 # include <limits.h>
20696 # include <assert.h>
20698 /* Override any gcc2 internal prototype to avoid an error. */
20703 /* We use char because int might match the return type of a gcc2
20704 builtin and then its argument prototype would still apply. */
20706 /* The GNU C library defines this for functions which it implements
20707 to always fail with ENOSYS. Some functions are actually named
20708 something starting with __ and the normal name is an alias. */
20709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20712 char (*f) () = $ac_func;
20721 return f != $ac_func;
20726 rm -f conftest.
$ac_objext conftest
$ac_exeext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try
='test -s conftest$ac_exeext'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738 eval "$as_ac_var=yes"
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.
$ac_ext >&5
20743 eval "$as_ac_var=no"
20745 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20749 if test `eval echo '${'$as_ac_var'}'` = yes; then
20750 cat >>confdefs.h
<<_ACEOF
20751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20757 echo "$as_me:$LINENO: checking for working mktime" >&5
20758 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20759 if test "${ac_cv_func_working_mktime+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 if test "$cross_compiling" = yes; then
20763 ac_cv_func_working_mktime
=no
20765 cat >conftest.
$ac_ext <<_ACEOF
20766 #line $LINENO "configure"
20769 cat confdefs.h
>>conftest.
$ac_ext
20770 cat >>conftest.
$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 /* Test program from Paul Eggert and Tony Leneis. */
20773 #if TIME_WITH_SYS_TIME
20774 # include <sys/time.h>
20777 # if HAVE_SYS_TIME_H
20778 # include <sys/time.h>
20785 # include <unistd.h>
20789 # define alarm(X) /* empty */
20792 /* Work around redefinition to rpl_putenv by other config tests. */
20795 static time_t time_t_max;
20797 /* Values we'll use to set the TZ environment variable. */
20798 static const char *const tz_strings[] = {
20799 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
20800 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20802 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20804 /* Fail if mktime fails to convert a date in the spring-forward gap.
20805 Based on a problem report from Andreas Jaeger. */
20807 spring_forward_gap ()
20809 /* glibc (up to about 1998-10-07) failed this test. */
20812 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20813 instead of "TZ=America/Vancouver" in order to detect the bug even
20814 on systems that don't support the Olson extension, or don't have the
20815 full zoneinfo tables installed. */
20816 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20825 if (mktime (&tm) == (time_t)-1)
20834 if ((lt = localtime (&now)) && mktime (lt) != now)
20836 now = time_t_max - now;
20837 if ((lt = localtime (&now)) && mktime (lt) != now)
20844 /* Based on code from Ariel Faigon. */
20854 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20865 now = mktime (&tm);
20866 if (now != (time_t) -1)
20868 struct tm *lt = localtime (&now);
20870 && lt->tm_year == tm.tm_year
20871 && lt->tm_mon == tm.tm_mon
20872 && lt->tm_mday == tm.tm_mday
20873 && lt->tm_hour == tm.tm_hour
20874 && lt->tm_min == tm.tm_min
20875 && lt->tm_sec == tm.tm_sec
20876 && lt->tm_yday == tm.tm_yday
20877 && lt->tm_wday == tm.tm_wday
20878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20890 /* This test makes some buggy mktime implementations loop.
20891 Give up after 60 seconds; a mktime slower than that
20892 isn't worth using anyway. */
20895 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20898 delta = time_t_max / 997; /* a suitable prime number */
20899 for (i = 0; i < N_STRINGS; i++)
20902 putenv (tz_strings[i]);
20904 for (t = 0; t <= time_t_max - delta; t += delta)
20906 mktime_test ((time_t) 60 * 60);
20907 mktime_test ((time_t) 60 * 60 * 24);
20909 for (j = 1; 0 < j; j *= 2)
20911 bigtime_test (j - 1);
20914 spring_forward_gap ();
20918 rm -f conftest
$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_cv_func_working_mktime
=yes
20931 echo "$as_me: program exited with status $ac_status" >&5
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.
$ac_ext >&5
20935 ( exit $ac_status )
20936 ac_cv_func_working_mktime
=no
20938 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20941 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20942 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20943 if test $ac_cv_func_working_mktime = no
; then
20944 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
20949 for ac_func
in localtime_r
20951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20952 echo "$as_me:$LINENO: checking for $ac_func" >&5
20953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20954 if eval "test \"\${$as_ac_var+set}\" = set"; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 cat >conftest.
$ac_ext <<_ACEOF
20958 #line $LINENO "configure"
20961 cat confdefs.h
>>conftest.
$ac_ext
20962 cat >>conftest.
$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 /* System header to define __stub macros and hopefully few prototypes,
20965 which can conflict with char $ac_func (); below.
20966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20967 <limits.h> exists even on freestanding compilers. */
20969 # include <limits.h>
20971 # include <assert.h>
20973 /* Override any gcc2 internal prototype to avoid an error. */
20978 /* We use char because int might match the return type of a gcc2
20979 builtin and then its argument prototype would still apply. */
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20987 char (*f) () = $ac_func;
20996 return f != $ac_func;
21001 rm -f conftest.
$ac_objext conftest
$ac_exeext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21003 (eval $ac_link) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try
='test -s conftest$ac_exeext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 eval "$as_ac_var=yes"
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.
$ac_ext >&5
21018 eval "$as_ac_var=no"
21020 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21024 if test `eval echo '${'$as_ac_var'}'` = yes; then
21025 cat >>confdefs.h
<<_ACEOF
21026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21033 if test $ac_cv_func_working_mktime = no
; then
21035 cat >>confdefs.h
<<\_ACEOF
21036 #define mktime rpl_mktime
21041 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21042 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21043 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 rm -f conftest.sym conftest.
file
21047 echo >conftest.
file
21048 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
21049 if test "$cross_compiling" = yes; then
21050 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21052 cat >conftest.
$ac_ext <<_ACEOF
21053 #line $LINENO "configure"
21056 cat confdefs.h
>>conftest.
$ac_ext
21057 cat >>conftest.
$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21064 /* Linux will dereference the symlink and fail.
21065 That is better in the sense that it means we will not
21066 have to compile and use the lstat wrapper. */
21067 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21072 rm -f conftest
$ac_exeext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21074 (eval $ac_link) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
21085 echo "$as_me: program exited with status $ac_status" >&5
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.
$ac_ext >&5
21089 ( exit $ac_status )
21090 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21092 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21095 # If the `ln -s' command failed, then we probably don't even
21096 # have an lstat function.
21097 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21099 rm -f conftest.sym conftest.
file
21102 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21103 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21105 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21107 cat >>confdefs.h
<<_ACEOF
21108 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21112 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
21113 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
21118 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
21119 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
21120 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 if test "$cross_compiling" = yes; then
21124 jm_cv_func_lstat_empty_string_bug
=yes
21126 cat >conftest.
$ac_ext <<_ACEOF
21127 #line $LINENO "configure"
21130 cat confdefs.h
>>conftest.
$ac_ext
21131 cat >>conftest.
$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 # include <sys/types.h>
21135 # include <sys/stat.h>
21141 exit (lstat ("", &sbuf) ? 1 : 0);
21145 rm -f conftest
$ac_exeext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21147 (eval $ac_link) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 jm_cv_func_lstat_empty_string_bug
=yes
21158 echo "$as_me: program exited with status $ac_status" >&5
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.
$ac_ext >&5
21162 ( exit $ac_status )
21163 jm_cv_func_lstat_empty_string_bug
=no
21165 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21169 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
21170 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
21171 if test $jm_cv_func_lstat_empty_string_bug = yes; then
21172 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
21174 cat >>confdefs.h
<<\_ACEOF
21175 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
21182 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21183 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21184 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 if test "$cross_compiling" = yes; then
21188 jm_cv_func_stat_empty_string_bug
=yes
21190 cat >conftest.
$ac_ext <<_ACEOF
21191 #line $LINENO "configure"
21194 cat confdefs.h
>>conftest.
$ac_ext
21195 cat >>conftest.
$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21198 # include <sys/types.h>
21199 # include <sys/stat.h>
21205 exit (stat ("", &sbuf) ? 1 : 0);
21209 rm -f conftest
$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 jm_cv_func_stat_empty_string_bug
=yes
21222 echo "$as_me: program exited with status $ac_status" >&5
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.
$ac_ext >&5
21226 ( exit $ac_status )
21227 jm_cv_func_stat_empty_string_bug
=no
21229 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21233 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
21234 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
21235 if test $jm_cv_func_stat_empty_string_bug = yes; then
21236 LIBOBJS
="$LIBOBJS stat.$ac_objext"
21238 cat >>confdefs.h
<<\_ACEOF
21239 #define HAVE_STAT_EMPTY_STRING_BUG 1
21245 for ac_header
in stdlib.h
21247 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21249 echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21257 # Is the header compilable?
21258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21260 cat >conftest.
$ac_ext <<_ACEOF
21261 #line $LINENO "configure"
21264 cat confdefs.h
>>conftest.
$ac_ext
21265 cat >>conftest.
$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21268 #include <$ac_header>
21270 rm -f conftest.
$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try
='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_header_compiler
=yes
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.
$ac_ext >&5
21287 ac_header_compiler
=no
21289 rm -f conftest.
$ac_objext conftest.
$ac_ext
21290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21291 echo "${ECHO_T}$ac_header_compiler" >&6
21293 # Is the header present?
21294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21296 cat >conftest.
$ac_ext <<_ACEOF
21297 #line $LINENO "configure"
21300 cat confdefs.h
>>conftest.
$ac_ext
21301 cat >>conftest.
$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <$ac_header>
21305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21306 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21308 grep -v '^ *+' conftest.er1
>conftest.err
21310 cat conftest.err
>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } >/dev
/null
; then
21313 if test -s conftest.err
; then
21314 ac_cpp_err
=$ac_c_preproc_warn_flag
21321 if test -z "$ac_cpp_err"; then
21322 ac_header_preproc
=yes
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.
$ac_ext >&5
21327 ac_header_preproc
=no
21329 rm -f conftest.err conftest.
$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21331 echo "${ECHO_T}$ac_header_preproc" >&6
21333 # So? What about this header?
21334 case $ac_header_compiler:$ac_header_preproc in
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21342 ## ------------------------------------ ##
21343 ## Report this to bug-autoconf@gnu.org. ##
21344 ## ------------------------------------ ##
21347 sed "s/^/$as_me: WARNING: /" >&2
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21358 ## ------------------------------------ ##
21359 ## Report this to bug-autoconf@gnu.org. ##
21360 ## ------------------------------------ ##
21363 sed "s/^/$as_me: WARNING: /" >&2
21366 echo "$as_me:$LINENO: checking for $ac_header" >&5
21367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 eval "$as_ac_Header=$ac_header_preproc"
21373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21378 cat >>confdefs.h
<<_ACEOF
21379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21387 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21388 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 if test "$cross_compiling" = yes; then
21392 ac_cv_func_realloc_0_nonnull
=no
21394 cat >conftest.
$ac_ext <<_ACEOF
21395 #line $LINENO "configure"
21398 cat confdefs.h
>>conftest.
$ac_ext
21399 cat >>conftest.
$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 #if STDC_HEADERS || HAVE_STDLIB_H
21402 # include <stdlib.h>
21410 exit (realloc (0, 0) ? 0 : 1);
21415 rm -f conftest
$ac_exeext
21416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21417 (eval $ac_link) 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_cv_func_realloc_0_nonnull
=yes
21428 echo "$as_me: program exited with status $ac_status" >&5
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.
$ac_ext >&5
21432 ( exit $ac_status )
21433 ac_cv_func_realloc_0_nonnull
=no
21435 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21438 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21439 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21440 if test $ac_cv_func_realloc_0_nonnull = yes; then
21442 cat >>confdefs.h
<<\_ACEOF
21443 #define HAVE_REALLOC 1
21447 cat >>confdefs.h
<<\_ACEOF
21448 #define HAVE_REALLOC 0
21451 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
21453 cat >>confdefs.h
<<\_ACEOF
21454 #define realloc rpl_realloc
21462 for ac_header
in stdlib.h
21464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21466 echo "$as_me:$LINENO: checking for $ac_header" >&5
21467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21474 # Is the header compilable?
21475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21477 cat >conftest.
$ac_ext <<_ACEOF
21478 #line $LINENO "configure"
21481 cat confdefs.h
>>conftest.
$ac_ext
21482 cat >>conftest.
$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 $ac_includes_default
21485 #include <$ac_header>
21487 rm -f conftest.
$ac_objext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21489 (eval $ac_compile) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try
='test -s conftest.$ac_objext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_header_compiler
=yes
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.
$ac_ext >&5
21504 ac_header_compiler
=no
21506 rm -f conftest.
$ac_objext conftest.
$ac_ext
21507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21508 echo "${ECHO_T}$ac_header_compiler" >&6
21510 # Is the header present?
21511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21513 cat >conftest.
$ac_ext <<_ACEOF
21514 #line $LINENO "configure"
21517 cat confdefs.h
>>conftest.
$ac_ext
21518 cat >>conftest.
$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 #include <$ac_header>
21522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21525 grep -v '^ *+' conftest.er1
>conftest.err
21527 cat conftest.err
>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } >/dev
/null
; then
21530 if test -s conftest.err
; then
21531 ac_cpp_err
=$ac_c_preproc_warn_flag
21538 if test -z "$ac_cpp_err"; then
21539 ac_header_preproc
=yes
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.
$ac_ext >&5
21544 ac_header_preproc
=no
21546 rm -f conftest.err conftest.
$ac_ext
21547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21548 echo "${ECHO_T}$ac_header_preproc" >&6
21550 # So? What about this header?
21551 case $ac_header_compiler:$ac_header_preproc in
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21559 ## ------------------------------------ ##
21560 ## Report this to bug-autoconf@gnu.org. ##
21561 ## ------------------------------------ ##
21564 sed "s/^/$as_me: WARNING: /" >&2
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21575 ## ------------------------------------ ##
21576 ## Report this to bug-autoconf@gnu.org. ##
21577 ## ------------------------------------ ##
21580 sed "s/^/$as_me: WARNING: /" >&2
21583 echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 eval "$as_ac_Header=$ac_header_preproc"
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21595 cat >>confdefs.h
<<_ACEOF
21596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21603 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21604 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21605 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 if test "$cross_compiling" = yes; then
21609 ac_cv_func_malloc_0_nonnull
=no
21611 cat >conftest.
$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21615 cat confdefs.h
>>conftest.
$ac_ext
21616 cat >>conftest.
$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #if STDC_HEADERS || HAVE_STDLIB_H
21619 # include <stdlib.h>
21627 exit (malloc (0) ? 0 : 1);
21632 rm -f conftest
$ac_exeext
21633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_func_malloc_0_nonnull
=yes
21645 echo "$as_me: program exited with status $ac_status" >&5
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.
$ac_ext >&5
21649 ( exit $ac_status )
21650 ac_cv_func_malloc_0_nonnull
=no
21652 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21655 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21656 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21657 if test $ac_cv_func_malloc_0_nonnull = yes; then
21659 cat >>confdefs.h
<<\_ACEOF
21660 #define HAVE_MALLOC 1
21664 cat >>confdefs.h
<<\_ACEOF
21665 #define HAVE_MALLOC 0
21668 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
21670 cat >>confdefs.h
<<\_ACEOF
21671 #define malloc rpl_malloc
21679 nanosleep_save_libs
=$LIBS
21681 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21682 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21684 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21685 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21686 if test "${ac_cv_search_nanosleep+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 ac_func_search_save_LIBS
=$LIBS
21691 ac_cv_search_nanosleep
=no
21692 cat >conftest.
$ac_ext <<_ACEOF
21693 #line $LINENO "configure"
21696 cat confdefs.h
>>conftest.
$ac_ext
21697 cat >>conftest.
$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21700 /* Override any gcc2 internal prototype to avoid an error. */
21704 /* We use char because int might match the return type of a gcc2
21705 builtin and then its argument prototype would still apply. */
21715 rm -f conftest.
$ac_objext conftest
$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717 (eval $ac_link) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try
='test -s conftest$ac_exeext'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }; then
21727 ac_cv_search_nanosleep
='none required'
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.
$ac_ext >&5
21733 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21734 if test "$ac_cv_search_nanosleep" = no
; then
21735 for ac_lib
in rt posix4
; do
21736 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21737 cat >conftest.
$ac_ext <<_ACEOF
21738 #line $LINENO "configure"
21741 cat confdefs.h
>>conftest.
$ac_ext
21742 cat >>conftest.
$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21745 /* Override any gcc2 internal prototype to avoid an error. */
21749 /* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21760 rm -f conftest.
$ac_objext conftest
$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try
='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_search_nanosleep
="-l$ac_lib"; break
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.
$ac_ext >&5
21778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21781 LIBS
=$ac_func_search_save_LIBS
21784 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21785 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21787 if test "$ac_cv_search_nanosleep" = no
; then :
21790 if test "$ac_cv_search_nanosleep" = 'none required'; then :
21793 LIBS
="$ac_cv_search_nanosleep $LIBS"
21794 LIB_NANOSLEEP
=$ac_cv_search_nanosleep
21800 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21801 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21802 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 if test "$cross_compiling" = yes; then
21808 jm_cv_func_nanosleep_works
=no
21810 cat >conftest.
$ac_ext <<_ACEOF
21811 #line $LINENO "configure"
21814 cat confdefs.h
>>conftest.
$ac_ext
21815 cat >>conftest.
$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21818 # if TIME_WITH_SYS_TIME
21819 # include <sys/time.h>
21822 # if HAVE_SYS_TIME_H
21823 # include <sys/time.h>
21832 struct timespec ts_sleep, ts_remaining;
21833 ts_sleep.tv_sec = 0;
21834 ts_sleep.tv_nsec = 1;
21835 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21839 rm -f conftest
$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841 (eval $ac_link) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 jm_cv_func_nanosleep_works
=yes
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.
$ac_ext >&5
21856 ( exit $ac_status )
21857 jm_cv_func_nanosleep_works
=no
21859 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21863 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21864 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21865 if test $jm_cv_func_nanosleep_works = no
; then
21866 LIBOBJS
="$LIBOBJS nanosleep.$ac_objext"
21868 cat >>confdefs.h
<<\_ACEOF
21869 #define nanosleep rpl_nanosleep
21874 LIBS
=$nanosleep_save_libs
21876 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
21877 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
21878 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 cat >conftest.
$ac_ext <<_ACEOF
21882 #line $LINENO "configure"
21885 cat confdefs.h
>>conftest.
$ac_ext
21886 cat >>conftest.
$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 $ac_includes_default
21892 #ifndef clearerr_unlocked
21893 char *p = (char *) clearerr_unlocked;
21900 rm -f conftest.
$ac_objext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21902 (eval $ac_compile) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try
='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 ac_cv_have_decl_clearerr_unlocked
=yes
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.
$ac_ext >&5
21917 ac_cv_have_decl_clearerr_unlocked
=no
21919 rm -f conftest.
$ac_objext conftest.
$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
21922 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
21923 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
21925 cat >>confdefs.h
<<_ACEOF
21926 #define HAVE_DECL_CLEARERR_UNLOCKED 1
21931 cat >>confdefs.h
<<_ACEOF
21932 #define HAVE_DECL_CLEARERR_UNLOCKED 0
21937 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21938 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
21939 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 cat >conftest.
$ac_ext <<_ACEOF
21943 #line $LINENO "configure"
21946 cat confdefs.h
>>conftest.
$ac_ext
21947 cat >>conftest.
$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 $ac_includes_default
21953 #ifndef feof_unlocked
21954 char *p = (char *) feof_unlocked;
21961 rm -f conftest.
$ac_objext
21962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21963 (eval $ac_compile) 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
21967 { ac_try
='test -s conftest.$ac_objext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_have_decl_feof_unlocked
=yes
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.
$ac_ext >&5
21978 ac_cv_have_decl_feof_unlocked
=no
21980 rm -f conftest.
$ac_objext conftest.
$ac_ext
21982 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21983 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
21984 if test $ac_cv_have_decl_feof_unlocked = yes; then
21986 cat >>confdefs.h
<<_ACEOF
21987 #define HAVE_DECL_FEOF_UNLOCKED 1
21992 cat >>confdefs.h
<<_ACEOF
21993 #define HAVE_DECL_FEOF_UNLOCKED 0
21998 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
21999 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22000 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 cat >conftest.
$ac_ext <<_ACEOF
22004 #line $LINENO "configure"
22007 cat confdefs.h
>>conftest.
$ac_ext
22008 cat >>conftest.
$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22014 #ifndef ferror_unlocked
22015 char *p = (char *) ferror_unlocked;
22022 rm -f conftest.
$ac_objext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22024 (eval $ac_compile) 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } &&
22028 { ac_try
='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 ac_cv_have_decl_ferror_unlocked
=yes
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.
$ac_ext >&5
22039 ac_cv_have_decl_ferror_unlocked
=no
22041 rm -f conftest.
$ac_objext conftest.
$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22044 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22045 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22047 cat >>confdefs.h
<<_ACEOF
22048 #define HAVE_DECL_FERROR_UNLOCKED 1
22053 cat >>confdefs.h
<<_ACEOF
22054 #define HAVE_DECL_FERROR_UNLOCKED 0
22059 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22060 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22061 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 cat >conftest.
$ac_ext <<_ACEOF
22065 #line $LINENO "configure"
22068 cat confdefs.h
>>conftest.
$ac_ext
22069 cat >>conftest.
$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 $ac_includes_default
22075 #ifndef fflush_unlocked
22076 char *p = (char *) fflush_unlocked;
22083 rm -f conftest.
$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085 (eval $ac_compile) 2>&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } &&
22089 { ac_try
='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 ac_cv_have_decl_fflush_unlocked
=yes
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.
$ac_ext >&5
22100 ac_cv_have_decl_fflush_unlocked
=no
22102 rm -f conftest.
$ac_objext conftest.
$ac_ext
22104 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
22105 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
22106 if test $ac_cv_have_decl_fflush_unlocked = yes; then
22108 cat >>confdefs.h
<<_ACEOF
22109 #define HAVE_DECL_FFLUSH_UNLOCKED 1
22114 cat >>confdefs.h
<<_ACEOF
22115 #define HAVE_DECL_FFLUSH_UNLOCKED 0
22120 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22121 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
22122 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 cat >conftest.
$ac_ext <<_ACEOF
22126 #line $LINENO "configure"
22129 cat confdefs.h
>>conftest.
$ac_ext
22130 cat >>conftest.
$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22136 #ifndef fgets_unlocked
22137 char *p = (char *) fgets_unlocked;
22144 rm -f conftest.
$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try
='test -s conftest.$ac_objext'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 ac_cv_have_decl_fgets_unlocked
=yes
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.
$ac_ext >&5
22161 ac_cv_have_decl_fgets_unlocked
=no
22163 rm -f conftest.
$ac_objext conftest.
$ac_ext
22165 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22166 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
22167 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22169 cat >>confdefs.h
<<_ACEOF
22170 #define HAVE_DECL_FGETS_UNLOCKED 1
22175 cat >>confdefs.h
<<_ACEOF
22176 #define HAVE_DECL_FGETS_UNLOCKED 0
22181 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
22182 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
22183 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 cat >conftest.
$ac_ext <<_ACEOF
22187 #line $LINENO "configure"
22190 cat confdefs.h
>>conftest.
$ac_ext
22191 cat >>conftest.
$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 $ac_includes_default
22197 #ifndef fputc_unlocked
22198 char *p = (char *) fputc_unlocked;
22205 rm -f conftest.
$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try
='test -s conftest.$ac_objext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 ac_cv_have_decl_fputc_unlocked
=yes
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.
$ac_ext >&5
22222 ac_cv_have_decl_fputc_unlocked
=no
22224 rm -f conftest.
$ac_objext conftest.
$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
22227 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
22228 if test $ac_cv_have_decl_fputc_unlocked = yes; then
22230 cat >>confdefs.h
<<_ACEOF
22231 #define HAVE_DECL_FPUTC_UNLOCKED 1
22236 cat >>confdefs.h
<<_ACEOF
22237 #define HAVE_DECL_FPUTC_UNLOCKED 0
22242 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
22243 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
22244 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 cat >conftest.
$ac_ext <<_ACEOF
22248 #line $LINENO "configure"
22251 cat confdefs.h
>>conftest.
$ac_ext
22252 cat >>conftest.
$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 $ac_includes_default
22258 #ifndef fputs_unlocked
22259 char *p = (char *) fputs_unlocked;
22266 rm -f conftest.
$ac_objext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268 (eval $ac_compile) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } &&
22272 { ac_try
='test -s conftest.$ac_objext'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 ac_cv_have_decl_fputs_unlocked
=yes
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.
$ac_ext >&5
22283 ac_cv_have_decl_fputs_unlocked
=no
22285 rm -f conftest.
$ac_objext conftest.
$ac_ext
22287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
22288 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
22289 if test $ac_cv_have_decl_fputs_unlocked = yes; then
22291 cat >>confdefs.h
<<_ACEOF
22292 #define HAVE_DECL_FPUTS_UNLOCKED 1
22297 cat >>confdefs.h
<<_ACEOF
22298 #define HAVE_DECL_FPUTS_UNLOCKED 0
22303 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
22304 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
22305 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
22306 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 cat >conftest.
$ac_ext <<_ACEOF
22309 #line $LINENO "configure"
22312 cat confdefs.h
>>conftest.
$ac_ext
22313 cat >>conftest.
$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 $ac_includes_default
22319 #ifndef fread_unlocked
22320 char *p = (char *) fread_unlocked;
22327 rm -f conftest.
$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329 (eval $ac_compile) 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try
='test -s conftest.$ac_objext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_cv_have_decl_fread_unlocked
=yes
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.
$ac_ext >&5
22344 ac_cv_have_decl_fread_unlocked
=no
22346 rm -f conftest.
$ac_objext conftest.
$ac_ext
22348 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
22350 if test $ac_cv_have_decl_fread_unlocked = yes; then
22352 cat >>confdefs.h
<<_ACEOF
22353 #define HAVE_DECL_FREAD_UNLOCKED 1
22358 cat >>confdefs.h
<<_ACEOF
22359 #define HAVE_DECL_FREAD_UNLOCKED 0
22364 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
22365 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
22366 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22369 cat >conftest.
$ac_ext <<_ACEOF
22370 #line $LINENO "configure"
22373 cat confdefs.h
>>conftest.
$ac_ext
22374 cat >>conftest.
$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 $ac_includes_default
22380 #ifndef fwrite_unlocked
22381 char *p = (char *) fwrite_unlocked;
22388 rm -f conftest.
$ac_objext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22390 (eval $ac_compile) 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try
='test -s conftest.$ac_objext'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ac_cv_have_decl_fwrite_unlocked
=yes
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.
$ac_ext >&5
22405 ac_cv_have_decl_fwrite_unlocked
=no
22407 rm -f conftest.
$ac_objext conftest.
$ac_ext
22409 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
22410 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
22411 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
22413 cat >>confdefs.h
<<_ACEOF
22414 #define HAVE_DECL_FWRITE_UNLOCKED 1
22419 cat >>confdefs.h
<<_ACEOF
22420 #define HAVE_DECL_FWRITE_UNLOCKED 0
22425 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22426 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
22427 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 cat >conftest.
$ac_ext <<_ACEOF
22431 #line $LINENO "configure"
22434 cat confdefs.h
>>conftest.
$ac_ext
22435 cat >>conftest.
$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22441 #ifndef getc_unlocked
22442 char *p = (char *) getc_unlocked;
22449 rm -f conftest.
$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451 (eval $ac_compile) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try
='test -s conftest.$ac_objext'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 ac_cv_have_decl_getc_unlocked
=yes
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.
$ac_ext >&5
22466 ac_cv_have_decl_getc_unlocked
=no
22468 rm -f conftest.
$ac_objext conftest.
$ac_ext
22470 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22471 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
22472 if test $ac_cv_have_decl_getc_unlocked = yes; then
22474 cat >>confdefs.h
<<_ACEOF
22475 #define HAVE_DECL_GETC_UNLOCKED 1
22480 cat >>confdefs.h
<<_ACEOF
22481 #define HAVE_DECL_GETC_UNLOCKED 0
22486 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
22487 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
22488 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22491 cat >conftest.
$ac_ext <<_ACEOF
22492 #line $LINENO "configure"
22495 cat confdefs.h
>>conftest.
$ac_ext
22496 cat >>conftest.
$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $ac_includes_default
22502 #ifndef getchar_unlocked
22503 char *p = (char *) getchar_unlocked;
22510 rm -f conftest.
$ac_objext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22512 (eval $ac_compile) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try
='test -s conftest.$ac_objext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_cv_have_decl_getchar_unlocked
=yes
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.
$ac_ext >&5
22527 ac_cv_have_decl_getchar_unlocked
=no
22529 rm -f conftest.
$ac_objext conftest.
$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
22532 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
22533 if test $ac_cv_have_decl_getchar_unlocked = yes; then
22535 cat >>confdefs.h
<<_ACEOF
22536 #define HAVE_DECL_GETCHAR_UNLOCKED 1
22541 cat >>confdefs.h
<<_ACEOF
22542 #define HAVE_DECL_GETCHAR_UNLOCKED 0
22547 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
22548 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
22549 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 cat >conftest.
$ac_ext <<_ACEOF
22553 #line $LINENO "configure"
22556 cat confdefs.h
>>conftest.
$ac_ext
22557 cat >>conftest.
$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 $ac_includes_default
22563 #ifndef putc_unlocked
22564 char *p = (char *) putc_unlocked;
22571 rm -f conftest.
$ac_objext
22572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22573 (eval $ac_compile) 2>&5
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); } &&
22577 { ac_try
='test -s conftest.$ac_objext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_have_decl_putc_unlocked
=yes
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.
$ac_ext >&5
22588 ac_cv_have_decl_putc_unlocked
=no
22590 rm -f conftest.
$ac_objext conftest.
$ac_ext
22592 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
22593 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
22594 if test $ac_cv_have_decl_putc_unlocked = yes; then
22596 cat >>confdefs.h
<<_ACEOF
22597 #define HAVE_DECL_PUTC_UNLOCKED 1
22602 cat >>confdefs.h
<<_ACEOF
22603 #define HAVE_DECL_PUTC_UNLOCKED 0
22608 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
22609 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
22610 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 cat >conftest.
$ac_ext <<_ACEOF
22614 #line $LINENO "configure"
22617 cat confdefs.h
>>conftest.
$ac_ext
22618 cat >>conftest.
$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 $ac_includes_default
22624 #ifndef putchar_unlocked
22625 char *p = (char *) putchar_unlocked;
22632 rm -f conftest.
$ac_objext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22634 (eval $ac_compile) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try
='test -s conftest.$ac_objext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_have_decl_putchar_unlocked
=yes
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.
$ac_ext >&5
22649 ac_cv_have_decl_putchar_unlocked
=no
22651 rm -f conftest.
$ac_objext conftest.
$ac_ext
22653 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
22654 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
22655 if test $ac_cv_have_decl_putchar_unlocked = yes; then
22657 cat >>confdefs.h
<<_ACEOF
22658 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
22663 cat >>confdefs.h
<<_ACEOF
22664 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
22672 echo "$as_me:$LINENO: checking for group_member" >&5
22673 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
22674 if test "${ac_cv_func_group_member+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 cat >conftest.
$ac_ext <<_ACEOF
22678 #line $LINENO "configure"
22681 cat confdefs.h
>>conftest.
$ac_ext
22682 cat >>conftest.
$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char group_member (); below.
22686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687 <limits.h> exists even on freestanding compilers. */
22689 # include <limits.h>
22691 # include <assert.h>
22693 /* Override any gcc2 internal prototype to avoid an error. */
22698 /* We use char because int might match the return type of a gcc2
22699 builtin and then its argument prototype would still apply. */
22700 char group_member ();
22701 /* The GNU C library defines this for functions which it implements
22702 to always fail with ENOSYS. Some functions are actually named
22703 something starting with __ and the normal name is an alias. */
22704 #if defined (__stub_group_member) || defined (__stub___group_member)
22707 char (*f) () = group_member;
22716 return f != group_member;
22721 rm -f conftest.
$ac_objext conftest
$ac_exeext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
22727 { ac_try
='test -s conftest$ac_exeext'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 ac_cv_func_group_member
=yes
22735 echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.
$ac_ext >&5
22738 ac_cv_func_group_member
=no
22740 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22742 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
22743 echo "${ECHO_T}$ac_cv_func_group_member" >&6
22744 if test $ac_cv_func_group_member = yes; then
22747 LIBOBJS
="$LIBOBJS group-member.$ac_objext"
22752 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
22753 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
22754 if test "${jm_cv_func_svid_putenv+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 if test "$cross_compiling" = yes; then
22758 jm_cv_func_svid_putenv
=no
22760 cat >conftest.
$ac_ext <<_ACEOF
22761 #line $LINENO "configure"
22764 cat confdefs.h
>>conftest.
$ac_ext
22765 cat >>conftest.
$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22771 /* Put it in env. */
22772 if (putenv ("CONFTEST_putenv=val"))
22775 /* Try to remove it. */
22776 if (putenv ("CONFTEST_putenv"))
22779 /* Make sure it was deleted. */
22780 if (getenv ("CONFTEST_putenv") != 0)
22787 rm -f conftest
$ac_exeext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22789 (eval $ac_link) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 jm_cv_func_svid_putenv
=yes
22800 echo "$as_me: program exited with status $ac_status" >&5
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.
$ac_ext >&5
22804 ( exit $ac_status )
22805 jm_cv_func_svid_putenv
=no
22807 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22811 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
22812 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
22813 if test $jm_cv_func_svid_putenv = no
; then
22814 LIBOBJS
="$LIBOBJS putenv.$ac_objext"
22816 cat >>confdefs.h
<<\_ACEOF
22817 #define putenv rpl_putenv
22823 echo "$as_me:$LINENO: checking for AFS" >&5
22824 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
22825 if test -d /afs
; then
22827 cat >>confdefs.h
<<\_ACEOF
22835 echo "$as_me:$LINENO: result: $ac_result" >&5
22836 echo "${ECHO_T}$ac_result" >&6
22840 echo "$as_me:$LINENO: checking for intmax_t" >&5
22841 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22842 if test "${ac_cv_type_intmax_t+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 cat >conftest.
$ac_ext <<_ACEOF
22846 #line $LINENO "configure"
22849 cat confdefs.h
>>conftest.
$ac_ext
22850 cat >>conftest.
$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 $ac_includes_default
22856 if ((intmax_t *) 0)
22858 if (sizeof (intmax_t))
22864 rm -f conftest.
$ac_objext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22866 (eval $ac_compile) 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
22870 { ac_try
='test -s conftest.$ac_objext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 ac_cv_type_intmax_t
=yes
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.
$ac_ext >&5
22881 ac_cv_type_intmax_t
=no
22883 rm -f conftest.
$ac_objext conftest.
$ac_ext
22885 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22886 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22887 if test $ac_cv_type_intmax_t = yes; then
22890 test $ac_cv_type_long_long = yes \
22891 && ac_type
='long long' \
22894 cat >>confdefs.h
<<_ACEOF
22895 #define intmax_t $ac_type
22906 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
22907 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
22908 if test "${ac_cv_have_decl_strtol+set}" = set; then
22909 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 cat >conftest.
$ac_ext <<_ACEOF
22912 #line $LINENO "configure"
22915 cat confdefs.h
>>conftest.
$ac_ext
22916 cat >>conftest.
$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 $ac_includes_default
22923 char *p = (char *) strtol;
22930 rm -f conftest.
$ac_objext
22931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22932 (eval $ac_compile) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try
='test -s conftest.$ac_objext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 ac_cv_have_decl_strtol
=yes
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.
$ac_ext >&5
22947 ac_cv_have_decl_strtol
=no
22949 rm -f conftest.
$ac_objext conftest.
$ac_ext
22951 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
22952 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
22953 if test $ac_cv_have_decl_strtol = yes; then
22955 cat >>confdefs.h
<<_ACEOF
22956 #define HAVE_DECL_STRTOL 1
22961 cat >>confdefs.h
<<_ACEOF
22962 #define HAVE_DECL_STRTOL 0
22967 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
22968 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
22969 if test "${ac_cv_have_decl_strtoul+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 cat >conftest.
$ac_ext <<_ACEOF
22973 #line $LINENO "configure"
22976 cat confdefs.h
>>conftest.
$ac_ext
22977 cat >>conftest.
$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 $ac_includes_default
22984 char *p = (char *) strtoul;
22991 rm -f conftest.
$ac_objext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22993 (eval $ac_compile) 2>&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try
='test -s conftest.$ac_objext'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_have_decl_strtoul
=yes
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.
$ac_ext >&5
23008 ac_cv_have_decl_strtoul
=no
23010 rm -f conftest.
$ac_objext conftest.
$ac_ext
23012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23013 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23014 if test $ac_cv_have_decl_strtoul = yes; then
23016 cat >>confdefs.h
<<_ACEOF
23017 #define HAVE_DECL_STRTOUL 1
23022 cat >>confdefs.h
<<_ACEOF
23023 #define HAVE_DECL_STRTOUL 0
23028 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23029 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23030 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 cat >conftest.
$ac_ext <<_ACEOF
23034 #line $LINENO "configure"
23037 cat confdefs.h
>>conftest.
$ac_ext
23038 cat >>conftest.
$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 $ac_includes_default
23045 char *p = (char *) strtoull;
23052 rm -f conftest.
$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054 (eval $ac_compile) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); } &&
23058 { ac_try
='test -s conftest.$ac_objext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_have_decl_strtoull
=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.
$ac_ext >&5
23069 ac_cv_have_decl_strtoull
=no
23071 rm -f conftest.
$ac_objext conftest.
$ac_ext
23073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23074 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23075 if test $ac_cv_have_decl_strtoull = yes; then
23077 cat >>confdefs.h
<<_ACEOF
23078 #define HAVE_DECL_STRTOULL 1
23083 cat >>confdefs.h
<<_ACEOF
23084 #define HAVE_DECL_STRTOULL 0
23089 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23090 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23091 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 cat >conftest.
$ac_ext <<_ACEOF
23095 #line $LINENO "configure"
23098 cat confdefs.h
>>conftest.
$ac_ext
23099 cat >>conftest.
$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23106 char *p = (char *) strtoimax;
23113 rm -f conftest.
$ac_objext
23114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23115 (eval $ac_compile) 2>&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
23119 { ac_try
='test -s conftest.$ac_objext'
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; }; then
23125 ac_cv_have_decl_strtoimax
=yes
23127 echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.
$ac_ext >&5
23130 ac_cv_have_decl_strtoimax
=no
23132 rm -f conftest.
$ac_objext conftest.
$ac_ext
23134 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23135 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23136 if test $ac_cv_have_decl_strtoimax = yes; then
23138 cat >>confdefs.h
<<_ACEOF
23139 #define HAVE_DECL_STRTOIMAX 1
23144 cat >>confdefs.h
<<_ACEOF
23145 #define HAVE_DECL_STRTOIMAX 0
23150 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23151 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23152 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 cat >conftest.
$ac_ext <<_ACEOF
23156 #line $LINENO "configure"
23159 cat confdefs.h
>>conftest.
$ac_ext
23160 cat >>conftest.
$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 $ac_includes_default
23167 char *p = (char *) strtoumax;
23174 rm -f conftest.
$ac_objext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176 (eval $ac_compile) 2>&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try
='test -s conftest.$ac_objext'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; }; then
23186 ac_cv_have_decl_strtoumax
=yes
23188 echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.
$ac_ext >&5
23191 ac_cv_have_decl_strtoumax
=no
23193 rm -f conftest.
$ac_objext conftest.
$ac_ext
23195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23196 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23197 if test $ac_cv_have_decl_strtoumax = yes; then
23199 cat >>confdefs.h
<<_ACEOF
23200 #define HAVE_DECL_STRTOUMAX 1
23205 cat >>confdefs.h
<<_ACEOF
23206 #define HAVE_DECL_STRTOUMAX 0
23216 for ac_header
in limits.h stdlib.h inttypes.h
23218 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23220 echo "$as_me:$LINENO: checking for $ac_header" >&5
23221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23223 echo $ECHO_N "(cached) $ECHO_C" >&6
23225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23228 # Is the header compilable?
23229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23231 cat >conftest.
$ac_ext <<_ACEOF
23232 #line $LINENO "configure"
23235 cat confdefs.h
>>conftest.
$ac_ext
23236 cat >>conftest.
$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 $ac_includes_default
23239 #include <$ac_header>
23241 rm -f conftest.
$ac_objext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23243 (eval $ac_compile) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try
='test -s conftest.$ac_objext'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 ac_header_compiler
=yes
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.
$ac_ext >&5
23258 ac_header_compiler
=no
23260 rm -f conftest.
$ac_objext conftest.
$ac_ext
23261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23262 echo "${ECHO_T}$ac_header_compiler" >&6
23264 # Is the header present?
23265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23267 cat >conftest.
$ac_ext <<_ACEOF
23268 #line $LINENO "configure"
23271 cat confdefs.h
>>conftest.
$ac_ext
23272 cat >>conftest.
$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <$ac_header>
23276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
23279 grep -v '^ *+' conftest.er1
>conftest.err
23281 cat conftest.err
>&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } >/dev
/null
; then
23284 if test -s conftest.err
; then
23285 ac_cpp_err
=$ac_c_preproc_warn_flag
23292 if test -z "$ac_cpp_err"; then
23293 ac_header_preproc
=yes
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.
$ac_ext >&5
23298 ac_header_preproc
=no
23300 rm -f conftest.err conftest.
$ac_ext
23301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23302 echo "${ECHO_T}$ac_header_preproc" >&6
23304 # So? What about this header?
23305 case $ac_header_compiler:$ac_header_preproc in
23307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23313 ## ------------------------------------ ##
23314 ## Report this to bug-autoconf@gnu.org. ##
23315 ## ------------------------------------ ##
23318 sed "s/^/$as_me: WARNING: /" >&2
23321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23329 ## ------------------------------------ ##
23330 ## Report this to bug-autoconf@gnu.org. ##
23331 ## ------------------------------------ ##
23334 sed "s/^/$as_me: WARNING: /" >&2
23337 echo "$as_me:$LINENO: checking for $ac_header" >&5
23338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 eval "$as_ac_Header=$ac_header_preproc"
23344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23349 cat >>confdefs.h
<<_ACEOF
23350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23358 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
23359 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
23360 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 cat >conftest.
$ac_ext <<_ACEOF
23364 #line $LINENO "configure"
23367 cat confdefs.h
>>conftest.
$ac_ext
23368 cat >>conftest.
$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 #include <inttypes.h>
23372 inttypes_h_defines_strtoumax
23375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23376 $EGREP "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
23377 jm_cv_func_strtoumax_macro
=yes
23379 jm_cv_func_strtoumax_macro
=no
23384 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
23385 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
23387 if test "$jm_cv_func_strtoumax_macro" != yes; then
23389 for ac_func
in strtoumax
23391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23392 echo "$as_me:$LINENO: checking for $ac_func" >&5
23393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23394 if eval "test \"\${$as_ac_var+set}\" = set"; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 cat >conftest.
$ac_ext <<_ACEOF
23398 #line $LINENO "configure"
23401 cat confdefs.h
>>conftest.
$ac_ext
23402 cat >>conftest.
$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 /* System header to define __stub macros and hopefully few prototypes,
23405 which can conflict with char $ac_func (); below.
23406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23407 <limits.h> exists even on freestanding compilers. */
23409 # include <limits.h>
23411 # include <assert.h>
23413 /* Override any gcc2 internal prototype to avoid an error. */
23418 /* We use char because int might match the return type of a gcc2
23419 builtin and then its argument prototype would still apply. */
23421 /* The GNU C library defines this for functions which it implements
23422 to always fail with ENOSYS. Some functions are actually named
23423 something starting with __ and the normal name is an alias. */
23424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23427 char (*f) () = $ac_func;
23436 return f != $ac_func;
23441 rm -f conftest.
$ac_objext conftest
$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443 (eval $ac_link) 2>&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try
='test -s conftest$ac_exeext'
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; }; then
23453 eval "$as_ac_var=yes"
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.
$ac_ext >&5
23458 eval "$as_ac_var=no"
23460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23464 if test `eval echo '${'$as_ac_var'}'` = yes; then
23465 cat >>confdefs.h
<<_ACEOF
23466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23470 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23477 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
23480 for ac_func
in strtoul
23482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23483 echo "$as_me:$LINENO: checking for $ac_func" >&5
23484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23485 if eval "test \"\${$as_ac_var+set}\" = set"; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 cat >conftest.
$ac_ext <<_ACEOF
23489 #line $LINENO "configure"
23492 cat confdefs.h
>>conftest.
$ac_ext
23493 cat >>conftest.
$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 /* System header to define __stub macros and hopefully few prototypes,
23496 which can conflict with char $ac_func (); below.
23497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23498 <limits.h> exists even on freestanding compilers. */
23500 # include <limits.h>
23502 # include <assert.h>
23504 /* Override any gcc2 internal prototype to avoid an error. */
23509 /* We use char because int might match the return type of a gcc2
23510 builtin and then its argument prototype would still apply. */
23512 /* The GNU C library defines this for functions which it implements
23513 to always fail with ENOSYS. Some functions are actually named
23514 something starting with __ and the normal name is an alias. */
23515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23518 char (*f) () = $ac_func;
23527 return f != $ac_func;
23532 rm -f conftest.
$ac_objext conftest
$ac_exeext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23534 (eval $ac_link) 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
23538 { ac_try
='test -s conftest$ac_exeext'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 eval "$as_ac_var=yes"
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.
$ac_ext >&5
23549 eval "$as_ac_var=no"
23551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23555 if test `eval echo '${'$as_ac_var'}'` = yes; then
23556 cat >>confdefs.h
<<_ACEOF
23557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23561 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23567 if test "$ac_cv_type_unsigned_long_long" = yes; then
23569 for ac_func
in strtoull
23571 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23572 echo "$as_me:$LINENO: checking for $ac_func" >&5
23573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23574 if eval "test \"\${$as_ac_var+set}\" = set"; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 cat >conftest.
$ac_ext <<_ACEOF
23578 #line $LINENO "configure"
23581 cat confdefs.h
>>conftest.
$ac_ext
23582 cat >>conftest.
$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 /* System header to define __stub macros and hopefully few prototypes,
23585 which can conflict with char $ac_func (); below.
23586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23587 <limits.h> exists even on freestanding compilers. */
23589 # include <limits.h>
23591 # include <assert.h>
23593 /* Override any gcc2 internal prototype to avoid an error. */
23598 /* We use char because int might match the return type of a gcc2
23599 builtin and then its argument prototype would still apply. */
23601 /* The GNU C library defines this for functions which it implements
23602 to always fail with ENOSYS. Some functions are actually named
23603 something starting with __ and the normal name is an alias. */
23604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23607 char (*f) () = $ac_func;
23616 return f != $ac_func;
23621 rm -f conftest.
$ac_objext conftest
$ac_exeext
23622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623 (eval $ac_link) 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try
='test -s conftest$ac_exeext'
23628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629 (eval $ac_try) 2>&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); }; }; then
23633 eval "$as_ac_var=yes"
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.
$ac_ext >&5
23638 eval "$as_ac_var=no"
23640 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23644 if test `eval echo '${'$as_ac_var'}'` = yes; then
23645 cat >>confdefs.h
<<_ACEOF
23646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23650 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23664 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23665 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23666 if test "${ac_cv_have_decl_strtol+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 cat >conftest.
$ac_ext <<_ACEOF
23670 #line $LINENO "configure"
23673 cat confdefs.h
>>conftest.
$ac_ext
23674 cat >>conftest.
$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 $ac_includes_default
23681 char *p = (char *) strtol;
23688 rm -f conftest.
$ac_objext
23689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23690 (eval $ac_compile) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
23694 { ac_try
='test -s conftest.$ac_objext'
23695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23696 (eval $ac_try) 2>&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 ac_cv_have_decl_strtol
=yes
23702 echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.
$ac_ext >&5
23705 ac_cv_have_decl_strtol
=no
23707 rm -f conftest.
$ac_objext conftest.
$ac_ext
23709 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23710 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23711 if test $ac_cv_have_decl_strtol = yes; then
23713 cat >>confdefs.h
<<_ACEOF
23714 #define HAVE_DECL_STRTOL 1
23719 cat >>confdefs.h
<<_ACEOF
23720 #define HAVE_DECL_STRTOL 0
23725 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23726 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23727 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 cat >conftest.
$ac_ext <<_ACEOF
23731 #line $LINENO "configure"
23734 cat confdefs.h
>>conftest.
$ac_ext
23735 cat >>conftest.
$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 $ac_includes_default
23742 char *p = (char *) strtoul;
23749 rm -f conftest.
$ac_objext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23751 (eval $ac_compile) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
23755 { ac_try
='test -s conftest.$ac_objext'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_have_decl_strtoul
=yes
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.
$ac_ext >&5
23766 ac_cv_have_decl_strtoul
=no
23768 rm -f conftest.
$ac_objext conftest.
$ac_ext
23770 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23771 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23772 if test $ac_cv_have_decl_strtoul = yes; then
23774 cat >>confdefs.h
<<_ACEOF
23775 #define HAVE_DECL_STRTOUL 1
23780 cat >>confdefs.h
<<_ACEOF
23781 #define HAVE_DECL_STRTOUL 0
23786 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
23787 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
23788 if test "${ac_cv_have_decl_strtoll+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23791 cat >conftest.
$ac_ext <<_ACEOF
23792 #line $LINENO "configure"
23795 cat confdefs.h
>>conftest.
$ac_ext
23796 cat >>conftest.
$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23803 char *p = (char *) strtoll;
23810 rm -f conftest.
$ac_objext
23811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23812 (eval $ac_compile) 2>&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
23816 { ac_try
='test -s conftest.$ac_objext'
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; }; then
23822 ac_cv_have_decl_strtoll
=yes
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.
$ac_ext >&5
23827 ac_cv_have_decl_strtoll
=no
23829 rm -f conftest.
$ac_objext conftest.
$ac_ext
23831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
23832 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
23833 if test $ac_cv_have_decl_strtoll = yes; then
23835 cat >>confdefs.h
<<_ACEOF
23836 #define HAVE_DECL_STRTOLL 1
23841 cat >>confdefs.h
<<_ACEOF
23842 #define HAVE_DECL_STRTOLL 0
23847 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23848 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23849 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23850 echo $ECHO_N "(cached) $ECHO_C" >&6
23852 cat >conftest.
$ac_ext <<_ACEOF
23853 #line $LINENO "configure"
23856 cat confdefs.h
>>conftest.
$ac_ext
23857 cat >>conftest.
$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23859 $ac_includes_default
23864 char *p = (char *) strtoimax;
23871 rm -f conftest.
$ac_objext
23872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23873 (eval $ac_compile) 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } &&
23877 { ac_try
='test -s conftest.$ac_objext'
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; }; then
23883 ac_cv_have_decl_strtoimax
=yes
23885 echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.
$ac_ext >&5
23888 ac_cv_have_decl_strtoimax
=no
23890 rm -f conftest.
$ac_objext conftest.
$ac_ext
23892 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23893 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23894 if test $ac_cv_have_decl_strtoimax = yes; then
23896 cat >>confdefs.h
<<_ACEOF
23897 #define HAVE_DECL_STRTOIMAX 1
23902 cat >>confdefs.h
<<_ACEOF
23903 #define HAVE_DECL_STRTOIMAX 0
23908 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23909 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23910 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23911 echo $ECHO_N "(cached) $ECHO_C" >&6
23913 cat >conftest.
$ac_ext <<_ACEOF
23914 #line $LINENO "configure"
23917 cat confdefs.h
>>conftest.
$ac_ext
23918 cat >>conftest.
$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23920 $ac_includes_default
23925 char *p = (char *) strtoumax;
23932 rm -f conftest.
$ac_objext
23933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23934 (eval $ac_compile) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } &&
23938 { ac_try
='test -s conftest.$ac_objext'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23944 ac_cv_have_decl_strtoumax
=yes
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.
$ac_ext >&5
23949 ac_cv_have_decl_strtoumax
=no
23951 rm -f conftest.
$ac_objext conftest.
$ac_ext
23953 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23954 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23955 if test $ac_cv_have_decl_strtoumax = yes; then
23957 cat >>confdefs.h
<<_ACEOF
23958 #define HAVE_DECL_STRTOUMAX 1
23963 cat >>confdefs.h
<<_ACEOF
23964 #define HAVE_DECL_STRTOUMAX 0
23974 for ac_header
in limits.h stdlib.h inttypes.h
23976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23978 echo "$as_me:$LINENO: checking for $ac_header" >&5
23979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23986 # Is the header compilable?
23987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23989 cat >conftest.
$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23993 cat confdefs.h
>>conftest.
$ac_ext
23994 cat >>conftest.
$ac_ext <<_ACEOF
23995 /* end confdefs.h. */
23996 $ac_includes_default
23997 #include <$ac_header>
23999 rm -f conftest.
$ac_objext
24000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24001 (eval $ac_compile) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try
='test -s conftest.$ac_objext'
24006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007 (eval $ac_try) 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; }; then
24011 ac_header_compiler
=yes
24013 echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.
$ac_ext >&5
24016 ac_header_compiler
=no
24018 rm -f conftest.
$ac_objext conftest.
$ac_ext
24019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6
24022 # Is the header present?
24023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24025 cat >conftest.
$ac_ext <<_ACEOF
24026 #line $LINENO "configure"
24029 cat confdefs.h
>>conftest.
$ac_ext
24030 cat >>conftest.
$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 #include <$ac_header>
24034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24037 grep -v '^ *+' conftest.er1
>conftest.err
24039 cat conftest.err
>&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } >/dev
/null
; then
24042 if test -s conftest.err
; then
24043 ac_cpp_err
=$ac_c_preproc_warn_flag
24050 if test -z "$ac_cpp_err"; then
24051 ac_header_preproc
=yes
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.
$ac_ext >&5
24056 ac_header_preproc
=no
24058 rm -f conftest.err conftest.
$ac_ext
24059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24060 echo "${ECHO_T}$ac_header_preproc" >&6
24062 # So? What about this header?
24063 case $ac_header_compiler:$ac_header_preproc in
24065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24071 ## ------------------------------------ ##
24072 ## Report this to bug-autoconf@gnu.org. ##
24073 ## ------------------------------------ ##
24076 sed "s/^/$as_me: WARNING: /" >&2
24079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24087 ## ------------------------------------ ##
24088 ## Report this to bug-autoconf@gnu.org. ##
24089 ## ------------------------------------ ##
24092 sed "s/^/$as_me: WARNING: /" >&2
24095 echo "$as_me:$LINENO: checking for $ac_header" >&5
24096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24100 eval "$as_ac_Header=$ac_header_preproc"
24102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24107 cat >>confdefs.h
<<_ACEOF
24108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24116 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
24117 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
24118 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 cat >conftest.
$ac_ext <<_ACEOF
24122 #line $LINENO "configure"
24125 cat confdefs.h
>>conftest.
$ac_ext
24126 cat >>conftest.
$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 #include <inttypes.h>
24130 inttypes_h_defines_strtoimax
24133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24134 $EGREP "inttypes_h_defines_strtoimax" >/dev
/null
2>&1; then
24135 jm_cv_func_strtoimax_macro
=yes
24137 jm_cv_func_strtoimax_macro
=no
24142 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
24143 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
24145 if test "$jm_cv_func_strtoimax_macro" != yes; then
24147 for ac_func
in strtoimax
24149 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24150 echo "$as_me:$LINENO: checking for $ac_func" >&5
24151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24152 if eval "test \"\${$as_ac_var+set}\" = set"; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 cat >conftest.
$ac_ext <<_ACEOF
24156 #line $LINENO "configure"
24159 cat confdefs.h
>>conftest.
$ac_ext
24160 cat >>conftest.
$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24162 /* System header to define __stub macros and hopefully few prototypes,
24163 which can conflict with char $ac_func (); below.
24164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24165 <limits.h> exists even on freestanding compilers. */
24167 # include <limits.h>
24169 # include <assert.h>
24171 /* Override any gcc2 internal prototype to avoid an error. */
24176 /* We use char because int might match the return type of a gcc2
24177 builtin and then its argument prototype would still apply. */
24179 /* The GNU C library defines this for functions which it implements
24180 to always fail with ENOSYS. Some functions are actually named
24181 something starting with __ and the normal name is an alias. */
24182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24185 char (*f) () = $ac_func;
24194 return f != $ac_func;
24199 rm -f conftest.
$ac_objext conftest
$ac_exeext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24201 (eval $ac_link) 2>&5
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
24205 { ac_try
='test -s conftest$ac_exeext'
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24211 eval "$as_ac_var=yes"
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.
$ac_ext >&5
24216 eval "$as_ac_var=no"
24218 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24222 if test `eval echo '${'$as_ac_var'}'` = yes; then
24223 cat >>confdefs.h
<<_ACEOF
24224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24228 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24235 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
24238 for ac_func
in strtol
24240 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24241 echo "$as_me:$LINENO: checking for $ac_func" >&5
24242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24243 if eval "test \"\${$as_ac_var+set}\" = set"; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 cat >conftest.
$ac_ext <<_ACEOF
24247 #line $LINENO "configure"
24250 cat confdefs.h
>>conftest.
$ac_ext
24251 cat >>conftest.
$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 /* System header to define __stub macros and hopefully few prototypes,
24254 which can conflict with char $ac_func (); below.
24255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24256 <limits.h> exists even on freestanding compilers. */
24258 # include <limits.h>
24260 # include <assert.h>
24262 /* Override any gcc2 internal prototype to avoid an error. */
24267 /* We use char because int might match the return type of a gcc2
24268 builtin and then its argument prototype would still apply. */
24270 /* The GNU C library defines this for functions which it implements
24271 to always fail with ENOSYS. Some functions are actually named
24272 something starting with __ and the normal name is an alias. */
24273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24276 char (*f) () = $ac_func;
24285 return f != $ac_func;
24290 rm -f conftest.
$ac_objext conftest
$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292 (eval $ac_link) 2>&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
24296 { ac_try
='test -s conftest$ac_exeext'
24297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24298 (eval $ac_try) 2>&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; }; then
24302 eval "$as_ac_var=yes"
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.
$ac_ext >&5
24307 eval "$as_ac_var=no"
24309 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24313 if test `eval echo '${'$as_ac_var'}'` = yes; then
24314 cat >>confdefs.h
<<_ACEOF
24315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24319 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24325 if test "$ac_cv_type_long_long" = yes; then
24327 for ac_func
in strtoll
24329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24330 echo "$as_me:$LINENO: checking for $ac_func" >&5
24331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24332 if eval "test \"\${$as_ac_var+set}\" = set"; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24335 cat >conftest.
$ac_ext <<_ACEOF
24336 #line $LINENO "configure"
24339 cat confdefs.h
>>conftest.
$ac_ext
24340 cat >>conftest.
$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 /* System header to define __stub macros and hopefully few prototypes,
24343 which can conflict with char $ac_func (); below.
24344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24345 <limits.h> exists even on freestanding compilers. */
24347 # include <limits.h>
24349 # include <assert.h>
24351 /* Override any gcc2 internal prototype to avoid an error. */
24356 /* We use char because int might match the return type of a gcc2
24357 builtin and then its argument prototype would still apply. */
24359 /* The GNU C library defines this for functions which it implements
24360 to always fail with ENOSYS. Some functions are actually named
24361 something starting with __ and the normal name is an alias. */
24362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24365 char (*f) () = $ac_func;
24374 return f != $ac_func;
24379 rm -f conftest.
$ac_objext conftest
$ac_exeext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24381 (eval $ac_link) 2>&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } &&
24385 { ac_try
='test -s conftest$ac_exeext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 eval "$as_ac_var=yes"
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.
$ac_ext >&5
24396 eval "$as_ac_var=no"
24398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24402 if test `eval echo '${'$as_ac_var'}'` = yes; then
24403 cat >>confdefs.h
<<_ACEOF
24404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24408 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
24417 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
24418 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24419 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24423 test -z "$ac_cv_header_unistd_h" \
24425 for ac_header
in unistd.h
24427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24429 echo "$as_me:$LINENO: checking for $ac_header" >&5
24430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24437 # Is the header compilable?
24438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24440 cat >conftest.
$ac_ext <<_ACEOF
24441 #line $LINENO "configure"
24444 cat confdefs.h
>>conftest.
$ac_ext
24445 cat >>conftest.
$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 $ac_includes_default
24448 #include <$ac_header>
24450 rm -f conftest.
$ac_objext
24451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24452 (eval $ac_compile) 2>&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } &&
24456 { ac_try
='test -s conftest.$ac_objext'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; }; then
24462 ac_header_compiler
=yes
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.
$ac_ext >&5
24467 ac_header_compiler
=no
24469 rm -f conftest.
$ac_objext conftest.
$ac_ext
24470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24471 echo "${ECHO_T}$ac_header_compiler" >&6
24473 # Is the header present?
24474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24476 cat >conftest.
$ac_ext <<_ACEOF
24477 #line $LINENO "configure"
24480 cat confdefs.h
>>conftest.
$ac_ext
24481 cat >>conftest.
$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <$ac_header>
24485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24488 grep -v '^ *+' conftest.er1
>conftest.err
24490 cat conftest.err
>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } >/dev
/null
; then
24493 if test -s conftest.err
; then
24494 ac_cpp_err
=$ac_c_preproc_warn_flag
24501 if test -z "$ac_cpp_err"; then
24502 ac_header_preproc
=yes
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.
$ac_ext >&5
24507 ac_header_preproc
=no
24509 rm -f conftest.err conftest.
$ac_ext
24510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24511 echo "${ECHO_T}$ac_header_preproc" >&6
24513 # So? What about this header?
24514 case $ac_header_compiler:$ac_header_preproc in
24516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24522 ## ------------------------------------ ##
24523 ## Report this to bug-autoconf@gnu.org. ##
24524 ## ------------------------------------ ##
24527 sed "s/^/$as_me: WARNING: /" >&2
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24538 ## ------------------------------------ ##
24539 ## Report this to bug-autoconf@gnu.org. ##
24540 ## ------------------------------------ ##
24543 sed "s/^/$as_me: WARNING: /" >&2
24546 echo "$as_me:$LINENO: checking for $ac_header" >&5
24547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 eval "$as_ac_Header=$ac_header_preproc"
24553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24558 cat >>confdefs.h
<<_ACEOF
24559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567 # Create a regular file.
24568 echo > conftest.
file
24569 if test "$cross_compiling" = yes; then
24570 jm_ac_cv_func_link_follows_symlink
=yes
24572 cat >conftest.
$ac_ext <<_ACEOF
24573 #line $LINENO "configure"
24576 cat confdefs.h
>>conftest.
$ac_ext
24577 cat >>conftest.
$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24580 # include <sys/types.h>
24581 # include <sys/stat.h>
24582 # ifdef HAVE_UNISTD_H
24583 # include <unistd.h>
24586 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
24587 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
24588 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
24593 const char *file = "conftest.file";
24594 const char *sym = "conftest.sym";
24595 const char *hard = "conftest.hard";
24596 struct stat sb_file, sb_hard;
24598 /* Create a symlink to the regular file. */
24599 if (symlink (file, sym))
24602 /* Create a hard link to that symlink. */
24603 if (link (sym, hard))
24606 if (lstat (hard, &sb_hard))
24608 if (lstat (file, &sb_file))
24611 /* If the dev/inode of hard and file are the same, then
24612 the link call followed the symlink. */
24613 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
24617 rm -f conftest
$ac_exeext
24618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24619 (eval $ac_link) 2>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; }; then
24628 jm_ac_cv_func_link_follows_symlink
=yes
24630 echo "$as_me: program exited with status $ac_status" >&5
24631 echo "$as_me: failed program was:" >&5
24632 sed 's/^/| /' conftest.
$ac_ext >&5
24634 ( exit $ac_status )
24635 jm_ac_cv_func_link_follows_symlink
=no
24637 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24641 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
24642 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
24643 if test $jm_ac_cv_func_link_follows_symlink = yes; then
24645 cat >>confdefs.h
<<\_ACEOF
24646 #define LINK_FOLLOWS_SYMLINKS 1
24651 echo "$as_me:$LINENO: checking for error_at_line" >&5
24652 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24653 if test "${ac_cv_lib_error_at_line+set}" = set; then
24654 echo $ECHO_N "(cached) $ECHO_C" >&6
24656 cat >conftest.
$ac_ext <<_ACEOF
24657 #line $LINENO "configure"
24660 cat confdefs.h
>>conftest.
$ac_ext
24661 cat >>conftest.
$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24667 error_at_line (0, 0, "", 0, "");
24672 rm -f conftest.
$ac_objext conftest
$ac_exeext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674 (eval $ac_link) 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try
='test -s conftest$ac_exeext'
24679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680 (eval $ac_try) 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 ac_cv_lib_error_at_line
=yes
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.
$ac_ext >&5
24689 ac_cv_lib_error_at_line
=no
24691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24693 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24694 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24695 if test $ac_cv_lib_error_at_line = no
; then
24696 LIBOBJS
="$LIBOBJS error.$ac_objext"
24703 for ac_func
in localtime_r strftime
24705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24706 echo "$as_me:$LINENO: checking for $ac_func" >&5
24707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24708 if eval "test \"\${$as_ac_var+set}\" = set"; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 cat >conftest.
$ac_ext <<_ACEOF
24712 #line $LINENO "configure"
24715 cat confdefs.h
>>conftest.
$ac_ext
24716 cat >>conftest.
$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24718 /* System header to define __stub macros and hopefully few prototypes,
24719 which can conflict with char $ac_func (); below.
24720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24721 <limits.h> exists even on freestanding compilers. */
24723 # include <limits.h>
24725 # include <assert.h>
24727 /* Override any gcc2 internal prototype to avoid an error. */
24732 /* We use char because int might match the return type of a gcc2
24733 builtin and then its argument prototype would still apply. */
24735 /* The GNU C library defines this for functions which it implements
24736 to always fail with ENOSYS. Some functions are actually named
24737 something starting with __ and the normal name is an alias. */
24738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24741 char (*f) () = $ac_func;
24750 return f != $ac_func;
24755 rm -f conftest.
$ac_objext conftest
$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757 (eval $ac_link) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } &&
24761 { ac_try
='test -s conftest$ac_exeext'
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; }; then
24767 eval "$as_ac_var=yes"
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.
$ac_ext >&5
24772 eval "$as_ac_var=no"
24774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24778 if test `eval echo '${'$as_ac_var'}'` = yes; then
24779 cat >>confdefs.h
<<_ACEOF
24780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24788 for ac_header
in limits.h
24790 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24792 echo "$as_me:$LINENO: checking for $ac_header" >&5
24793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24795 echo $ECHO_N "(cached) $ECHO_C" >&6
24797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24800 # Is the header compilable?
24801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24803 cat >conftest.
$ac_ext <<_ACEOF
24804 #line $LINENO "configure"
24807 cat confdefs.h
>>conftest.
$ac_ext
24808 cat >>conftest.
$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 $ac_includes_default
24811 #include <$ac_header>
24813 rm -f conftest.
$ac_objext
24814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24815 (eval $ac_compile) 2>&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } &&
24819 { ac_try
='test -s conftest.$ac_objext'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; }; then
24825 ac_header_compiler
=yes
24827 echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.
$ac_ext >&5
24830 ac_header_compiler
=no
24832 rm -f conftest.
$ac_objext conftest.
$ac_ext
24833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24834 echo "${ECHO_T}$ac_header_compiler" >&6
24836 # Is the header present?
24837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24839 cat >conftest.
$ac_ext <<_ACEOF
24840 #line $LINENO "configure"
24843 cat confdefs.h
>>conftest.
$ac_ext
24844 cat >>conftest.
$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 #include <$ac_header>
24848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24851 grep -v '^ *+' conftest.er1
>conftest.err
24853 cat conftest.err
>&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } >/dev
/null
; then
24856 if test -s conftest.err
; then
24857 ac_cpp_err
=$ac_c_preproc_warn_flag
24864 if test -z "$ac_cpp_err"; then
24865 ac_header_preproc
=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.
$ac_ext >&5
24870 ac_header_preproc
=no
24872 rm -f conftest.err conftest.
$ac_ext
24873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24874 echo "${ECHO_T}$ac_header_preproc" >&6
24876 # So? What about this header?
24877 case $ac_header_compiler:$ac_header_preproc in
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24885 ## ------------------------------------ ##
24886 ## Report this to bug-autoconf@gnu.org. ##
24887 ## ------------------------------------ ##
24890 sed "s/^/$as_me: WARNING: /" >&2
24893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24901 ## ------------------------------------ ##
24902 ## Report this to bug-autoconf@gnu.org. ##
24903 ## ------------------------------------ ##
24906 sed "s/^/$as_me: WARNING: /" >&2
24909 echo "$as_me:$LINENO: checking for $ac_header" >&5
24910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24914 eval "$as_ac_Header=$ac_header_preproc"
24916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24921 cat >>confdefs.h
<<_ACEOF
24922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24934 for ac_func
in bcopy tzset mempcpy memcpy memset
24936 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24937 echo "$as_me:$LINENO: checking for $ac_func" >&5
24938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24939 if eval "test \"\${$as_ac_var+set}\" = set"; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24942 cat >conftest.
$ac_ext <<_ACEOF
24943 #line $LINENO "configure"
24946 cat confdefs.h
>>conftest.
$ac_ext
24947 cat >>conftest.
$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 /* System header to define __stub macros and hopefully few prototypes,
24950 which can conflict with char $ac_func (); below.
24951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952 <limits.h> exists even on freestanding compilers. */
24954 # include <limits.h>
24956 # include <assert.h>
24958 /* Override any gcc2 internal prototype to avoid an error. */
24963 /* We use char because int might match the return type of a gcc2
24964 builtin and then its argument prototype would still apply. */
24966 /* The GNU C library defines this for functions which it implements
24967 to always fail with ENOSYS. Some functions are actually named
24968 something starting with __ and the normal name is an alias. */
24969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24972 char (*f) () = $ac_func;
24981 return f != $ac_func;
24986 rm -f conftest.
$ac_objext conftest
$ac_exeext
24987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24988 (eval $ac_link) 2>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } &&
24992 { ac_try
='test -s conftest$ac_exeext'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 eval "$as_ac_var=yes"
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.
$ac_ext >&5
25003 eval "$as_ac_var=no"
25005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25009 if test `eval echo '${'$as_ac_var'}'` = yes; then
25010 cat >>confdefs.h
<<_ACEOF
25011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25018 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25019 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25020 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 cat >conftest.
$ac_ext <<_ACEOF
25025 #line $LINENO "configure"
25028 cat confdefs.h
>>conftest.
$ac_ext
25029 cat >>conftest.
$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 #include <sys/types.h>
25032 #include <$ac_cv_struct_tm>
25038 static struct tm ac_aggr;
25039 if (ac_aggr.tm_zone)
25045 rm -f conftest.
$ac_objext
25046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25047 (eval $ac_compile) 2>&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } &&
25051 { ac_try
='test -s conftest.$ac_objext'
25052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053 (eval $ac_try) 2>&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; }; then
25057 ac_cv_member_struct_tm_tm_zone
=yes
25059 echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.
$ac_ext >&5
25062 cat >conftest.
$ac_ext <<_ACEOF
25063 #line $LINENO "configure"
25066 cat confdefs.h
>>conftest.
$ac_ext
25067 cat >>conftest.
$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 #include <sys/types.h>
25070 #include <$ac_cv_struct_tm>
25076 static struct tm ac_aggr;
25077 if (sizeof ac_aggr.tm_zone)
25083 rm -f conftest.
$ac_objext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25085 (eval $ac_compile) 2>&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
25089 { ac_try
='test -s conftest.$ac_objext'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
25095 ac_cv_member_struct_tm_tm_zone
=yes
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.
$ac_ext >&5
25100 ac_cv_member_struct_tm_tm_zone
=no
25102 rm -f conftest.
$ac_objext conftest.
$ac_ext
25104 rm -f conftest.
$ac_objext conftest.
$ac_ext
25106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
25108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25110 cat >>confdefs.h
<<_ACEOF
25111 #define HAVE_STRUCT_TM_TM_ZONE 1
25117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25119 cat >>confdefs.h
<<\_ACEOF
25120 #define HAVE_TM_ZONE 1
25124 echo "$as_me:$LINENO: checking for tzname" >&5
25125 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
25126 if test "${ac_cv_var_tzname+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25129 cat >conftest.
$ac_ext <<_ACEOF
25130 #line $LINENO "configure"
25133 cat confdefs.h
>>conftest.
$ac_ext
25134 cat >>conftest.
$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25137 #ifndef tzname /* For SGI. */
25138 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
25149 rm -f conftest.
$ac_objext conftest
$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151 (eval $ac_link) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
25155 { ac_try
='test -s conftest$ac_exeext'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; }; then
25161 ac_cv_var_tzname
=yes
25163 echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.
$ac_ext >&5
25166 ac_cv_var_tzname
=no
25168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25170 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25171 echo "${ECHO_T}$ac_cv_var_tzname" >&6
25172 if test $ac_cv_var_tzname = yes; then
25174 cat >>confdefs.h
<<\_ACEOF
25175 #define HAVE_TZNAME 1
25184 for ac_func
in mblen mbrlen
25186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25187 echo "$as_me:$LINENO: checking for $ac_func" >&5
25188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25189 if eval "test \"\${$as_ac_var+set}\" = set"; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25192 cat >conftest.
$ac_ext <<_ACEOF
25193 #line $LINENO "configure"
25196 cat confdefs.h
>>conftest.
$ac_ext
25197 cat >>conftest.
$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 /* System header to define __stub macros and hopefully few prototypes,
25200 which can conflict with char $ac_func (); below.
25201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25202 <limits.h> exists even on freestanding compilers. */
25204 # include <limits.h>
25206 # include <assert.h>
25208 /* Override any gcc2 internal prototype to avoid an error. */
25213 /* We use char because int might match the return type of a gcc2
25214 builtin and then its argument prototype would still apply. */
25216 /* The GNU C library defines this for functions which it implements
25217 to always fail with ENOSYS. Some functions are actually named
25218 something starting with __ and the normal name is an alias. */
25219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25222 char (*f) () = $ac_func;
25231 return f != $ac_func;
25236 rm -f conftest.
$ac_objext conftest
$ac_exeext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25238 (eval $ac_link) 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } &&
25242 { ac_try
='test -s conftest$ac_exeext'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; }; then
25248 eval "$as_ac_var=yes"
25250 echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.
$ac_ext >&5
25253 eval "$as_ac_var=no"
25255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25259 if test `eval echo '${'$as_ac_var'}'` = yes; then
25260 cat >>confdefs.h
<<_ACEOF
25261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25268 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
25269 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
25270 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 cat >conftest.
$ac_ext <<_ACEOF
25274 #line $LINENO "configure"
25277 cat confdefs.h
>>conftest.
$ac_ext
25278 cat >>conftest.
$ac_ext <<_ACEOF
25279 /* end confdefs.h. */
25285 static struct tm ac_aggr;
25286 if (ac_aggr.tm_gmtoff)
25292 rm -f conftest.
$ac_objext
25293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25294 (eval $ac_compile) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } &&
25298 { ac_try
='test -s conftest.$ac_objext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 ac_cv_member_struct_tm_tm_gmtoff
=yes
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.
$ac_ext >&5
25309 cat >conftest.
$ac_ext <<_ACEOF
25310 #line $LINENO "configure"
25313 cat confdefs.h
>>conftest.
$ac_ext
25314 cat >>conftest.
$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25321 static struct tm ac_aggr;
25322 if (sizeof ac_aggr.tm_gmtoff)
25328 rm -f conftest.
$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try
='test -s conftest.$ac_objext'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_member_struct_tm_tm_gmtoff
=yes
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.
$ac_ext >&5
25345 ac_cv_member_struct_tm_tm_gmtoff
=no
25347 rm -f conftest.
$ac_objext conftest.
$ac_ext
25349 rm -f conftest.
$ac_objext conftest.
$ac_ext
25351 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
25352 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
25353 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
25355 cat >>confdefs.h
<<\_ACEOF
25356 #define HAVE_TM_GMTOFF 1
25364 for ac_header
in sys
/time.h
25366 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25368 echo "$as_me:$LINENO: checking for $ac_header" >&5
25369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25376 # Is the header compilable?
25377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25379 cat >conftest.
$ac_ext <<_ACEOF
25380 #line $LINENO "configure"
25383 cat confdefs.h
>>conftest.
$ac_ext
25384 cat >>conftest.
$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25387 #include <$ac_header>
25389 rm -f conftest.
$ac_objext
25390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25391 (eval $ac_compile) 2>&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try
='test -s conftest.$ac_objext'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; }; then
25401 ac_header_compiler
=yes
25403 echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.
$ac_ext >&5
25406 ac_header_compiler
=no
25408 rm -f conftest.
$ac_objext conftest.
$ac_ext
25409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25410 echo "${ECHO_T}$ac_header_compiler" >&6
25412 # Is the header present?
25413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25415 cat >conftest.
$ac_ext <<_ACEOF
25416 #line $LINENO "configure"
25419 cat confdefs.h
>>conftest.
$ac_ext
25420 cat >>conftest.
$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 #include <$ac_header>
25424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25427 grep -v '^ *+' conftest.er1
>conftest.err
25429 cat conftest.err
>&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } >/dev
/null
; then
25432 if test -s conftest.err
; then
25433 ac_cpp_err
=$ac_c_preproc_warn_flag
25440 if test -z "$ac_cpp_err"; then
25441 ac_header_preproc
=yes
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.
$ac_ext >&5
25446 ac_header_preproc
=no
25448 rm -f conftest.err conftest.
$ac_ext
25449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25450 echo "${ECHO_T}$ac_header_preproc" >&6
25452 # So? What about this header?
25453 case $ac_header_compiler:$ac_header_preproc in
25455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25461 ## ------------------------------------ ##
25462 ## Report this to bug-autoconf@gnu.org. ##
25463 ## ------------------------------------ ##
25466 sed "s/^/$as_me: WARNING: /" >&2
25469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25477 ## ------------------------------------ ##
25478 ## Report this to bug-autoconf@gnu.org. ##
25479 ## ------------------------------------ ##
25482 sed "s/^/$as_me: WARNING: /" >&2
25485 echo "$as_me:$LINENO: checking for $ac_header" >&5
25486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 eval "$as_ac_Header=$ac_header_preproc"
25492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25497 cat >>confdefs.h
<<_ACEOF
25498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25506 cat >>confdefs.h
<<\_ACEOF
25507 #define my_strftime nstrftime
25513 for ac_header
in stdio_ext.h
25515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25517 echo "$as_me:$LINENO: checking for $ac_header" >&5
25518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25525 # Is the header compilable?
25526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25528 cat >conftest.
$ac_ext <<_ACEOF
25529 #line $LINENO "configure"
25532 cat confdefs.h
>>conftest.
$ac_ext
25533 cat >>conftest.
$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25535 $ac_includes_default
25536 #include <$ac_header>
25538 rm -f conftest.
$ac_objext
25539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25540 (eval $ac_compile) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } &&
25544 { ac_try
='test -s conftest.$ac_objext'
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; }; then
25550 ac_header_compiler
=yes
25552 echo "$as_me: failed program was:" >&5
25553 sed 's/^/| /' conftest.
$ac_ext >&5
25555 ac_header_compiler
=no
25557 rm -f conftest.
$ac_objext conftest.
$ac_ext
25558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25559 echo "${ECHO_T}$ac_header_compiler" >&6
25561 # Is the header present?
25562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25564 cat >conftest.
$ac_ext <<_ACEOF
25565 #line $LINENO "configure"
25568 cat confdefs.h
>>conftest.
$ac_ext
25569 cat >>conftest.
$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25571 #include <$ac_header>
25573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25574 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25576 grep -v '^ *+' conftest.er1
>conftest.err
25578 cat conftest.err
>&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } >/dev
/null
; then
25581 if test -s conftest.err
; then
25582 ac_cpp_err
=$ac_c_preproc_warn_flag
25589 if test -z "$ac_cpp_err"; then
25590 ac_header_preproc
=yes
25592 echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.
$ac_ext >&5
25595 ac_header_preproc
=no
25597 rm -f conftest.err conftest.
$ac_ext
25598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25599 echo "${ECHO_T}$ac_header_preproc" >&6
25601 # So? What about this header?
25602 case $ac_header_compiler:$ac_header_preproc in
25604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25610 ## ------------------------------------ ##
25611 ## Report this to bug-autoconf@gnu.org. ##
25612 ## ------------------------------------ ##
25615 sed "s/^/$as_me: WARNING: /" >&2
25618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25626 ## ------------------------------------ ##
25627 ## Report this to bug-autoconf@gnu.org. ##
25628 ## ------------------------------------ ##
25631 sed "s/^/$as_me: WARNING: /" >&2
25634 echo "$as_me:$LINENO: checking for $ac_header" >&5
25635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 eval "$as_ac_Header=$ac_header_preproc"
25641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25646 cat >>confdefs.h
<<_ACEOF
25647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25655 for ac_func
in __fpending
25657 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25658 echo "$as_me:$LINENO: checking for $ac_func" >&5
25659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25660 if eval "test \"\${$as_ac_var+set}\" = set"; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 cat >conftest.
$ac_ext <<_ACEOF
25664 #line $LINENO "configure"
25667 cat confdefs.h
>>conftest.
$ac_ext
25668 cat >>conftest.
$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 /* System header to define __stub macros and hopefully few prototypes,
25671 which can conflict with char $ac_func (); below.
25672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25673 <limits.h> exists even on freestanding compilers. */
25675 # include <limits.h>
25677 # include <assert.h>
25679 /* Override any gcc2 internal prototype to avoid an error. */
25684 /* We use char because int might match the return type of a gcc2
25685 builtin and then its argument prototype would still apply. */
25687 /* The GNU C library defines this for functions which it implements
25688 to always fail with ENOSYS. Some functions are actually named
25689 something starting with __ and the normal name is an alias. */
25690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25693 char (*f) () = $ac_func;
25702 return f != $ac_func;
25707 rm -f conftest.
$ac_objext conftest
$ac_exeext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709 (eval $ac_link) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } &&
25713 { ac_try
='test -s conftest$ac_exeext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 eval "$as_ac_var=yes"
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.
$ac_ext >&5
25724 eval "$as_ac_var=no"
25726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25730 if test `eval echo '${'$as_ac_var'}'` = yes; then
25731 cat >>confdefs.h
<<_ACEOF
25732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25736 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25742 # if HAVE_STDIO_EXT_H
25743 # include <stdio_ext.h>
25746 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25747 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
25748 if test "${ac_cv_have_decl___fpending+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 cat >conftest.
$ac_ext <<_ACEOF
25752 #line $LINENO "configure"
25755 cat confdefs.h
>>conftest.
$ac_ext
25756 cat >>conftest.
$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25764 char *p = (char *) __fpending;
25771 rm -f conftest.
$ac_objext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } &&
25777 { ac_try
='test -s conftest.$ac_objext'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; }; then
25783 ac_cv_have_decl___fpending
=yes
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.
$ac_ext >&5
25788 ac_cv_have_decl___fpending
=no
25790 rm -f conftest.
$ac_objext conftest.
$ac_ext
25792 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25793 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
25794 if test $ac_cv_have_decl___fpending = yes; then
25796 cat >>confdefs.h
<<_ACEOF
25797 #define HAVE_DECL___FPENDING 1
25802 cat >>confdefs.h
<<_ACEOF
25803 #define HAVE_DECL___FPENDING 0
25810 if test $ac_cv_func___fpending = no
; then
25811 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25812 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
25813 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 'fp->_IO_write_ptr - fp->_IO_write_base' \
25822 '# traditional Unix' \
25823 'fp->_ptr - fp->_base' \
25826 'fp->_p - fp->_bf._base' \
25828 '# SCO, Unixware' \
25829 'fp->__ptr - fp->__base' \
25832 'fp->__bufp - fp->__buffer' \
25834 '# old glibc iostream?' \
25835 'fp->_pptr - fp->_pbase' \
25838 '(*fp)->_ptr - (*fp)->_base' \
25840 '# e.g., DGUX R4.11; the info is not available' \
25844 # Skip each embedded comment.
25845 case "$ac_expr" in '#'*) continue;; esac
25847 cat >conftest.
$ac_ext <<_ACEOF
25848 #line $LINENO "configure"
25851 cat confdefs.h
>>conftest.
$ac_ext
25852 cat >>conftest.
$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25859 FILE *fp = stdin; (void) ($ac_expr);
25864 rm -f conftest.
$ac_objext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866 (eval $ac_compile) 2>&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } &&
25870 { ac_try
='test -s conftest.$ac_objext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.
$ac_ext >&5
25883 rm -f conftest.
$ac_objext conftest.
$ac_ext
25884 test "$fp_done" = yes && break
25887 ac_cv_sys_pending_output_n_bytes
=$ac_expr
25891 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
25892 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
25894 cat >>confdefs.h
<<_ACEOF
25895 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
25901 # autoconf-2.52 has a proper check for inttypes.h.
25904 if test $ac_cv_header_inttypes_h = yes; then
25905 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
25906 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
25907 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
25908 echo $ECHO_N "(cached) $ECHO_C" >&6
25911 cat >conftest.
$ac_ext <<_ACEOF
25912 #line $LINENO "configure"
25915 cat confdefs.h
>>conftest.
$ac_ext
25916 cat >>conftest.
$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 #include <inttypes.h>
25931 rm -f conftest.
$ac_objext
25932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25933 (eval $ac_compile) 2>&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
25937 { ac_try
='test -s conftest.$ac_objext'
25938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25939 (eval $ac_try) 2>&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); }; }; then
25943 gt_cv_inttypes_pri_broken
=no
25945 echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.
$ac_ext >&5
25948 gt_cv_inttypes_pri_broken
=yes
25950 rm -f conftest.
$ac_objext conftest.
$ac_ext
25953 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
25954 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
25956 if test "$gt_cv_inttypes_pri_broken" = yes; then
25958 cat >>confdefs.h
<<_ACEOF
25959 #define PRI_MACROS_BROKEN 1
25964 echo "$as_me:$LINENO: checking for getgroups" >&5
25965 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
25966 if test "${ac_cv_func_getgroups+set}" = set; then
25967 echo $ECHO_N "(cached) $ECHO_C" >&6
25969 cat >conftest.
$ac_ext <<_ACEOF
25970 #line $LINENO "configure"
25973 cat confdefs.h
>>conftest.
$ac_ext
25974 cat >>conftest.
$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 /* System header to define __stub macros and hopefully few prototypes,
25977 which can conflict with char getgroups (); below.
25978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25979 <limits.h> exists even on freestanding compilers. */
25981 # include <limits.h>
25983 # include <assert.h>
25985 /* Override any gcc2 internal prototype to avoid an error. */
25990 /* We use char because int might match the return type of a gcc2
25991 builtin and then its argument prototype would still apply. */
25993 /* The GNU C library defines this for functions which it implements
25994 to always fail with ENOSYS. Some functions are actually named
25995 something starting with __ and the normal name is an alias. */
25996 #if defined (__stub_getgroups) || defined (__stub___getgroups)
25999 char (*f) () = getgroups;
26008 return f != getgroups;
26013 rm -f conftest.
$ac_objext conftest
$ac_exeext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26015 (eval $ac_link) 2>&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try
='test -s conftest$ac_exeext'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; }; then
26025 ac_cv_func_getgroups
=yes
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.
$ac_ext >&5
26030 ac_cv_func_getgroups
=no
26032 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26034 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26035 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26038 # If we don't yet have getgroups, see if it's in -lbsd.
26039 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26041 if test $ac_cv_func_getgroups = no
; then
26042 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26043 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26044 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 ac_check_lib_save_LIBS
=$LIBS
26049 cat >conftest.
$ac_ext <<_ACEOF
26050 #line $LINENO "configure"
26053 cat confdefs.h
>>conftest.
$ac_ext
26054 cat >>conftest.
$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26057 /* Override any gcc2 internal prototype to avoid an error. */
26061 /* We use char because int might match the return type of a gcc2
26062 builtin and then its argument prototype would still apply. */
26072 rm -f conftest.
$ac_objext conftest
$ac_exeext
26073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26074 (eval $ac_link) 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); } &&
26078 { ac_try
='test -s conftest$ac_exeext'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_cv_lib_bsd_getgroups
=yes
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.
$ac_ext >&5
26089 ac_cv_lib_bsd_getgroups
=no
26091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26092 LIBS
=$ac_check_lib_save_LIBS
26094 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26095 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26096 if test $ac_cv_lib_bsd_getgroups = yes; then
26097 GETGROUPS_LIB
=-lbsd
26102 # Run the program to test the functionality of the system-supplied
26103 # getgroups function only if there is such a function.
26104 if test $ac_cv_func_getgroups = yes; then
26105 echo "$as_me:$LINENO: checking for working getgroups" >&5
26106 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
26107 if test "${ac_cv_func_getgroups_works+set}" = set; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 if test "$cross_compiling" = yes; then
26111 ac_cv_func_getgroups_works
=no
26113 cat >conftest.
$ac_ext <<_ACEOF
26114 #line $LINENO "configure"
26117 cat confdefs.h
>>conftest.
$ac_ext
26118 cat >>conftest.
$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26124 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26125 exit (getgroups (0, 0) == -1 ? 1 : 0);
26130 rm -f conftest
$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>&5
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137 (eval $ac_try) 2>&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); }; }; then
26141 ac_cv_func_getgroups_works
=yes
26143 echo "$as_me: program exited with status $ac_status" >&5
26144 echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.
$ac_ext >&5
26147 ( exit $ac_status )
26148 ac_cv_func_getgroups_works
=no
26150 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26154 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26155 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
26156 if test $ac_cv_func_getgroups_works = yes; then
26158 cat >>confdefs.h
<<\_ACEOF
26159 #define HAVE_GETGROUPS 1
26166 if test $ac_cv_func_getgroups_works = no
; then
26167 LIBOBJS
="$LIBOBJS getgroups.$ac_objext"
26169 cat >>confdefs.h
<<\_ACEOF
26170 #define getgroups rpl_getgroups
26174 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
26176 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26177 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
26178 if test "${ac_cv_sys_largefile_source+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
26182 ac_cv_sys_largefile_source
=no
26183 cat >conftest.
$ac_ext <<_ACEOF
26184 #line $LINENO "configure"
26187 cat confdefs.h
>>conftest.
$ac_ext
26188 cat >>conftest.
$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26199 rm -f conftest.
$ac_objext
26200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26201 (eval $ac_compile) 2>&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } &&
26205 { ac_try
='test -s conftest.$ac_objext'
26206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26207 (eval $ac_try) 2>&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); }; }; then
26213 echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.
$ac_ext >&5
26217 rm -f conftest.
$ac_objext conftest.
$ac_ext
26218 cat >conftest.
$ac_ext <<_ACEOF
26219 #line $LINENO "configure"
26222 cat confdefs.h
>>conftest.
$ac_ext
26223 cat >>conftest.
$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26225 #define _LARGEFILE_SOURCE 1
26235 rm -f conftest.
$ac_objext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26237 (eval $ac_compile) 2>&5
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); } &&
26241 { ac_try
='test -s conftest.$ac_objext'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; }; then
26247 ac_cv_sys_largefile_source
=1; break
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.
$ac_ext >&5
26253 rm -f conftest.
$ac_objext conftest.
$ac_ext
26257 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26258 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
26259 if test "$ac_cv_sys_largefile_source" != no
; then
26261 cat >>confdefs.h
<<_ACEOF
26262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26268 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26269 # in glibc 2.1.3, but that breaks too many other things.
26270 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26271 echo "$as_me:$LINENO: checking for fseeko" >&5
26272 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
26273 if test "${ac_cv_func_fseeko+set}" = set; then
26274 echo $ECHO_N "(cached) $ECHO_C" >&6
26276 cat >conftest.
$ac_ext <<_ACEOF
26277 #line $LINENO "configure"
26280 cat confdefs.h
>>conftest.
$ac_ext
26281 cat >>conftest.
$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26287 return fseeko && fseeko (stdin, 0, 0);
26292 rm -f conftest.
$ac_objext conftest
$ac_exeext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26294 (eval $ac_link) 2>&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } &&
26298 { ac_try
='test -s conftest$ac_exeext'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 ac_cv_func_fseeko
=yes
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.
$ac_ext >&5
26309 ac_cv_func_fseeko
=no
26311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26313 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
26314 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
26315 if test $ac_cv_func_fseeko = yes; then
26317 cat >>confdefs.h
<<\_ACEOF
26318 #define HAVE_FSEEKO 1
26324 for ac_func
in vprintf
26326 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26327 echo "$as_me:$LINENO: checking for $ac_func" >&5
26328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26329 if eval "test \"\${$as_ac_var+set}\" = set"; then
26330 echo $ECHO_N "(cached) $ECHO_C" >&6
26332 cat >conftest.
$ac_ext <<_ACEOF
26333 #line $LINENO "configure"
26336 cat confdefs.h
>>conftest.
$ac_ext
26337 cat >>conftest.
$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 /* System header to define __stub macros and hopefully few prototypes,
26340 which can conflict with char $ac_func (); below.
26341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26342 <limits.h> exists even on freestanding compilers. */
26344 # include <limits.h>
26346 # include <assert.h>
26348 /* Override any gcc2 internal prototype to avoid an error. */
26353 /* We use char because int might match the return type of a gcc2
26354 builtin and then its argument prototype would still apply. */
26356 /* The GNU C library defines this for functions which it implements
26357 to always fail with ENOSYS. Some functions are actually named
26358 something starting with __ and the normal name is an alias. */
26359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26362 char (*f) () = $ac_func;
26371 return f != $ac_func;
26376 rm -f conftest.
$ac_objext conftest
$ac_exeext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26378 (eval $ac_link) 2>&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
26382 { ac_try
='test -s conftest$ac_exeext'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 eval "$as_ac_var=yes"
26390 echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.
$ac_ext >&5
26393 eval "$as_ac_var=no"
26395 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26399 if test `eval echo '${'$as_ac_var'}'` = yes; then
26400 cat >>confdefs.h
<<_ACEOF
26401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26404 echo "$as_me:$LINENO: checking for _doprnt" >&5
26405 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26406 if test "${ac_cv_func__doprnt+set}" = set; then
26407 echo $ECHO_N "(cached) $ECHO_C" >&6
26409 cat >conftest.
$ac_ext <<_ACEOF
26410 #line $LINENO "configure"
26413 cat confdefs.h
>>conftest.
$ac_ext
26414 cat >>conftest.
$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 /* System header to define __stub macros and hopefully few prototypes,
26417 which can conflict with char _doprnt (); below.
26418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26419 <limits.h> exists even on freestanding compilers. */
26421 # include <limits.h>
26423 # include <assert.h>
26425 /* Override any gcc2 internal prototype to avoid an error. */
26430 /* We use char because int might match the return type of a gcc2
26431 builtin and then its argument prototype would still apply. */
26433 /* The GNU C library defines this for functions which it implements
26434 to always fail with ENOSYS. Some functions are actually named
26435 something starting with __ and the normal name is an alias. */
26436 #if defined (__stub__doprnt) || defined (__stub____doprnt)
26439 char (*f) () = _doprnt;
26448 return f != _doprnt;
26453 rm -f conftest.
$ac_objext conftest
$ac_exeext
26454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26455 (eval $ac_link) 2>&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try
='test -s conftest$ac_exeext'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 ac_cv_func__doprnt
=yes
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.
$ac_ext >&5
26470 ac_cv_func__doprnt
=no
26472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26474 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26476 if test $ac_cv_func__doprnt = yes; then
26478 cat >>confdefs.h
<<\_ACEOF
26479 #define HAVE_DOPRNT 1
26489 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
26490 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
26491 if test "${jm_cv_have_proc_uptime+set}" = set; then
26492 echo $ECHO_N "(cached) $ECHO_C" >&6
26494 jm_cv_have_proc_uptime
=no
26495 test -f /proc
/uptime \
26496 && test "$cross_compiling" = no \
26497 && cat < /proc
/uptime
>/dev
/null
2>/dev
/null \
26498 && jm_cv_have_proc_uptime
=yes
26500 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
26501 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
26502 if test $jm_cv_have_proc_uptime = yes; then
26504 cat >>confdefs.h
<<\_ACEOF
26505 #define HAVE_PROC_UPTIME 1
26512 for ac_func
in ftruncate
26514 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26515 echo "$as_me:$LINENO: checking for $ac_func" >&5
26516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26517 if eval "test \"\${$as_ac_var+set}\" = set"; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 cat >conftest.
$ac_ext <<_ACEOF
26521 #line $LINENO "configure"
26524 cat confdefs.h
>>conftest.
$ac_ext
26525 cat >>conftest.
$ac_ext <<_ACEOF
26526 /* end confdefs.h. */
26527 /* System header to define __stub macros and hopefully few prototypes,
26528 which can conflict with char $ac_func (); below.
26529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26530 <limits.h> exists even on freestanding compilers. */
26532 # include <limits.h>
26534 # include <assert.h>
26536 /* Override any gcc2 internal prototype to avoid an error. */
26541 /* We use char because int might match the return type of a gcc2
26542 builtin and then its argument prototype would still apply. */
26544 /* The GNU C library defines this for functions which it implements
26545 to always fail with ENOSYS. Some functions are actually named
26546 something starting with __ and the normal name is an alias. */
26547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26550 char (*f) () = $ac_func;
26559 return f != $ac_func;
26564 rm -f conftest.
$ac_objext conftest
$ac_exeext
26565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26566 (eval $ac_link) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); } &&
26570 { ac_try
='test -s conftest$ac_exeext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 eval "$as_ac_var=yes"
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.
$ac_ext >&5
26581 eval "$as_ac_var=no"
26583 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26587 if test `eval echo '${'$as_ac_var'}'` = yes; then
26588 cat >>confdefs.h
<<_ACEOF
26589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26593 ftruncate_missing
=yes
26598 if test "$ftruncate_missing" = yes; then
26600 for ac_header
in unistd.h
26602 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26604 echo "$as_me:$LINENO: checking for $ac_header" >&5
26605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26612 # Is the header compilable?
26613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26615 cat >conftest.
$ac_ext <<_ACEOF
26616 #line $LINENO "configure"
26619 cat confdefs.h
>>conftest.
$ac_ext
26620 cat >>conftest.
$ac_ext <<_ACEOF
26621 /* end confdefs.h. */
26622 $ac_includes_default
26623 #include <$ac_header>
26625 rm -f conftest.
$ac_objext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26627 (eval $ac_compile) 2>&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } &&
26631 { ac_try
='test -s conftest.$ac_objext'
26632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633 (eval $ac_try) 2>&5
26635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636 (exit $ac_status); }; }; then
26637 ac_header_compiler
=yes
26639 echo "$as_me: failed program was:" >&5
26640 sed 's/^/| /' conftest.
$ac_ext >&5
26642 ac_header_compiler
=no
26644 rm -f conftest.
$ac_objext conftest.
$ac_ext
26645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26646 echo "${ECHO_T}$ac_header_compiler" >&6
26648 # Is the header present?
26649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26651 cat >conftest.
$ac_ext <<_ACEOF
26652 #line $LINENO "configure"
26655 cat confdefs.h
>>conftest.
$ac_ext
26656 cat >>conftest.
$ac_ext <<_ACEOF
26657 /* end confdefs.h. */
26658 #include <$ac_header>
26660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26663 grep -v '^ *+' conftest.er1
>conftest.err
26665 cat conftest.err
>&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } >/dev
/null
; then
26668 if test -s conftest.err
; then
26669 ac_cpp_err
=$ac_c_preproc_warn_flag
26676 if test -z "$ac_cpp_err"; then
26677 ac_header_preproc
=yes
26679 echo "$as_me: failed program was:" >&5
26680 sed 's/^/| /' conftest.
$ac_ext >&5
26682 ac_header_preproc
=no
26684 rm -f conftest.err conftest.
$ac_ext
26685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26686 echo "${ECHO_T}$ac_header_preproc" >&6
26688 # So? What about this header?
26689 case $ac_header_compiler:$ac_header_preproc in
26691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26697 ## ------------------------------------ ##
26698 ## Report this to bug-autoconf@gnu.org. ##
26699 ## ------------------------------------ ##
26702 sed "s/^/$as_me: WARNING: /" >&2
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26713 ## ------------------------------------ ##
26714 ## Report this to bug-autoconf@gnu.org. ##
26715 ## ------------------------------------ ##
26718 sed "s/^/$as_me: WARNING: /" >&2
26721 echo "$as_me:$LINENO: checking for $ac_header" >&5
26722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 eval "$as_ac_Header=$ac_header_preproc"
26728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26733 cat >>confdefs.h
<<_ACEOF
26734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26742 for ac_func
in chsize
26744 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26745 echo "$as_me:$LINENO: checking for $ac_func" >&5
26746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26747 if eval "test \"\${$as_ac_var+set}\" = set"; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26750 cat >conftest.
$ac_ext <<_ACEOF
26751 #line $LINENO "configure"
26754 cat confdefs.h
>>conftest.
$ac_ext
26755 cat >>conftest.
$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 /* System header to define __stub macros and hopefully few prototypes,
26758 which can conflict with char $ac_func (); below.
26759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26760 <limits.h> exists even on freestanding compilers. */
26762 # include <limits.h>
26764 # include <assert.h>
26766 /* Override any gcc2 internal prototype to avoid an error. */
26771 /* We use char because int might match the return type of a gcc2
26772 builtin and then its argument prototype would still apply. */
26774 /* The GNU C library defines this for functions which it implements
26775 to always fail with ENOSYS. Some functions are actually named
26776 something starting with __ and the normal name is an alias. */
26777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26780 char (*f) () = $ac_func;
26789 return f != $ac_func;
26794 rm -f conftest.
$ac_objext conftest
$ac_exeext
26795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26796 (eval $ac_link) 2>&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
26800 { ac_try
='test -s conftest$ac_exeext'
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 eval "$as_ac_var=yes"
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.
$ac_ext >&5
26811 eval "$as_ac_var=no"
26813 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26817 if test `eval echo '${'$as_ac_var'}'` = yes; then
26818 cat >>confdefs.h
<<_ACEOF
26819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26825 LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
26829 echo "$as_me:$LINENO: checking whether rename is broken" >&5
26830 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
26831 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26835 rm -rf conftest.d1 conftest.d2
26836 mkdir conftest.d1 ||
26837 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
26838 echo "$as_me: error: cannot create temporary directory" >&2;}
26839 { (exit 1); exit 1; }; }
26840 if test "$cross_compiling" = yes; then
26841 vb_cv_func_rename_trailing_slash_bug
=yes
26843 cat >conftest.
$ac_ext <<_ACEOF
26844 #line $LINENO "configure"
26847 cat confdefs.h
>>conftest.
$ac_ext
26848 cat >>conftest.
$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26851 # include <stdio.h>
26855 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
26859 rm -f conftest
$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861 (eval $ac_link) 2>&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; }; then
26870 vb_cv_func_rename_trailing_slash_bug
=no
26872 echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.
$ac_ext >&5
26876 ( exit $ac_status )
26877 vb_cv_func_rename_trailing_slash_bug
=yes
26879 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26882 rm -rf conftest.d1 conftest.d2
26885 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
26886 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
26887 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
26888 LIBOBJS
="$LIBOBJS rename.$ac_objext"
26890 cat >>confdefs.h
<<\_ACEOF
26891 #define RENAME_TRAILING_SLASH_BUG 1
26897 for ac_func
in mkstemp
26899 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26900 echo "$as_me:$LINENO: checking for $ac_func" >&5
26901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26902 if eval "test \"\${$as_ac_var+set}\" = set"; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26905 cat >conftest.
$ac_ext <<_ACEOF
26906 #line $LINENO "configure"
26909 cat confdefs.h
>>conftest.
$ac_ext
26910 cat >>conftest.
$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26912 /* System header to define __stub macros and hopefully few prototypes,
26913 which can conflict with char $ac_func (); below.
26914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26915 <limits.h> exists even on freestanding compilers. */
26917 # include <limits.h>
26919 # include <assert.h>
26921 /* Override any gcc2 internal prototype to avoid an error. */
26926 /* We use char because int might match the return type of a gcc2
26927 builtin and then its argument prototype would still apply. */
26929 /* The GNU C library defines this for functions which it implements
26930 to always fail with ENOSYS. Some functions are actually named
26931 something starting with __ and the normal name is an alias. */
26932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26935 char (*f) () = $ac_func;
26944 return f != $ac_func;
26949 rm -f conftest.
$ac_objext conftest
$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951 (eval $ac_link) 2>&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try
='test -s conftest$ac_exeext'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
26961 eval "$as_ac_var=yes"
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.
$ac_ext >&5
26966 eval "$as_ac_var=no"
26968 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26972 if test `eval echo '${'$as_ac_var'}'` = yes; then
26973 cat >>confdefs.h
<<_ACEOF
26974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26978 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
26983 if test $ac_cv_func_mkstemp = no
; then
26984 utils_cv_func_mkstemp_limitations
=yes
26986 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
26987 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
26988 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
26989 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 if test "$cross_compiling" = yes; then
26993 utils_cv_func_mkstemp_limitations
=yes
26996 cat >conftest.
$ac_ext <<_ACEOF
26997 #line $LINENO "configure"
27000 cat confdefs.h
>>conftest.
$ac_ext
27001 cat >>conftest.
$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27004 # include <stdlib.h>
27008 for (i = 0; i < 30; i++)
27010 char template[] = "conftestXXXXXX";
27011 int fd = mkstemp (template);
27020 rm -f conftest
$ac_exeext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27022 (eval $ac_link) 2>&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 utils_cv_func_mkstemp_limitations
=no
27033 echo "$as_me: program exited with status $ac_status" >&5
27034 echo "$as_me: failed program was:" >&5
27035 sed 's/^/| /' conftest.
$ac_ext >&5
27037 ( exit $ac_status )
27038 utils_cv_func_mkstemp_limitations
=yes
27040 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27045 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27046 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27049 if test $utils_cv_func_mkstemp_limitations = yes; then
27050 LIBOBJS
="$LIBOBJS mkstemp.$ac_objext"
27051 LIBOBJS
="$LIBOBJS tempname.$ac_objext"
27053 cat >>confdefs.h
<<\_ACEOF
27054 #define mkstemp rpl_mkstemp
27059 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27060 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27061 if test "${ac_cv_func_closedir_void+set}" = set; then
27062 echo $ECHO_N "(cached) $ECHO_C" >&6
27064 if test "$cross_compiling" = yes; then
27065 ac_cv_func_closedir_void
=yes
27067 cat >conftest.
$ac_ext <<_ACEOF
27068 #line $LINENO "configure"
27071 cat confdefs.h
>>conftest.
$ac_ext
27072 cat >>conftest.
$ac_ext <<_ACEOF
27073 /* end confdefs.h. */
27074 $ac_includes_default
27075 #include <$ac_header_dirent>
27076 #ifndef __cplusplus
27083 exit (closedir (opendir (".")) != 0);
27088 rm -f conftest
$ac_exeext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090 (eval $ac_link) 2>&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095 (eval $ac_try) 2>&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); }; }; then
27099 ac_cv_func_closedir_void
=no
27101 echo "$as_me: program exited with status $ac_status" >&5
27102 echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.
$ac_ext >&5
27105 ( exit $ac_status )
27106 ac_cv_func_closedir_void
=yes
27108 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27111 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
27112 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
27113 if test $ac_cv_func_closedir_void = yes; then
27115 cat >>confdefs.h
<<\_ACEOF
27116 #define CLOSEDIR_VOID 1
27121 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
27122 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
27123 if test "${ac_cv_func_utime_null+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27126 rm -f conftest.data
; >conftest.data
27127 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
27128 if test "$cross_compiling" = yes; then
27129 ac_cv_func_utime_null
=no
27131 cat >conftest.
$ac_ext <<_ACEOF
27132 #line $LINENO "configure"
27135 cat confdefs.h
>>conftest.
$ac_ext
27136 cat >>conftest.
$ac_ext <<_ACEOF
27137 /* end confdefs.h. */
27138 $ac_includes_default
27143 exit (!(stat ("conftest.data", &s) == 0
27144 && utime ("conftest.data", (long *)0) == 0
27145 && stat ("conftest.data", &t) == 0
27146 && t.st_mtime >= s.st_mtime
27147 && t.st_mtime - s.st_mtime < 120));
27152 rm -f conftest
$ac_exeext
27153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27154 (eval $ac_link) 2>&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 (eval $ac_try) 2>&5
27161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); }; }; then
27163 ac_cv_func_utime_null
=yes
27165 echo "$as_me: program exited with status $ac_status" >&5
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.
$ac_ext >&5
27169 ( exit $ac_status )
27170 ac_cv_func_utime_null
=no
27172 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27174 rm -f core core.
* *.core
27176 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
27177 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
27178 if test $ac_cv_func_utime_null = yes; then
27180 cat >>confdefs.h
<<\_ACEOF
27181 #define HAVE_UTIME_NULL 1
27185 rm -f conftest.data
27189 for ac_header
in utime.h
27191 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27193 echo "$as_me:$LINENO: checking for $ac_header" >&5
27194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27201 # Is the header compilable?
27202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27204 cat >conftest.
$ac_ext <<_ACEOF
27205 #line $LINENO "configure"
27208 cat confdefs.h
>>conftest.
$ac_ext
27209 cat >>conftest.
$ac_ext <<_ACEOF
27210 /* end confdefs.h. */
27211 $ac_includes_default
27212 #include <$ac_header>
27214 rm -f conftest.
$ac_objext
27215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27216 (eval $ac_compile) 2>&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
27220 { ac_try
='test -s conftest.$ac_objext'
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; }; then
27226 ac_header_compiler
=yes
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.
$ac_ext >&5
27231 ac_header_compiler
=no
27233 rm -f conftest.
$ac_objext conftest.
$ac_ext
27234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27235 echo "${ECHO_T}$ac_header_compiler" >&6
27237 # Is the header present?
27238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27240 cat >conftest.
$ac_ext <<_ACEOF
27241 #line $LINENO "configure"
27244 cat confdefs.h
>>conftest.
$ac_ext
27245 cat >>conftest.
$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 #include <$ac_header>
27249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27250 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1
>conftest.err
27254 cat conftest.err
>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } >/dev
/null
; then
27257 if test -s conftest.err
; then
27258 ac_cpp_err
=$ac_c_preproc_warn_flag
27265 if test -z "$ac_cpp_err"; then
27266 ac_header_preproc
=yes
27268 echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.
$ac_ext >&5
27271 ac_header_preproc
=no
27273 rm -f conftest.err conftest.
$ac_ext
27274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27275 echo "${ECHO_T}$ac_header_preproc" >&6
27277 # So? What about this header?
27278 case $ac_header_compiler:$ac_header_preproc in
27280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27286 ## ------------------------------------ ##
27287 ## Report this to bug-autoconf@gnu.org. ##
27288 ## ------------------------------------ ##
27291 sed "s/^/$as_me: WARNING: /" >&2
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27302 ## ------------------------------------ ##
27303 ## Report this to bug-autoconf@gnu.org. ##
27304 ## ------------------------------------ ##
27307 sed "s/^/$as_me: WARNING: /" >&2
27310 echo "$as_me:$LINENO: checking for $ac_header" >&5
27311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27315 eval "$as_ac_Header=$ac_header_preproc"
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27322 cat >>confdefs.h
<<_ACEOF
27323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27333 if test $ac_cv_func_utime_null = no
; then
27334 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
27335 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
27336 if test "${ac_cv_func_utimes_null+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27339 rm -f conftest.data
; > conftest.data
27340 if test "$cross_compiling" = yes; then
27341 ac_cv_func_utimes_null
=no
27343 cat >conftest.
$ac_ext <<_ACEOF
27344 #line $LINENO "configure"
27347 cat confdefs.h
>>conftest.
$ac_ext
27348 cat >>conftest.
$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27351 /* In case stat has been defined to rpl_stat, undef it here. */
27353 #include <sys/types.h>
27354 #include <sys/stat.h>
27357 exit(!(stat ("conftest.data", &s) == 0
27358 && utimes("conftest.data", (long *)0) == 0
27359 && stat("conftest.data", &t) == 0
27360 && t.st_mtime >= s.st_mtime
27361 && t.st_mtime - s.st_mtime < 120));
27364 rm -f conftest
$ac_exeext
27365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27366 (eval $ac_link) 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_func_utimes_null
=yes
27377 echo "$as_me: program exited with status $ac_status" >&5
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.
$ac_ext >&5
27381 ( exit $ac_status )
27382 ac_cv_func_utimes_null
=no
27384 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27386 rm -f core core.
* *.core
27388 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
27389 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
27391 if test $ac_cv_func_utimes_null = yes; then
27393 cat >>confdefs.h
<<\_ACEOF
27394 #define HAVE_UTIMES_NULL 1
27401 for ac_func
in utime
27403 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27404 echo "$as_me:$LINENO: checking for $ac_func" >&5
27405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27406 if eval "test \"\${$as_ac_var+set}\" = set"; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27409 cat >conftest.
$ac_ext <<_ACEOF
27410 #line $LINENO "configure"
27413 cat confdefs.h
>>conftest.
$ac_ext
27414 cat >>conftest.
$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27416 /* System header to define __stub macros and hopefully few prototypes,
27417 which can conflict with char $ac_func (); below.
27418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419 <limits.h> exists even on freestanding compilers. */
27421 # include <limits.h>
27423 # include <assert.h>
27425 /* Override any gcc2 internal prototype to avoid an error. */
27430 /* We use char because int might match the return type of a gcc2
27431 builtin and then its argument prototype would still apply. */
27433 /* The GNU C library defines this for functions which it implements
27434 to always fail with ENOSYS. Some functions are actually named
27435 something starting with __ and the normal name is an alias. */
27436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27439 char (*f) () = $ac_func;
27448 return f != $ac_func;
27453 rm -f conftest.
$ac_objext conftest
$ac_exeext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27455 (eval $ac_link) 2>&5
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } &&
27459 { ac_try
='test -s conftest$ac_exeext'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 eval "$as_ac_var=yes"
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.
$ac_ext >&5
27470 eval "$as_ac_var=no"
27472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27476 if test `eval echo '${'$as_ac_var'}'` = yes; then
27477 cat >>confdefs.h
<<_ACEOF
27478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27482 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
27490 if test "X$prefix" = "XNONE"; then
27491 acl_final_prefix
="$ac_default_prefix"
27493 acl_final_prefix
="$prefix"
27495 if test "X$exec_prefix" = "XNONE"; then
27496 acl_final_exec_prefix
='${prefix}'
27498 acl_final_exec_prefix
="$exec_prefix"
27500 acl_save_prefix
="$prefix"
27501 prefix
="$acl_final_prefix"
27502 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
27503 prefix
="$acl_save_prefix"
27506 # Check whether --with-gnu-ld or --without-gnu-ld was given.
27507 if test "${with_gnu_ld+set}" = set; then
27508 withval
="$with_gnu_ld"
27509 test "$withval" = no || with_gnu_ld
=yes
27514 if test "$GCC" = yes; then
27515 # Check if gcc -print-prog-name=ld gives a path.
27516 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
27517 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
27520 # gcc leaves a trailing carriage return which upsets mingw
27521 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27523 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
27526 # Accept absolute paths.
27527 [\\/]* |
[A-Za-z
]:[\\/]*)
27528 re_direlt
='/[^/][^/]*/\.\./'
27529 # Canonicalize the path of ld
27530 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
27531 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
27532 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
27534 test -z "$LD" && LD
="$ac_prog"
27537 # If it fails, then pretend we aren't using GCC.
27541 # If it is relative, then search for the first ld in PATH.
27542 with_gnu_ld
=unknown
27545 elif test "$with_gnu_ld" = yes; then
27546 echo "$as_me:$LINENO: checking for GNU ld" >&5
27547 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27549 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
27550 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27552 if test "${acl_cv_path_LD+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 if test -z "$LD"; then
27556 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
27557 for ac_dir
in $PATH; do
27558 test -z "$ac_dir" && ac_dir
=.
27559 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
27560 acl_cv_path_LD
="$ac_dir/$ac_prog"
27561 # Check to see if the program is GNU ld. I'd rather use --version,
27562 # but apparently some GNU ld's only accept -v.
27563 # Break only if it was the GNU/non-GNU ld that we prefer.
27564 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
27565 test "$with_gnu_ld" != no
&& break
27567 test "$with_gnu_ld" != yes && break
27573 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
27577 LD
="$acl_cv_path_LD"
27578 if test -n "$LD"; then
27579 echo "$as_me:$LINENO: result: $LD" >&5
27580 echo "${ECHO_T}$LD" >&6
27582 echo "$as_me:$LINENO: result: no" >&5
27583 echo "${ECHO_T}no" >&6
27585 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
27586 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
27587 { (exit 1); exit 1; }; }
27588 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
27589 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
27590 if test "${acl_cv_prog_gnu_ld+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
27594 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
27595 acl_cv_prog_gnu_ld
=yes
27597 acl_cv_prog_gnu_ld
=no
27600 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
27601 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
27602 with_gnu_ld
=$acl_cv_prog_gnu_ld
27606 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
27607 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
27608 if test "${acl_cv_rpath+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
27613 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
27615 rm -f .
/conftest.sh
27619 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
27620 echo "${ECHO_T}$acl_cv_rpath" >&6
27622 libext
="$acl_cv_libext"
27623 shlibext
="$acl_cv_shlibext"
27624 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
27625 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
27626 hardcode_direct
="$acl_cv_hardcode_direct"
27627 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
27628 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
27629 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
27630 # Check whether --enable-rpath or --disable-rpath was given.
27631 if test "${enable_rpath+set}" = set; then
27632 enableval
="$enable_rpath"
27646 acl_save_prefix
="$prefix"
27647 prefix
="$acl_final_prefix"
27648 acl_save_exec_prefix
="$exec_prefix"
27649 exec_prefix
="$acl_final_exec_prefix"
27651 eval additional_includedir
=\"$includedir\"
27652 eval additional_libdir
=\"$libdir\"
27654 exec_prefix
="$acl_save_exec_prefix"
27655 prefix
="$acl_save_prefix"
27658 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
27659 if test "${with_libiconv_prefix+set}" = set; then
27660 withval
="$with_libiconv_prefix"
27662 if test "X$withval" = "Xno"; then
27665 if test "X$withval" = "X"; then
27667 acl_save_prefix
="$prefix"
27668 prefix
="$acl_final_prefix"
27669 acl_save_exec_prefix
="$exec_prefix"
27670 exec_prefix
="$acl_final_exec_prefix"
27672 eval additional_includedir
=\"$includedir\"
27673 eval additional_libdir
=\"$libdir\"
27675 exec_prefix
="$acl_save_exec_prefix"
27676 prefix
="$acl_save_prefix"
27679 additional_includedir
="$withval/include"
27680 additional_libdir
="$withval/lib"
27690 names_already_handled
=
27691 names_next_round
='iconv '
27692 while test -n "$names_next_round"; do
27693 names_this_round
="$names_next_round"
27695 for name
in $names_this_round; do
27697 for n
in $names_already_handled; do
27698 if test "$n" = "$name"; then
27699 already_handled
=yes
27703 if test -z "$already_handled"; then
27704 names_already_handled
="$names_already_handled $name"
27705 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27706 eval value
=\"\
$HAVE_LIB$uppername\"
27707 if test -n "$value"; then
27708 if test "$value" = yes; then
27709 eval value
=\"\
$LIB$uppername\"
27710 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
27711 eval value
=\"\
$LTLIB$uppername\"
27712 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
27721 if test $use_additional = yes; then
27722 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27723 found_dir
="$additional_libdir"
27724 found_so
="$additional_libdir/lib$name.$shlibext"
27725 if test -f "$additional_libdir/lib$name.la"; then
27726 found_la
="$additional_libdir/lib$name.la"
27729 if test -f "$additional_libdir/lib$name.$libext"; then
27730 found_dir
="$additional_libdir"
27731 found_a
="$additional_libdir/lib$name.$libext"
27732 if test -f "$additional_libdir/lib$name.la"; then
27733 found_la
="$additional_libdir/lib$name.la"
27738 if test "X$found_dir" = "X"; then
27739 for x
in $LDFLAGS $LTLIBICONV; do
27741 acl_save_prefix
="$prefix"
27742 prefix
="$acl_final_prefix"
27743 acl_save_exec_prefix
="$exec_prefix"
27744 exec_prefix
="$acl_final_exec_prefix"
27746 exec_prefix
="$acl_save_exec_prefix"
27747 prefix
="$acl_save_prefix"
27751 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27752 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27754 found_so
="$dir/lib$name.$shlibext"
27755 if test -f "$dir/lib$name.la"; then
27756 found_la
="$dir/lib$name.la"
27759 if test -f "$dir/lib$name.$libext"; then
27761 found_a
="$dir/lib$name.$libext"
27762 if test -f "$dir/lib$name.la"; then
27763 found_la
="$dir/lib$name.la"
27769 if test "X$found_dir" != "X"; then
27774 if test "X$found_dir" != "X"; then
27775 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27776 if test "X$found_so" != "X"; then
27777 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27778 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
27781 for x
in $ltrpathdirs; do
27782 if test "X$x" = "X$found_dir"; then
27787 if test -z "$haveit"; then
27788 ltrpathdirs
="$ltrpathdirs $found_dir"
27790 if test "$hardcode_direct" = yes; then
27791 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
27793 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
27794 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
27796 for x
in $rpathdirs; do
27797 if test "X$x" = "X$found_dir"; then
27802 if test -z "$haveit"; then
27803 rpathdirs
="$rpathdirs $found_dir"
27807 for x
in $LDFLAGS $LIBICONV; do
27809 acl_save_prefix
="$prefix"
27810 prefix
="$acl_final_prefix"
27811 acl_save_exec_prefix
="$exec_prefix"
27812 exec_prefix
="$acl_final_exec_prefix"
27814 exec_prefix
="$acl_save_exec_prefix"
27815 prefix
="$acl_save_prefix"
27817 if test "X$x" = "X-L$found_dir"; then
27822 if test -z "$haveit"; then
27823 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27825 if test "$hardcode_minus_L" != no
; then
27826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
27828 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
27834 if test "X$found_a" != "X"; then
27835 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
27837 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27840 additional_includedir
=
27841 case "$found_dir" in
27843 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27844 additional_includedir
="$basedir/include"
27847 if test "X$additional_includedir" != "X"; then
27848 if test "X$additional_includedir" != "X/usr/include"; then
27850 if test "X$additional_includedir" = "X/usr/local/include"; then
27851 if test -n "$GCC"; then
27853 linux
*) haveit
=yes;;
27857 if test -z "$haveit"; then
27858 for x
in $CPPFLAGS $INCICONV; do
27860 acl_save_prefix
="$prefix"
27861 prefix
="$acl_final_prefix"
27862 acl_save_exec_prefix
="$exec_prefix"
27863 exec_prefix
="$acl_final_exec_prefix"
27865 exec_prefix
="$acl_save_exec_prefix"
27866 prefix
="$acl_save_prefix"
27868 if test "X$x" = "X-I$additional_includedir"; then
27873 if test -z "$haveit"; then
27874 if test -d "$additional_includedir"; then
27875 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27881 if test -n "$found_la"; then
27882 save_libdir
="$libdir"
27883 case "$found_la" in
27884 */* |
*\\*) .
"$found_la" ;;
27885 *) .
"./$found_la" ;;
27887 libdir
="$save_libdir"
27888 for dep
in $dependency_libs; do
27891 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
27892 if test "X$additional_libdir" != "X/usr/lib"; then
27894 if test "X$additional_libdir" = "X/usr/local/lib"; then
27895 if test -n "$GCC"; then
27897 linux
*) haveit
=yes;;
27901 if test -z "$haveit"; then
27903 for x
in $LDFLAGS $LIBICONV; do
27905 acl_save_prefix
="$prefix"
27906 prefix
="$acl_final_prefix"
27907 acl_save_exec_prefix
="$exec_prefix"
27908 exec_prefix
="$acl_final_exec_prefix"
27910 exec_prefix
="$acl_save_exec_prefix"
27911 prefix
="$acl_save_prefix"
27913 if test "X$x" = "X-L$additional_libdir"; then
27918 if test -z "$haveit"; then
27919 if test -d "$additional_libdir"; then
27920 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27924 for x
in $LDFLAGS $LTLIBICONV; do
27926 acl_save_prefix
="$prefix"
27927 prefix
="$acl_final_prefix"
27928 acl_save_exec_prefix
="$exec_prefix"
27929 exec_prefix
="$acl_final_exec_prefix"
27931 exec_prefix
="$acl_save_exec_prefix"
27932 prefix
="$acl_save_prefix"
27934 if test "X$x" = "X-L$additional_libdir"; then
27939 if test -z "$haveit"; then
27940 if test -d "$additional_libdir"; then
27941 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27948 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
27949 if test "$enable_rpath" != no
; then
27951 for x
in $rpathdirs; do
27952 if test "X$x" = "X$dir"; then
27957 if test -z "$haveit"; then
27958 rpathdirs
="$rpathdirs $dir"
27961 for x
in $ltrpathdirs; do
27962 if test "X$x" = "X$dir"; then
27967 if test -z "$haveit"; then
27968 ltrpathdirs
="$ltrpathdirs $dir"
27973 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27976 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27979 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
27980 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27986 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
27987 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27993 if test "X$rpathdirs" != "X"; then
27994 if test -n "$hardcode_libdir_separator"; then
27996 for found_dir
in $rpathdirs; do
27997 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27999 acl_save_libdir
="$libdir"
28001 eval flag
=\"$hardcode_libdir_flag_spec\"
28002 libdir
="$acl_save_libdir"
28003 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
28005 for found_dir
in $rpathdirs; do
28006 acl_save_libdir
="$libdir"
28007 libdir
="$found_dir"
28008 eval flag
=\"$hardcode_libdir_flag_spec\"
28009 libdir
="$acl_save_libdir"
28010 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
28014 if test "X$ltrpathdirs" != "X"; then
28015 for found_dir
in $ltrpathdirs; do
28016 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28022 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28023 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28024 if test "${ac_cv_win_or_dos+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 cat >conftest.
$ac_ext <<_ACEOF
28029 #line $LINENO "configure"
28032 cat confdefs.h
>>conftest.
$ac_ext
28033 cat >>conftest.
$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28039 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
28040 neither MSDOS nor Windows
28046 rm -f conftest.
$ac_objext
28047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28048 (eval $ac_compile) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
28052 { ac_try
='test -s conftest.$ac_objext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_win_or_dos
=yes
28060 echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.
$ac_ext >&5
28063 ac_cv_win_or_dos
=no
28065 rm -f conftest.
$ac_objext conftest.
$ac_ext
28068 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
28069 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
28071 if test x
"$ac_cv_win_or_dos" = xyes
; then
28072 ac_fs_accepts_drive_letter_prefix
=1
28073 ac_fs_backslash_is_file_name_separator
=1
28075 ac_fs_accepts_drive_letter_prefix
=0
28076 ac_fs_backslash_is_file_name_separator
=0
28083 cat >>confdefs.h
<<_ACEOF
28084 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
28092 cat >>confdefs.h
<<_ACEOF
28093 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
28100 GNU_PACKAGE
="GNU $PACKAGE"
28102 cat >>confdefs.h
<<_ACEOF
28103 #define GNU_PACKAGE "$GNU_PACKAGE"
28109 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
28131 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
28132 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
28133 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
28134 echo $ECHO_N "(cached) $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 $ac_includes_default
28144 #include <sys/stat.h>
28150 static struct stat ac_aggr;
28151 if (ac_aggr.st_author)
28157 rm -f conftest.
$ac_objext
28158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28159 (eval $ac_compile) 2>&5
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } &&
28163 { ac_try
='test -s conftest.$ac_objext'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28169 ac_cv_member_struct_stat_st_author
=yes
28171 echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.
$ac_ext >&5
28174 cat >conftest.
$ac_ext <<_ACEOF
28175 #line $LINENO "configure"
28178 cat confdefs.h
>>conftest.
$ac_ext
28179 cat >>conftest.
$ac_ext <<_ACEOF
28180 /* end confdefs.h. */
28181 $ac_includes_default
28182 #include <sys/stat.h>
28188 static struct stat ac_aggr;
28189 if (sizeof ac_aggr.st_author)
28195 rm -f conftest.
$ac_objext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28197 (eval $ac_compile) 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
28201 { ac_try
='test -s conftest.$ac_objext'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207 ac_cv_member_struct_stat_st_author
=yes
28209 echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.
$ac_ext >&5
28212 ac_cv_member_struct_stat_st_author
=no
28214 rm -f conftest.
$ac_objext conftest.
$ac_ext
28216 rm -f conftest.
$ac_objext conftest.
$ac_ext
28218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
28219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
28220 if test $ac_cv_member_struct_stat_st_author = yes; then
28222 cat >>confdefs.h
<<_ACEOF
28223 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
28228 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
28229 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
28230 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 cat >conftest.
$ac_ext <<_ACEOF
28234 #line $LINENO "configure"
28237 cat confdefs.h
>>conftest.
$ac_ext
28238 cat >>conftest.
$ac_ext <<_ACEOF
28239 /* end confdefs.h. */
28240 $ac_includes_default
28241 #include <sys/stat.h>
28247 static struct stat ac_aggr;
28248 if (ac_aggr.st_blksize)
28254 rm -f conftest.
$ac_objext
28255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28256 (eval $ac_compile) 2>&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } &&
28260 { ac_try
='test -s conftest.$ac_objext'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; }; then
28266 ac_cv_member_struct_stat_st_blksize
=yes
28268 echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.
$ac_ext >&5
28271 cat >conftest.
$ac_ext <<_ACEOF
28272 #line $LINENO "configure"
28275 cat confdefs.h
>>conftest.
$ac_ext
28276 cat >>conftest.
$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 $ac_includes_default
28279 #include <sys/stat.h>
28285 static struct stat ac_aggr;
28286 if (sizeof ac_aggr.st_blksize)
28292 rm -f conftest.
$ac_objext
28293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28294 (eval $ac_compile) 2>&5
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
28298 { ac_try
='test -s conftest.$ac_objext'
28299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300 (eval $ac_try) 2>&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
28304 ac_cv_member_struct_stat_st_blksize
=yes
28306 echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.
$ac_ext >&5
28309 ac_cv_member_struct_stat_st_blksize
=no
28311 rm -f conftest.
$ac_objext conftest.
$ac_ext
28313 rm -f conftest.
$ac_objext conftest.
$ac_ext
28315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
28316 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
28317 if test $ac_cv_member_struct_stat_st_blksize = yes; then
28319 cat >>confdefs.h
<<_ACEOF
28320 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
28342 echo "$as_me:$LINENO: checking for ino_t" >&5
28343 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
28344 if test "${ac_cv_type_ino_t+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28347 cat >conftest.
$ac_ext <<_ACEOF
28348 #line $LINENO "configure"
28351 cat confdefs.h
>>conftest.
$ac_ext
28352 cat >>conftest.
$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28360 if (sizeof (ino_t))
28366 rm -f conftest.
$ac_objext
28367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28368 (eval $ac_compile) 2>&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
28372 { ac_try
='test -s conftest.$ac_objext'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_cv_type_ino_t
=yes
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.
$ac_ext >&5
28383 ac_cv_type_ino_t
=no
28385 rm -f conftest.
$ac_objext conftest.
$ac_ext
28387 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
28388 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
28389 if test $ac_cv_type_ino_t = yes; then
28393 cat >>confdefs.h
<<_ACEOF
28394 #define ino_t unsigned long
28400 echo "$as_me:$LINENO: checking for ssize_t" >&5
28401 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28402 if test "${ac_cv_type_ssize_t+set}" = set; then
28403 echo $ECHO_N "(cached) $ECHO_C" >&6
28405 cat >conftest.
$ac_ext <<_ACEOF
28406 #line $LINENO "configure"
28409 cat confdefs.h
>>conftest.
$ac_ext
28410 cat >>conftest.
$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 $ac_includes_default
28418 if (sizeof (ssize_t))
28424 rm -f conftest.
$ac_objext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426 (eval $ac_compile) 2>&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
28430 { ac_try
='test -s conftest.$ac_objext'
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 ac_cv_type_ssize_t
=yes
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.
$ac_ext >&5
28441 ac_cv_type_ssize_t
=no
28443 rm -f conftest.
$ac_objext conftest.
$ac_ext
28445 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28446 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28447 if test $ac_cv_type_ssize_t = yes; then
28451 cat >>confdefs.h
<<_ACEOF
28452 #define ssize_t int
28457 echo "$as_me:$LINENO: checking for major_t" >&5
28458 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
28459 if test "${ac_cv_type_major_t+set}" = set; then
28460 echo $ECHO_N "(cached) $ECHO_C" >&6
28462 cat >conftest.
$ac_ext <<_ACEOF
28463 #line $LINENO "configure"
28466 cat confdefs.h
>>conftest.
$ac_ext
28467 cat >>conftest.
$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28469 $ac_includes_default
28475 if (sizeof (major_t))
28481 rm -f conftest.
$ac_objext
28482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28483 (eval $ac_compile) 2>&5
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); } &&
28487 { ac_try
='test -s conftest.$ac_objext'
28488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28489 (eval $ac_try) 2>&5
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; }; then
28493 ac_cv_type_major_t
=yes
28495 echo "$as_me: failed program was:" >&5
28496 sed 's/^/| /' conftest.
$ac_ext >&5
28498 ac_cv_type_major_t
=no
28500 rm -f conftest.
$ac_objext conftest.
$ac_ext
28502 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
28503 echo "${ECHO_T}$ac_cv_type_major_t" >&6
28504 if test $ac_cv_type_major_t = yes; then
28508 cat >>confdefs.h
<<_ACEOF
28509 #define major_t unsigned int
28514 echo "$as_me:$LINENO: checking for minor_t" >&5
28515 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
28516 if test "${ac_cv_type_minor_t+set}" = set; then
28517 echo $ECHO_N "(cached) $ECHO_C" >&6
28519 cat >conftest.
$ac_ext <<_ACEOF
28520 #line $LINENO "configure"
28523 cat confdefs.h
>>conftest.
$ac_ext
28524 cat >>conftest.
$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28532 if (sizeof (minor_t))
28538 rm -f conftest.
$ac_objext
28539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28540 (eval $ac_compile) 2>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try
='test -s conftest.$ac_objext'
28545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546 (eval $ac_try) 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_type_minor_t
=yes
28552 echo "$as_me: failed program was:" >&5
28553 sed 's/^/| /' conftest.
$ac_ext >&5
28555 ac_cv_type_minor_t
=no
28557 rm -f conftest.
$ac_objext conftest.
$ac_ext
28559 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
28560 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
28561 if test $ac_cv_type_minor_t = yes; then
28565 cat >>confdefs.h
<<_ACEOF
28566 #define minor_t unsigned int
28581 # Assume we'll default to using the included regex.c.
28582 ac_use_included_regex
=yes
28584 # However, if the system regex support is good enough that it passes the
28585 # the following run test, then default to *not* using the included regex.c.
28586 # If cross compiling, assume the test would fail and use the included
28587 # regex.c. The first failing regular expression is from `Spencer ere
28588 # test #75' in grep-2.3.
28589 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
28590 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
28591 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28594 if test "$cross_compiling" = yes; then
28595 jm_cv_func_working_re_compile_pattern
=no
28597 cat >conftest.
$ac_ext <<_ACEOF
28598 #line $LINENO "configure"
28601 cat confdefs.h
>>conftest.
$ac_ext
28602 cat >>conftest.
$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28609 static struct re_pattern_buffer regex;
28611 struct re_registers regs;
28612 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
28613 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
28614 /* This should fail with _Invalid character class name_ error. */
28618 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
28619 s = re_compile_pattern ("{1", 2, ®ex);
28624 /* The following example is derived from a problem report
28625 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
28626 s = re_compile_pattern ("[anù]*n", 7, ®ex);
28630 /* This should match, but doesn't for e.g. glibc-2.2.1. */
28631 if (re_match (®ex, "an", 2, 0, ®s) != 2)
28638 rm -f conftest
$ac_exeext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28640 (eval $ac_link) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; }; then
28649 jm_cv_func_working_re_compile_pattern
=yes
28651 echo "$as_me: program exited with status $ac_status" >&5
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.
$ac_ext >&5
28655 ( exit $ac_status )
28656 jm_cv_func_working_re_compile_pattern
=no
28658 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28661 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
28662 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
28663 if test $jm_cv_func_working_re_compile_pattern = yes; then
28664 ac_use_included_regex
=no
28667 test -n "lib/regex.c" ||
{ { echo "$as_me:$LINENO: error: missing argument" >&5
28668 echo "$as_me: error: missing argument" >&2;}
28669 { (exit 1); exit 1; }; }
28673 # Check whether --with-included-regex or --without-included-regex was given.
28674 if test "${with_included_regex+set}" = set; then
28675 withval
="$with_included_regex"
28676 jm_with_regex
=$withval
28678 jm_with_regex
=$ac_use_included_regex
28680 if test "$jm_with_regex" = yes; then
28681 LIBOBJS
="$LIBOBJS regex.$ac_objext"
28725 # This is for od and stat, and any other program that
28726 # uses the PRI.MAX macros from inttypes.h.
28736 ac_have_func
=no
# yes means we've found a way to get the load average.
28738 # Make sure getloadavg.c is where it belongs, at configure-time.
28739 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
28740 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
28741 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
28742 { (exit 1); exit 1; }; }
28746 # Check for getloadavg, but be sure not to touch the cache variable.
28747 (echo "$as_me:$LINENO: checking for getloadavg" >&5
28748 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
28749 if test "${ac_cv_func_getloadavg+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28752 cat >conftest.
$ac_ext <<_ACEOF
28753 #line $LINENO "configure"
28756 cat confdefs.h
>>conftest.
$ac_ext
28757 cat >>conftest.
$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 /* System header to define __stub macros and hopefully few prototypes,
28760 which can conflict with char getloadavg (); below.
28761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28762 <limits.h> exists even on freestanding compilers. */
28764 # include <limits.h>
28766 # include <assert.h>
28768 /* Override any gcc2 internal prototype to avoid an error. */
28773 /* We use char because int might match the return type of a gcc2
28774 builtin and then its argument prototype would still apply. */
28775 char getloadavg ();
28776 /* The GNU C library defines this for functions which it implements
28777 to always fail with ENOSYS. Some functions are actually named
28778 something starting with __ and the normal name is an alias. */
28779 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
28782 char (*f) () = getloadavg;
28791 return f != getloadavg;
28796 rm -f conftest.
$ac_objext conftest
$ac_exeext
28797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28798 (eval $ac_link) 2>&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try
='test -s conftest$ac_exeext'
28803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804 (eval $ac_try) 2>&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; }; then
28808 ac_cv_func_getloadavg
=yes
28810 echo "$as_me: failed program was:" >&5
28811 sed 's/^/| /' conftest.
$ac_ext >&5
28813 ac_cv_func_getloadavg
=no
28815 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28817 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
28818 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
28819 if test $ac_cv_func_getloadavg = yes; then
28824 ) && ac_have_func
=yes
28826 # On HPUX9, an unprivileged user can get load averages through this function.
28828 for ac_func
in pstat_getdynamic
28830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28831 echo "$as_me:$LINENO: checking for $ac_func" >&5
28832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28833 if eval "test \"\${$as_ac_var+set}\" = set"; then
28834 echo $ECHO_N "(cached) $ECHO_C" >&6
28836 cat >conftest.
$ac_ext <<_ACEOF
28837 #line $LINENO "configure"
28840 cat confdefs.h
>>conftest.
$ac_ext
28841 cat >>conftest.
$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 /* System header to define __stub macros and hopefully few prototypes,
28844 which can conflict with char $ac_func (); below.
28845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28846 <limits.h> exists even on freestanding compilers. */
28848 # include <limits.h>
28850 # include <assert.h>
28852 /* Override any gcc2 internal prototype to avoid an error. */
28857 /* We use char because int might match the return type of a gcc2
28858 builtin and then its argument prototype would still apply. */
28860 /* The GNU C library defines this for functions which it implements
28861 to always fail with ENOSYS. Some functions are actually named
28862 something starting with __ and the normal name is an alias. */
28863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28866 char (*f) () = $ac_func;
28875 return f != $ac_func;
28880 rm -f conftest.
$ac_objext conftest
$ac_exeext
28881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28882 (eval $ac_link) 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
28886 { ac_try
='test -s conftest$ac_exeext'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 eval "$as_ac_var=yes"
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.
$ac_ext >&5
28897 eval "$as_ac_var=no"
28899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28903 if test `eval echo '${'$as_ac_var'}'` = yes; then
28904 cat >>confdefs.h
<<_ACEOF
28905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28912 # Solaris has libkstat which does not require root.
28914 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28915 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
28916 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_check_lib_save_LIBS
=$LIBS
28920 LIBS
="-lkstat $LIBS"
28921 cat >conftest.
$ac_ext <<_ACEOF
28922 #line $LINENO "configure"
28925 cat confdefs.h
>>conftest.
$ac_ext
28926 cat >>conftest.
$ac_ext <<_ACEOF
28927 /* end confdefs.h. */
28929 /* Override any gcc2 internal prototype to avoid an error. */
28933 /* We use char because int might match the return type of a gcc2
28934 builtin and then its argument prototype would still apply. */
28935 char kstat_open ();
28944 rm -f conftest.
$ac_objext conftest
$ac_exeext
28945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28946 (eval $ac_link) 2>&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } &&
28950 { ac_try
='test -s conftest$ac_exeext'
28951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28952 (eval $ac_try) 2>&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
28956 ac_cv_lib_kstat_kstat_open
=yes
28958 echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.
$ac_ext >&5
28961 ac_cv_lib_kstat_kstat_open
=no
28963 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28964 LIBS
=$ac_check_lib_save_LIBS
28966 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28967 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
28968 if test $ac_cv_lib_kstat_kstat_open = yes; then
28969 cat >>confdefs.h
<<_ACEOF
28970 #define HAVE_LIBKSTAT 1
28973 LIBS
="-lkstat $LIBS"
28977 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
28979 # Some systems with -lutil have (and need) -lkvm as well, some do not.
28980 # On Solaris, -lkvm requires nlist from -lelf, so check that first
28981 # to get the right answer into the cache.
28982 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
28983 if test $ac_have_func = no
; then
28984 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
28985 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
28986 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 ac_check_lib_save_LIBS
=$LIBS
28991 cat >conftest.
$ac_ext <<_ACEOF
28992 #line $LINENO "configure"
28995 cat confdefs.h
>>conftest.
$ac_ext
28996 cat >>conftest.
$ac_ext <<_ACEOF
28997 /* end confdefs.h. */
28999 /* Override any gcc2 internal prototype to avoid an error. */
29003 /* We use char because int might match the return type of a gcc2
29004 builtin and then its argument prototype would still apply. */
29014 rm -f conftest.
$ac_objext conftest
$ac_exeext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29016 (eval $ac_link) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try
='test -s conftest$ac_exeext'
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_lib_elf_elf_begin
=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.
$ac_ext >&5
29031 ac_cv_lib_elf_elf_begin
=no
29033 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29034 LIBS
=$ac_check_lib_save_LIBS
29036 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
29037 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
29038 if test $ac_cv_lib_elf_elf_begin = yes; then
29043 if test $ac_have_func = no
; then
29044 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
29045 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
29046 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29049 ac_check_lib_save_LIBS
=$LIBS
29051 cat >conftest.
$ac_ext <<_ACEOF
29052 #line $LINENO "configure"
29055 cat confdefs.h
>>conftest.
$ac_ext
29056 cat >>conftest.
$ac_ext <<_ACEOF
29057 /* end confdefs.h. */
29059 /* Override any gcc2 internal prototype to avoid an error. */
29063 /* We use char because int might match the return type of a gcc2
29064 builtin and then its argument prototype would still apply. */
29074 rm -f conftest.
$ac_objext conftest
$ac_exeext
29075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29076 (eval $ac_link) 2>&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } &&
29080 { ac_try
='test -s conftest$ac_exeext'
29081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082 (eval $ac_try) 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; }; then
29086 ac_cv_lib_kvm_kvm_open
=yes
29088 echo "$as_me: failed program was:" >&5
29089 sed 's/^/| /' conftest.
$ac_ext >&5
29091 ac_cv_lib_kvm_kvm_open
=no
29093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29094 LIBS
=$ac_check_lib_save_LIBS
29096 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
29097 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
29098 if test $ac_cv_lib_kvm_kvm_open = yes; then
29102 # Check for the 4.4BSD definition of getloadavg.
29103 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
29104 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
29105 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 ac_check_lib_save_LIBS
=$LIBS
29109 LIBS
="-lutil $LIBS"
29110 cat >conftest.
$ac_ext <<_ACEOF
29111 #line $LINENO "configure"
29114 cat confdefs.h
>>conftest.
$ac_ext
29115 cat >>conftest.
$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29118 /* Override any gcc2 internal prototype to avoid an error. */
29122 /* We use char because int might match the return type of a gcc2
29123 builtin and then its argument prototype would still apply. */
29124 char getloadavg ();
29133 rm -f conftest.
$ac_objext conftest
$ac_exeext
29134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29135 (eval $ac_link) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); } &&
29139 { ac_try
='test -s conftest$ac_exeext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29145 ac_cv_lib_util_getloadavg
=yes
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.
$ac_ext >&5
29150 ac_cv_lib_util_getloadavg
=no
29152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29153 LIBS
=$ac_check_lib_save_LIBS
29155 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
29156 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
29157 if test $ac_cv_lib_util_getloadavg = yes; then
29158 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
29163 if test $ac_have_func = no
; then
29164 # There is a commonly available library for RS/6000 AIX.
29165 # Since it is not a standard part of AIX, it might be installed locally.
29166 ac_getloadavg_LIBS
=$LIBS
29167 LIBS
="-L/usr/local/lib $LIBS"
29168 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
29169 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
29170 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29173 ac_check_lib_save_LIBS
=$LIBS
29174 LIBS
="-lgetloadavg $LIBS"
29175 cat >conftest.
$ac_ext <<_ACEOF
29176 #line $LINENO "configure"
29179 cat confdefs.h
>>conftest.
$ac_ext
29180 cat >>conftest.
$ac_ext <<_ACEOF
29181 /* end confdefs.h. */
29183 /* Override any gcc2 internal prototype to avoid an error. */
29187 /* We use char because int might match the return type of a gcc2
29188 builtin and then its argument prototype would still apply. */
29189 char getloadavg ();
29198 rm -f conftest.
$ac_objext conftest
$ac_exeext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29200 (eval $ac_link) 2>&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
29204 { ac_try
='test -s conftest$ac_exeext'
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210 ac_cv_lib_getloadavg_getloadavg
=yes
29212 echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.
$ac_ext >&5
29215 ac_cv_lib_getloadavg_getloadavg
=no
29217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29218 LIBS
=$ac_check_lib_save_LIBS
29220 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
29221 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
29222 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
29223 LIBS
="-lgetloadavg $LIBS"
29225 LIBS
=$ac_getloadavg_LIBS
29230 # Make sure it is really in the library, if we think we found it,
29231 # otherwise set up the replacement function.
29233 for ac_func
in getloadavg
29235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29236 echo "$as_me:$LINENO: checking for $ac_func" >&5
29237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29238 if eval "test \"\${$as_ac_var+set}\" = set"; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29241 cat >conftest.
$ac_ext <<_ACEOF
29242 #line $LINENO "configure"
29245 cat confdefs.h
>>conftest.
$ac_ext
29246 cat >>conftest.
$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 /* System header to define __stub macros and hopefully few prototypes,
29249 which can conflict with char $ac_func (); below.
29250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29251 <limits.h> exists even on freestanding compilers. */
29253 # include <limits.h>
29255 # include <assert.h>
29257 /* Override any gcc2 internal prototype to avoid an error. */
29262 /* We use char because int might match the return type of a gcc2
29263 builtin and then its argument prototype would still apply. */
29265 /* The GNU C library defines this for functions which it implements
29266 to always fail with ENOSYS. Some functions are actually named
29267 something starting with __ and the normal name is an alias. */
29268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29271 char (*f) () = $ac_func;
29280 return f != $ac_func;
29285 rm -f conftest.
$ac_objext conftest
$ac_exeext
29286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29287 (eval $ac_link) 2>&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
29291 { ac_try
='test -s conftest$ac_exeext'
29292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293 (eval $ac_try) 2>&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); }; }; then
29297 eval "$as_ac_var=yes"
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.
$ac_ext >&5
29302 eval "$as_ac_var=no"
29304 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29308 if test `eval echo '${'$as_ac_var'}'` = yes; then
29309 cat >>confdefs.h
<<_ACEOF
29310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29314 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
29316 cat >>confdefs.h
<<\_ACEOF
29317 #define C_GETLOADAVG 1
29320 # Figure out what our getloadavg.c needs.
29322 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29323 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
29324 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
29325 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29326 echo $ECHO_N "(cached) $ECHO_C" >&6
29328 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
29329 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
29331 # Is the header compilable?
29332 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
29333 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
29334 cat >conftest.
$ac_ext <<_ACEOF
29335 #line $LINENO "configure"
29338 cat confdefs.h
>>conftest.
$ac_ext
29339 cat >>conftest.
$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29341 $ac_includes_default
29342 #include <sys/dg_sys_info.h>
29344 rm -f conftest.
$ac_objext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29346 (eval $ac_compile) 2>&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try
='test -s conftest.$ac_objext'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 ac_header_compiler
=yes
29358 echo "$as_me: failed program was:" >&5
29359 sed 's/^/| /' conftest.
$ac_ext >&5
29361 ac_header_compiler
=no
29363 rm -f conftest.
$ac_objext conftest.
$ac_ext
29364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29365 echo "${ECHO_T}$ac_header_compiler" >&6
29367 # Is the header present?
29368 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
29369 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
29370 cat >conftest.
$ac_ext <<_ACEOF
29371 #line $LINENO "configure"
29374 cat confdefs.h
>>conftest.
$ac_ext
29375 cat >>conftest.
$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 #include <sys/dg_sys_info.h>
29379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29380 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29382 grep -v '^ *+' conftest.er1
>conftest.err
29384 cat conftest.err
>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } >/dev
/null
; then
29387 if test -s conftest.err
; then
29388 ac_cpp_err
=$ac_c_preproc_warn_flag
29395 if test -z "$ac_cpp_err"; then
29396 ac_header_preproc
=yes
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.
$ac_ext >&5
29401 ac_header_preproc
=no
29403 rm -f conftest.err conftest.
$ac_ext
29404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29405 echo "${ECHO_T}$ac_header_preproc" >&6
29407 # So? What about this header?
29408 case $ac_header_compiler:$ac_header_preproc in
29410 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
29411 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
29413 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
29416 ## ------------------------------------ ##
29417 ## Report this to bug-autoconf@gnu.org. ##
29418 ## ------------------------------------ ##
29421 sed "s/^/$as_me: WARNING: /" >&2
29424 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
29425 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
29426 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
29427 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
29429 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
29432 ## ------------------------------------ ##
29433 ## Report this to bug-autoconf@gnu.org. ##
29434 ## ------------------------------------ ##
29437 sed "s/^/$as_me: WARNING: /" >&2
29440 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
29441 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
29442 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29445 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
29447 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
29448 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
29451 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
29454 cat >>confdefs.h
<<\_ACEOF
29459 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
29460 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
29461 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29464 ac_check_lib_save_LIBS
=$LIBS
29466 cat >conftest.
$ac_ext <<_ACEOF
29467 #line $LINENO "configure"
29470 cat confdefs.h
>>conftest.
$ac_ext
29471 cat >>conftest.
$ac_ext <<_ACEOF
29472 /* end confdefs.h. */
29474 /* Override any gcc2 internal prototype to avoid an error. */
29478 /* We use char because int might match the return type of a gcc2
29479 builtin and then its argument prototype would still apply. */
29480 char dg_sys_info ();
29489 rm -f conftest.
$ac_objext conftest
$ac_exeext
29490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29491 (eval $ac_link) 2>&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
29495 { ac_try
='test -s conftest$ac_exeext'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_lib_dgc_dg_sys_info
=yes
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.
$ac_ext >&5
29506 ac_cv_lib_dgc_dg_sys_info
=no
29508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29509 LIBS
=$ac_check_lib_save_LIBS
29511 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
29512 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
29513 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
29514 cat >>confdefs.h
<<_ACEOF
29515 #define HAVE_LIBDGC 1
29526 if test "${ac_cv_header_locale_h+set}" = set; then
29527 echo "$as_me:$LINENO: checking for locale.h" >&5
29528 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
29529 if test "${ac_cv_header_locale_h+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29532 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
29533 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
29535 # Is the header compilable?
29536 echo "$as_me:$LINENO: checking locale.h usability" >&5
29537 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
29538 cat >conftest.
$ac_ext <<_ACEOF
29539 #line $LINENO "configure"
29542 cat confdefs.h
>>conftest.
$ac_ext
29543 cat >>conftest.
$ac_ext <<_ACEOF
29544 /* end confdefs.h. */
29545 $ac_includes_default
29546 #include <locale.h>
29548 rm -f conftest.
$ac_objext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29550 (eval $ac_compile) 2>&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try
='test -s conftest.$ac_objext'
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; }; then
29560 ac_header_compiler
=yes
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.
$ac_ext >&5
29565 ac_header_compiler
=no
29567 rm -f conftest.
$ac_objext conftest.
$ac_ext
29568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29569 echo "${ECHO_T}$ac_header_compiler" >&6
29571 # Is the header present?
29572 echo "$as_me:$LINENO: checking locale.h presence" >&5
29573 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
29574 cat >conftest.
$ac_ext <<_ACEOF
29575 #line $LINENO "configure"
29578 cat confdefs.h
>>conftest.
$ac_ext
29579 cat >>conftest.
$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <locale.h>
29583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29586 grep -v '^ *+' conftest.er1
>conftest.err
29588 cat conftest.err
>&5
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); } >/dev
/null
; then
29591 if test -s conftest.err
; then
29592 ac_cpp_err
=$ac_c_preproc_warn_flag
29599 if test -z "$ac_cpp_err"; then
29600 ac_header_preproc
=yes
29602 echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.
$ac_ext >&5
29605 ac_header_preproc
=no
29607 rm -f conftest.err conftest.
$ac_ext
29608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29609 echo "${ECHO_T}$ac_header_preproc" >&6
29611 # So? What about this header?
29612 case $ac_header_compiler:$ac_header_preproc in
29614 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
29615 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
29617 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
29620 ## ------------------------------------ ##
29621 ## Report this to bug-autoconf@gnu.org. ##
29622 ## ------------------------------------ ##
29625 sed "s/^/$as_me: WARNING: /" >&2
29628 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
29629 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
29631 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
29633 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
29636 ## ------------------------------------ ##
29637 ## Report this to bug-autoconf@gnu.org. ##
29638 ## ------------------------------------ ##
29641 sed "s/^/$as_me: WARNING: /" >&2
29644 echo "$as_me:$LINENO: checking for locale.h" >&5
29645 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
29646 if test "${ac_cv_header_locale_h+set}" = set; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 ac_cv_header_locale_h
=$ac_header_preproc
29651 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
29652 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
29658 for ac_func
in setlocale
29660 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29661 echo "$as_me:$LINENO: checking for $ac_func" >&5
29662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29663 if eval "test \"\${$as_ac_var+set}\" = set"; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29666 cat >conftest.
$ac_ext <<_ACEOF
29667 #line $LINENO "configure"
29670 cat confdefs.h
>>conftest.
$ac_ext
29671 cat >>conftest.
$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 /* System header to define __stub macros and hopefully few prototypes,
29674 which can conflict with char $ac_func (); below.
29675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29676 <limits.h> exists even on freestanding compilers. */
29678 # include <limits.h>
29680 # include <assert.h>
29682 /* Override any gcc2 internal prototype to avoid an error. */
29687 /* We use char because int might match the return type of a gcc2
29688 builtin and then its argument prototype would still apply. */
29690 /* The GNU C library defines this for functions which it implements
29691 to always fail with ENOSYS. Some functions are actually named
29692 something starting with __ and the normal name is an alias. */
29693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29696 char (*f) () = $ac_func;
29705 return f != $ac_func;
29710 rm -f conftest.
$ac_objext conftest
$ac_exeext
29711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29712 (eval $ac_link) 2>&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } &&
29716 { ac_try
='test -s conftest$ac_exeext'
29717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29718 (eval $ac_try) 2>&5
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); }; }; then
29722 eval "$as_ac_var=yes"
29724 echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.
$ac_ext >&5
29727 eval "$as_ac_var=no"
29729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29733 if test `eval echo '${'$as_ac_var'}'` = yes; then
29734 cat >>confdefs.h
<<_ACEOF
29735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29742 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
29743 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
29744 # Irix 4.0.5F has the header but not the library.
29745 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
29748 cat >>confdefs.h
<<\_ACEOF
29754 if test $ac_have_func = no
; then
29755 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29756 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
29757 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
29758 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29759 echo $ECHO_N "(cached) $ECHO_C" >&6
29761 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
29762 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
29764 # Is the header compilable?
29765 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
29766 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
29767 cat >conftest.
$ac_ext <<_ACEOF
29768 #line $LINENO "configure"
29771 cat confdefs.h
>>conftest.
$ac_ext
29772 cat >>conftest.
$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29774 $ac_includes_default
29775 #include <inq_stats/cpustats.h>
29777 rm -f conftest.
$ac_objext
29778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29779 (eval $ac_compile) 2>&5
29781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782 (exit $ac_status); } &&
29783 { ac_try
='test -s conftest.$ac_objext'
29784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785 (eval $ac_try) 2>&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); }; }; then
29789 ac_header_compiler
=yes
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.
$ac_ext >&5
29794 ac_header_compiler
=no
29796 rm -f conftest.
$ac_objext conftest.
$ac_ext
29797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29798 echo "${ECHO_T}$ac_header_compiler" >&6
29800 # Is the header present?
29801 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
29802 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
29803 cat >conftest.
$ac_ext <<_ACEOF
29804 #line $LINENO "configure"
29807 cat confdefs.h
>>conftest.
$ac_ext
29808 cat >>conftest.
$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 #include <inq_stats/cpustats.h>
29812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29815 grep -v '^ *+' conftest.er1
>conftest.err
29817 cat conftest.err
>&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } >/dev
/null
; then
29820 if test -s conftest.err
; then
29821 ac_cpp_err
=$ac_c_preproc_warn_flag
29828 if test -z "$ac_cpp_err"; then
29829 ac_header_preproc
=yes
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.
$ac_ext >&5
29834 ac_header_preproc
=no
29836 rm -f conftest.err conftest.
$ac_ext
29837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29838 echo "${ECHO_T}$ac_header_preproc" >&6
29840 # So? What about this header?
29841 case $ac_header_compiler:$ac_header_preproc in
29843 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
29844 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29845 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
29846 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
29849 ## ------------------------------------ ##
29850 ## Report this to bug-autoconf@gnu.org. ##
29851 ## ------------------------------------ ##
29854 sed "s/^/$as_me: WARNING: /" >&2
29857 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
29858 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
29860 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
29862 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
29865 ## ------------------------------------ ##
29866 ## Report this to bug-autoconf@gnu.org. ##
29867 ## ------------------------------------ ##
29870 sed "s/^/$as_me: WARNING: /" >&2
29873 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
29874 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
29875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
29876 echo $ECHO_N "(cached) $ECHO_C" >&6
29878 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
29880 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
29881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
29884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
29887 cat >>confdefs.h
<<\_ACEOF
29892 cat >>confdefs.h
<<\_ACEOF
29901 if test $ac_have_func = no
; then
29902 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
29903 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
29904 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
29905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
29906 echo $ECHO_N "(cached) $ECHO_C" >&6
29908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
29909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
29911 # Is the header compilable?
29912 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
29913 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
29914 cat >conftest.
$ac_ext <<_ACEOF
29915 #line $LINENO "configure"
29918 cat confdefs.h
>>conftest.
$ac_ext
29919 cat >>conftest.
$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29921 $ac_includes_default
29922 #include <sys/cpustats.h>
29924 rm -f conftest.
$ac_objext
29925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29926 (eval $ac_compile) 2>&5
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } &&
29930 { ac_try
='test -s conftest.$ac_objext'
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
29936 ac_header_compiler
=yes
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.
$ac_ext >&5
29941 ac_header_compiler
=no
29943 rm -f conftest.
$ac_objext conftest.
$ac_ext
29944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29945 echo "${ECHO_T}$ac_header_compiler" >&6
29947 # Is the header present?
29948 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
29949 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
29950 cat >conftest.
$ac_ext <<_ACEOF
29951 #line $LINENO "configure"
29954 cat confdefs.h
>>conftest.
$ac_ext
29955 cat >>conftest.
$ac_ext <<_ACEOF
29956 /* end confdefs.h. */
29957 #include <sys/cpustats.h>
29959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29962 grep -v '^ *+' conftest.er1
>conftest.err
29964 cat conftest.err
>&5
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } >/dev
/null
; then
29967 if test -s conftest.err
; then
29968 ac_cpp_err
=$ac_c_preproc_warn_flag
29975 if test -z "$ac_cpp_err"; then
29976 ac_header_preproc
=yes
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.
$ac_ext >&5
29981 ac_header_preproc
=no
29983 rm -f conftest.err conftest.
$ac_ext
29984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29985 echo "${ECHO_T}$ac_header_preproc" >&6
29987 # So? What about this header?
29988 case $ac_header_compiler:$ac_header_preproc in
29990 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
29991 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29992 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
29993 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
29996 ## ------------------------------------ ##
29997 ## Report this to bug-autoconf@gnu.org. ##
29998 ## ------------------------------------ ##
30001 sed "s/^/$as_me: WARNING: /" >&2
30004 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
30005 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
30006 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
30007 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
30008 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
30009 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
30012 ## ------------------------------------ ##
30013 ## Report this to bug-autoconf@gnu.org. ##
30014 ## ------------------------------------ ##
30017 sed "s/^/$as_me: WARNING: /" >&2
30020 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
30021 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
30022 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
30023 echo $ECHO_N "(cached) $ECHO_C" >&6
30025 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
30027 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
30028 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
30031 if test $ac_cv_header_sys_cpustats_h = yes; then
30032 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
30041 if test $ac_have_func = no
; then
30043 for ac_header
in mach
/mach.h
30045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30047 echo "$as_me:$LINENO: checking for $ac_header" >&5
30048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30055 # Is the header compilable?
30056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30058 cat >conftest.
$ac_ext <<_ACEOF
30059 #line $LINENO "configure"
30062 cat confdefs.h
>>conftest.
$ac_ext
30063 cat >>conftest.
$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30065 $ac_includes_default
30066 #include <$ac_header>
30068 rm -f conftest.
$ac_objext
30069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30070 (eval $ac_compile) 2>&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
30074 { ac_try
='test -s conftest.$ac_objext'
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; }; then
30080 ac_header_compiler
=yes
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.
$ac_ext >&5
30085 ac_header_compiler
=no
30087 rm -f conftest.
$ac_objext conftest.
$ac_ext
30088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30089 echo "${ECHO_T}$ac_header_compiler" >&6
30091 # Is the header present?
30092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30094 cat >conftest.
$ac_ext <<_ACEOF
30095 #line $LINENO "configure"
30098 cat confdefs.h
>>conftest.
$ac_ext
30099 cat >>conftest.
$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30101 #include <$ac_header>
30103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
30106 grep -v '^ *+' conftest.er1
>conftest.err
30108 cat conftest.err
>&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } >/dev
/null
; then
30111 if test -s conftest.err
; then
30112 ac_cpp_err
=$ac_c_preproc_warn_flag
30119 if test -z "$ac_cpp_err"; then
30120 ac_header_preproc
=yes
30122 echo "$as_me: failed program was:" >&5
30123 sed 's/^/| /' conftest.
$ac_ext >&5
30125 ac_header_preproc
=no
30127 rm -f conftest.err conftest.
$ac_ext
30128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30129 echo "${ECHO_T}$ac_header_preproc" >&6
30131 # So? What about this header?
30132 case $ac_header_compiler:$ac_header_preproc in
30134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30140 ## ------------------------------------ ##
30141 ## Report this to bug-autoconf@gnu.org. ##
30142 ## ------------------------------------ ##
30145 sed "s/^/$as_me: WARNING: /" >&2
30148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30156 ## ------------------------------------ ##
30157 ## Report this to bug-autoconf@gnu.org. ##
30158 ## ------------------------------------ ##
30161 sed "s/^/$as_me: WARNING: /" >&2
30164 echo "$as_me:$LINENO: checking for $ac_header" >&5
30165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30169 eval "$as_ac_Header=$ac_header_preproc"
30171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30176 cat >>confdefs.h
<<_ACEOF
30177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30187 for ac_header
in nlist.h
30189 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30191 echo "$as_me:$LINENO: checking for $ac_header" >&5
30192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30199 # Is the header compilable?
30200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30202 cat >conftest.
$ac_ext <<_ACEOF
30203 #line $LINENO "configure"
30206 cat confdefs.h
>>conftest.
$ac_ext
30207 cat >>conftest.
$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 $ac_includes_default
30210 #include <$ac_header>
30212 rm -f conftest.
$ac_objext
30213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30214 (eval $ac_compile) 2>&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
30218 { ac_try
='test -s conftest.$ac_objext'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 ac_header_compiler
=yes
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.
$ac_ext >&5
30229 ac_header_compiler
=no
30231 rm -f conftest.
$ac_objext conftest.
$ac_ext
30232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6
30235 # Is the header present?
30236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30238 cat >conftest.
$ac_ext <<_ACEOF
30239 #line $LINENO "configure"
30242 cat confdefs.h
>>conftest.
$ac_ext
30243 cat >>conftest.
$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <$ac_header>
30247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
30250 grep -v '^ *+' conftest.er1
>conftest.err
30252 cat conftest.err
>&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } >/dev
/null
; then
30255 if test -s conftest.err
; then
30256 ac_cpp_err
=$ac_c_preproc_warn_flag
30263 if test -z "$ac_cpp_err"; then
30264 ac_header_preproc
=yes
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.
$ac_ext >&5
30269 ac_header_preproc
=no
30271 rm -f conftest.err conftest.
$ac_ext
30272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc in
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30284 ## ------------------------------------ ##
30285 ## Report this to bug-autoconf@gnu.org. ##
30286 ## ------------------------------------ ##
30289 sed "s/^/$as_me: WARNING: /" >&2
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30300 ## ------------------------------------ ##
30301 ## Report this to bug-autoconf@gnu.org. ##
30302 ## ------------------------------------ ##
30305 sed "s/^/$as_me: WARNING: /" >&2
30308 echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30313 eval "$as_ac_Header=$ac_header_preproc"
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30320 cat >>confdefs.h
<<_ACEOF
30321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30323 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
30324 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
30325 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
30326 echo $ECHO_N "(cached) $ECHO_C" >&6
30328 cat >conftest.
$ac_ext <<_ACEOF
30329 #line $LINENO "configure"
30332 cat confdefs.h
>>conftest.
$ac_ext
30333 cat >>conftest.
$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30340 static struct nlist ac_aggr;
30341 if (ac_aggr.n_un.n_name)
30347 rm -f conftest.
$ac_objext
30348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30349 (eval $ac_compile) 2>&5
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); } &&
30353 { ac_try
='test -s conftest.$ac_objext'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 ac_cv_member_struct_nlist_n_un_n_name
=yes
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.
$ac_ext >&5
30364 cat >conftest.
$ac_ext <<_ACEOF
30365 #line $LINENO "configure"
30368 cat confdefs.h
>>conftest.
$ac_ext
30369 cat >>conftest.
$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30376 static struct nlist ac_aggr;
30377 if (sizeof ac_aggr.n_un.n_name)
30383 rm -f conftest.
$ac_objext
30384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30385 (eval $ac_compile) 2>&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } &&
30389 { ac_try
='test -s conftest.$ac_objext'
30390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30391 (eval $ac_try) 2>&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 ac_cv_member_struct_nlist_n_un_n_name
=yes
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.
$ac_ext >&5
30400 ac_cv_member_struct_nlist_n_un_n_name
=no
30402 rm -f conftest.
$ac_objext conftest.
$ac_ext
30404 rm -f conftest.
$ac_objext conftest.
$ac_ext
30406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
30407 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
30408 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
30410 cat >>confdefs.h
<<_ACEOF
30411 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
30415 cat >>confdefs.h
<<\_ACEOF
30416 #define NLIST_NAME_UNION 1
30430 # Some definitions of getloadavg require that the program be installed setgid.
30431 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
30432 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
30433 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30436 cat >conftest.
$ac_ext <<_ACEOF
30437 #line $LINENO "configure"
30440 cat confdefs.h
>>conftest.
$ac_ext
30441 cat >>conftest.
$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30443 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
30444 #ifdef LDAV_PRIVILEGED
30445 Yowza Am I SETGID yet
30448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30449 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
30450 ac_cv_func_getloadavg_setgid
=yes
30452 ac_cv_func_getloadavg_setgid
=no
30457 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
30458 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
30459 if test $ac_cv_func_getloadavg_setgid = yes; then
30462 cat >>confdefs.h
<<\_ACEOF
30463 #define GETLOADAVG_PRIVILEGED 1
30470 if test $ac_cv_func_getloadavg_setgid = yes; then
30471 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
30472 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
30473 if test "${ac_cv_group_kmem+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
30477 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
30478 # If we got an error (system does not support symlinks), try without -L.
30479 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
30480 ac_cv_group_kmem
=`echo $ac_ls_output \
30481 | sed -ne 's/[ ][ ]*/ /g;
30482 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
30486 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
30487 echo "${ECHO_T}$ac_cv_group_kmem" >&6
30488 KMEM_GROUP
=$ac_cv_group_kmem
30490 if test "x$ac_save_LIBS" = x
; then
30491 GETLOADAVG_LIBS
=$LIBS
30493 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
30505 for ac_func
in strcasecmp strncasecmp
30507 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30508 echo "$as_me:$LINENO: checking for $ac_func" >&5
30509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30510 if eval "test \"\${$as_ac_var+set}\" = set"; then
30511 echo $ECHO_N "(cached) $ECHO_C" >&6
30513 cat >conftest.
$ac_ext <<_ACEOF
30514 #line $LINENO "configure"
30517 cat confdefs.h
>>conftest.
$ac_ext
30518 cat >>conftest.
$ac_ext <<_ACEOF
30519 /* end confdefs.h. */
30520 /* System header to define __stub macros and hopefully few prototypes,
30521 which can conflict with char $ac_func (); below.
30522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30523 <limits.h> exists even on freestanding compilers. */
30525 # include <limits.h>
30527 # include <assert.h>
30529 /* Override any gcc2 internal prototype to avoid an error. */
30534 /* We use char because int might match the return type of a gcc2
30535 builtin and then its argument prototype would still apply. */
30537 /* The GNU C library defines this for functions which it implements
30538 to always fail with ENOSYS. Some functions are actually named
30539 something starting with __ and the normal name is an alias. */
30540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30543 char (*f) () = $ac_func;
30552 return f != $ac_func;
30557 rm -f conftest.
$ac_objext conftest
$ac_exeext
30558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30559 (eval $ac_link) 2>&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
30563 { ac_try
='test -s conftest$ac_exeext'
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; }; then
30569 eval "$as_ac_var=yes"
30571 echo "$as_me: failed program was:" >&5
30572 sed 's/^/| /' conftest.
$ac_ext >&5
30574 eval "$as_ac_var=no"
30576 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30580 if test `eval echo '${'$as_ac_var'}'` = yes; then
30581 cat >>confdefs.h
<<_ACEOF
30582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30592 for ac_func
in dup2
30594 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30595 echo "$as_me:$LINENO: checking for $ac_func" >&5
30596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30597 if eval "test \"\${$as_ac_var+set}\" = set"; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 cat >conftest.
$ac_ext <<_ACEOF
30601 #line $LINENO "configure"
30604 cat confdefs.h
>>conftest.
$ac_ext
30605 cat >>conftest.
$ac_ext <<_ACEOF
30606 /* end confdefs.h. */
30607 /* System header to define __stub macros and hopefully few prototypes,
30608 which can conflict with char $ac_func (); below.
30609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30610 <limits.h> exists even on freestanding compilers. */
30612 # include <limits.h>
30614 # include <assert.h>
30616 /* Override any gcc2 internal prototype to avoid an error. */
30621 /* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30624 /* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30630 char (*f) () = $ac_func;
30639 return f != $ac_func;
30644 rm -f conftest.
$ac_objext conftest
$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646 (eval $ac_link) 2>&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); } &&
30650 { ac_try
='test -s conftest$ac_exeext'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; }; then
30656 eval "$as_ac_var=yes"
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.
$ac_ext >&5
30661 eval "$as_ac_var=no"
30663 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30667 if test `eval echo '${'$as_ac_var'}'` = yes; then
30668 cat >>confdefs.h
<<_ACEOF
30669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30673 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30680 for ac_func
in gethostname getusershell
30682 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30683 echo "$as_me:$LINENO: checking for $ac_func" >&5
30684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30685 if eval "test \"\${$as_ac_var+set}\" = set"; then
30686 echo $ECHO_N "(cached) $ECHO_C" >&6
30688 cat >conftest.
$ac_ext <<_ACEOF
30689 #line $LINENO "configure"
30692 cat confdefs.h
>>conftest.
$ac_ext
30693 cat >>conftest.
$ac_ext <<_ACEOF
30694 /* end confdefs.h. */
30695 /* System header to define __stub macros and hopefully few prototypes,
30696 which can conflict with char $ac_func (); below.
30697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30698 <limits.h> exists even on freestanding compilers. */
30700 # include <limits.h>
30702 # include <assert.h>
30704 /* Override any gcc2 internal prototype to avoid an error. */
30709 /* We use char because int might match the return type of a gcc2
30710 builtin and then its argument prototype would still apply. */
30712 /* The GNU C library defines this for functions which it implements
30713 to always fail with ENOSYS. Some functions are actually named
30714 something starting with __ and the normal name is an alias. */
30715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30718 char (*f) () = $ac_func;
30727 return f != $ac_func;
30732 rm -f conftest.
$ac_objext conftest
$ac_exeext
30733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30734 (eval $ac_link) 2>&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try
='test -s conftest$ac_exeext'
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 eval "$as_ac_var=yes"
30746 echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.
$ac_ext >&5
30749 eval "$as_ac_var=no"
30751 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30755 if test `eval echo '${'$as_ac_var'}'` = yes; then
30756 cat >>confdefs.h
<<_ACEOF
30757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30761 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30767 for ac_func
in sig2str
30769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30770 echo "$as_me:$LINENO: checking for $ac_func" >&5
30771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30772 if eval "test \"\${$as_ac_var+set}\" = set"; then
30773 echo $ECHO_N "(cached) $ECHO_C" >&6
30775 cat >conftest.
$ac_ext <<_ACEOF
30776 #line $LINENO "configure"
30779 cat confdefs.h
>>conftest.
$ac_ext
30780 cat >>conftest.
$ac_ext <<_ACEOF
30781 /* end confdefs.h. */
30782 /* System header to define __stub macros and hopefully few prototypes,
30783 which can conflict with char $ac_func (); below.
30784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30785 <limits.h> exists even on freestanding compilers. */
30787 # include <limits.h>
30789 # include <assert.h>
30791 /* Override any gcc2 internal prototype to avoid an error. */
30796 /* We use char because int might match the return type of a gcc2
30797 builtin and then its argument prototype would still apply. */
30799 /* The GNU C library defines this for functions which it implements
30800 to always fail with ENOSYS. Some functions are actually named
30801 something starting with __ and the normal name is an alias. */
30802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30805 char (*f) () = $ac_func;
30814 return f != $ac_func;
30819 rm -f conftest.
$ac_objext conftest
$ac_exeext
30820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30821 (eval $ac_link) 2>&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try
='test -s conftest$ac_exeext'
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831 eval "$as_ac_var=yes"
30833 echo "$as_me: failed program was:" >&5
30834 sed 's/^/| /' conftest.
$ac_ext >&5
30836 eval "$as_ac_var=no"
30838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30842 if test `eval echo '${'$as_ac_var'}'` = yes; then
30843 cat >>confdefs.h
<<_ACEOF
30844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30848 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30858 for ac_func
in strcspn stpcpy strstr strtol strtoul
30860 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30861 echo "$as_me:$LINENO: checking for $ac_func" >&5
30862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30863 if eval "test \"\${$as_ac_var+set}\" = set"; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 cat >conftest.
$ac_ext <<_ACEOF
30867 #line $LINENO "configure"
30870 cat confdefs.h
>>conftest.
$ac_ext
30871 cat >>conftest.
$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 /* System header to define __stub macros and hopefully few prototypes,
30874 which can conflict with char $ac_func (); below.
30875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30876 <limits.h> exists even on freestanding compilers. */
30878 # include <limits.h>
30880 # include <assert.h>
30882 /* Override any gcc2 internal prototype to avoid an error. */
30887 /* We use char because int might match the return type of a gcc2
30888 builtin and then its argument prototype would still apply. */
30890 /* The GNU C library defines this for functions which it implements
30891 to always fail with ENOSYS. Some functions are actually named
30892 something starting with __ and the normal name is an alias. */
30893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30896 char (*f) () = $ac_func;
30905 return f != $ac_func;
30910 rm -f conftest.
$ac_objext conftest
$ac_exeext
30911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30912 (eval $ac_link) 2>&5
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); } &&
30916 { ac_try
='test -s conftest$ac_exeext'
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; }; then
30922 eval "$as_ac_var=yes"
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.
$ac_ext >&5
30927 eval "$as_ac_var=no"
30929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30933 if test `eval echo '${'$as_ac_var'}'` = yes; then
30934 cat >>confdefs.h
<<_ACEOF
30935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30939 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30945 for ac_func
in strpbrk
30947 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30948 echo "$as_me:$LINENO: checking for $ac_func" >&5
30949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30950 if eval "test \"\${$as_ac_var+set}\" = set"; then
30951 echo $ECHO_N "(cached) $ECHO_C" >&6
30953 cat >conftest.
$ac_ext <<_ACEOF
30954 #line $LINENO "configure"
30957 cat confdefs.h
>>conftest.
$ac_ext
30958 cat >>conftest.
$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 /* System header to define __stub macros and hopefully few prototypes,
30961 which can conflict with char $ac_func (); below.
30962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30963 <limits.h> exists even on freestanding compilers. */
30965 # include <limits.h>
30967 # include <assert.h>
30969 /* Override any gcc2 internal prototype to avoid an error. */
30974 /* We use char because int might match the return type of a gcc2
30975 builtin and then its argument prototype would still apply. */
30977 /* The GNU C library defines this for functions which it implements
30978 to always fail with ENOSYS. Some functions are actually named
30979 something starting with __ and the normal name is an alias. */
30980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30983 char (*f) () = $ac_func;
30992 return f != $ac_func;
30997 rm -f conftest.
$ac_objext conftest
$ac_exeext
30998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30999 (eval $ac_link) 2>&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); } &&
31003 { ac_try
='test -s conftest$ac_exeext'
31004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31005 (eval $ac_try) 2>&5
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; }; then
31009 eval "$as_ac_var=yes"
31011 echo "$as_me: failed program was:" >&5
31012 sed 's/^/| /' conftest.
$ac_ext >&5
31014 eval "$as_ac_var=no"
31016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31020 if test `eval echo '${'$as_ac_var'}'` = yes; then
31021 cat >>confdefs.h
<<_ACEOF
31022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31026 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31037 for ac_func
in euidaccess memcmp
rmdir rpmatch strndup strverscmp
31039 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31040 echo "$as_me:$LINENO: checking for $ac_func" >&5
31041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31042 if eval "test \"\${$as_ac_var+set}\" = set"; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 cat >conftest.
$ac_ext <<_ACEOF
31046 #line $LINENO "configure"
31049 cat confdefs.h
>>conftest.
$ac_ext
31050 cat >>conftest.
$ac_ext <<_ACEOF
31051 /* end confdefs.h. */
31052 /* System header to define __stub macros and hopefully few prototypes,
31053 which can conflict with char $ac_func (); below.
31054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31055 <limits.h> exists even on freestanding compilers. */
31057 # include <limits.h>
31059 # include <assert.h>
31061 /* Override any gcc2 internal prototype to avoid an error. */
31066 /* We use char because int might match the return type of a gcc2
31067 builtin and then its argument prototype would still apply. */
31069 /* The GNU C library defines this for functions which it implements
31070 to always fail with ENOSYS. Some functions are actually named
31071 something starting with __ and the normal name is an alias. */
31072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31075 char (*f) () = $ac_func;
31084 return f != $ac_func;
31089 rm -f conftest.
$ac_objext conftest
$ac_exeext
31090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31091 (eval $ac_link) 2>&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try
='test -s conftest$ac_exeext'
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; }; then
31101 eval "$as_ac_var=yes"
31103 echo "$as_me: failed program was:" >&5
31104 sed 's/^/| /' conftest.
$ac_ext >&5
31106 eval "$as_ac_var=no"
31108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31112 if test `eval echo '${'$as_ac_var'}'` = yes; then
31113 cat >>confdefs.h
<<_ACEOF
31114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31118 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31124 for ac_func
in atexit
31126 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31127 echo "$as_me:$LINENO: checking for $ac_func" >&5
31128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31129 if eval "test \"\${$as_ac_var+set}\" = set"; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31132 cat >conftest.
$ac_ext <<_ACEOF
31133 #line $LINENO "configure"
31136 cat confdefs.h
>>conftest.
$ac_ext
31137 cat >>conftest.
$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31139 /* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31144 # include <limits.h>
31146 # include <assert.h>
31148 /* Override any gcc2 internal prototype to avoid an error. */
31153 /* We use char because int might match the return type of a gcc2
31154 builtin and then its argument prototype would still apply. */
31156 /* The GNU C library defines this for functions which it implements
31157 to always fail with ENOSYS. Some functions are actually named
31158 something starting with __ and the normal name is an alias. */
31159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31162 char (*f) () = $ac_func;
31171 return f != $ac_func;
31176 rm -f conftest.
$ac_objext conftest
$ac_exeext
31177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31178 (eval $ac_link) 2>&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
31182 { ac_try
='test -s conftest$ac_exeext'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 eval "$as_ac_var=yes"
31190 echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.
$ac_ext >&5
31193 eval "$as_ac_var=no"
31195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31199 if test `eval echo '${'$as_ac_var'}'` = yes; then
31200 cat >>confdefs.h
<<_ACEOF
31201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31205 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31211 for ac_func
in getpass
31213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31214 echo "$as_me:$LINENO: checking for $ac_func" >&5
31215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31216 if eval "test \"\${$as_ac_var+set}\" = set"; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31219 cat >conftest.
$ac_ext <<_ACEOF
31220 #line $LINENO "configure"
31223 cat confdefs.h
>>conftest.
$ac_ext
31224 cat >>conftest.
$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 /* System header to define __stub macros and hopefully few prototypes,
31227 which can conflict with char $ac_func (); below.
31228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31229 <limits.h> exists even on freestanding compilers. */
31231 # include <limits.h>
31233 # include <assert.h>
31235 /* Override any gcc2 internal prototype to avoid an error. */
31240 /* We use char because int might match the return type of a gcc2
31241 builtin and then its argument prototype would still apply. */
31243 /* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31249 char (*f) () = $ac_func;
31258 return f != $ac_func;
31263 rm -f conftest.
$ac_objext conftest
$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265 (eval $ac_link) 2>&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
31269 { ac_try
='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 eval "$as_ac_var=yes"
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.
$ac_ext >&5
31280 eval "$as_ac_var=no"
31282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31286 if test `eval echo '${'$as_ac_var'}'` = yes; then
31287 cat >>confdefs.h
<<_ACEOF
31288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31292 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31298 # raise is used by at least sort and ls.
31300 for ac_func
in raise
31302 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31303 echo "$as_me:$LINENO: checking for $ac_func" >&5
31304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31305 if eval "test \"\${$as_ac_var+set}\" = set"; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31308 cat >conftest.
$ac_ext <<_ACEOF
31309 #line $LINENO "configure"
31312 cat confdefs.h
>>conftest.
$ac_ext
31313 cat >>conftest.
$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31315 /* System header to define __stub macros and hopefully few prototypes,
31316 which can conflict with char $ac_func (); below.
31317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31318 <limits.h> exists even on freestanding compilers. */
31320 # include <limits.h>
31322 # include <assert.h>
31324 /* Override any gcc2 internal prototype to avoid an error. */
31329 /* We use char because int might match the return type of a gcc2
31330 builtin and then its argument prototype would still apply. */
31332 /* The GNU C library defines this for functions which it implements
31333 to always fail with ENOSYS. Some functions are actually named
31334 something starting with __ and the normal name is an alias. */
31335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31338 char (*f) () = $ac_func;
31347 return f != $ac_func;
31352 rm -f conftest.
$ac_objext conftest
$ac_exeext
31353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31354 (eval $ac_link) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try
='test -s conftest$ac_exeext'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; }; then
31364 eval "$as_ac_var=yes"
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.
$ac_ext >&5
31369 eval "$as_ac_var=no"
31371 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31375 if test `eval echo '${'$as_ac_var'}'` = yes; then
31376 cat >>confdefs.h
<<_ACEOF
31377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31381 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31388 for ac_func
in strdup
31390 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31391 echo "$as_me:$LINENO: checking for $ac_func" >&5
31392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31393 if eval "test \"\${$as_ac_var+set}\" = set"; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31396 cat >conftest.
$ac_ext <<_ACEOF
31397 #line $LINENO "configure"
31400 cat confdefs.h
>>conftest.
$ac_ext
31401 cat >>conftest.
$ac_ext <<_ACEOF
31402 /* end confdefs.h. */
31403 /* System header to define __stub macros and hopefully few prototypes,
31404 which can conflict with char $ac_func (); below.
31405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31406 <limits.h> exists even on freestanding compilers. */
31408 # include <limits.h>
31410 # include <assert.h>
31412 /* Override any gcc2 internal prototype to avoid an error. */
31417 /* We use char because int might match the return type of a gcc2
31418 builtin and then its argument prototype would still apply. */
31420 /* The GNU C library defines this for functions which it implements
31421 to always fail with ENOSYS. Some functions are actually named
31422 something starting with __ and the normal name is an alias. */
31423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31426 char (*f) () = $ac_func;
31435 return f != $ac_func;
31440 rm -f conftest.
$ac_objext conftest
$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442 (eval $ac_link) 2>&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
31446 { ac_try
='test -s conftest$ac_exeext'
31447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31448 (eval $ac_try) 2>&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; }; then
31452 eval "$as_ac_var=yes"
31454 echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.
$ac_ext >&5
31457 eval "$as_ac_var=no"
31459 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31463 if test `eval echo '${'$as_ac_var'}'` = yes; then
31464 cat >>confdefs.h
<<_ACEOF
31465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31469 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31480 for ac_func
in memchr memcpy memmove memrchr memset
31482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31483 echo "$as_me:$LINENO: checking for $ac_func" >&5
31484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31485 if eval "test \"\${$as_ac_var+set}\" = set"; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 cat >conftest.
$ac_ext <<_ACEOF
31489 #line $LINENO "configure"
31492 cat confdefs.h
>>conftest.
$ac_ext
31493 cat >>conftest.
$ac_ext <<_ACEOF
31494 /* end confdefs.h. */
31495 /* System header to define __stub macros and hopefully few prototypes,
31496 which can conflict with char $ac_func (); below.
31497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31498 <limits.h> exists even on freestanding compilers. */
31500 # include <limits.h>
31502 # include <assert.h>
31504 /* Override any gcc2 internal prototype to avoid an error. */
31509 /* We use char because int might match the return type of a gcc2
31510 builtin and then its argument prototype would still apply. */
31512 /* The GNU C library defines this for functions which it implements
31513 to always fail with ENOSYS. Some functions are actually named
31514 something starting with __ and the normal name is an alias. */
31515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31518 char (*f) () = $ac_func;
31527 return f != $ac_func;
31532 rm -f conftest.
$ac_objext conftest
$ac_exeext
31533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31534 (eval $ac_link) 2>&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
31538 { ac_try
='test -s conftest$ac_exeext'
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
31544 eval "$as_ac_var=yes"
31546 echo "$as_me: failed program was:" >&5
31547 sed 's/^/| /' conftest.
$ac_ext >&5
31549 eval "$as_ac_var=no"
31551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31555 if test `eval echo '${'$as_ac_var'}'` = yes; then
31556 cat >>confdefs.h
<<_ACEOF
31557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31561 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
31567 for ac_func
in getpagesize
31569 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31570 echo "$as_me:$LINENO: checking for $ac_func" >&5
31571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31572 if eval "test \"\${$as_ac_var+set}\" = set"; then
31573 echo $ECHO_N "(cached) $ECHO_C" >&6
31575 cat >conftest.
$ac_ext <<_ACEOF
31576 #line $LINENO "configure"
31579 cat confdefs.h
>>conftest.
$ac_ext
31580 cat >>conftest.
$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31582 /* System header to define __stub macros and hopefully few prototypes,
31583 which can conflict with char $ac_func (); below.
31584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31585 <limits.h> exists even on freestanding compilers. */
31587 # include <limits.h>
31589 # include <assert.h>
31591 /* Override any gcc2 internal prototype to avoid an error. */
31596 /* We use char because int might match the return type of a gcc2
31597 builtin and then its argument prototype would still apply. */
31599 /* The GNU C library defines this for functions which it implements
31600 to always fail with ENOSYS. Some functions are actually named
31601 something starting with __ and the normal name is an alias. */
31602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31605 char (*f) () = $ac_func;
31614 return f != $ac_func;
31619 rm -f conftest.
$ac_objext conftest
$ac_exeext
31620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31621 (eval $ac_link) 2>&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); } &&
31625 { ac_try
='test -s conftest$ac_exeext'
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; }; then
31631 eval "$as_ac_var=yes"
31633 echo "$as_me: failed program was:" >&5
31634 sed 's/^/| /' conftest.
$ac_ext >&5
31636 eval "$as_ac_var=no"
31638 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31642 if test `eval echo '${'$as_ac_var'}'` = yes; then
31643 cat >>confdefs.h
<<_ACEOF
31644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31653 # By default, argmatch should fail calling usage (1).
31655 cat >>confdefs.h
<<\_ACEOF
31656 #define ARGMATCH_DIE usage (1)
31660 cat >>confdefs.h
<<\_ACEOF
31661 #define ARGMATCH_DIE_DECL extern void usage ()
31665 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
31666 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
31667 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31670 ac_cv_func_setvbuf_reversed
=no
31671 cat >conftest.
$ac_ext <<_ACEOF
31672 #line $LINENO "configure"
31675 cat confdefs.h
>>conftest.
$ac_ext
31676 cat >>conftest.
$ac_ext <<_ACEOF
31677 /* end confdefs.h. */
31680 int (setvbuf) (FILE *, int, char *, size_t);
31685 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
31690 rm -f conftest.
$ac_objext conftest
$ac_exeext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31692 (eval $ac_link) 2>&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } &&
31696 { ac_try
='test -s conftest$ac_exeext'
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; }; then
31702 cat >conftest.
$ac_ext <<_ACEOF
31703 #line $LINENO "configure"
31706 cat confdefs.h
>>conftest.
$ac_ext
31707 cat >>conftest.
$ac_ext <<_ACEOF
31708 /* end confdefs.h. */
31711 int (setvbuf) (FILE *, int, char *, size_t);
31716 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
31721 rm -f conftest.
$ac_objext conftest
$ac_exeext
31722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31723 (eval $ac_link) 2>&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } &&
31727 { ac_try
='test -s conftest$ac_exeext'
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 # It compiles and links either way, so it must not be declared
31734 # with a prototype and most likely this is a K&R C compiler.
31736 if test "$cross_compiling" = yes; then
31737 : # Assume setvbuf is not reversed when cross-compiling.
31739 cat >conftest.
$ac_ext <<_ACEOF
31740 #line $LINENO "configure"
31743 cat confdefs.h
>>conftest.
$ac_ext
31744 cat >>conftest.
$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31750 /* This call has the arguments reversed.
31751 A reversed system may check and see that the address of buf
31752 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
31754 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
31757 exit (0); /* Non-reversed systems SEGV here. */
31762 rm -f conftest
$ac_exeext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31764 (eval $ac_link) 2>&5
31766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_func_setvbuf_reversed
=yes
31775 echo "$as_me: program exited with status $ac_status" >&5
31776 echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.
$ac_ext >&5
31779 ( exit $ac_status )
31780 rm -f core core.
* *.core
31782 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31784 ac_cv_func_setvbuf_reversed
=yes
31786 echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.
$ac_ext >&5
31790 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.
$ac_ext >&5
31796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31798 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
31799 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
31800 if test $ac_cv_func_setvbuf_reversed = yes; then
31802 cat >>confdefs.h
<<\_ACEOF
31803 #define SETVBUF_REVERSED 1
31809 # used by sleep and shred
31810 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
31811 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
31813 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
31814 # programs in the package would end up linked with that potentially-shared
31815 # library, inducing unnecessary run-time overhead.
31816 fetish_saved_libs
=$LIBS
31818 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31819 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
31820 if test "${ac_cv_search_clock_gettime+set}" = set; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31824 ac_func_search_save_LIBS
=$LIBS
31825 ac_cv_search_clock_gettime
=no
31826 cat >conftest.
$ac_ext <<_ACEOF
31827 #line $LINENO "configure"
31830 cat confdefs.h
>>conftest.
$ac_ext
31831 cat >>conftest.
$ac_ext <<_ACEOF
31832 /* end confdefs.h. */
31834 /* Override any gcc2 internal prototype to avoid an error. */
31838 /* We use char because int might match the return type of a gcc2
31839 builtin and then its argument prototype would still apply. */
31840 char clock_gettime ();
31849 rm -f conftest.
$ac_objext conftest
$ac_exeext
31850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31851 (eval $ac_link) 2>&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } &&
31855 { ac_try
='test -s conftest$ac_exeext'
31856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857 (eval $ac_try) 2>&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
31861 ac_cv_search_clock_gettime
='none required'
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.
$ac_ext >&5
31867 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31868 if test "$ac_cv_search_clock_gettime" = no
; then
31869 for ac_lib
in rt posix4
; do
31870 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31871 cat >conftest.
$ac_ext <<_ACEOF
31872 #line $LINENO "configure"
31875 cat confdefs.h
>>conftest.
$ac_ext
31876 cat >>conftest.
$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31879 /* Override any gcc2 internal prototype to avoid an error. */
31883 /* We use char because int might match the return type of a gcc2
31884 builtin and then its argument prototype would still apply. */
31885 char clock_gettime ();
31894 rm -f conftest.
$ac_objext conftest
$ac_exeext
31895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31896 (eval $ac_link) 2>&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try
='test -s conftest$ac_exeext'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
31906 ac_cv_search_clock_gettime
="-l$ac_lib"; break
31908 echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.
$ac_ext >&5
31912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31915 LIBS
=$ac_func_search_save_LIBS
31918 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31919 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31921 if test "$ac_cv_search_clock_gettime" = no
; then :
31924 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
31927 LIBS
="$ac_cv_search_clock_gettime $LIBS"
31928 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
31935 for ac_func
in clock_gettime clock_settime
31937 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31938 echo "$as_me:$LINENO: checking for $ac_func" >&5
31939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31940 if eval "test \"\${$as_ac_var+set}\" = set"; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31943 cat >conftest.
$ac_ext <<_ACEOF
31944 #line $LINENO "configure"
31947 cat confdefs.h
>>conftest.
$ac_ext
31948 cat >>conftest.
$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 /* System header to define __stub macros and hopefully few prototypes,
31951 which can conflict with char $ac_func (); below.
31952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31953 <limits.h> exists even on freestanding compilers. */
31955 # include <limits.h>
31957 # include <assert.h>
31959 /* Override any gcc2 internal prototype to avoid an error. */
31964 /* We use char because int might match the return type of a gcc2
31965 builtin and then its argument prototype would still apply. */
31967 /* The GNU C library defines this for functions which it implements
31968 to always fail with ENOSYS. Some functions are actually named
31969 something starting with __ and the normal name is an alias. */
31970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31973 char (*f) () = $ac_func;
31982 return f != $ac_func;
31987 rm -f conftest.
$ac_objext conftest
$ac_exeext
31988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31989 (eval $ac_link) 2>&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } &&
31993 { ac_try
='test -s conftest$ac_exeext'
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
31999 eval "$as_ac_var=yes"
32001 echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.
$ac_ext >&5
32004 eval "$as_ac_var=no"
32006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32010 if test `eval echo '${'$as_ac_var'}'` = yes; then
32011 cat >>confdefs.h
<<_ACEOF
32012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32018 LIBS
=$fetish_saved_libs
32020 for ac_func
in gettimeofday
32022 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32023 echo "$as_me:$LINENO: checking for $ac_func" >&5
32024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32025 if eval "test \"\${$as_ac_var+set}\" = set"; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32028 cat >conftest.
$ac_ext <<_ACEOF
32029 #line $LINENO "configure"
32032 cat confdefs.h
>>conftest.
$ac_ext
32033 cat >>conftest.
$ac_ext <<_ACEOF
32034 /* end confdefs.h. */
32035 /* System header to define __stub macros and hopefully few prototypes,
32036 which can conflict with char $ac_func (); below.
32037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32038 <limits.h> exists even on freestanding compilers. */
32040 # include <limits.h>
32042 # include <assert.h>
32044 /* Override any gcc2 internal prototype to avoid an error. */
32049 /* We use char because int might match the return type of a gcc2
32050 builtin and then its argument prototype would still apply. */
32052 /* The GNU C library defines this for functions which it implements
32053 to always fail with ENOSYS. Some functions are actually named
32054 something starting with __ and the normal name is an alias. */
32055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32058 char (*f) () = $ac_func;
32067 return f != $ac_func;
32072 rm -f conftest.
$ac_objext conftest
$ac_exeext
32073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32074 (eval $ac_link) 2>&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
32078 { ac_try
='test -s conftest$ac_exeext'
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 eval "$as_ac_var=yes"
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.
$ac_ext >&5
32089 eval "$as_ac_var=no"
32091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32095 if test `eval echo '${'$as_ac_var'}'` = yes; then
32096 cat >>confdefs.h
<<_ACEOF
32097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32107 for ac_header
in string.h stdlib.h
32109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32111 echo "$as_me:$LINENO: checking for $ac_header" >&5
32112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32114 echo $ECHO_N "(cached) $ECHO_C" >&6
32116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32119 # Is the header compilable?
32120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32122 cat >conftest.
$ac_ext <<_ACEOF
32123 #line $LINENO "configure"
32126 cat confdefs.h
>>conftest.
$ac_ext
32127 cat >>conftest.
$ac_ext <<_ACEOF
32128 /* end confdefs.h. */
32129 $ac_includes_default
32130 #include <$ac_header>
32132 rm -f conftest.
$ac_objext
32133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32134 (eval $ac_compile) 2>&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); } &&
32138 { ac_try
='test -s conftest.$ac_objext'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 ac_header_compiler
=yes
32146 echo "$as_me: failed program was:" >&5
32147 sed 's/^/| /' conftest.
$ac_ext >&5
32149 ac_header_compiler
=no
32151 rm -f conftest.
$ac_objext conftest.
$ac_ext
32152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32153 echo "${ECHO_T}$ac_header_compiler" >&6
32155 # Is the header present?
32156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32158 cat >conftest.
$ac_ext <<_ACEOF
32159 #line $LINENO "configure"
32162 cat confdefs.h
>>conftest.
$ac_ext
32163 cat >>conftest.
$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32165 #include <$ac_header>
32167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32170 grep -v '^ *+' conftest.er1
>conftest.err
32172 cat conftest.err
>&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); } >/dev
/null
; then
32175 if test -s conftest.err
; then
32176 ac_cpp_err
=$ac_c_preproc_warn_flag
32183 if test -z "$ac_cpp_err"; then
32184 ac_header_preproc
=yes
32186 echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.
$ac_ext >&5
32189 ac_header_preproc
=no
32191 rm -f conftest.err conftest.
$ac_ext
32192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32193 echo "${ECHO_T}$ac_header_preproc" >&6
32195 # So? What about this header?
32196 case $ac_header_compiler:$ac_header_preproc in
32198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32204 ## ------------------------------------ ##
32205 ## Report this to bug-autoconf@gnu.org. ##
32206 ## ------------------------------------ ##
32209 sed "s/^/$as_me: WARNING: /" >&2
32212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32220 ## ------------------------------------ ##
32221 ## Report this to bug-autoconf@gnu.org. ##
32222 ## ------------------------------------ ##
32225 sed "s/^/$as_me: WARNING: /" >&2
32228 echo "$as_me:$LINENO: checking for $ac_header" >&5
32229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 eval "$as_ac_Header=$ac_header_preproc"
32235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32240 cat >>confdefs.h
<<_ACEOF
32241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32248 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
32249 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
32250 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32253 if test "$cross_compiling" = yes; then
32254 jm_cv_func_gettimeofday_clobber
=yes
32256 cat >conftest.
$ac_ext <<_ACEOF
32257 #line $LINENO "configure"
32260 cat confdefs.h
>>conftest.
$ac_ext
32261 cat >>conftest.
$ac_ext <<_ACEOF
32262 /* end confdefs.h. */
32266 # include <string.h>
32269 #if TIME_WITH_SYS_TIME
32270 # include <sys/time.h>
32273 # if HAVE_SYS_TIME_H
32274 # include <sys/time.h>
32281 # include <stdlib.h>
32289 struct tm saved_lt;
32291 lt = localtime (&t);
32293 gettimeofday (&tv, NULL);
32294 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
32301 rm -f conftest
$ac_exeext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32303 (eval $ac_link) 2>&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
32307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308 (eval $ac_try) 2>&5
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); }; }; then
32312 jm_cv_func_gettimeofday_clobber
=no
32314 echo "$as_me: program exited with status $ac_status" >&5
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.
$ac_ext >&5
32318 ( exit $ac_status )
32319 jm_cv_func_gettimeofday_clobber
=yes
32321 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32325 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
32326 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
32327 if test $jm_cv_func_gettimeofday_clobber = yes; then
32328 LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
32330 cat >>confdefs.h
<<\_ACEOF
32331 #define localtime rpl_localtime
32335 cat >>confdefs.h
<<\_ACEOF
32336 #define gettimeofday rpl_gettimeofday
32340 cat >>confdefs.h
<<\_ACEOF
32341 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
32382 canonicalize_file_name \
32413 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32414 echo "$as_me:$LINENO: checking for $ac_func" >&5
32415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32416 if eval "test \"\${$as_ac_var+set}\" = set"; then
32417 echo $ECHO_N "(cached) $ECHO_C" >&6
32419 cat >conftest.
$ac_ext <<_ACEOF
32420 #line $LINENO "configure"
32423 cat confdefs.h
>>conftest.
$ac_ext
32424 cat >>conftest.
$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32426 /* System header to define __stub macros and hopefully few prototypes,
32427 which can conflict with char $ac_func (); below.
32428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32429 <limits.h> exists even on freestanding compilers. */
32431 # include <limits.h>
32433 # include <assert.h>
32435 /* Override any gcc2 internal prototype to avoid an error. */
32440 /* We use char because int might match the return type of a gcc2
32441 builtin and then its argument prototype would still apply. */
32443 /* The GNU C library defines this for functions which it implements
32444 to always fail with ENOSYS. Some functions are actually named
32445 something starting with __ and the normal name is an alias. */
32446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32449 char (*f) () = $ac_func;
32458 return f != $ac_func;
32463 rm -f conftest.
$ac_objext conftest
$ac_exeext
32464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32465 (eval $ac_link) 2>&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } &&
32469 { ac_try
='test -s conftest$ac_exeext'
32470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32471 (eval $ac_try) 2>&5
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; }; then
32475 eval "$as_ac_var=yes"
32477 echo "$as_me: failed program was:" >&5
32478 sed 's/^/| /' conftest.
$ac_ext >&5
32480 eval "$as_ac_var=no"
32482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32486 if test `eval echo '${'$as_ac_var'}'` = yes; then
32487 cat >>confdefs.h
<<_ACEOF
32488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32495 am_getline_needs_run_time_check
=no
32496 echo "$as_me:$LINENO: checking for getline" >&5
32497 echo $ECHO_N "checking for getline... $ECHO_C" >&6
32498 if test "${ac_cv_func_getline+set}" = set; then
32499 echo $ECHO_N "(cached) $ECHO_C" >&6
32501 cat >conftest.
$ac_ext <<_ACEOF
32502 #line $LINENO "configure"
32505 cat confdefs.h
>>conftest.
$ac_ext
32506 cat >>conftest.
$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 /* System header to define __stub macros and hopefully few prototypes,
32509 which can conflict with char getline (); below.
32510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32511 <limits.h> exists even on freestanding compilers. */
32513 # include <limits.h>
32515 # include <assert.h>
32517 /* Override any gcc2 internal prototype to avoid an error. */
32522 /* We use char because int might match the return type of a gcc2
32523 builtin and then its argument prototype would still apply. */
32525 /* The GNU C library defines this for functions which it implements
32526 to always fail with ENOSYS. Some functions are actually named
32527 something starting with __ and the normal name is an alias. */
32528 #if defined (__stub_getline) || defined (__stub___getline)
32531 char (*f) () = getline;
32540 return f != getline;
32545 rm -f conftest.
$ac_objext conftest
$ac_exeext
32546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32547 (eval $ac_link) 2>&5
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); } &&
32551 { ac_try
='test -s conftest$ac_exeext'
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553 (eval $ac_try) 2>&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32557 ac_cv_func_getline
=yes
32559 echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.
$ac_ext >&5
32562 ac_cv_func_getline
=no
32564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32566 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
32567 echo "${ECHO_T}$ac_cv_func_getline" >&6
32568 if test $ac_cv_func_getline = yes; then
32569 am_getline_needs_run_time_check
=yes
32571 am_cv_func_working_getline
=no
32574 if test $am_getline_needs_run_time_check = yes; then
32575 echo "$as_me:$LINENO: checking for working getline function" >&5
32576 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
32577 if test "${am_cv_func_working_getline+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
32581 if test "$cross_compiling" = yes; then
32582 am_cv_func_working_getline
=no
32584 cat >conftest.
$ac_ext <<_ACEOF
32585 #line $LINENO "configure"
32588 cat confdefs.h
>>conftest.
$ac_ext
32589 cat >>conftest.
$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32592 # include <stdio.h>
32593 # include <sys/types.h>
32594 # include <string.h>
32596 { /* Based on a test program from Karl Heuer. */
32600 FILE *in = fopen ("./conftest.data", "r");
32603 len = getline (&line, &siz, in);
32604 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
32608 rm -f conftest
$ac_exeext
32609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32610 (eval $ac_link) 2>&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
32619 am_cv_func_working_getline
=yes
32621 echo "$as_me: program exited with status $ac_status" >&5
32622 echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.
$ac_ext >&5
32625 ( exit $ac_status )
32626 am_cv_func_working_getline
=no
32628 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32631 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
32632 echo "${ECHO_T}$am_cv_func_working_getline" >&6
32635 if test $am_cv_func_working_getline = no
; then
32636 LIBOBJS
="$LIBOBJS getline.$ac_objext"
32639 if test $am_cv_func_working_getline != yes; then
32641 for ac_func
in getdelim
32643 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32644 echo "$as_me:$LINENO: checking for $ac_func" >&5
32645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32646 if eval "test \"\${$as_ac_var+set}\" = set"; then
32647 echo $ECHO_N "(cached) $ECHO_C" >&6
32649 cat >conftest.
$ac_ext <<_ACEOF
32650 #line $LINENO "configure"
32653 cat confdefs.h
>>conftest.
$ac_ext
32654 cat >>conftest.
$ac_ext <<_ACEOF
32655 /* end confdefs.h. */
32656 /* System header to define __stub macros and hopefully few prototypes,
32657 which can conflict with char $ac_func (); below.
32658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32659 <limits.h> exists even on freestanding compilers. */
32661 # include <limits.h>
32663 # include <assert.h>
32665 /* Override any gcc2 internal prototype to avoid an error. */
32670 /* We use char because int might match the return type of a gcc2
32671 builtin and then its argument prototype would still apply. */
32673 /* The GNU C library defines this for functions which it implements
32674 to always fail with ENOSYS. Some functions are actually named
32675 something starting with __ and the normal name is an alias. */
32676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32679 char (*f) () = $ac_func;
32688 return f != $ac_func;
32693 rm -f conftest.
$ac_objext conftest
$ac_exeext
32694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32695 (eval $ac_link) 2>&5
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); } &&
32699 { ac_try
='test -s conftest$ac_exeext'
32700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701 (eval $ac_try) 2>&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 eval "$as_ac_var=yes"
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.
$ac_ext >&5
32710 eval "$as_ac_var=no"
32712 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32716 if test `eval echo '${'$as_ac_var'}'` = yes; then
32717 cat >>confdefs.h
<<_ACEOF
32718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32725 echo "$as_me:$LINENO: checking for obstacks" >&5
32726 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
32727 if test "${ac_cv_func_obstack+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32730 cat >conftest.
$ac_ext <<_ACEOF
32731 #line $LINENO "configure"
32734 cat confdefs.h
>>conftest.
$ac_ext
32735 cat >>conftest.
$ac_ext <<_ACEOF
32736 /* end confdefs.h. */
32737 #include "obstack.h"
32741 struct obstack *mem; obstack_free(mem,(char *) 0)
32746 rm -f conftest.
$ac_objext conftest
$ac_exeext
32747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32748 (eval $ac_link) 2>&5
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); } &&
32752 { ac_try
='test -s conftest$ac_exeext'
32753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32754 (eval $ac_try) 2>&5
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); }; }; then
32758 ac_cv_func_obstack
=yes
32760 echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.
$ac_ext >&5
32763 ac_cv_func_obstack
=no
32765 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32767 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
32768 echo "${ECHO_T}$ac_cv_func_obstack" >&6
32769 if test $ac_cv_func_obstack = yes; then
32771 cat >>confdefs.h
<<\_ACEOF
32772 #define HAVE_OBSTACK 1
32776 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
32780 echo "$as_me:$LINENO: checking for working strtod" >&5
32781 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
32782 if test "${ac_cv_func_strtod+set}" = set; then
32783 echo $ECHO_N "(cached) $ECHO_C" >&6
32785 if test "$cross_compiling" = yes; then
32786 ac_cv_func_strtod
=no
32788 cat >conftest.
$ac_ext <<_ACEOF
32789 #line $LINENO "configure"
32792 cat confdefs.h
>>conftest.
$ac_ext
32793 cat >>conftest.
$ac_ext <<_ACEOF
32794 /* end confdefs.h. */
32801 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
32802 char *string = " +69";
32805 value = strtod (string, &term);
32806 if (value != 69 || term != (string + 4))
32811 /* Under Solaris 2.4, strtod returns the wrong value for the
32812 terminating character under some conditions. */
32813 char *string = "NaN";
32815 strtod (string, &term);
32816 if (term != string && *(term - 1) == 0)
32823 rm -f conftest
$ac_exeext
32824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32825 (eval $ac_link) 2>&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ac_cv_func_strtod
=yes
32836 echo "$as_me: program exited with status $ac_status" >&5
32837 echo "$as_me: failed program was:" >&5
32838 sed 's/^/| /' conftest.
$ac_ext >&5
32840 ( exit $ac_status )
32841 ac_cv_func_strtod
=no
32843 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32846 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
32847 echo "${ECHO_T}$ac_cv_func_strtod" >&6
32848 if test $ac_cv_func_strtod = no
; then
32849 LIBOBJS
="$LIBOBJS strtod.$ac_objext"
32850 echo "$as_me:$LINENO: checking for pow" >&5
32851 echo $ECHO_N "checking for pow... $ECHO_C" >&6
32852 if test "${ac_cv_func_pow+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32855 cat >conftest.
$ac_ext <<_ACEOF
32856 #line $LINENO "configure"
32859 cat confdefs.h
>>conftest.
$ac_ext
32860 cat >>conftest.
$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32862 /* System header to define __stub macros and hopefully few prototypes,
32863 which can conflict with char pow (); below.
32864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32865 <limits.h> exists even on freestanding compilers. */
32867 # include <limits.h>
32869 # include <assert.h>
32871 /* Override any gcc2 internal prototype to avoid an error. */
32876 /* We use char because int might match the return type of a gcc2
32877 builtin and then its argument prototype would still apply. */
32879 /* The GNU C library defines this for functions which it implements
32880 to always fail with ENOSYS. Some functions are actually named
32881 something starting with __ and the normal name is an alias. */
32882 #if defined (__stub_pow) || defined (__stub___pow)
32885 char (*f) () = pow;
32899 rm -f conftest.
$ac_objext conftest
$ac_exeext
32900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32901 (eval $ac_link) 2>&5
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); } &&
32905 { ac_try
='test -s conftest$ac_exeext'
32906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32907 (eval $ac_try) 2>&5
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); }; }; then
32913 echo "$as_me: failed program was:" >&5
32914 sed 's/^/| /' conftest.
$ac_ext >&5
32918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32920 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
32921 echo "${ECHO_T}$ac_cv_func_pow" >&6
32923 if test $ac_cv_func_pow = no
; then
32924 echo "$as_me:$LINENO: checking for pow in -lm" >&5
32925 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
32926 if test "${ac_cv_lib_m_pow+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32929 ac_check_lib_save_LIBS
=$LIBS
32931 cat >conftest.
$ac_ext <<_ACEOF
32932 #line $LINENO "configure"
32935 cat confdefs.h
>>conftest.
$ac_ext
32936 cat >>conftest.
$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32939 /* Override any gcc2 internal prototype to avoid an error. */
32943 /* We use char because int might match the return type of a gcc2
32944 builtin and then its argument prototype would still apply. */
32954 rm -f conftest.
$ac_objext conftest
$ac_exeext
32955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32956 (eval $ac_link) 2>&5
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); } &&
32960 { ac_try
='test -s conftest$ac_exeext'
32961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32962 (eval $ac_try) 2>&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; }; then
32966 ac_cv_lib_m_pow
=yes
32968 echo "$as_me: failed program was:" >&5
32969 sed 's/^/| /' conftest.
$ac_ext >&5
32973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32974 LIBS
=$ac_check_lib_save_LIBS
32976 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
32977 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
32978 if test $ac_cv_lib_m_pow = yes; then
32981 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
32982 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
32990 # See if linking `seq' requires -lm.
32991 # It does on nearly every system. The single exception (so far) is
32992 # BeOS which has all the math functions in the normal runtime library
32993 # and doesn't have a separate math library.
32997 static double x, y;
33001 cat >conftest.
$ac_ext <<_ACEOF
33002 #line $LINENO "configure"
33005 cat confdefs.h
>>conftest.
$ac_ext
33006 cat >>conftest.
$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33017 rm -f conftest.
$ac_objext conftest
$ac_exeext
33018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33019 (eval $ac_link) 2>&5
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); } &&
33023 { ac_try
='test -s conftest$ac_exeext'
33024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33025 (eval $ac_try) 2>&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; }; then
33031 echo "$as_me: failed program was:" >&5
33032 sed 's/^/| /' conftest.
$ac_ext >&5
33034 ac_seq_save_LIBS
="$LIBS"
33036 cat >conftest.
$ac_ext <<_ACEOF
33037 #line $LINENO "configure"
33040 cat confdefs.h
>>conftest.
$ac_ext
33041 cat >>conftest.
$ac_ext <<_ACEOF
33042 /* end confdefs.h. */
33052 rm -f conftest.
$ac_objext conftest
$ac_exeext
33053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33054 (eval $ac_link) 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } &&
33058 { ac_try
='test -s conftest$ac_exeext'
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.
$ac_ext >&5
33070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33071 LIBS
="$ac_seq_save_LIBS"
33074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33077 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
33078 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
33079 if test "${am_cv_langinfo_codeset+set}" = set; then
33080 echo $ECHO_N "(cached) $ECHO_C" >&6
33082 cat >conftest.
$ac_ext <<_ACEOF
33083 #line $LINENO "configure"
33086 cat confdefs.h
>>conftest.
$ac_ext
33087 cat >>conftest.
$ac_ext <<_ACEOF
33088 /* end confdefs.h. */
33089 #include <langinfo.h>
33093 char* cs = nl_langinfo(CODESET);
33098 rm -f conftest.
$ac_objext conftest
$ac_exeext
33099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33100 (eval $ac_link) 2>&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); } &&
33104 { ac_try
='test -s conftest$ac_exeext'
33105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33106 (eval $ac_try) 2>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); }; }; then
33110 am_cv_langinfo_codeset
=yes
33112 echo "$as_me: failed program was:" >&5
33113 sed 's/^/| /' conftest.
$ac_ext >&5
33115 am_cv_langinfo_codeset
=no
33117 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33120 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
33121 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
33122 if test $am_cv_langinfo_codeset = yes; then
33124 cat >>confdefs.h
<<\_ACEOF
33125 #define HAVE_LANGINFO_CODESET 1
33131 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
33132 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
33133 if test "${ac_cv_gnu_library_2_1+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33136 cat >conftest.
$ac_ext <<_ACEOF
33137 #line $LINENO "configure"
33140 cat confdefs.h
>>conftest.
$ac_ext
33141 cat >>conftest.
$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33144 #include <features.h>
33145 #ifdef __GNU_LIBRARY__
33146 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
33152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33153 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
33154 ac_cv_gnu_library_2_1
=yes
33156 ac_cv_gnu_library_2_1
=no
33163 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
33164 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
33166 GLIBC21
="$ac_cv_gnu_library_2_1"
33174 am_save_CPPFLAGS
="$CPPFLAGS"
33176 for element
in $INCICONV; do
33178 for x
in $CPPFLAGS; do
33180 acl_save_prefix
="$prefix"
33181 prefix
="$acl_final_prefix"
33182 acl_save_exec_prefix
="$exec_prefix"
33183 exec_prefix
="$acl_final_exec_prefix"
33185 exec_prefix
="$acl_save_exec_prefix"
33186 prefix
="$acl_save_prefix"
33188 if test "X$x" = "X$element"; then
33193 if test -z "$haveit"; then
33194 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
33199 echo "$as_me:$LINENO: checking for iconv" >&5
33200 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33201 if test "${am_cv_func_iconv+set}" = set; then
33202 echo $ECHO_N "(cached) $ECHO_C" >&6
33205 am_cv_func_iconv
="no, consider installing GNU libiconv"
33207 cat >conftest.
$ac_ext <<_ACEOF
33208 #line $LINENO "configure"
33211 cat confdefs.h
>>conftest.
$ac_ext
33212 cat >>conftest.
$ac_ext <<_ACEOF
33213 /* end confdefs.h. */
33214 #include <stdlib.h>
33219 iconv_t cd = iconv_open("","");
33220 iconv(cd,NULL,NULL,NULL,NULL);
33226 rm -f conftest.
$ac_objext conftest
$ac_exeext
33227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33228 (eval $ac_link) 2>&5
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } &&
33232 { ac_try
='test -s conftest$ac_exeext'
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; }; then
33238 am_cv_func_iconv
=yes
33240 echo "$as_me: failed program was:" >&5
33241 sed 's/^/| /' conftest.
$ac_ext >&5
33244 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33245 if test "$am_cv_func_iconv" != yes; then
33246 am_save_LIBS
="$LIBS"
33247 LIBS
="$LIBS $LIBICONV"
33248 cat >conftest.
$ac_ext <<_ACEOF
33249 #line $LINENO "configure"
33252 cat confdefs.h
>>conftest.
$ac_ext
33253 cat >>conftest.
$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 #include <stdlib.h>
33260 iconv_t cd = iconv_open("","");
33261 iconv(cd,NULL,NULL,NULL,NULL);
33267 rm -f conftest.
$ac_objext conftest
$ac_exeext
33268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33269 (eval $ac_link) 2>&5
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
33273 { ac_try
='test -s conftest$ac_exeext'
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 am_cv_lib_iconv
=yes
33280 am_cv_func_iconv
=yes
33282 echo "$as_me: failed program was:" >&5
33283 sed 's/^/| /' conftest.
$ac_ext >&5
33286 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33287 LIBS
="$am_save_LIBS"
33291 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33292 echo "${ECHO_T}$am_cv_func_iconv" >&6
33293 if test "$am_cv_func_iconv" = yes; then
33295 cat >>confdefs.h
<<\_ACEOF
33296 #define HAVE_ICONV 1
33300 if test "$am_cv_lib_iconv" = yes; then
33301 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
33302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
33303 echo "$as_me:$LINENO: result: $LIBICONV" >&5
33304 echo "${ECHO_T}$LIBICONV" >&6
33306 CPPFLAGS
="$am_save_CPPFLAGS"
33313 if test "$am_cv_func_iconv" = yes; then
33314 echo "$as_me:$LINENO: checking for iconv declaration" >&5
33315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
33316 if test "${am_cv_proto_iconv+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33320 cat >conftest.
$ac_ext <<_ACEOF
33321 #line $LINENO "configure"
33324 cat confdefs.h
>>conftest.
$ac_ext
33325 cat >>conftest.
$ac_ext <<_ACEOF
33326 /* end confdefs.h. */
33328 #include <stdlib.h>
33334 #if defined(__STDC__) || defined(__cplusplus)
33335 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33348 rm -f conftest.
$ac_objext
33349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33350 (eval $ac_compile) 2>&5
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); } &&
33354 { ac_try
='test -s conftest.$ac_objext'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; }; then
33360 am_cv_proto_iconv_arg1
=""
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.
$ac_ext >&5
33365 am_cv_proto_iconv_arg1
="const"
33367 rm -f conftest.
$ac_objext conftest.
$ac_ext
33368 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);"
33371 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
33372 echo "$as_me:$LINENO: result: ${ac_t:-
33373 }$am_cv_proto_iconv" >&5
33374 echo "${ECHO_T}${ac_t:-
33375 }$am_cv_proto_iconv" >&6
33377 cat >>confdefs.h
<<_ACEOF
33378 #define ICONV_CONST $am_cv_proto_iconv_arg1
33383 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
33384 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
33385 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33389 if test "$cross_compiling" = yes; then
33390 jm_cv_func_unlink_busy_text
=no
33393 cat >conftest.
$ac_ext <<_ACEOF
33394 #line $LINENO "configure"
33397 cat confdefs.h
>>conftest.
$ac_ext
33398 cat >>conftest.
$ac_ext <<_ACEOF
33399 /* end confdefs.h. */
33407 exit (unlink (argv[0]));
33411 rm -f conftest
$ac_exeext
33412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33413 (eval $ac_link) 2>&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 jm_cv_func_unlink_busy_text
=yes
33424 echo "$as_me: program exited with status $ac_status" >&5
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.
$ac_ext >&5
33428 ( exit $ac_status )
33429 jm_cv_func_unlink_busy_text
=no
33431 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33436 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
33437 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
33439 if test $jm_cv_func_unlink_busy_text = no
; then
33440 INSTALL
=$ac_install_sh
33444 # These tests are for df.
33448 for ac_func
in listmntent getmntinfo
33450 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33451 echo "$as_me:$LINENO: checking for $ac_func" >&5
33452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33453 if eval "test \"\${$as_ac_var+set}\" = set"; then
33454 echo $ECHO_N "(cached) $ECHO_C" >&6
33456 cat >conftest.
$ac_ext <<_ACEOF
33457 #line $LINENO "configure"
33460 cat confdefs.h
>>conftest.
$ac_ext
33461 cat >>conftest.
$ac_ext <<_ACEOF
33462 /* end confdefs.h. */
33463 /* System header to define __stub macros and hopefully few prototypes,
33464 which can conflict with char $ac_func (); below.
33465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33466 <limits.h> exists even on freestanding compilers. */
33468 # include <limits.h>
33470 # include <assert.h>
33472 /* Override any gcc2 internal prototype to avoid an error. */
33477 /* We use char because int might match the return type of a gcc2
33478 builtin and then its argument prototype would still apply. */
33480 /* The GNU C library defines this for functions which it implements
33481 to always fail with ENOSYS. Some functions are actually named
33482 something starting with __ and the normal name is an alias. */
33483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33486 char (*f) () = $ac_func;
33495 return f != $ac_func;
33500 rm -f conftest.
$ac_objext conftest
$ac_exeext
33501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33502 (eval $ac_link) 2>&5
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); } &&
33506 { ac_try
='test -s conftest$ac_exeext'
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; }; then
33512 eval "$as_ac_var=yes"
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.
$ac_ext >&5
33517 eval "$as_ac_var=no"
33519 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33523 if test `eval echo '${'$as_ac_var'}'` = yes; then
33524 cat >>confdefs.h
<<_ACEOF
33525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33536 for ac_header
in mntent.h sys
/param.h sys
/ucred.h sys
/mount.h sys
/fs_types.h
33538 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33540 echo "$as_me:$LINENO: checking for $ac_header" >&5
33541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33543 echo $ECHO_N "(cached) $ECHO_C" >&6
33545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33548 # Is the header compilable?
33549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33551 cat >conftest.
$ac_ext <<_ACEOF
33552 #line $LINENO "configure"
33555 cat confdefs.h
>>conftest.
$ac_ext
33556 cat >>conftest.
$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33558 $ac_includes_default
33559 #include <$ac_header>
33561 rm -f conftest.
$ac_objext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33563 (eval $ac_compile) 2>&5
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } &&
33567 { ac_try
='test -s conftest.$ac_objext'
33568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569 (eval $ac_try) 2>&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); }; }; then
33573 ac_header_compiler
=yes
33575 echo "$as_me: failed program was:" >&5
33576 sed 's/^/| /' conftest.
$ac_ext >&5
33578 ac_header_compiler
=no
33580 rm -f conftest.
$ac_objext conftest.
$ac_ext
33581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33582 echo "${ECHO_T}$ac_header_compiler" >&6
33584 # Is the header present?
33585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33587 cat >conftest.
$ac_ext <<_ACEOF
33588 #line $LINENO "configure"
33591 cat confdefs.h
>>conftest.
$ac_ext
33592 cat >>conftest.
$ac_ext <<_ACEOF
33593 /* end confdefs.h. */
33594 #include <$ac_header>
33596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33597 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
33599 grep -v '^ *+' conftest.er1
>conftest.err
33601 cat conftest.err
>&5
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); } >/dev
/null
; then
33604 if test -s conftest.err
; then
33605 ac_cpp_err
=$ac_c_preproc_warn_flag
33612 if test -z "$ac_cpp_err"; then
33613 ac_header_preproc
=yes
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.
$ac_ext >&5
33618 ac_header_preproc
=no
33620 rm -f conftest.err conftest.
$ac_ext
33621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622 echo "${ECHO_T}$ac_header_preproc" >&6
33624 # So? What about this header?
33625 case $ac_header_compiler:$ac_header_preproc in
33627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33633 ## ------------------------------------ ##
33634 ## Report this to bug-autoconf@gnu.org. ##
33635 ## ------------------------------------ ##
33638 sed "s/^/$as_me: WARNING: /" >&2
33641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33649 ## ------------------------------------ ##
33650 ## Report this to bug-autoconf@gnu.org. ##
33651 ## ------------------------------------ ##
33654 sed "s/^/$as_me: WARNING: /" >&2
33657 echo "$as_me:$LINENO: checking for $ac_header" >&5
33658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33660 echo $ECHO_N "(cached) $ECHO_C" >&6
33662 eval "$as_ac_Header=$ac_header_preproc"
33664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33669 cat >>confdefs.h
<<_ACEOF
33670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33677 getfsstat_includes
="\
33678 $ac_includes_default
33679 #if HAVE_SYS_PARAM_H
33680 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33682 #if HAVE_SYS_UCRED_H
33683 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33685 #if HAVE_SYS_MOUNT_H
33686 # include <sys/mount.h>
33688 #if HAVE_SYS_FS_TYPES_H
33689 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33692 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33693 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
33694 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33695 echo $ECHO_N "(cached) $ECHO_C" >&6
33697 cat >conftest.
$ac_ext <<_ACEOF
33698 #line $LINENO "configure"
33701 cat confdefs.h
>>conftest.
$ac_ext
33702 cat >>conftest.
$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33704 $getfsstat_includes
33709 static struct fsstat ac_aggr;
33710 if (ac_aggr.f_fstypename)
33716 rm -f conftest.
$ac_objext
33717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33718 (eval $ac_compile) 2>&5
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); } &&
33722 { ac_try
='test -s conftest.$ac_objext'
33723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33724 (eval $ac_try) 2>&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; }; then
33728 ac_cv_member_struct_fsstat_f_fstypename
=yes
33730 echo "$as_me: failed program was:" >&5
33731 sed 's/^/| /' conftest.
$ac_ext >&5
33733 cat >conftest.
$ac_ext <<_ACEOF
33734 #line $LINENO "configure"
33737 cat confdefs.h
>>conftest.
$ac_ext
33738 cat >>conftest.
$ac_ext <<_ACEOF
33739 /* end confdefs.h. */
33740 $getfsstat_includes
33745 static struct fsstat ac_aggr;
33746 if (sizeof ac_aggr.f_fstypename)
33752 rm -f conftest.
$ac_objext
33753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33754 (eval $ac_compile) 2>&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
33758 { ac_try
='test -s conftest.$ac_objext'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; }; then
33764 ac_cv_member_struct_fsstat_f_fstypename
=yes
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.
$ac_ext >&5
33769 ac_cv_member_struct_fsstat_f_fstypename
=no
33771 rm -f conftest.
$ac_objext conftest.
$ac_ext
33773 rm -f conftest.
$ac_objext conftest.
$ac_ext
33775 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33776 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
33777 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33779 cat >>confdefs.h
<<_ACEOF
33780 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33787 # Determine how to get the list of mounted filesystems.
33788 ac_list_mounted_fs
=
33790 # If the getmntent function is available but not in the standard library,
33791 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
33792 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
33793 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
33794 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
33795 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33798 ac_check_lib_save_LIBS
=$LIBS
33800 cat >conftest.
$ac_ext <<_ACEOF
33801 #line $LINENO "configure"
33804 cat confdefs.h
>>conftest.
$ac_ext
33805 cat >>conftest.
$ac_ext <<_ACEOF
33806 /* end confdefs.h. */
33808 /* Override any gcc2 internal prototype to avoid an error. */
33812 /* We use char because int might match the return type of a gcc2
33813 builtin and then its argument prototype would still apply. */
33823 rm -f conftest.
$ac_objext conftest
$ac_exeext
33824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33825 (eval $ac_link) 2>&5
33827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828 (exit $ac_status); } &&
33829 { ac_try
='test -s conftest$ac_exeext'
33830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33831 (eval $ac_try) 2>&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; }; then
33835 ac_cv_lib_sun_getmntent
=yes
33837 echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.
$ac_ext >&5
33840 ac_cv_lib_sun_getmntent
=no
33842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33843 LIBS
=$ac_check_lib_save_LIBS
33845 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
33846 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
33847 if test $ac_cv_lib_sun_getmntent = yes; then
33850 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
33851 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
33852 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33855 ac_check_lib_save_LIBS
=$LIBS
33857 cat >conftest.
$ac_ext <<_ACEOF
33858 #line $LINENO "configure"
33861 cat confdefs.h
>>conftest.
$ac_ext
33862 cat >>conftest.
$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33865 /* Override any gcc2 internal prototype to avoid an error. */
33869 /* We use char because int might match the return type of a gcc2
33870 builtin and then its argument prototype would still apply. */
33880 rm -f conftest.
$ac_objext conftest
$ac_exeext
33881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33882 (eval $ac_link) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); } &&
33886 { ac_try
='test -s conftest$ac_exeext'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; }; then
33892 ac_cv_lib_seq_getmntent
=yes
33894 echo "$as_me: failed program was:" >&5
33895 sed 's/^/| /' conftest.
$ac_ext >&5
33897 ac_cv_lib_seq_getmntent
=no
33899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33900 LIBS
=$ac_check_lib_save_LIBS
33902 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
33903 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
33904 if test $ac_cv_lib_seq_getmntent = yes; then
33907 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
33908 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
33909 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
33910 echo $ECHO_N "(cached) $ECHO_C" >&6
33912 ac_check_lib_save_LIBS
=$LIBS
33914 cat >conftest.
$ac_ext <<_ACEOF
33915 #line $LINENO "configure"
33918 cat confdefs.h
>>conftest.
$ac_ext
33919 cat >>conftest.
$ac_ext <<_ACEOF
33920 /* end confdefs.h. */
33922 /* Override any gcc2 internal prototype to avoid an error. */
33926 /* We use char because int might match the return type of a gcc2
33927 builtin and then its argument prototype would still apply. */
33937 rm -f conftest.
$ac_objext conftest
$ac_exeext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33939 (eval $ac_link) 2>&5
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); } &&
33943 { ac_try
='test -s conftest$ac_exeext'
33944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945 (eval $ac_try) 2>&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); }; }; then
33949 ac_cv_lib_gen_getmntent
=yes
33951 echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.
$ac_ext >&5
33954 ac_cv_lib_gen_getmntent
=no
33956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33957 LIBS
=$ac_check_lib_save_LIBS
33959 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
33960 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
33961 if test $ac_cv_lib_gen_getmntent = yes; then
33970 for ac_func
in getmntent
33972 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33973 echo "$as_me:$LINENO: checking for $ac_func" >&5
33974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33975 if eval "test \"\${$as_ac_var+set}\" = set"; then
33976 echo $ECHO_N "(cached) $ECHO_C" >&6
33978 cat >conftest.
$ac_ext <<_ACEOF
33979 #line $LINENO "configure"
33982 cat confdefs.h
>>conftest.
$ac_ext
33983 cat >>conftest.
$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 /* System header to define __stub macros and hopefully few prototypes,
33986 which can conflict with char $ac_func (); below.
33987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33988 <limits.h> exists even on freestanding compilers. */
33990 # include <limits.h>
33992 # include <assert.h>
33994 /* Override any gcc2 internal prototype to avoid an error. */
33999 /* We use char because int might match the return type of a gcc2
34000 builtin and then its argument prototype would still apply. */
34002 /* The GNU C library defines this for functions which it implements
34003 to always fail with ENOSYS. Some functions are actually named
34004 something starting with __ and the normal name is an alias. */
34005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34008 char (*f) () = $ac_func;
34017 return f != $ac_func;
34022 rm -f conftest.
$ac_objext conftest
$ac_exeext
34023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34024 (eval $ac_link) 2>&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
34028 { ac_try
='test -s conftest$ac_exeext'
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; }; then
34034 eval "$as_ac_var=yes"
34036 echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.
$ac_ext >&5
34039 eval "$as_ac_var=no"
34041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34045 if test `eval echo '${'$as_ac_var'}'` = yes; then
34046 cat >>confdefs.h
<<_ACEOF
34047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34055 # This test must precede the ones for getmntent because Unicos-9 is
34056 # reported to have the getmntent function, but its support is incompatible
34057 # with other getmntent implementations.
34059 # NOTE: Normally, I wouldn't use a check for system type as I've done for
34060 # `CRAY' below since that goes against the whole autoconf philosophy. But
34061 # I think there is too great a chance that some non-Cray system has a
34062 # function named listmntent to risk the false positive.
34064 if test -z "$ac_list_mounted_fs"; then
34066 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
34067 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
34068 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34071 fu_cv_sys_mounted_cray_listmntent
=no
34072 cat >conftest.
$ac_ext <<_ACEOF
34073 #line $LINENO "configure"
34076 cat confdefs.h
>>conftest.
$ac_ext
34077 cat >>conftest.
$ac_ext <<_ACEOF
34078 /* end confdefs.h. */
34084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34085 $EGREP "yes" >/dev
/null
2>&1; then
34086 test $ac_cv_func_listmntent = yes \
34087 && fu_cv_sys_mounted_cray_listmntent
=yes
34096 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
34097 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
34098 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
34099 ac_list_mounted_fs
=found
34101 cat >>confdefs.h
<<\_ACEOF
34102 #define MOUNTED_LISTMNTENT 1
34108 if test $ac_cv_func_getmntent = yes; then
34110 # This system has the getmntent function.
34111 # Determine whether it's the one-argument variant or the two-argument one.
34113 if test -z "$ac_list_mounted_fs"; then
34114 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34115 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34116 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
34117 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34118 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 cat >conftest.
$ac_ext <<_ACEOF
34121 #line $LINENO "configure"
34124 cat confdefs.h
>>conftest.
$ac_ext
34125 cat >>conftest.
$ac_ext <<_ACEOF
34126 /* end confdefs.h. */
34128 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34131 #include <mntent.h>
34132 #if !defined MOUNTED
34133 # if defined _PATH_MOUNTED /* GNU libc */
34134 # define MOUNTED _PATH_MOUNTED
34136 # if defined MNT_MNTTAB /* HP-UX. */
34137 # define MOUNTED MNT_MNTTAB
34139 # if defined MNTTABNAME /* Dynix. */
34140 # define MOUNTED MNTTABNAME
34147 struct mntent *mnt = 0; char *table = MOUNTED;
34152 rm -f conftest.
$ac_objext
34153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34154 (eval $ac_compile) 2>&5
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } &&
34158 { ac_try
='test -s conftest.$ac_objext'
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; }; then
34164 fu_cv_sys_mounted_getmntent1
=yes
34166 echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.
$ac_ext >&5
34169 fu_cv_sys_mounted_getmntent1
=no
34171 rm -f conftest.
$ac_objext conftest.
$ac_ext
34174 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34175 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
34176 if test $fu_cv_sys_mounted_getmntent1 = yes; then
34177 ac_list_mounted_fs
=found
34179 cat >>confdefs.h
<<\_ACEOF
34180 #define MOUNTED_GETMNTENT1 1
34186 if test -z "$ac_list_mounted_fs"; then
34188 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34189 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
34190 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34191 echo $ECHO_N "(cached) $ECHO_C" >&6
34193 cat >conftest.
$ac_ext <<_ACEOF
34194 #line $LINENO "configure"
34197 cat confdefs.h
>>conftest.
$ac_ext
34198 cat >>conftest.
$ac_ext <<_ACEOF
34199 /* end confdefs.h. */
34200 #include <sys/mnttab.h>
34203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34204 $EGREP "getmntent" >/dev
/null
2>&1; then
34205 fu_cv_sys_mounted_getmntent2
=yes
34207 fu_cv_sys_mounted_getmntent2
=no
34213 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34214 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
34215 if test $fu_cv_sys_mounted_getmntent2 = yes; then
34216 ac_list_mounted_fs
=found
34218 cat >>confdefs.h
<<\_ACEOF
34219 #define MOUNTED_GETMNTENT2 1
34227 if test -z "$ac_list_mounted_fs"; then
34228 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34229 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34231 echo "$as_me:$LINENO: checking for getfsstat function" >&5
34232 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
34233 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34234 echo $ECHO_N "(cached) $ECHO_C" >&6
34236 cat >conftest.
$ac_ext <<_ACEOF
34237 #line $LINENO "configure"
34240 cat confdefs.h
>>conftest.
$ac_ext
34241 cat >>conftest.
$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34244 #include <sys/types.h>
34245 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34246 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34248 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34250 $getfsstat_includes
34255 struct statfs *stats;
34256 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34257 char *t = FS_TYPE (*stats);
34262 rm -f conftest.
$ac_objext conftest
$ac_exeext
34263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34264 (eval $ac_link) 2>&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try
='test -s conftest$ac_exeext'
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; }; then
34274 fu_cv_sys_mounted_getfsstat
=yes
34276 echo "$as_me: failed program was:" >&5
34277 sed 's/^/| /' conftest.
$ac_ext >&5
34279 fu_cv_sys_mounted_getfsstat
=no
34281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34284 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34285 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
34286 if test $fu_cv_sys_mounted_getfsstat = yes; then
34287 ac_list_mounted_fs
=found
34289 cat >>confdefs.h
<<\_ACEOF
34290 #define MOUNTED_GETFSSTAT 1
34296 if test -z "$ac_list_mounted_fs"; then
34298 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
34299 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
34300 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
34301 echo $ECHO_N "(cached) $ECHO_C" >&6
34303 cat >conftest.
$ac_ext <<_ACEOF
34304 #line $LINENO "configure"
34307 cat confdefs.h
>>conftest.
$ac_ext
34308 cat >>conftest.
$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 #include <fshelp.h>
34312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34315 grep -v '^ *+' conftest.er1
>conftest.err
34317 cat conftest.err
>&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); } >/dev
/null
; then
34320 if test -s conftest.err
; then
34321 ac_cpp_err
=$ac_c_preproc_warn_flag
34328 if test -z "$ac_cpp_err"; then
34329 fu_cv_sys_mounted_vmount
=yes
34331 echo "$as_me: failed program was:" >&5
34332 sed 's/^/| /' conftest.
$ac_ext >&5
34334 fu_cv_sys_mounted_vmount
=no
34336 rm -f conftest.err conftest.
$ac_ext
34339 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
34340 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
34341 if test $fu_cv_sys_mounted_vmount = yes; then
34342 ac_list_mounted_fs
=found
34344 cat >>confdefs.h
<<\_ACEOF
34345 #define MOUNTED_VMOUNT 1
34351 if test -z "$ac_list_mounted_fs"; then
34353 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34354 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
34355 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34358 cat >conftest.
$ac_ext <<_ACEOF
34359 #line $LINENO "configure"
34362 cat confdefs.h
>>conftest.
$ac_ext
34363 cat >>conftest.
$ac_ext <<_ACEOF
34364 /* end confdefs.h. */
34366 #include <sys/statfs.h>
34367 #include <sys/fstyp.h>
34368 #include <mnttab.h>
34370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34371 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34373 grep -v '^ *+' conftest.er1
>conftest.err
34375 cat conftest.err
>&5
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); } >/dev
/null
; then
34378 if test -s conftest.err
; then
34379 ac_cpp_err
=$ac_c_preproc_warn_flag
34386 if test -z "$ac_cpp_err"; then
34387 fu_cv_sys_mounted_fread_fstyp
=yes
34389 echo "$as_me: failed program was:" >&5
34390 sed 's/^/| /' conftest.
$ac_ext >&5
34392 fu_cv_sys_mounted_fread_fstyp
=no
34394 rm -f conftest.err conftest.
$ac_ext
34397 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34398 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
34399 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34400 ac_list_mounted_fs
=found
34402 cat >>confdefs.h
<<\_ACEOF
34403 #define MOUNTED_FREAD_FSTYP 1
34409 if test -z "$ac_list_mounted_fs"; then
34410 # 4.4BSD and DEC OSF/1.
34411 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34412 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
34413 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34414 echo $ECHO_N "(cached) $ECHO_C" >&6
34417 test "$ac_cv_func_getmntinfo" = yes \
34418 && fu_cv_sys_mounted_getmntinfo
=yes \
34419 || fu_cv_sys_mounted_getmntinfo
=no
34423 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34424 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
34425 if test $fu_cv_sys_mounted_getmntinfo = yes; then
34426 ac_list_mounted_fs
=found
34428 cat >>confdefs.h
<<\_ACEOF
34429 #define MOUNTED_GETMNTINFO 1
34435 if test -z "$ac_list_mounted_fs"; then
34437 echo "$as_me:$LINENO: checking for getmnt function" >&5
34438 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
34439 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34440 echo $ECHO_N "(cached) $ECHO_C" >&6
34442 cat >conftest.
$ac_ext <<_ACEOF
34443 #line $LINENO "configure"
34446 cat confdefs.h
>>conftest.
$ac_ext
34447 cat >>conftest.
$ac_ext <<_ACEOF
34448 /* end confdefs.h. */
34450 #include <sys/fs_types.h>
34451 #include <sys/mount.h>
34453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34454 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34456 grep -v '^ *+' conftest.er1
>conftest.err
34458 cat conftest.err
>&5
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); } >/dev
/null
; then
34461 if test -s conftest.err
; then
34462 ac_cpp_err
=$ac_c_preproc_warn_flag
34469 if test -z "$ac_cpp_err"; then
34470 fu_cv_sys_mounted_getmnt
=yes
34472 echo "$as_me: failed program was:" >&5
34473 sed 's/^/| /' conftest.
$ac_ext >&5
34475 fu_cv_sys_mounted_getmnt
=no
34477 rm -f conftest.err conftest.
$ac_ext
34480 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34481 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
34482 if test $fu_cv_sys_mounted_getmnt = yes; then
34483 ac_list_mounted_fs
=found
34485 cat >>confdefs.h
<<\_ACEOF
34486 #define MOUNTED_GETMNT 1
34492 if test -z "$ac_list_mounted_fs"; then
34496 for ac_func
in next_dev fs_stat_dev
34498 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34499 echo "$as_me:$LINENO: checking for $ac_func" >&5
34500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34501 if eval "test \"\${$as_ac_var+set}\" = set"; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34504 cat >conftest.
$ac_ext <<_ACEOF
34505 #line $LINENO "configure"
34508 cat confdefs.h
>>conftest.
$ac_ext
34509 cat >>conftest.
$ac_ext <<_ACEOF
34510 /* end confdefs.h. */
34511 /* System header to define __stub macros and hopefully few prototypes,
34512 which can conflict with char $ac_func (); below.
34513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34514 <limits.h> exists even on freestanding compilers. */
34516 # include <limits.h>
34518 # include <assert.h>
34520 /* Override any gcc2 internal prototype to avoid an error. */
34525 /* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34528 /* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34534 char (*f) () = $ac_func;
34543 return f != $ac_func;
34548 rm -f conftest.
$ac_objext conftest
$ac_exeext
34549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34550 (eval $ac_link) 2>&5
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); } &&
34554 { ac_try
='test -s conftest$ac_exeext'
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; }; then
34560 eval "$as_ac_var=yes"
34562 echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.
$ac_ext >&5
34565 eval "$as_ac_var=no"
34567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34571 if test `eval echo '${'$as_ac_var'}'` = yes; then
34572 cat >>confdefs.h
<<_ACEOF
34573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34580 for ac_header
in fs_info.h
34582 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34584 echo "$as_me:$LINENO: checking for $ac_header" >&5
34585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34592 # Is the header compilable?
34593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34595 cat >conftest.
$ac_ext <<_ACEOF
34596 #line $LINENO "configure"
34599 cat confdefs.h
>>conftest.
$ac_ext
34600 cat >>conftest.
$ac_ext <<_ACEOF
34601 /* end confdefs.h. */
34602 $ac_includes_default
34603 #include <$ac_header>
34605 rm -f conftest.
$ac_objext
34606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34607 (eval $ac_compile) 2>&5
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
34611 { ac_try
='test -s conftest.$ac_objext'
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; }; then
34617 ac_header_compiler
=yes
34619 echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.
$ac_ext >&5
34622 ac_header_compiler
=no
34624 rm -f conftest.
$ac_objext conftest.
$ac_ext
34625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34626 echo "${ECHO_T}$ac_header_compiler" >&6
34628 # Is the header present?
34629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34631 cat >conftest.
$ac_ext <<_ACEOF
34632 #line $LINENO "configure"
34635 cat confdefs.h
>>conftest.
$ac_ext
34636 cat >>conftest.
$ac_ext <<_ACEOF
34637 /* end confdefs.h. */
34638 #include <$ac_header>
34640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34641 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34643 grep -v '^ *+' conftest.er1
>conftest.err
34645 cat conftest.err
>&5
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); } >/dev
/null
; then
34648 if test -s conftest.err
; then
34649 ac_cpp_err
=$ac_c_preproc_warn_flag
34656 if test -z "$ac_cpp_err"; then
34657 ac_header_preproc
=yes
34659 echo "$as_me: failed program was:" >&5
34660 sed 's/^/| /' conftest.
$ac_ext >&5
34662 ac_header_preproc
=no
34664 rm -f conftest.err conftest.
$ac_ext
34665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34666 echo "${ECHO_T}$ac_header_preproc" >&6
34668 # So? What about this header?
34669 case $ac_header_compiler:$ac_header_preproc in
34671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34677 ## ------------------------------------ ##
34678 ## Report this to bug-autoconf@gnu.org. ##
34679 ## ------------------------------------ ##
34682 sed "s/^/$as_me: WARNING: /" >&2
34685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34693 ## ------------------------------------ ##
34694 ## Report this to bug-autoconf@gnu.org. ##
34695 ## ------------------------------------ ##
34698 sed "s/^/$as_me: WARNING: /" >&2
34701 echo "$as_me:$LINENO: checking for $ac_header" >&5
34702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34704 echo $ECHO_N "(cached) $ECHO_C" >&6
34706 eval "$as_ac_Header=$ac_header_preproc"
34708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34713 cat >>confdefs.h
<<_ACEOF
34714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34721 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34722 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
34723 if test $ac_cv_header_fs_info_h = yes \
34724 && test $ac_cv_func_next_dev = yes \
34725 && test $ac_cv_func_fs_stat_dev = yes; then
34730 echo "$as_me:$LINENO: result: $fu_result" >&5
34731 echo "${ECHO_T}$fu_result" >&6
34732 if test $fu_result = yes; then
34733 ac_list_mounted_fs
=found
34735 cat >>confdefs.h
<<\_ACEOF
34736 #define MOUNTED_FS_STAT_DEV 1
34742 if test -z "$ac_list_mounted_fs"; then
34744 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34745 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
34746 if test "${fu_cv_sys_mounted_fread+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34749 cat >conftest.
$ac_ext <<_ACEOF
34750 #line $LINENO "configure"
34753 cat confdefs.h
>>conftest.
$ac_ext
34754 cat >>conftest.
$ac_ext <<_ACEOF
34755 /* end confdefs.h. */
34756 #include <mnttab.h>
34758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34759 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34761 grep -v '^ *+' conftest.er1
>conftest.err
34763 cat conftest.err
>&5
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); } >/dev
/null
; then
34766 if test -s conftest.err
; then
34767 ac_cpp_err
=$ac_c_preproc_warn_flag
34774 if test -z "$ac_cpp_err"; then
34775 fu_cv_sys_mounted_fread
=yes
34777 echo "$as_me: failed program was:" >&5
34778 sed 's/^/| /' conftest.
$ac_ext >&5
34780 fu_cv_sys_mounted_fread
=no
34782 rm -f conftest.err conftest.
$ac_ext
34785 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
34786 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
34787 if test $fu_cv_sys_mounted_fread = yes; then
34788 ac_list_mounted_fs
=found
34790 cat >>confdefs.h
<<\_ACEOF
34791 #define MOUNTED_FREAD 1
34797 if test -z "$ac_list_mounted_fs"; then
34798 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
34799 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
34800 { (exit 1); exit 1; }; }
34801 # FIXME -- no need to abort building the whole package
34802 # Can't build mountlist.c or anything that needs its functions
34805 if test $ac_list_mounted_fs = found
; then
34806 list_mounted_fs
=yes
34814 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
34815 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
34816 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
34817 echo $ECHO_N "(cached) $ECHO_C" >&6
34820 cat >conftest.
$ac_ext <<_ACEOF
34821 #line $LINENO "configure"
34824 cat confdefs.h
>>conftest.
$ac_ext
34825 cat >>conftest.
$ac_ext <<_ACEOF
34826 /* end confdefs.h. */
34828 #include <sys/param.h>
34829 #include <sys/types.h>
34830 #include <sys/mount.h>
34835 struct statfs s; int i = sizeof s.f_fstypename;
34840 rm -f conftest.
$ac_objext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34842 (eval $ac_compile) 2>&5
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } &&
34846 { ac_try
='test -s conftest.$ac_objext'
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; }; then
34852 fu_cv_sys_f_fstypename_in_statfs
=yes
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.
$ac_ext >&5
34857 fu_cv_sys_f_fstypename_in_statfs
=no
34860 rm -f conftest.
$ac_objext conftest.
$ac_ext
34864 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
34865 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
34867 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
34869 cat >>confdefs.h
<<\_ACEOF
34870 #define HAVE_F_FSTYPENAME_IN_STATFS 1
34878 echo "checking how to get filesystem space usage..."
34879 ac_fsusage_space
=no
34881 # Perform only the link test since it seems there are no variants of the
34882 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
34883 # because that got a false positive on SCO OSR5. Adding the declaration
34884 # of a `struct statvfs' causes this test to fail (as it should) on such
34885 # systems. That system is reported to work fine with STAT_STATFS4 which
34886 # is what it gets when this test fails.
34887 if test $ac_fsusage_space = no
; then
34889 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
34890 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
34891 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34894 cat >conftest.
$ac_ext <<_ACEOF
34895 #line $LINENO "configure"
34898 cat confdefs.h
>>conftest.
$ac_ext
34899 cat >>conftest.
$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 #include <sys/types.h>
34902 #include <sys/statvfs.h>
34906 struct statvfs fsd; statvfs (0, &fsd);
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 fu_cv_sys_stat_statvfs
=yes
34925 echo "$as_me: failed program was:" >&5
34926 sed 's/^/| /' conftest.
$ac_ext >&5
34928 fu_cv_sys_stat_statvfs
=no
34930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34932 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
34933 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
34934 if test $fu_cv_sys_stat_statvfs = yes; then
34935 ac_fsusage_space
=yes
34937 cat >>confdefs.h
<<\_ACEOF
34938 #define STAT_STATVFS 1
34944 if test $ac_fsusage_space = no
; then
34945 # DEC Alpha running OSF/1
34946 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
34947 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
34948 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
34949 echo $ECHO_N "(cached) $ECHO_C" >&6
34951 if test "$cross_compiling" = yes; then
34952 fu_cv_sys_stat_statfs3_osf1
=no
34954 cat >conftest.
$ac_ext <<_ACEOF
34955 #line $LINENO "configure"
34958 cat confdefs.h
>>conftest.
$ac_ext
34959 cat >>conftest.
$ac_ext <<_ACEOF
34960 /* end confdefs.h. */
34962 #include <sys/param.h>
34963 #include <sys/types.h>
34964 #include <sys/mount.h>
34969 exit (statfs (".", &fsd, sizeof (struct statfs)));
34972 rm -f conftest
$ac_exeext
34973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34974 (eval $ac_link) 2>&5
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; }; then
34983 fu_cv_sys_stat_statfs3_osf1
=yes
34985 echo "$as_me: program exited with status $ac_status" >&5
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.
$ac_ext >&5
34989 ( exit $ac_status )
34990 fu_cv_sys_stat_statfs3_osf1
=no
34992 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
34996 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
34997 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
34998 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
34999 ac_fsusage_space
=yes
35001 cat >>confdefs.h
<<\_ACEOF
35002 #define STAT_STATFS3_OSF1 1
35008 if test $ac_fsusage_space = no
; then
35010 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
35011 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
35012 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35015 if test "$cross_compiling" = yes; then
35016 fu_cv_sys_stat_statfs2_bsize
=no
35018 cat >conftest.
$ac_ext <<_ACEOF
35019 #line $LINENO "configure"
35022 cat confdefs.h
>>conftest.
$ac_ext
35023 cat >>conftest.
$ac_ext <<_ACEOF
35024 /* end confdefs.h. */
35026 #ifdef HAVE_SYS_PARAM_H
35027 #include <sys/param.h>
35029 #ifdef HAVE_SYS_MOUNT_H
35030 #include <sys/mount.h>
35032 #ifdef HAVE_SYS_VFS_H
35033 #include <sys/vfs.h>
35039 exit (statfs (".", &fsd));
35042 rm -f conftest
$ac_exeext
35043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35044 (eval $ac_link) 2>&5
35046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049 (eval $ac_try) 2>&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; }; then
35053 fu_cv_sys_stat_statfs2_bsize
=yes
35055 echo "$as_me: program exited with status $ac_status" >&5
35056 echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.
$ac_ext >&5
35059 ( exit $ac_status )
35060 fu_cv_sys_stat_statfs2_bsize
=no
35062 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35066 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
35067 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
35068 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
35069 ac_fsusage_space
=yes
35071 cat >>confdefs.h
<<\_ACEOF
35072 #define STAT_STATFS2_BSIZE 1
35078 if test $ac_fsusage_space = no
; then
35080 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
35081 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
35082 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35085 if test "$cross_compiling" = yes; then
35086 fu_cv_sys_stat_statfs4
=no
35088 cat >conftest.
$ac_ext <<_ACEOF
35089 #line $LINENO "configure"
35092 cat confdefs.h
>>conftest.
$ac_ext
35093 cat >>conftest.
$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 #include <sys/types.h>
35096 #include <sys/statfs.h>
35100 exit (statfs (".", &fsd, sizeof fsd, 0));
35103 rm -f conftest
$ac_exeext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35105 (eval $ac_link) 2>&5
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35110 (eval $ac_try) 2>&5
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); }; }; then
35114 fu_cv_sys_stat_statfs4
=yes
35116 echo "$as_me: program exited with status $ac_status" >&5
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.
$ac_ext >&5
35120 ( exit $ac_status )
35121 fu_cv_sys_stat_statfs4
=no
35123 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35127 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
35128 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
35129 if test $fu_cv_sys_stat_statfs4 = yes; then
35130 ac_fsusage_space
=yes
35132 cat >>confdefs.h
<<\_ACEOF
35133 #define STAT_STATFS4 1
35139 if test $ac_fsusage_space = no
; then
35140 # 4.4BSD and NetBSD
35141 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
35142 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
35143 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 if test "$cross_compiling" = yes; then
35147 fu_cv_sys_stat_statfs2_fsize
=no
35149 cat >conftest.
$ac_ext <<_ACEOF
35150 #line $LINENO "configure"
35153 cat confdefs.h
>>conftest.
$ac_ext
35154 cat >>conftest.
$ac_ext <<_ACEOF
35155 /* end confdefs.h. */
35156 #include <sys/types.h>
35157 #ifdef HAVE_SYS_PARAM_H
35158 #include <sys/param.h>
35160 #ifdef HAVE_SYS_MOUNT_H
35161 #include <sys/mount.h>
35167 exit (statfs (".", &fsd));
35170 rm -f conftest
$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172 (eval $ac_link) 2>&5
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 fu_cv_sys_stat_statfs2_fsize
=yes
35183 echo "$as_me: program exited with status $ac_status" >&5
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.
$ac_ext >&5
35187 ( exit $ac_status )
35188 fu_cv_sys_stat_statfs2_fsize
=no
35190 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35194 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
35195 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
35196 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
35197 ac_fsusage_space
=yes
35199 cat >>confdefs.h
<<\_ACEOF
35200 #define STAT_STATFS2_FSIZE 1
35206 if test $ac_fsusage_space = no
; then
35208 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
35209 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
35210 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
35211 echo $ECHO_N "(cached) $ECHO_C" >&6
35213 if test "$cross_compiling" = yes; then
35214 fu_cv_sys_stat_fs_data
=no
35216 cat >conftest.
$ac_ext <<_ACEOF
35217 #line $LINENO "configure"
35220 cat confdefs.h
>>conftest.
$ac_ext
35221 cat >>conftest.
$ac_ext <<_ACEOF
35222 /* end confdefs.h. */
35223 #include <sys/types.h>
35224 #ifdef HAVE_SYS_PARAM_H
35225 #include <sys/param.h>
35227 #ifdef HAVE_SYS_MOUNT_H
35228 #include <sys/mount.h>
35230 #ifdef HAVE_SYS_FS_TYPES_H
35231 #include <sys/fs_types.h>
35235 struct fs_data fsd;
35236 /* Ultrix's statfs returns 1 for success,
35237 0 for not mounted, -1 for failure. */
35238 exit (statfs (".", &fsd) != 1);
35241 rm -f conftest
$ac_exeext
35242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35243 (eval $ac_link) 2>&5
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248 (eval $ac_try) 2>&5
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); }; }; then
35252 fu_cv_sys_stat_fs_data
=yes
35254 echo "$as_me: program exited with status $ac_status" >&5
35255 echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.
$ac_ext >&5
35258 ( exit $ac_status )
35259 fu_cv_sys_stat_fs_data
=no
35261 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35265 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
35266 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
35267 if test $fu_cv_sys_stat_fs_data = yes; then
35268 ac_fsusage_space
=yes
35270 cat >>confdefs.h
<<\_ACEOF
35271 #define STAT_STATFS2_FS_DATA 1
35277 if test $ac_fsusage_space = no
; then
35279 cat >conftest.
$ac_ext <<_ACEOF
35280 #line $LINENO "configure"
35283 cat confdefs.h
>>conftest.
$ac_ext
35284 cat >>conftest.
$ac_ext <<_ACEOF
35285 /* end confdefs.h. */
35286 #include <sys/filsys.h>
35289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35292 grep -v '^ *+' conftest.er1
>conftest.err
35294 cat conftest.err
>&5
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); } >/dev
/null
; then
35297 if test -s conftest.err
; then
35298 ac_cpp_err
=$ac_c_preproc_warn_flag
35305 if test -z "$ac_cpp_err"; then
35307 cat >>confdefs.h
<<\_ACEOF
35308 #define STAT_READ_FILSYS 1
35311 ac_fsusage_space
=yes
35313 echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.
$ac_ext >&5
35318 rm -f conftest.err conftest.
$ac_ext
35321 if test $ac_fsusage_space = yes; then
35329 if test $list_mounted_fs = yes && test $space = yes; then
35331 LIBOBJS
="$LIBOBJS fsusage.$ac_objext"
35332 LIBOBJS
="$LIBOBJS mountlist.$ac_objext"
35338 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
35339 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
35340 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
35341 echo $ECHO_N "(cached) $ECHO_C" >&6
35343 cat >conftest.
$ac_ext <<_ACEOF
35344 #line $LINENO "configure"
35347 cat confdefs.h
>>conftest.
$ac_ext
35348 cat >>conftest.
$ac_ext <<_ACEOF
35349 /* end confdefs.h. */
35350 #include <sys/types.h>
35351 #include <termios.h>
35357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35358 $EGREP "yes" >/dev
/null
2>&1; then
35359 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
35361 ac_cv_sys_tiocgwinsz_in_termios_h
=no
35366 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
35367 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
35369 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
35370 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
35371 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
35372 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
35373 echo $ECHO_N "(cached) $ECHO_C" >&6
35375 cat >conftest.
$ac_ext <<_ACEOF
35376 #line $LINENO "configure"
35379 cat confdefs.h
>>conftest.
$ac_ext
35380 cat >>conftest.
$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 #include <sys/types.h>
35383 #include <sys/ioctl.h>
35389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35390 $EGREP "yes" >/dev
/null
2>&1; then
35391 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
35393 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
35398 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
35399 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
35401 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
35403 cat >>confdefs.h
<<\_ACEOF
35404 #define GWINSZ_IN_SYS_IOCTL 1
35410 echo "$as_me:$LINENO: checking POSIX termios" >&5
35411 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
35412 if test "${ac_cv_sys_posix_termios+set}" = set; then
35413 echo $ECHO_N "(cached) $ECHO_C" >&6
35415 cat >conftest.
$ac_ext <<_ACEOF
35416 #line $LINENO "configure"
35419 cat confdefs.h
>>conftest.
$ac_ext
35420 cat >>conftest.
$ac_ext <<_ACEOF
35421 /* end confdefs.h. */
35422 #include <sys/types.h>
35423 #include <unistd.h>
35424 #include <termios.h>
35429 /* SunOS 4.0.3 has termios.h but not the library calls. */
35435 rm -f conftest.
$ac_objext conftest
$ac_exeext
35436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35437 (eval $ac_link) 2>&5
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); } &&
35441 { ac_try
='test -s conftest$ac_exeext'
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; }; then
35447 ac_cv_sys_posix_termios
=yes
35449 echo "$as_me: failed program was:" >&5
35450 sed 's/^/| /' conftest.
$ac_ext >&5
35452 ac_cv_sys_posix_termios
=no
35454 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35456 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
35457 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
35460 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
35461 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
35462 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
35463 echo $ECHO_N "(cached) $ECHO_C" >&6
35465 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
35466 if test $ac_cv_sys_posix_termios = yes; then
35467 cat >conftest.
$ac_ext <<_ACEOF
35468 #line $LINENO "configure"
35471 cat confdefs.h
>>conftest.
$ac_ext
35472 cat >>conftest.
$ac_ext <<_ACEOF
35473 /* end confdefs.h. */
35474 #include <termios.h>
35479 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
35484 rm -f conftest.
$ac_objext
35485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35486 (eval $ac_compile) 2>&5
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } &&
35490 { ac_try
='test -s conftest.$ac_objext'
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35498 echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.
$ac_ext >&5
35502 rm -f conftest.
$ac_objext conftest.
$ac_ext
35504 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
35505 cat >conftest.
$ac_ext <<_ACEOF
35506 #line $LINENO "configure"
35509 cat confdefs.h
>>conftest.
$ac_ext
35510 cat >>conftest.
$ac_ext <<_ACEOF
35511 /* end confdefs.h. */
35512 #include <sys/ptem.h>
35521 rm -f conftest.
$ac_objext
35522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35523 (eval $ac_compile) 2>&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } &&
35527 { ac_try
='test -s conftest.$ac_objext'
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35535 echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.
$ac_ext >&5
35538 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
35540 rm -f conftest.
$ac_objext conftest.
$ac_ext
35543 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
35544 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
35545 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
35547 cat >>confdefs.h
<<\_ACEOF
35548 #define WINSIZE_IN_PTEM 1
35553 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
35554 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
35555 # enable the work-around code in fsusage.c.
35556 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
35557 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
35558 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35561 cat >conftest.
$ac_ext <<_ACEOF
35562 #line $LINENO "configure"
35565 cat confdefs.h
>>conftest.
$ac_ext
35566 cat >>conftest.
$ac_ext <<_ACEOF
35567 /* end confdefs.h. */
35569 #if !defined(sun) && !defined(__sun)
35570 choke -- this is a workaround for a Sun-specific problem
35572 #include <sys/types.h>
35573 #include <sys/vfs.h>
35577 struct statfs t; long c = *(t.f_spare);
35582 rm -f conftest.
$ac_objext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35584 (eval $ac_compile) 2>&5
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); } &&
35588 { ac_try
='test -s conftest.$ac_objext'
35589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590 (eval $ac_try) 2>&5
35592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593 (exit $ac_status); }; }; then
35594 fu_cv_sys_truncating_statfs
=yes
35596 echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.
$ac_ext >&5
35599 fu_cv_sys_truncating_statfs
=no
35601 rm -f conftest.
$ac_objext conftest.
$ac_ext
35604 if test $fu_cv_sys_truncating_statfs = yes; then
35606 cat >>confdefs.h
<<\_ACEOF
35607 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
35611 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
35612 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
35614 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
35615 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
35616 if test "${utils_cv_localtime_cache+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35619 if test x
$ac_cv_func_tzset = xyes
; then
35620 if test "$cross_compiling" = yes; then
35621 # If we have tzset, assume the worst when cross-compiling.
35622 utils_cv_localtime_cache
=yes
35624 cat >conftest.
$ac_ext <<_ACEOF
35625 #line $LINENO "configure"
35628 cat confdefs.h
>>conftest.
$ac_ext
35629 cat >>conftest.
$ac_ext <<_ACEOF
35630 /* end confdefs.h. */
35633 # include <stdlib.h>
35635 extern char **environ;
35639 for (to = from = environ; (*to = *from); from++)
35640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
35645 time_t now = time ((time_t *) 0);
35646 int hour_GMT0, hour_unset;
35647 if (putenv ("TZ=GMT0") != 0)
35649 hour_GMT0 = localtime (&now)->tm_hour;
35651 hour_unset = localtime (&now)->tm_hour;
35652 if (putenv ("TZ=PST8") != 0)
35654 if (localtime (&now)->tm_hour == hour_GMT0)
35657 if (localtime (&now)->tm_hour != hour_unset)
35662 rm -f conftest
$ac_exeext
35663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35664 (eval $ac_link) 2>&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35669 (eval $ac_try) 2>&5
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); }; }; then
35673 utils_cv_localtime_cache
=no
35675 echo "$as_me: program exited with status $ac_status" >&5
35676 echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.
$ac_ext >&5
35679 ( exit $ac_status )
35680 utils_cv_localtime_cache
=yes
35682 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35685 # If we lack tzset, report that localtime does not cache TZ,
35686 # since we can't invalidate the cache if we don't have tzset.
35687 utils_cv_localtime_cache
=no
35690 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
35691 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
35692 if test $utils_cv_localtime_cache = yes; then
35694 cat >>confdefs.h
<<\_ACEOF
35695 #define LOCALTIME_CACHE 1
35700 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
35702 for ac_func
in initgroups
35704 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35705 echo "$as_me:$LINENO: checking for $ac_func" >&5
35706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35707 if eval "test \"\${$as_ac_var+set}\" = set"; then
35708 echo $ECHO_N "(cached) $ECHO_C" >&6
35710 cat >conftest.
$ac_ext <<_ACEOF
35711 #line $LINENO "configure"
35714 cat confdefs.h
>>conftest.
$ac_ext
35715 cat >>conftest.
$ac_ext <<_ACEOF
35716 /* end confdefs.h. */
35717 /* System header to define __stub macros and hopefully few prototypes,
35718 which can conflict with char $ac_func (); below.
35719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35720 <limits.h> exists even on freestanding compilers. */
35722 # include <limits.h>
35724 # include <assert.h>
35726 /* Override any gcc2 internal prototype to avoid an error. */
35731 /* We use char because int might match the return type of a gcc2
35732 builtin and then its argument prototype would still apply. */
35734 /* The GNU C library defines this for functions which it implements
35735 to always fail with ENOSYS. Some functions are actually named
35736 something starting with __ and the normal name is an alias. */
35737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35740 char (*f) () = $ac_func;
35749 return f != $ac_func;
35754 rm -f conftest.
$ac_objext conftest
$ac_exeext
35755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35756 (eval $ac_link) 2>&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
35760 { ac_try
='test -s conftest$ac_exeext'
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 eval "$as_ac_var=yes"
35768 echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.
$ac_ext >&5
35771 eval "$as_ac_var=no"
35773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35777 if test `eval echo '${'$as_ac_var'}'` = yes; then
35778 cat >>confdefs.h
<<_ACEOF
35779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35785 if test $ac_cv_func_initgroups = no
; then
35787 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
35788 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
35789 if test "${ac_cv_lib_os_initgroups+set}" = set; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35792 ac_check_lib_save_LIBS
=$LIBS
35794 cat >conftest.
$ac_ext <<_ACEOF
35795 #line $LINENO "configure"
35798 cat confdefs.h
>>conftest.
$ac_ext
35799 cat >>conftest.
$ac_ext <<_ACEOF
35800 /* end confdefs.h. */
35802 /* Override any gcc2 internal prototype to avoid an error. */
35806 /* We use char because int might match the return type of a gcc2
35807 builtin and then its argument prototype would still apply. */
35808 char initgroups ();
35817 rm -f conftest.
$ac_objext conftest
$ac_exeext
35818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35819 (eval $ac_link) 2>&5
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); } &&
35823 { ac_try
='test -s conftest$ac_exeext'
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; }; then
35829 ac_cv_lib_os_initgroups
=yes
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.
$ac_ext >&5
35834 ac_cv_lib_os_initgroups
=no
35836 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35837 LIBS
=$ac_check_lib_save_LIBS
35839 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
35840 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
35841 if test $ac_cv_lib_os_initgroups = yes; then
35842 cat >>confdefs.h
<<_ACEOF
35843 #define HAVE_LIBOS 1
35853 for ac_func
in syslog
35855 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35856 echo "$as_me:$LINENO: checking for $ac_func" >&5
35857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35858 if eval "test \"\${$as_ac_var+set}\" = set"; then
35859 echo $ECHO_N "(cached) $ECHO_C" >&6
35861 cat >conftest.
$ac_ext <<_ACEOF
35862 #line $LINENO "configure"
35865 cat confdefs.h
>>conftest.
$ac_ext
35866 cat >>conftest.
$ac_ext <<_ACEOF
35867 /* end confdefs.h. */
35868 /* System header to define __stub macros and hopefully few prototypes,
35869 which can conflict with char $ac_func (); below.
35870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35871 <limits.h> exists even on freestanding compilers. */
35873 # include <limits.h>
35875 # include <assert.h>
35877 /* Override any gcc2 internal prototype to avoid an error. */
35882 /* We use char because int might match the return type of a gcc2
35883 builtin and then its argument prototype would still apply. */
35885 /* The GNU C library defines this for functions which it implements
35886 to always fail with ENOSYS. Some functions are actually named
35887 something starting with __ and the normal name is an alias. */
35888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35891 char (*f) () = $ac_func;
35900 return f != $ac_func;
35905 rm -f conftest.
$ac_objext conftest
$ac_exeext
35906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35907 (eval $ac_link) 2>&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } &&
35911 { ac_try
='test -s conftest$ac_exeext'
35912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35913 (eval $ac_try) 2>&5
35915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35916 (exit $ac_status); }; }; then
35917 eval "$as_ac_var=yes"
35919 echo "$as_me: failed program was:" >&5
35920 sed 's/^/| /' conftest.
$ac_ext >&5
35922 eval "$as_ac_var=no"
35924 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35928 if test `eval echo '${'$as_ac_var'}'` = yes; then
35929 cat >>confdefs.h
<<_ACEOF
35930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35936 if test $ac_cv_func_syslog = no
; then
35937 # syslog is not in the default libraries. See if it's in some other.
35938 for lib
in bsd socket inet
; do
35939 as_ac_Lib
=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
35940 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
35941 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
35942 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35943 echo $ECHO_N "(cached) $ECHO_C" >&6
35945 ac_check_lib_save_LIBS
=$LIBS
35946 LIBS
="-l$lib $LIBS"
35947 cat >conftest.
$ac_ext <<_ACEOF
35948 #line $LINENO "configure"
35951 cat confdefs.h
>>conftest.
$ac_ext
35952 cat >>conftest.
$ac_ext <<_ACEOF
35953 /* end confdefs.h. */
35955 /* Override any gcc2 internal prototype to avoid an error. */
35959 /* We use char because int might match the return type of a gcc2
35960 builtin and then its argument prototype would still apply. */
35970 rm -f conftest.
$ac_objext conftest
$ac_exeext
35971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35972 (eval $ac_link) 2>&5
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } &&
35976 { ac_try
='test -s conftest$ac_exeext'
35977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35978 (eval $ac_try) 2>&5
35980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 (exit $ac_status); }; }; then
35982 eval "$as_ac_Lib=yes"
35984 echo "$as_me: failed program was:" >&5
35985 sed 's/^/| /' conftest.
$ac_ext >&5
35987 eval "$as_ac_Lib=no"
35989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35990 LIBS
=$ac_check_lib_save_LIBS
35992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35993 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35994 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35996 cat >>confdefs.h
<<\_ACEOF
35997 #define HAVE_SYSLOG 1
36000 LIBS
="$LIBS -l$lib"; break
36006 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
36007 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
36008 if test "${utils_cv_func_setpriority+set}" = set; then
36009 echo $ECHO_N "(cached) $ECHO_C" >&6
36011 cat >conftest.
$ac_ext <<_ACEOF
36012 #line $LINENO "configure"
36015 cat confdefs.h
>>conftest.
$ac_ext
36016 cat >>conftest.
$ac_ext <<_ACEOF
36017 /* end confdefs.h. */
36018 #include <sys/time.h>
36019 #include <sys/resource.h>
36023 setpriority(0, 0, 0);
36028 rm -f conftest.
$ac_objext conftest
$ac_exeext
36029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36030 (eval $ac_link) 2>&5
36032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033 (exit $ac_status); } &&
36034 { ac_try
='test -s conftest$ac_exeext'
36035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36036 (eval $ac_try) 2>&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); }; }; then
36040 utils_cv_func_setpriority
=yes
36042 echo "$as_me: failed program was:" >&5
36043 sed 's/^/| /' conftest.
$ac_ext >&5
36045 utils_cv_func_setpriority
=no
36047 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36050 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
36051 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
36052 if test $utils_cv_func_setpriority = yes; then
36053 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
36054 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
36055 MAN
="$MAN nice.1 nohup.1"
36057 echo "$as_me:$LINENO: checking for nice function" >&5
36058 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
36059 if test "${utils_cv_func_nice+set}" = set; then
36060 echo $ECHO_N "(cached) $ECHO_C" >&6
36062 cat >conftest.
$ac_ext <<_ACEOF
36063 #line $LINENO "configure"
36066 cat confdefs.h
>>conftest.
$ac_ext
36067 cat >>conftest.
$ac_ext <<_ACEOF
36068 /* end confdefs.h. */
36078 rm -f conftest.
$ac_objext conftest
$ac_exeext
36079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36080 (eval $ac_link) 2>&5
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } &&
36084 { ac_try
='test -s conftest$ac_exeext'
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; }; then
36090 utils_cv_func_nice
=yes
36092 echo "$as_me: failed program was:" >&5
36093 sed 's/^/| /' conftest.
$ac_ext >&5
36095 utils_cv_func_nice
=no
36097 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36100 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
36101 echo "${ECHO_T}$utils_cv_func_nice" >&6
36102 if test $utils_cv_func_nice = yes; then
36104 cat >>confdefs.h
<<\_ACEOF
36105 #define NICE_PRIORITY 1
36108 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
36109 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
36110 MAN
="$MAN nice.1 nohup.1"
36117 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
36118 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS pinky users who"
36119 MAN
="$MAN pinky.1 users.1 who.1"
36123 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
36124 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
36125 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
36126 echo $ECHO_N "(cached) $ECHO_C" >&6
36128 cat >conftest.
$ac_ext <<_ACEOF
36129 #line $LINENO "configure"
36132 cat confdefs.h
>>conftest.
$ac_ext
36133 cat >>conftest.
$ac_ext <<_ACEOF
36134 /* end confdefs.h. */
36135 #include <sys/types.h>
36140 struct utmp ut; ut.ut_host;
36145 rm -f conftest.
$ac_objext conftest
$ac_exeext
36146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36147 (eval $ac_link) 2>&5
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); } &&
36151 { ac_try
='test -s conftest$ac_exeext'
36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153 (eval $ac_try) 2>&5
36155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; }; then
36157 su_cv_func_ut_host_in_utmp
=yes
36159 echo "$as_me: failed program was:" >&5
36160 sed 's/^/| /' conftest.
$ac_ext >&5
36162 su_cv_func_ut_host_in_utmp
=no
36164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36167 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
36168 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
36169 if test $su_cv_func_ut_host_in_utmp = yes; then
36172 cat >>confdefs.h
<<\_ACEOF
36173 #define HAVE_UT_HOST 1
36178 if test -z "$have_ut_host"; then
36179 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
36180 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
36181 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
36182 echo $ECHO_N "(cached) $ECHO_C" >&6
36184 cat >conftest.
$ac_ext <<_ACEOF
36185 #line $LINENO "configure"
36188 cat confdefs.h
>>conftest.
$ac_ext
36189 cat >>conftest.
$ac_ext <<_ACEOF
36190 /* end confdefs.h. */
36191 #include <sys/types.h>
36196 struct utmpx ut; ut.ut_host;
36201 rm -f conftest.
$ac_objext conftest
$ac_exeext
36202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36203 (eval $ac_link) 2>&5
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
36207 { ac_try
='test -s conftest$ac_exeext'
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; }; then
36213 su_cv_func_ut_host_in_utmpx
=yes
36215 echo "$as_me: failed program was:" >&5
36216 sed 's/^/| /' conftest.
$ac_ext >&5
36218 su_cv_func_ut_host_in_utmpx
=no
36220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36223 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
36224 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
36225 if test $su_cv_func_ut_host_in_utmpx = yes; then
36227 cat >>confdefs.h
<<\_ACEOF
36228 #define HAVE_UTMPX_H 1
36232 cat >>confdefs.h
<<\_ACEOF
36233 #define HAVE_UT_HOST 1
36241 for ac_func
in sysctl
36243 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36244 echo "$as_me:$LINENO: checking for $ac_func" >&5
36245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36246 if eval "test \"\${$as_ac_var+set}\" = set"; then
36247 echo $ECHO_N "(cached) $ECHO_C" >&6
36249 cat >conftest.
$ac_ext <<_ACEOF
36250 #line $LINENO "configure"
36253 cat confdefs.h
>>conftest.
$ac_ext
36254 cat >>conftest.
$ac_ext <<_ACEOF
36255 /* end confdefs.h. */
36256 /* System header to define __stub macros and hopefully few prototypes,
36257 which can conflict with char $ac_func (); below.
36258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36259 <limits.h> exists even on freestanding compilers. */
36261 # include <limits.h>
36263 # include <assert.h>
36265 /* Override any gcc2 internal prototype to avoid an error. */
36270 /* We use char because int might match the return type of a gcc2
36271 builtin and then its argument prototype would still apply. */
36273 /* The GNU C library defines this for functions which it implements
36274 to always fail with ENOSYS. Some functions are actually named
36275 something starting with __ and the normal name is an alias. */
36276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36279 char (*f) () = $ac_func;
36288 return f != $ac_func;
36293 rm -f conftest.
$ac_objext conftest
$ac_exeext
36294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36295 (eval $ac_link) 2>&5
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); } &&
36299 { ac_try
='test -s conftest$ac_exeext'
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 eval "$as_ac_var=yes"
36307 echo "$as_me: failed program was:" >&5
36308 sed 's/^/| /' conftest.
$ac_ext >&5
36310 eval "$as_ac_var=no"
36312 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36316 if test `eval echo '${'$as_ac_var'}'` = yes; then
36317 cat >>confdefs.h
<<_ACEOF
36318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36325 for ac_header
in sys
/sysctl.h
36327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36329 echo "$as_me:$LINENO: checking for $ac_header" >&5
36330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36332 echo $ECHO_N "(cached) $ECHO_C" >&6
36334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36337 # Is the header compilable?
36338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36340 cat >conftest.
$ac_ext <<_ACEOF
36341 #line $LINENO "configure"
36344 cat confdefs.h
>>conftest.
$ac_ext
36345 cat >>conftest.
$ac_ext <<_ACEOF
36346 /* end confdefs.h. */
36347 $ac_includes_default
36348 #include <$ac_header>
36350 rm -f conftest.
$ac_objext
36351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36352 (eval $ac_compile) 2>&5
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); } &&
36356 { ac_try
='test -s conftest.$ac_objext'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 ac_header_compiler
=yes
36364 echo "$as_me: failed program was:" >&5
36365 sed 's/^/| /' conftest.
$ac_ext >&5
36367 ac_header_compiler
=no
36369 rm -f conftest.
$ac_objext conftest.
$ac_ext
36370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36371 echo "${ECHO_T}$ac_header_compiler" >&6
36373 # Is the header present?
36374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36376 cat >conftest.
$ac_ext <<_ACEOF
36377 #line $LINENO "configure"
36380 cat confdefs.h
>>conftest.
$ac_ext
36381 cat >>conftest.
$ac_ext <<_ACEOF
36382 /* end confdefs.h. */
36383 #include <$ac_header>
36385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
36388 grep -v '^ *+' conftest.er1
>conftest.err
36390 cat conftest.err
>&5
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); } >/dev
/null
; then
36393 if test -s conftest.err
; then
36394 ac_cpp_err
=$ac_c_preproc_warn_flag
36401 if test -z "$ac_cpp_err"; then
36402 ac_header_preproc
=yes
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.
$ac_ext >&5
36407 ac_header_preproc
=no
36409 rm -f conftest.err conftest.
$ac_ext
36410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36411 echo "${ECHO_T}$ac_header_preproc" >&6
36413 # So? What about this header?
36414 case $ac_header_compiler:$ac_header_preproc in
36416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36422 ## ------------------------------------ ##
36423 ## Report this to bug-autoconf@gnu.org. ##
36424 ## ------------------------------------ ##
36427 sed "s/^/$as_me: WARNING: /" >&2
36430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36438 ## ------------------------------------ ##
36439 ## Report this to bug-autoconf@gnu.org. ##
36440 ## ------------------------------------ ##
36443 sed "s/^/$as_me: WARNING: /" >&2
36446 echo "$as_me:$LINENO: checking for $ac_header" >&5
36447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36449 echo $ECHO_N "(cached) $ECHO_C" >&6
36451 eval "$as_ac_Header=$ac_header_preproc"
36453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36458 cat >>confdefs.h
<<_ACEOF
36459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36466 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
36467 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
36468 if test "${gnulib_cv_have_boot_time+set}" = set; then
36469 echo $ECHO_N "(cached) $ECHO_C" >&6
36472 cat >conftest.
$ac_ext <<_ACEOF
36473 #line $LINENO "configure"
36476 cat confdefs.h
>>conftest.
$ac_ext
36477 cat >>conftest.
$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36479 $ac_includes_default
36480 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
36481 # include <sys/param.h> /* needed for OpenBSD 3.0 */
36482 # include <sys/sysctl.h>
36484 #ifdef HAVE_UTMPX_H
36485 # include <utmpx.h>
36494 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
36495 /* your system *does* have the infrastructure to determine boot time */
36497 please_tell_us_how_to_determine_boot_time_on_your_system
36504 rm -f conftest.
$ac_objext
36505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36506 (eval $ac_compile) 2>&5
36508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509 (exit $ac_status); } &&
36510 { ac_try
='test -s conftest.$ac_objext'
36511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36512 (eval $ac_try) 2>&5
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); }; }; then
36516 gnulib_cv_have_boot_time
=yes
36518 echo "$as_me: failed program was:" >&5
36519 sed 's/^/| /' conftest.
$ac_ext >&5
36521 gnulib_cv_have_boot_time
=no
36523 rm -f conftest.
$ac_objext conftest.
$ac_ext
36526 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
36527 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
36528 if test $gnulib_cv_have_boot_time = yes; then
36529 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uptime" MAN
="$MAN uptime.1"
36534 echo "$as_me:$LINENO: checking POSIX termios" >&5
36535 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36536 if test "${ac_cv_sys_posix_termios+set}" = set; then
36537 echo $ECHO_N "(cached) $ECHO_C" >&6
36539 cat >conftest.
$ac_ext <<_ACEOF
36540 #line $LINENO "configure"
36543 cat confdefs.h
>>conftest.
$ac_ext
36544 cat >>conftest.
$ac_ext <<_ACEOF
36545 /* end confdefs.h. */
36546 #include <sys/types.h>
36547 #include <unistd.h>
36548 #include <termios.h>
36553 /* SunOS 4.0.3 has termios.h but not the library calls. */
36559 rm -f conftest.
$ac_objext conftest
$ac_exeext
36560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36561 (eval $ac_link) 2>&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } &&
36565 { ac_try
='test -s conftest$ac_exeext'
36566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567 (eval $ac_try) 2>&5
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); }; }; then
36571 ac_cv_sys_posix_termios
=yes
36573 echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.
$ac_ext >&5
36576 ac_cv_sys_posix_termios
=no
36578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36580 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36581 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36584 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
36585 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
36586 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
36587 echo $ECHO_N "(cached) $ECHO_C" >&6
36589 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
36591 if test $ac_cv_sys_posix_termios = yes; then
36592 cat >conftest.
$ac_ext <<_ACEOF
36593 #line $LINENO "configure"
36596 cat confdefs.h
>>conftest.
$ac_ext
36597 cat >>conftest.
$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 #include <sys/types.h>
36600 # include <termios.h>
36606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36607 $EGREP "yes" >/dev
/null
2>&1; then
36608 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
36615 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
36616 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
36619 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
36620 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
36621 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=no
36626 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
; then
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 # include <sys/ioctl.h>
36641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36642 $EGREP "yes" >/dev
/null
2>&1; then
36643 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=yes
36650 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
36651 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
36652 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
36654 cat >>confdefs.h
<<\_ACEOF
36655 #define GWINSZ_IN_SYS_IOCTL 1
36661 if test $ac_cv_sys_posix_termios = yes; then
36662 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS stty" MAN
="$MAN stty.1"
36664 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
36665 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
36666 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36669 cat >conftest.
$ac_ext <<_ACEOF
36670 #line $LINENO "configure"
36673 cat confdefs.h
>>conftest.
$ac_ext
36674 cat >>conftest.
$ac_ext <<_ACEOF
36675 /* end confdefs.h. */
36676 #include <termios.h>
36681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36682 $EGREP "yes" >/dev
/null
2>&1; then
36683 su_cv_sys_termios_needs_xopen_source
=no
36685 cat >conftest.
$ac_ext <<_ACEOF
36686 #line $LINENO "configure"
36689 cat confdefs.h
>>conftest.
$ac_ext
36690 cat >>conftest.
$ac_ext <<_ACEOF
36691 /* end confdefs.h. */
36692 #define _XOPEN_SOURCE
36693 #include <termios.h>
36698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36699 $EGREP "yes" >/dev
/null
2>&1; then
36700 su_cv_sys_termios_needs_xopen_source
=yes
36702 su_cv_sys_termios_needs_xopen_source
=no
36711 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
36712 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
36713 test $su_cv_sys_termios_needs_xopen_source = yes &&
36715 cat >>confdefs.h
<<\_ACEOF
36716 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
36720 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
36721 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
36722 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
36723 echo $ECHO_N "(cached) $ECHO_C" >&6
36725 cat >conftest.
$ac_ext <<_ACEOF
36726 #line $LINENO "configure"
36729 cat confdefs.h
>>conftest.
$ac_ext
36730 cat >>conftest.
$ac_ext <<_ACEOF
36731 /* end confdefs.h. */
36732 #if TERMIOS_NEEDS_XOPEN_SOURCE
36733 #define _XOPEN_SOURCE
36735 #include <sys/types.h>
36736 #include <termios.h>
36740 struct termios t; t.c_line;
36745 rm -f conftest.
$ac_objext conftest
$ac_exeext
36746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36747 (eval $ac_link) 2>&5
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); } &&
36751 { ac_try
='test -s conftest$ac_exeext'
36752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36753 (eval $ac_try) 2>&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); }; }; then
36757 su_cv_sys_c_line_in_termios
=yes
36759 echo "$as_me: failed program was:" >&5
36760 sed 's/^/| /' conftest.
$ac_ext >&5
36762 su_cv_sys_c_line_in_termios
=no
36764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36767 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
36768 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
36769 test $su_cv_sys_c_line_in_termios = yes \
36771 cat >>confdefs.h
<<\_ACEOF
36772 #define HAVE_C_LINE 1
36777 # FIXME: note that this macro appears above, too.
36778 # I'm leaving it here for now. This whole thing needs to be modernized...
36780 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36781 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36782 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36783 echo $ECHO_N "(cached) $ECHO_C" >&6
36785 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
36786 if test $ac_cv_sys_posix_termios = yes; then
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 <termios.h>
36799 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36804 rm -f conftest.
$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806 (eval $ac_compile) 2>&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
36810 { ac_try
='test -s conftest.$ac_objext'
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; }; then
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.
$ac_ext >&5
36822 rm -f conftest.
$ac_objext conftest.
$ac_ext
36824 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36825 cat >conftest.
$ac_ext <<_ACEOF
36826 #line $LINENO "configure"
36829 cat confdefs.h
>>conftest.
$ac_ext
36830 cat >>conftest.
$ac_ext <<_ACEOF
36831 /* end confdefs.h. */
36832 #include <sys/ptem.h>
36841 rm -f conftest.
$ac_objext
36842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36843 (eval $ac_compile) 2>&5
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); } &&
36847 { ac_try
='test -s conftest.$ac_objext'
36848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36849 (eval $ac_try) 2>&5
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); }; }; then
36855 echo "$as_me: failed program was:" >&5
36856 sed 's/^/| /' conftest.
$ac_ext >&5
36858 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
36860 rm -f conftest.
$ac_objext conftest.
$ac_ext
36863 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36864 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36865 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36867 cat >>confdefs.h
<<\_ACEOF
36868 #define WINSIZE_IN_PTEM 1
36874 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
36875 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
36876 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
36877 echo $ECHO_N "(cached) $ECHO_C" >&6
36879 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
36881 if test $ac_cv_sys_posix_termios = yes; then
36882 cat >conftest.
$ac_ext <<_ACEOF
36883 #line $LINENO "configure"
36886 cat confdefs.h
>>conftest.
$ac_ext
36887 cat >>conftest.
$ac_ext <<_ACEOF
36888 /* end confdefs.h. */
36889 #include <sys/types.h>
36890 # include <termios.h>
36896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36897 $EGREP "yes" >/dev
/null
2>&1; then
36898 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
36905 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
36906 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
36909 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
&& \
36910 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no
; then
36911 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
36912 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
36913 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36916 cat >conftest.
$ac_ext <<_ACEOF
36917 #line $LINENO "configure"
36920 cat confdefs.h
>>conftest.
$ac_ext
36921 cat >>conftest.
$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36923 #include <sys/types.h>
36924 #ifdef WINSIZE_IN_PTEM
36925 # include <sys/stream.h>
36926 # include <sys/ptem.h>
36928 #include <sys/ioctl.h>
36929 #include <sys/tty.h>
36930 #include <sys/pty.h>
36934 int x = TIOCGWINSZ;
36939 rm -f conftest.
$ac_objext conftest
$ac_exeext
36940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36941 (eval $ac_link) 2>&5
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); } &&
36945 { ac_try
='test -s conftest$ac_exeext'
36946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947 (eval $ac_try) 2>&5
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); }; }; then
36951 su_cv_sys_tiocgwinsz_in_sys_pty_h
=yes
36953 echo "$as_me: failed program was:" >&5
36954 sed 's/^/| /' conftest.
$ac_ext >&5
36956 su_cv_sys_tiocgwinsz_in_sys_pty_h
=no
36958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36961 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
36962 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
36964 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
36966 cat >>confdefs.h
<<\_ACEOF
36967 #define GWINSZ_IN_SYS_PTY 1
36973 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
36974 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
36975 if test "${ac_cv_have_decl_strsignal+set}" = set; then
36976 echo $ECHO_N "(cached) $ECHO_C" >&6
36978 cat >conftest.
$ac_ext <<_ACEOF
36979 #line $LINENO "configure"
36982 cat confdefs.h
>>conftest.
$ac_ext
36983 cat >>conftest.
$ac_ext <<_ACEOF
36984 /* end confdefs.h. */
36985 $ac_includes_default
36990 char *p = (char *) strsignal;
36997 rm -f conftest.
$ac_objext
36998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36999 (eval $ac_compile) 2>&5
37001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); } &&
37003 { ac_try
='test -s conftest.$ac_objext'
37004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37005 (eval $ac_try) 2>&5
37007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008 (exit $ac_status); }; }; then
37009 ac_cv_have_decl_strsignal
=yes
37011 echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.
$ac_ext >&5
37014 ac_cv_have_decl_strsignal
=no
37016 rm -f conftest.
$ac_objext conftest.
$ac_ext
37018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
37019 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
37020 if test $ac_cv_have_decl_strsignal = yes; then
37022 cat >>confdefs.h
<<_ACEOF
37023 #define HAVE_DECL_STRSIGNAL 1
37028 cat >>confdefs.h
<<_ACEOF
37029 #define HAVE_DECL_STRSIGNAL 0
37034 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
37035 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
37036 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
37037 echo $ECHO_N "(cached) $ECHO_C" >&6
37039 cat >conftest.
$ac_ext <<_ACEOF
37040 #line $LINENO "configure"
37043 cat confdefs.h
>>conftest.
$ac_ext
37044 cat >>conftest.
$ac_ext <<_ACEOF
37045 /* end confdefs.h. */
37046 $ac_includes_default
37051 char *p = (char *) strtoimax;
37058 rm -f conftest.
$ac_objext
37059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37060 (eval $ac_compile) 2>&5
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } &&
37064 { ac_try
='test -s conftest.$ac_objext'
37065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066 (eval $ac_try) 2>&5
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); }; }; then
37070 ac_cv_have_decl_strtoimax
=yes
37072 echo "$as_me: failed program was:" >&5
37073 sed 's/^/| /' conftest.
$ac_ext >&5
37075 ac_cv_have_decl_strtoimax
=no
37077 rm -f conftest.
$ac_objext conftest.
$ac_ext
37079 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
37080 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
37081 if test $ac_cv_have_decl_strtoimax = yes; then
37083 cat >>confdefs.h
<<_ACEOF
37084 #define HAVE_DECL_STRTOIMAX 1
37089 cat >>confdefs.h
<<_ACEOF
37090 #define HAVE_DECL_STRTOIMAX 0
37095 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
37096 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
37097 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37100 cat >conftest.
$ac_ext <<_ACEOF
37101 #line $LINENO "configure"
37104 cat confdefs.h
>>conftest.
$ac_ext
37105 cat >>conftest.
$ac_ext <<_ACEOF
37106 /* end confdefs.h. */
37107 $ac_includes_default
37111 #ifndef sys_siglist
37112 char *p = (char *) sys_siglist;
37119 rm -f conftest.
$ac_objext
37120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37121 (eval $ac_compile) 2>&5
37123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124 (exit $ac_status); } &&
37125 { ac_try
='test -s conftest.$ac_objext'
37126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37127 (eval $ac_try) 2>&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); }; }; then
37131 ac_cv_have_decl_sys_siglist
=yes
37133 echo "$as_me: failed program was:" >&5
37134 sed 's/^/| /' conftest.
$ac_ext >&5
37136 ac_cv_have_decl_sys_siglist
=no
37138 rm -f conftest.
$ac_objext conftest.
$ac_ext
37140 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
37141 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
37142 if test $ac_cv_have_decl_sys_siglist = yes; then
37144 cat >>confdefs.h
<<_ACEOF
37145 #define HAVE_DECL_SYS_SIGLIST 1
37150 cat >>confdefs.h
<<_ACEOF
37151 #define HAVE_DECL_SYS_SIGLIST 0
37156 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
37157 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
37158 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
37159 echo $ECHO_N "(cached) $ECHO_C" >&6
37161 cat >conftest.
$ac_ext <<_ACEOF
37162 #line $LINENO "configure"
37165 cat confdefs.h
>>conftest.
$ac_ext
37166 cat >>conftest.
$ac_ext <<_ACEOF
37167 /* end confdefs.h. */
37168 $ac_includes_default
37172 #ifndef _sys_siglist
37173 char *p = (char *) _sys_siglist;
37180 rm -f conftest.
$ac_objext
37181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37182 (eval $ac_compile) 2>&5
37184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185 (exit $ac_status); } &&
37186 { ac_try
='test -s conftest.$ac_objext'
37187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37188 (eval $ac_try) 2>&5
37190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191 (exit $ac_status); }; }; then
37192 ac_cv_have_decl__sys_siglist
=yes
37194 echo "$as_me: failed program was:" >&5
37195 sed 's/^/| /' conftest.
$ac_ext >&5
37197 ac_cv_have_decl__sys_siglist
=no
37199 rm -f conftest.
$ac_objext conftest.
$ac_ext
37201 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
37202 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
37203 if test $ac_cv_have_decl__sys_siglist = yes; then
37205 cat >>confdefs.h
<<_ACEOF
37206 #define HAVE_DECL__SYS_SIGLIST 1
37211 cat >>confdefs.h
<<_ACEOF
37212 #define HAVE_DECL__SYS_SIGLIST 0
37222 # Check for libypsec.a on Dolphin M88K machines.
37224 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
37225 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
37226 if test "${ac_cv_lib_ypsec_main+set}" = set; then
37227 echo $ECHO_N "(cached) $ECHO_C" >&6
37229 ac_check_lib_save_LIBS
=$LIBS
37230 LIBS
="-lypsec $LIBS"
37231 cat >conftest.
$ac_ext <<_ACEOF
37232 #line $LINENO "configure"
37235 cat confdefs.h
>>conftest.
$ac_ext
37236 cat >>conftest.
$ac_ext <<_ACEOF
37237 /* end confdefs.h. */
37248 rm -f conftest.
$ac_objext conftest
$ac_exeext
37249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37250 (eval $ac_link) 2>&5
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); } &&
37254 { ac_try
='test -s conftest$ac_exeext'
37255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37256 (eval $ac_try) 2>&5
37258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259 (exit $ac_status); }; }; then
37260 ac_cv_lib_ypsec_main
=yes
37262 echo "$as_me: failed program was:" >&5
37263 sed 's/^/| /' conftest.
$ac_ext >&5
37265 ac_cv_lib_ypsec_main
=no
37267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37268 LIBS
=$ac_check_lib_save_LIBS
37270 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
37271 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
37272 if test $ac_cv_lib_ypsec_main = yes; then
37273 cat >>confdefs.h
<<_ACEOF
37274 #define HAVE_LIBYPSEC 1
37277 LIBS
="-lypsec $LIBS"
37282 # m88k running dgux 5.4 needs this
37284 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
37285 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
37286 if test "${ac_cv_lib_ldgc_main+set}" = set; then
37287 echo $ECHO_N "(cached) $ECHO_C" >&6
37289 ac_check_lib_save_LIBS
=$LIBS
37290 LIBS
="-lldgc $LIBS"
37291 cat >conftest.
$ac_ext <<_ACEOF
37292 #line $LINENO "configure"
37295 cat confdefs.h
>>conftest.
$ac_ext
37296 cat >>conftest.
$ac_ext <<_ACEOF
37297 /* end confdefs.h. */
37308 rm -f conftest.
$ac_objext conftest
$ac_exeext
37309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37310 (eval $ac_link) 2>&5
37312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313 (exit $ac_status); } &&
37314 { ac_try
='test -s conftest$ac_exeext'
37315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37316 (eval $ac_try) 2>&5
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); }; }; then
37320 ac_cv_lib_ldgc_main
=yes
37322 echo "$as_me: failed program was:" >&5
37323 sed 's/^/| /' conftest.
$ac_ext >&5
37325 ac_cv_lib_ldgc_main
=no
37327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37328 LIBS
=$ac_check_lib_save_LIBS
37330 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
37331 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
37332 if test $ac_cv_lib_ldgc_main = yes; then
37333 cat >>confdefs.h
<<_ACEOF
37334 #define HAVE_LIBLDGC 1
37337 LIBS
="-lldgc $LIBS"
37342 # Some programs need to link with -lm. printf does if it uses
37343 # lib/strtod.c which uses pow. And seq uses the math functions,
37344 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
37346 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
37347 # Check for these math functions used by seq.
37348 ac_su_saved_lib
="$LIBS"
37353 for ac_func
in floor modf rint
37355 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37356 echo "$as_me:$LINENO: checking for $ac_func" >&5
37357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37358 if eval "test \"\${$as_ac_var+set}\" = set"; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37361 cat >conftest.
$ac_ext <<_ACEOF
37362 #line $LINENO "configure"
37365 cat confdefs.h
>>conftest.
$ac_ext
37366 cat >>conftest.
$ac_ext <<_ACEOF
37367 /* end confdefs.h. */
37368 /* System header to define __stub macros and hopefully few prototypes,
37369 which can conflict with char $ac_func (); below.
37370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371 <limits.h> exists even on freestanding compilers. */
37373 # include <limits.h>
37375 # include <assert.h>
37377 /* Override any gcc2 internal prototype to avoid an error. */
37382 /* We use char because int might match the return type of a gcc2
37383 builtin and then its argument prototype would still apply. */
37385 /* The GNU C library defines this for functions which it implements
37386 to always fail with ENOSYS. Some functions are actually named
37387 something starting with __ and the normal name is an alias. */
37388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37391 char (*f) () = $ac_func;
37400 return f != $ac_func;
37405 rm -f conftest.
$ac_objext conftest
$ac_exeext
37406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37407 (eval $ac_link) 2>&5
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } &&
37411 { ac_try
='test -s conftest$ac_exeext'
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; }; then
37417 eval "$as_ac_var=yes"
37419 echo "$as_me: failed program was:" >&5
37420 sed 's/^/| /' conftest.
$ac_ext >&5
37422 eval "$as_ac_var=no"
37424 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37428 if test `eval echo '${'$as_ac_var'}'` = yes; then
37429 cat >>confdefs.h
<<_ACEOF
37430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37436 LIBS
="$ac_su_saved_lib"
37440 for ac_func
in sqrt
37442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37443 echo "$as_me:$LINENO: checking for $ac_func" >&5
37444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37445 if eval "test \"\${$as_ac_var+set}\" = set"; then
37446 echo $ECHO_N "(cached) $ECHO_C" >&6
37448 cat >conftest.
$ac_ext <<_ACEOF
37449 #line $LINENO "configure"
37452 cat confdefs.h
>>conftest.
$ac_ext
37453 cat >>conftest.
$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37455 /* System header to define __stub macros and hopefully few prototypes,
37456 which can conflict with char $ac_func (); below.
37457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37458 <limits.h> exists even on freestanding compilers. */
37460 # include <limits.h>
37462 # include <assert.h>
37464 /* Override any gcc2 internal prototype to avoid an error. */
37469 /* We use char because int might match the return type of a gcc2
37470 builtin and then its argument prototype would still apply. */
37472 /* The GNU C library defines this for functions which it implements
37473 to always fail with ENOSYS. Some functions are actually named
37474 something starting with __ and the normal name is an alias. */
37475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37478 char (*f) () = $ac_func;
37487 return f != $ac_func;
37492 rm -f conftest.
$ac_objext conftest
$ac_exeext
37493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37494 (eval $ac_link) 2>&5
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); } &&
37498 { ac_try
='test -s conftest$ac_exeext'
37499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37500 (eval $ac_try) 2>&5
37502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503 (exit $ac_status); }; }; then
37504 eval "$as_ac_var=yes"
37506 echo "$as_me: failed program was:" >&5
37507 sed 's/^/| /' conftest.
$ac_ext >&5
37509 eval "$as_ac_var=no"
37511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37515 if test `eval echo '${'$as_ac_var'}'` = yes; then
37516 cat >>confdefs.h
<<_ACEOF
37517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37523 if test $ac_cv_func_sqrt = no
; then
37524 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
37525 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
37526 if test "${ac_cv_lib_m_sqrt+set}" = set; then
37527 echo $ECHO_N "(cached) $ECHO_C" >&6
37529 ac_check_lib_save_LIBS
=$LIBS
37531 cat >conftest.
$ac_ext <<_ACEOF
37532 #line $LINENO "configure"
37535 cat confdefs.h
>>conftest.
$ac_ext
37536 cat >>conftest.
$ac_ext <<_ACEOF
37537 /* end confdefs.h. */
37539 /* Override any gcc2 internal prototype to avoid an error. */
37543 /* We use char because int might match the return type of a gcc2
37544 builtin and then its argument prototype would still apply. */
37554 rm -f conftest.
$ac_objext conftest
$ac_exeext
37555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37556 (eval $ac_link) 2>&5
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); } &&
37560 { ac_try
='test -s conftest$ac_exeext'
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 ac_cv_lib_m_sqrt
=yes
37568 echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.
$ac_ext >&5
37571 ac_cv_lib_m_sqrt
=no
37573 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37574 LIBS
=$ac_check_lib_save_LIBS
37576 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
37577 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
37578 if test $ac_cv_lib_m_sqrt = yes; then
37586 for ac_func
in fesetround
37588 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37589 echo "$as_me:$LINENO: checking for $ac_func" >&5
37590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37591 if eval "test \"\${$as_ac_var+set}\" = set"; then
37592 echo $ECHO_N "(cached) $ECHO_C" >&6
37594 cat >conftest.
$ac_ext <<_ACEOF
37595 #line $LINENO "configure"
37598 cat confdefs.h
>>conftest.
$ac_ext
37599 cat >>conftest.
$ac_ext <<_ACEOF
37600 /* end confdefs.h. */
37601 /* System header to define __stub macros and hopefully few prototypes,
37602 which can conflict with char $ac_func (); below.
37603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37604 <limits.h> exists even on freestanding compilers. */
37606 # include <limits.h>
37608 # include <assert.h>
37610 /* Override any gcc2 internal prototype to avoid an error. */
37615 /* We use char because int might match the return type of a gcc2
37616 builtin and then its argument prototype would still apply. */
37618 /* The GNU C library defines this for functions which it implements
37619 to always fail with ENOSYS. Some functions are actually named
37620 something starting with __ and the normal name is an alias. */
37621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37624 char (*f) () = $ac_func;
37633 return f != $ac_func;
37638 rm -f conftest.
$ac_objext conftest
$ac_exeext
37639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37640 (eval $ac_link) 2>&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } &&
37644 { ac_try
='test -s conftest$ac_exeext'
37645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646 (eval $ac_try) 2>&5
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); }; }; then
37650 eval "$as_ac_var=yes"
37652 echo "$as_me: failed program was:" >&5
37653 sed 's/^/| /' conftest.
$ac_ext >&5
37655 eval "$as_ac_var=no"
37657 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37661 if test `eval echo '${'$as_ac_var'}'` = yes; then
37662 cat >>confdefs.h
<<_ACEOF
37663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37669 if test $ac_cv_func_fesetround = no
; then
37670 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
37671 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
37672 if test "${ac_cv_lib_m_fesetround+set}" = set; then
37673 echo $ECHO_N "(cached) $ECHO_C" >&6
37675 ac_check_lib_save_LIBS
=$LIBS
37677 cat >conftest.
$ac_ext <<_ACEOF
37678 #line $LINENO "configure"
37681 cat confdefs.h
>>conftest.
$ac_ext
37682 cat >>conftest.
$ac_ext <<_ACEOF
37683 /* end confdefs.h. */
37685 /* Override any gcc2 internal prototype to avoid an error. */
37689 /* We use char because int might match the return type of a gcc2
37690 builtin and then its argument prototype would still apply. */
37691 char fesetround ();
37700 rm -f conftest.
$ac_objext conftest
$ac_exeext
37701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37702 (eval $ac_link) 2>&5
37704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); } &&
37706 { ac_try
='test -s conftest$ac_exeext'
37707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708 (eval $ac_try) 2>&5
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 ac_cv_lib_m_fesetround
=yes
37714 echo "$as_me: failed program was:" >&5
37715 sed 's/^/| /' conftest.
$ac_ext >&5
37717 ac_cv_lib_m_fesetround
=no
37719 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37720 LIBS
=$ac_check_lib_save_LIBS
37722 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
37723 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
37724 if test $ac_cv_lib_m_fesetround = yes; then
37725 FESETROUND_LIBM
=-lm
37730 # The -lsun library is required for YP support on Irix-4.0.5 systems.
37731 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
37733 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
37734 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
37735 if test "${ac_cv_search_yp_match+set}" = set; then
37736 echo $ECHO_N "(cached) $ECHO_C" >&6
37739 ac_func_search_save_LIBS
=$LIBS
37740 ac_cv_search_yp_match
=no
37741 cat >conftest.
$ac_ext <<_ACEOF
37742 #line $LINENO "configure"
37745 cat confdefs.h
>>conftest.
$ac_ext
37746 cat >>conftest.
$ac_ext <<_ACEOF
37747 /* end confdefs.h. */
37749 /* Override any gcc2 internal prototype to avoid an error. */
37753 /* We use char because int might match the return type of a gcc2
37754 builtin and then its argument prototype would still apply. */
37764 rm -f conftest.
$ac_objext conftest
$ac_exeext
37765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37766 (eval $ac_link) 2>&5
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); } &&
37770 { ac_try
='test -s conftest$ac_exeext'
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; }; then
37776 ac_cv_search_yp_match
='none required'
37778 echo "$as_me: failed program was:" >&5
37779 sed 's/^/| /' conftest.
$ac_ext >&5
37782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37783 if test "$ac_cv_search_yp_match" = no
; then
37784 for ac_lib
in sun ypsec
; do
37785 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
37786 cat >conftest.
$ac_ext <<_ACEOF
37787 #line $LINENO "configure"
37790 cat confdefs.h
>>conftest.
$ac_ext
37791 cat >>conftest.
$ac_ext <<_ACEOF
37792 /* end confdefs.h. */
37794 /* Override any gcc2 internal prototype to avoid an error. */
37798 /* We use char because int might match the return type of a gcc2
37799 builtin and then its argument prototype would still apply. */
37809 rm -f conftest.
$ac_objext conftest
$ac_exeext
37810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37811 (eval $ac_link) 2>&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } &&
37815 { ac_try
='test -s conftest$ac_exeext'
37816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817 (eval $ac_try) 2>&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); }; }; then
37821 ac_cv_search_yp_match
="-l$ac_lib"; break
37823 echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.
$ac_ext >&5
37827 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37830 LIBS
=$ac_func_search_save_LIBS
37833 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
37834 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
37836 if test "$ac_cv_search_yp_match" = no
; then :
37839 if test "$ac_cv_search_yp_match" = 'none required'; then :
37842 LIBS
="$ac_cv_search_yp_match $LIBS"
37848 # SysV needs -lsec, older versions of Linux need -lshadow for
37849 # shadow passwords. UnixWare 7 needs -lgen.
37851 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
37852 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
37853 if test "${ac_cv_search_getspnam+set}" = set; then
37854 echo $ECHO_N "(cached) $ECHO_C" >&6
37857 ac_func_search_save_LIBS
=$LIBS
37858 ac_cv_search_getspnam
=no
37859 cat >conftest.
$ac_ext <<_ACEOF
37860 #line $LINENO "configure"
37863 cat confdefs.h
>>conftest.
$ac_ext
37864 cat >>conftest.
$ac_ext <<_ACEOF
37865 /* end confdefs.h. */
37867 /* Override any gcc2 internal prototype to avoid an error. */
37871 /* We use char because int might match the return type of a gcc2
37872 builtin and then its argument prototype would still apply. */
37882 rm -f conftest.
$ac_objext conftest
$ac_exeext
37883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37884 (eval $ac_link) 2>&5
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); } &&
37888 { ac_try
='test -s conftest$ac_exeext'
37889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890 (eval $ac_try) 2>&5
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); }; }; then
37894 ac_cv_search_getspnam
='none required'
37896 echo "$as_me: failed program was:" >&5
37897 sed 's/^/| /' conftest.
$ac_ext >&5
37900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37901 if test "$ac_cv_search_getspnam" = no
; then
37902 for ac_lib
in shadow sec gen
; do
37903 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
37904 cat >conftest.
$ac_ext <<_ACEOF
37905 #line $LINENO "configure"
37908 cat confdefs.h
>>conftest.
$ac_ext
37909 cat >>conftest.
$ac_ext <<_ACEOF
37910 /* end confdefs.h. */
37912 /* Override any gcc2 internal prototype to avoid an error. */
37916 /* We use char because int might match the return type of a gcc2
37917 builtin and then its argument prototype would still apply. */
37927 rm -f conftest.
$ac_objext conftest
$ac_exeext
37928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37929 (eval $ac_link) 2>&5
37931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932 (exit $ac_status); } &&
37933 { ac_try
='test -s conftest$ac_exeext'
37934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37935 (eval $ac_try) 2>&5
37937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938 (exit $ac_status); }; }; then
37939 ac_cv_search_getspnam
="-l$ac_lib"; break
37941 echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.
$ac_ext >&5
37945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37948 LIBS
=$ac_func_search_save_LIBS
37951 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
37952 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
37954 if test "$ac_cv_search_getspnam" = no
; then :
37957 if test "$ac_cv_search_getspnam" = 'none required'; then :
37960 LIBS
="$ac_cv_search_getspnam $LIBS"
37967 for ac_header
in shadow.h
37969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37971 echo "$as_me:$LINENO: checking for $ac_header" >&5
37972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37974 echo $ECHO_N "(cached) $ECHO_C" >&6
37976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37979 # Is the header compilable?
37980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37982 cat >conftest.
$ac_ext <<_ACEOF
37983 #line $LINENO "configure"
37986 cat confdefs.h
>>conftest.
$ac_ext
37987 cat >>conftest.
$ac_ext <<_ACEOF
37988 /* end confdefs.h. */
37989 $ac_includes_default
37990 #include <$ac_header>
37992 rm -f conftest.
$ac_objext
37993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37994 (eval $ac_compile) 2>&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
37998 { ac_try
='test -s conftest.$ac_objext'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; }; then
38004 ac_header_compiler
=yes
38006 echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.
$ac_ext >&5
38009 ac_header_compiler
=no
38011 rm -f conftest.
$ac_objext conftest.
$ac_ext
38012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38013 echo "${ECHO_T}$ac_header_compiler" >&6
38015 # Is the header present?
38016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38018 cat >conftest.
$ac_ext <<_ACEOF
38019 #line $LINENO "configure"
38022 cat confdefs.h
>>conftest.
$ac_ext
38023 cat >>conftest.
$ac_ext <<_ACEOF
38024 /* end confdefs.h. */
38025 #include <$ac_header>
38027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
38030 grep -v '^ *+' conftest.er1
>conftest.err
38032 cat conftest.err
>&5
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); } >/dev
/null
; then
38035 if test -s conftest.err
; then
38036 ac_cpp_err
=$ac_c_preproc_warn_flag
38043 if test -z "$ac_cpp_err"; then
38044 ac_header_preproc
=yes
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.
$ac_ext >&5
38049 ac_header_preproc
=no
38051 rm -f conftest.err conftest.
$ac_ext
38052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38053 echo "${ECHO_T}$ac_header_preproc" >&6
38055 # So? What about this header?
38056 case $ac_header_compiler:$ac_header_preproc in
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38064 ## ------------------------------------ ##
38065 ## Report this to bug-autoconf@gnu.org. ##
38066 ## ------------------------------------ ##
38069 sed "s/^/$as_me: WARNING: /" >&2
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38080 ## ------------------------------------ ##
38081 ## Report this to bug-autoconf@gnu.org. ##
38082 ## ------------------------------------ ##
38085 sed "s/^/$as_me: WARNING: /" >&2
38088 echo "$as_me:$LINENO: checking for $ac_header" >&5
38089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38091 echo $ECHO_N "(cached) $ECHO_C" >&6
38093 eval "$as_ac_Header=$ac_header_preproc"
38095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38100 cat >>confdefs.h
<<_ACEOF
38101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38109 # Requirements for su.c.
38111 $ac_includes_default
38113 # include <shadow.h>
38116 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
38117 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
38118 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38121 cat >conftest.
$ac_ext <<_ACEOF
38122 #line $LINENO "configure"
38125 cat confdefs.h
>>conftest.
$ac_ext
38126 cat >>conftest.
$ac_ext <<_ACEOF
38127 /* end confdefs.h. */
38133 static struct spwd ac_aggr;
38134 if (ac_aggr.sp_pwdp)
38140 rm -f conftest.
$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142 (eval $ac_compile) 2>&5
38144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38145 (exit $ac_status); } &&
38146 { ac_try
='test -s conftest.$ac_objext'
38147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38148 (eval $ac_try) 2>&5
38150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38151 (exit $ac_status); }; }; then
38152 ac_cv_member_struct_spwd_sp_pwdp
=yes
38154 echo "$as_me: failed program was:" >&5
38155 sed 's/^/| /' conftest.
$ac_ext >&5
38157 cat >conftest.
$ac_ext <<_ACEOF
38158 #line $LINENO "configure"
38161 cat confdefs.h
>>conftest.
$ac_ext
38162 cat >>conftest.
$ac_ext <<_ACEOF
38163 /* end confdefs.h. */
38169 static struct spwd ac_aggr;
38170 if (sizeof ac_aggr.sp_pwdp)
38176 rm -f conftest.
$ac_objext
38177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38178 (eval $ac_compile) 2>&5
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
38182 { ac_try
='test -s conftest.$ac_objext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 ac_cv_member_struct_spwd_sp_pwdp
=yes
38190 echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.
$ac_ext >&5
38193 ac_cv_member_struct_spwd_sp_pwdp
=no
38195 rm -f conftest.
$ac_objext conftest.
$ac_ext
38197 rm -f conftest.
$ac_objext conftest.
$ac_ext
38199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
38200 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
38201 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
38203 cat >>confdefs.h
<<_ACEOF
38204 #define HAVE_STRUCT_SPWD_SP_PWDP 1
38211 for ac_func
in getspnam
38213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38214 echo "$as_me:$LINENO: checking for $ac_func" >&5
38215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38216 if eval "test \"\${$as_ac_var+set}\" = set"; then
38217 echo $ECHO_N "(cached) $ECHO_C" >&6
38219 cat >conftest.
$ac_ext <<_ACEOF
38220 #line $LINENO "configure"
38223 cat confdefs.h
>>conftest.
$ac_ext
38224 cat >>conftest.
$ac_ext <<_ACEOF
38225 /* end confdefs.h. */
38226 /* System header to define __stub macros and hopefully few prototypes,
38227 which can conflict with char $ac_func (); below.
38228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38229 <limits.h> exists even on freestanding compilers. */
38231 # include <limits.h>
38233 # include <assert.h>
38235 /* Override any gcc2 internal prototype to avoid an error. */
38240 /* We use char because int might match the return type of a gcc2
38241 builtin and then its argument prototype would still apply. */
38243 /* The GNU C library defines this for functions which it implements
38244 to always fail with ENOSYS. Some functions are actually named
38245 something starting with __ and the normal name is an alias. */
38246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38249 char (*f) () = $ac_func;
38258 return f != $ac_func;
38263 rm -f conftest.
$ac_objext conftest
$ac_exeext
38264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265 (eval $ac_link) 2>&5
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); } &&
38269 { ac_try
='test -s conftest$ac_exeext'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275 eval "$as_ac_var=yes"
38277 echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.
$ac_ext >&5
38280 eval "$as_ac_var=no"
38282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38286 if test `eval echo '${'$as_ac_var'}'` = yes; then
38287 cat >>confdefs.h
<<_ACEOF
38288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38295 # SCO-ODT-3.0 is reported to need -lufc for crypt.
38296 # NetBSD needs -lcrypt for crypt.
38297 ac_su_saved_lib
="$LIBS"
38299 echo "$as_me:$LINENO: checking for library containing crypt" >&5
38300 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
38301 if test "${ac_cv_search_crypt+set}" = set; then
38302 echo $ECHO_N "(cached) $ECHO_C" >&6
38305 ac_func_search_save_LIBS
=$LIBS
38306 ac_cv_search_crypt
=no
38307 cat >conftest.
$ac_ext <<_ACEOF
38308 #line $LINENO "configure"
38311 cat confdefs.h
>>conftest.
$ac_ext
38312 cat >>conftest.
$ac_ext <<_ACEOF
38313 /* end confdefs.h. */
38315 /* Override any gcc2 internal prototype to avoid an error. */
38319 /* We use char because int might match the return type of a gcc2
38320 builtin and then its argument prototype would still apply. */
38330 rm -f conftest.
$ac_objext conftest
$ac_exeext
38331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38332 (eval $ac_link) 2>&5
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); } &&
38336 { ac_try
='test -s conftest$ac_exeext'
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; }; then
38342 ac_cv_search_crypt
='none required'
38344 echo "$as_me: failed program was:" >&5
38345 sed 's/^/| /' conftest.
$ac_ext >&5
38348 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38349 if test "$ac_cv_search_crypt" = no
; then
38350 for ac_lib
in ufc
crypt; do
38351 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
38352 cat >conftest.
$ac_ext <<_ACEOF
38353 #line $LINENO "configure"
38356 cat confdefs.h
>>conftest.
$ac_ext
38357 cat >>conftest.
$ac_ext <<_ACEOF
38358 /* end confdefs.h. */
38360 /* Override any gcc2 internal prototype to avoid an error. */
38364 /* We use char because int might match the return type of a gcc2
38365 builtin and then its argument prototype would still apply. */
38375 rm -f conftest.
$ac_objext conftest
$ac_exeext
38376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38377 (eval $ac_link) 2>&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
38381 { ac_try
='test -s conftest$ac_exeext'
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; }; then
38387 ac_cv_search_crypt
="-l$ac_lib"; break
38389 echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.
$ac_ext >&5
38393 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38396 LIBS
=$ac_func_search_save_LIBS
38399 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
38400 echo "${ECHO_T}$ac_cv_search_crypt" >&6
38402 if test "$ac_cv_search_crypt" = no
; then :
38405 if test "$ac_cv_search_crypt" = 'none required'; then :
38408 LIBS
="$ac_cv_search_crypt $LIBS"
38409 LIB_CRYPT
="$ac_cv_search_crypt"
38413 LIBS
="$ac_su_saved_lib"
38419 if test -n "$ac_aux_dir"; then
38420 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
38422 if test -z "$MKINSTALLDIRS"; then
38423 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
38430 # Extract the first word of "msgfmt", so it can be a program name with args.
38431 set dummy msgfmt
; ac_word
=$2
38432 echo "$as_me:$LINENO: checking for $ac_word" >&5
38433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38434 if test "${ac_cv_path_MSGFMT+set}" = set; then
38435 echo $ECHO_N "(cached) $ECHO_C" >&6
38439 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
38442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
38443 for ac_dir
in $PATH; do
38444 test -z "$ac_dir" && ac_dir
=.
38445 if test -f $ac_dir/$ac_word; then
38446 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
38447 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
38448 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
38454 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
38458 MSGFMT
="$ac_cv_path_MSGFMT"
38459 if test "$MSGFMT" != ":"; then
38460 echo "$as_me:$LINENO: result: $MSGFMT" >&5
38461 echo "${ECHO_T}$MSGFMT" >&6
38463 echo "$as_me:$LINENO: result: no" >&5
38464 echo "${ECHO_T}no" >&6
38467 # Extract the first word of "gmsgfmt", so it can be a program name with args.
38468 set dummy gmsgfmt
; ac_word
=$2
38469 echo "$as_me:$LINENO: checking for $ac_word" >&5
38470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38471 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38472 echo $ECHO_N "(cached) $ECHO_C" >&6
38476 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
38479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
38480 for as_dir
in $PATH
38483 test -z "$as_dir" && as_dir
=.
38484 for ac_exec_ext
in '' $ac_executable_extensions; do
38485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38486 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
38487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38493 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
38497 GMSGFMT
=$ac_cv_path_GMSGFMT
38499 if test -n "$GMSGFMT"; then
38500 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38501 echo "${ECHO_T}$GMSGFMT" >&6
38503 echo "$as_me:$LINENO: result: no" >&5
38504 echo "${ECHO_T}no" >&6
38508 # Extract the first word of "xgettext", so it can be a program name with args.
38509 set dummy xgettext
; ac_word
=$2
38510 echo "$as_me:$LINENO: checking for $ac_word" >&5
38511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38512 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38515 case "$XGETTEXT" in
38517 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
38520 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
38521 for ac_dir
in $PATH; do
38522 test -z "$ac_dir" && ac_dir
=.
38523 if test -f $ac_dir/$ac_word; then
38524 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
38525 (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
38526 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
38532 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
38536 XGETTEXT
="$ac_cv_path_XGETTEXT"
38537 if test "$XGETTEXT" != ":"; then
38538 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38539 echo "${ECHO_T}$XGETTEXT" >&6
38541 echo "$as_me:$LINENO: result: no" >&5
38542 echo "${ECHO_T}no" >&6
38547 # Extract the first word of "msgmerge", so it can be a program name with args.
38548 set dummy msgmerge
; ac_word
=$2
38549 echo "$as_me:$LINENO: checking for $ac_word" >&5
38550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38551 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38552 echo $ECHO_N "(cached) $ECHO_C" >&6
38554 case "$MSGMERGE" in
38556 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
38559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
38560 for ac_dir
in $PATH; do
38561 test -z "$ac_dir" && ac_dir
=.
38562 if test -f $ac_dir/$ac_word; then
38563 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
38564 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
38570 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
38574 MSGMERGE
="$ac_cv_path_MSGMERGE"
38575 if test "$MSGMERGE" != ":"; then
38576 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38577 echo "${ECHO_T}$MSGMERGE" >&6
38579 echo "$as_me:$LINENO: result: no" >&5
38580 echo "${ECHO_T}no" >&6
38584 if test "$GMSGFMT" != ":"; then
38585 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
38586 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
38589 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
38590 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
38591 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
38596 if test "$XGETTEXT" != ":"; then
38597 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
38598 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
38601 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
38602 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
38608 ac_config_commands
="$ac_config_commands default-1"
38626 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38627 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
38628 # Check whether --enable-nls or --disable-nls was given.
38629 if test "${enable_nls+set}" = set; then
38630 enableval
="$enable_nls"
38635 echo "$as_me:$LINENO: result: $USE_NLS" >&5
38636 echo "${ECHO_T}$USE_NLS" >&6
38644 if test "$USE_NLS" = "yes"; then
38645 gt_use_preinstalled_gnugettext
=no
38652 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
38653 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
38654 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
38655 echo $ECHO_N "(cached) $ECHO_C" >&6
38657 cat >conftest.
$ac_ext <<_ACEOF
38658 #line $LINENO "configure"
38661 cat confdefs.h
>>conftest.
$ac_ext
38662 cat >>conftest.
$ac_ext <<_ACEOF
38663 /* end confdefs.h. */
38664 #include <libintl.h>
38665 extern int _nl_msg_cat_cntr;
38666 extern int *_nl_domain_bindings;
38670 bindtextdomain ("", "");
38671 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
38676 rm -f conftest.
$ac_objext conftest
$ac_exeext
38677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38678 (eval $ac_link) 2>&5
38680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); } &&
38682 { ac_try
='test -s conftest$ac_exeext'
38683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38684 (eval $ac_try) 2>&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); }; }; then
38688 gt_cv_func_gnugettext2_libc
=yes
38690 echo "$as_me: failed program was:" >&5
38691 sed 's/^/| /' conftest.
$ac_ext >&5
38693 gt_cv_func_gnugettext2_libc
=no
38695 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38697 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
38698 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
38700 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
38706 am_save_CPPFLAGS
="$CPPFLAGS"
38708 for element
in $INCICONV; do
38710 for x
in $CPPFLAGS; do
38712 acl_save_prefix
="$prefix"
38713 prefix
="$acl_final_prefix"
38714 acl_save_exec_prefix
="$exec_prefix"
38715 exec_prefix
="$acl_final_exec_prefix"
38717 exec_prefix
="$acl_save_exec_prefix"
38718 prefix
="$acl_save_prefix"
38720 if test "X$x" = "X$element"; then
38725 if test -z "$haveit"; then
38726 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
38731 echo "$as_me:$LINENO: checking for iconv" >&5
38732 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
38733 if test "${am_cv_func_iconv+set}" = set; then
38734 echo $ECHO_N "(cached) $ECHO_C" >&6
38737 am_cv_func_iconv
="no, consider installing GNU libiconv"
38739 cat >conftest.
$ac_ext <<_ACEOF
38740 #line $LINENO "configure"
38743 cat confdefs.h
>>conftest.
$ac_ext
38744 cat >>conftest.
$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 #include <stdlib.h>
38751 iconv_t cd = iconv_open("","");
38752 iconv(cd,NULL,NULL,NULL,NULL);
38758 rm -f conftest.
$ac_objext conftest
$ac_exeext
38759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38760 (eval $ac_link) 2>&5
38762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763 (exit $ac_status); } &&
38764 { ac_try
='test -s conftest$ac_exeext'
38765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38766 (eval $ac_try) 2>&5
38768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769 (exit $ac_status); }; }; then
38770 am_cv_func_iconv
=yes
38772 echo "$as_me: failed program was:" >&5
38773 sed 's/^/| /' conftest.
$ac_ext >&5
38776 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38777 if test "$am_cv_func_iconv" != yes; then
38778 am_save_LIBS
="$LIBS"
38779 LIBS
="$LIBS $LIBICONV"
38780 cat >conftest.
$ac_ext <<_ACEOF
38781 #line $LINENO "configure"
38784 cat confdefs.h
>>conftest.
$ac_ext
38785 cat >>conftest.
$ac_ext <<_ACEOF
38786 /* end confdefs.h. */
38787 #include <stdlib.h>
38792 iconv_t cd = iconv_open("","");
38793 iconv(cd,NULL,NULL,NULL,NULL);
38799 rm -f conftest.
$ac_objext conftest
$ac_exeext
38800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38801 (eval $ac_link) 2>&5
38803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804 (exit $ac_status); } &&
38805 { ac_try
='test -s conftest$ac_exeext'
38806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38807 (eval $ac_try) 2>&5
38809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810 (exit $ac_status); }; }; then
38811 am_cv_lib_iconv
=yes
38812 am_cv_func_iconv
=yes
38814 echo "$as_me: failed program was:" >&5
38815 sed 's/^/| /' conftest.
$ac_ext >&5
38818 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
38819 LIBS
="$am_save_LIBS"
38823 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38824 echo "${ECHO_T}$am_cv_func_iconv" >&6
38825 if test "$am_cv_func_iconv" = yes; then
38827 cat >>confdefs.h
<<\_ACEOF
38828 #define HAVE_ICONV 1
38832 if test "$am_cv_lib_iconv" = yes; then
38833 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
38834 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
38835 echo "$as_me:$LINENO: result: $LIBICONV" >&5
38836 echo "${ECHO_T}$LIBICONV" >&6
38838 CPPFLAGS
="$am_save_CPPFLAGS"
38850 acl_save_prefix
="$prefix"
38851 prefix
="$acl_final_prefix"
38852 acl_save_exec_prefix
="$exec_prefix"
38853 exec_prefix
="$acl_final_exec_prefix"
38855 eval additional_includedir
=\"$includedir\"
38856 eval additional_libdir
=\"$libdir\"
38858 exec_prefix
="$acl_save_exec_prefix"
38859 prefix
="$acl_save_prefix"
38862 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
38863 if test "${with_libintl_prefix+set}" = set; then
38864 withval
="$with_libintl_prefix"
38866 if test "X$withval" = "Xno"; then
38869 if test "X$withval" = "X"; then
38871 acl_save_prefix
="$prefix"
38872 prefix
="$acl_final_prefix"
38873 acl_save_exec_prefix
="$exec_prefix"
38874 exec_prefix
="$acl_final_exec_prefix"
38876 eval additional_includedir
=\"$includedir\"
38877 eval additional_libdir
=\"$libdir\"
38879 exec_prefix
="$acl_save_exec_prefix"
38880 prefix
="$acl_save_prefix"
38883 additional_includedir
="$withval/include"
38884 additional_libdir
="$withval/lib"
38894 names_already_handled
=
38895 names_next_round
='intl '
38896 while test -n "$names_next_round"; do
38897 names_this_round
="$names_next_round"
38899 for name
in $names_this_round; do
38901 for n
in $names_already_handled; do
38902 if test "$n" = "$name"; then
38903 already_handled
=yes
38907 if test -z "$already_handled"; then
38908 names_already_handled
="$names_already_handled $name"
38909 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
38910 eval value
=\"\
$HAVE_LIB$uppername\"
38911 if test -n "$value"; then
38912 if test "$value" = yes; then
38913 eval value
=\"\
$LIB$uppername\"
38914 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
38915 eval value
=\"\
$LTLIB$uppername\"
38916 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
38925 if test $use_additional = yes; then
38926 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
38927 found_dir
="$additional_libdir"
38928 found_so
="$additional_libdir/lib$name.$shlibext"
38929 if test -f "$additional_libdir/lib$name.la"; then
38930 found_la
="$additional_libdir/lib$name.la"
38933 if test -f "$additional_libdir/lib$name.$libext"; then
38934 found_dir
="$additional_libdir"
38935 found_a
="$additional_libdir/lib$name.$libext"
38936 if test -f "$additional_libdir/lib$name.la"; then
38937 found_la
="$additional_libdir/lib$name.la"
38942 if test "X$found_dir" = "X"; then
38943 for x
in $LDFLAGS $LTLIBINTL; do
38945 acl_save_prefix
="$prefix"
38946 prefix
="$acl_final_prefix"
38947 acl_save_exec_prefix
="$exec_prefix"
38948 exec_prefix
="$acl_final_exec_prefix"
38950 exec_prefix
="$acl_save_exec_prefix"
38951 prefix
="$acl_save_prefix"
38955 dir
=`echo "X$x" | sed -e 's/^X-L//'`
38956 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
38958 found_so
="$dir/lib$name.$shlibext"
38959 if test -f "$dir/lib$name.la"; then
38960 found_la
="$dir/lib$name.la"
38963 if test -f "$dir/lib$name.$libext"; then
38965 found_a
="$dir/lib$name.$libext"
38966 if test -f "$dir/lib$name.la"; then
38967 found_la
="$dir/lib$name.la"
38973 if test "X$found_dir" != "X"; then
38978 if test "X$found_dir" != "X"; then
38979 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
38980 if test "X$found_so" != "X"; then
38981 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
38982 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
38985 for x
in $ltrpathdirs; do
38986 if test "X$x" = "X$found_dir"; then
38991 if test -z "$haveit"; then
38992 ltrpathdirs
="$ltrpathdirs $found_dir"
38994 if test "$hardcode_direct" = yes; then
38995 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
38997 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
38998 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
39000 for x
in $rpathdirs; do
39001 if test "X$x" = "X$found_dir"; then
39006 if test -z "$haveit"; then
39007 rpathdirs
="$rpathdirs $found_dir"
39011 for x
in $LDFLAGS $LIBINTL; do
39013 acl_save_prefix
="$prefix"
39014 prefix
="$acl_final_prefix"
39015 acl_save_exec_prefix
="$exec_prefix"
39016 exec_prefix
="$acl_final_exec_prefix"
39018 exec_prefix
="$acl_save_exec_prefix"
39019 prefix
="$acl_save_prefix"
39021 if test "X$x" = "X-L$found_dir"; then
39026 if test -z "$haveit"; then
39027 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39029 if test "$hardcode_minus_L" != no
; then
39030 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
39032 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
39038 if test "X$found_a" != "X"; then
39039 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
39041 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39044 additional_includedir
=
39045 case "$found_dir" in
39047 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
39048 additional_includedir
="$basedir/include"
39051 if test "X$additional_includedir" != "X"; then
39052 if test "X$additional_includedir" != "X/usr/include"; then
39054 if test "X$additional_includedir" = "X/usr/local/include"; then
39055 if test -n "$GCC"; then
39057 linux
*) haveit
=yes;;
39061 if test -z "$haveit"; then
39062 for x
in $CPPFLAGS $INCINTL; do
39064 acl_save_prefix
="$prefix"
39065 prefix
="$acl_final_prefix"
39066 acl_save_exec_prefix
="$exec_prefix"
39067 exec_prefix
="$acl_final_exec_prefix"
39069 exec_prefix
="$acl_save_exec_prefix"
39070 prefix
="$acl_save_prefix"
39072 if test "X$x" = "X-I$additional_includedir"; then
39077 if test -z "$haveit"; then
39078 if test -d "$additional_includedir"; then
39079 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39085 if test -n "$found_la"; then
39086 save_libdir
="$libdir"
39087 case "$found_la" in
39088 */* |
*\\*) .
"$found_la" ;;
39089 *) .
"./$found_la" ;;
39091 libdir
="$save_libdir"
39092 for dep
in $dependency_libs; do
39095 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
39096 if test "X$additional_libdir" != "X/usr/lib"; then
39098 if test "X$additional_libdir" = "X/usr/local/lib"; then
39099 if test -n "$GCC"; then
39101 linux
*) haveit
=yes;;
39105 if test -z "$haveit"; then
39107 for x
in $LDFLAGS $LIBINTL; do
39109 acl_save_prefix
="$prefix"
39110 prefix
="$acl_final_prefix"
39111 acl_save_exec_prefix
="$exec_prefix"
39112 exec_prefix
="$acl_final_exec_prefix"
39114 exec_prefix
="$acl_save_exec_prefix"
39115 prefix
="$acl_save_prefix"
39117 if test "X$x" = "X-L$additional_libdir"; then
39122 if test -z "$haveit"; then
39123 if test -d "$additional_libdir"; then
39124 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
39128 for x
in $LDFLAGS $LTLIBINTL; do
39130 acl_save_prefix
="$prefix"
39131 prefix
="$acl_final_prefix"
39132 acl_save_exec_prefix
="$exec_prefix"
39133 exec_prefix
="$acl_final_exec_prefix"
39135 exec_prefix
="$acl_save_exec_prefix"
39136 prefix
="$acl_save_prefix"
39138 if test "X$x" = "X-L$additional_libdir"; then
39143 if test -z "$haveit"; then
39144 if test -d "$additional_libdir"; then
39145 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
39152 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
39153 if test "$enable_rpath" != no
; then
39155 for x
in $rpathdirs; do
39156 if test "X$x" = "X$dir"; then
39161 if test -z "$haveit"; then
39162 rpathdirs
="$rpathdirs $dir"
39165 for x
in $ltrpathdirs; do
39166 if test "X$x" = "X$dir"; then
39171 if test -z "$haveit"; then
39172 ltrpathdirs
="$ltrpathdirs $dir"
39177 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39180 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39183 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
39184 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
39190 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
39191 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
39197 if test "X$rpathdirs" != "X"; then
39198 if test -n "$hardcode_libdir_separator"; then
39200 for found_dir
in $rpathdirs; do
39201 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39203 acl_save_libdir
="$libdir"
39205 eval flag
=\"$hardcode_libdir_flag_spec\"
39206 libdir
="$acl_save_libdir"
39207 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
39209 for found_dir
in $rpathdirs; do
39210 acl_save_libdir
="$libdir"
39211 libdir
="$found_dir"
39212 eval flag
=\"$hardcode_libdir_flag_spec\"
39213 libdir
="$acl_save_libdir"
39214 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
39218 if test "X$ltrpathdirs" != "X"; then
39219 for found_dir
in $ltrpathdirs; do
39220 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
39224 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
39225 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
39226 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39229 gt_save_CPPFLAGS
="$CPPFLAGS"
39230 CPPFLAGS
="$CPPFLAGS $INCINTL"
39231 gt_save_LIBS
="$LIBS"
39232 LIBS
="$LIBS $LIBINTL"
39233 cat >conftest.
$ac_ext <<_ACEOF
39234 #line $LINENO "configure"
39237 cat confdefs.h
>>conftest.
$ac_ext
39238 cat >>conftest.
$ac_ext <<_ACEOF
39239 /* end confdefs.h. */
39240 #include <libintl.h>
39241 extern int _nl_msg_cat_cntr;
39246 const char *_nl_expand_alias ();
39250 bindtextdomain ("", "");
39251 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
39256 rm -f conftest.
$ac_objext conftest
$ac_exeext
39257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39258 (eval $ac_link) 2>&5
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); } &&
39262 { ac_try
='test -s conftest$ac_exeext'
39263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264 (eval $ac_try) 2>&5
39266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267 (exit $ac_status); }; }; then
39268 gt_cv_func_gnugettext2_libintl
=yes
39270 echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.
$ac_ext >&5
39273 gt_cv_func_gnugettext2_libintl
=no
39275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39276 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
39277 LIBS
="$LIBS $LIBICONV"
39278 cat >conftest.
$ac_ext <<_ACEOF
39279 #line $LINENO "configure"
39282 cat confdefs.h
>>conftest.
$ac_ext
39283 cat >>conftest.
$ac_ext <<_ACEOF
39284 /* end confdefs.h. */
39285 #include <libintl.h>
39286 extern int _nl_msg_cat_cntr;
39291 const char *_nl_expand_alias ();
39295 bindtextdomain ("", "");
39296 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
39301 rm -f conftest.
$ac_objext conftest
$ac_exeext
39302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39303 (eval $ac_link) 2>&5
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); } &&
39307 { ac_try
='test -s conftest$ac_exeext'
39308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39309 (eval $ac_try) 2>&5
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); }; }; then
39313 LIBINTL
="$LIBINTL $LIBICONV"
39314 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
39315 gt_cv_func_gnugettext2_libintl
=yes
39318 echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.
$ac_ext >&5
39322 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
39324 CPPFLAGS
="$gt_save_CPPFLAGS"
39325 LIBS
="$gt_save_LIBS"
39327 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
39328 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
39331 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
39332 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
39333 && test "$PACKAGE" != gettext; }; then
39334 gt_use_preinstalled_gnugettext
=yes
39343 if test "$gt_use_preinstalled_gnugettext" = "yes" \
39344 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
39346 cat >>confdefs.h
<<\_ACEOF
39347 #define ENABLE_NLS 1
39355 if test "$USE_NLS" = "yes"; then
39357 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
39358 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
39359 echo "$as_me:$LINENO: checking how to link with libintl" >&5
39360 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
39361 echo "$as_me:$LINENO: result: $LIBINTL" >&5
39362 echo "${ECHO_T}$LIBINTL" >&6
39364 for element
in $INCINTL; do
39366 for x
in $CPPFLAGS; do
39368 acl_save_prefix
="$prefix"
39369 prefix
="$acl_final_prefix"
39370 acl_save_exec_prefix
="$exec_prefix"
39371 exec_prefix
="$acl_final_exec_prefix"
39373 exec_prefix
="$acl_save_exec_prefix"
39374 prefix
="$acl_save_prefix"
39376 if test "X$x" = "X$element"; then
39381 if test -z "$haveit"; then
39382 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
39389 cat >>confdefs.h
<<\_ACEOF
39390 #define HAVE_GETTEXT 1
39394 cat >>confdefs.h
<<\_ACEOF
39395 #define HAVE_DCGETTEXT 1
39405 INTLLIBS
="$LIBINTL"
39414 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"
39416 cat >confcache
<<\_ACEOF
39417 # This file is a shell script that caches the results of configure
39418 # tests run on this system so they can be shared between configure
39419 # scripts and configure runs, see configure's option --config-cache.
39420 # It is not useful on other systems. If it contains results you don't
39421 # want to keep, you may remove or edit it.
39423 # config.status only pays attention to the cache file if you give it
39424 # the --recheck option to rerun configure.
39426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39428 # following values.
39432 # The following way of writing the cache mishandles newlines in values,
39433 # but we know of no workaround that is simple, portable, and efficient.
39434 # So, don't put newlines in cache variables' values.
39435 # Ultrix sh set writes to stderr and can't be redirected directly,
39436 # and sets the high bit in the cache file unless we assign to the vars.
39439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39441 # `set' does not quote correctly, so add quotes (double-quote
39442 # substitution turns \\\\ into \\, and sed turns \\ into \).
39445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39448 # `set' quotes correctly as required by POSIX, so do not add quotes.
39450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39461 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
39462 if test -w $cache_file; then
39463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39464 cat confcache
>$cache_file
39466 echo "not updating unwritable cache $cache_file"
39471 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
39472 # Let make expand exec_prefix.
39473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
39475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39477 # trailing colons and then remove the whole line if VPATH becomes empty
39478 # (actually we leave an empty line to preserve line numbers).
39479 if test "x$srcdir" = x.
; then
39480 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
39481 s/:*\$(srcdir):*/:/;
39482 s/:*\${srcdir}:*/:/;
39484 s/^\([^=]*=[ ]*\):*/\1/;
39490 DEFS
=-DHAVE_CONFIG_H
39494 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
39495 # 1. Remove the extension, and $U if already installed.
39496 ac_i
=`echo "$ac_i" |
39497 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39499 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
39500 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
39502 LIBOBJS
=$ac_libobjs
39504 LTLIBOBJS
=$ac_ltlibobjs
39507 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39508 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39509 Usually this means the macro was only invoked conditionally." >&5
39510 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39511 Usually this means the macro was only invoked conditionally." >&2;}
39512 { (exit 1); exit 1; }; }
39514 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39515 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39516 Usually this means the macro was only invoked conditionally." >&5
39517 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39518 Usually this means the macro was only invoked conditionally." >&2;}
39519 { (exit 1); exit 1; }; }
39522 : ${CONFIG_STATUS=./config.status}
39523 ac_clean_files_save
=$ac_clean_files
39524 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
39525 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39526 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39527 cat >$CONFIG_STATUS <<_ACEOF
39529 # Generated by $as_me.
39530 # Run this file to recreate the current configuration.
39531 # Compiler output produced by configure, useful for debugging
39532 # configure, is in config.log if it exists.
39535 ac_cs_recheck=false
39537 SHELL=\${CONFIG_SHELL-$SHELL}
39540 cat >>$CONFIG_STATUS <<\_ACEOF
39541 ## --------------------- ##
39542 ## M4sh Initialization. ##
39543 ## --------------------- ##
39545 # Be Bourne compatible
39546 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
39549 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39550 # is contrary to our usage. Disable this feature.
39551 alias -g '${1+"$@"}'='"$@"'
39552 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
39556 # Support unset when possible.
39557 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
39564 # Work around bugs in pre-3.0 UWIN ksh.
39565 $as_unset ENV MAIL MAILPATH
39572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39574 LC_TELEPHONE LC_TIME
39576 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
39577 eval $as_var=C
; export $as_var
39583 # Required to use basename.
39584 if expr a
: '\(a\)' >/dev
/null
2>&1; then
39590 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
39591 as_basename
=basename
39597 # Name of the executable.
39598 as_me
=`$as_basename "$0" ||
39599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39600 X"$0" : 'X\(//\)$' \| \
39601 X"$0" : 'X\(/\)$' \| \
39602 . : '\(.\)' 2>/dev/null ||
39604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39605 /^X\/\(\/\/\)$/{ s//\1/; q; }
39606 /^X\/\(\/\).*/{ s//\1/; q; }
39610 # PATH needs CR, and LINENO needs CR and PATH.
39611 # Avoid depending upon Character Ranges.
39612 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39613 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39614 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39615 as_cr_digits
='0123456789'
39616 as_cr_alnum
=$as_cr_Letters$as_cr_digits
39618 # The user is always right.
39619 if test "${PATH_SEPARATOR+set}" != set; then
39620 echo "#! /bin/sh" >conf$$.sh
39621 echo "exit 0" >>conf$$.sh
39623 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
39632 as_lineno_1
=$LINENO
39633 as_lineno_2
=$LINENO
39634 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
39635 test "x$as_lineno_1" != "x$as_lineno_2" &&
39636 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
39637 # Find who we are. Look in the path if we contain no path at all
39640 *[\\/]* ) as_myself
=$0 ;;
39641 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
39642 for as_dir
in $PATH
39645 test -z "$as_dir" && as_dir
=.
39646 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
39651 # We did not find ourselves, most probably we were run as `sh COMMAND'
39652 # in which case we are not to be found in the path.
39653 if test "x$as_myself" = x
; then
39656 if test ! -f "$as_myself"; then
39657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39658 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39659 { (exit 1); exit 1; }; }
39661 case $CONFIG_SHELL in
39663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
39664 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
39667 test -z "$as_dir" && as_dir
=.
39668 for as_base
in sh bash ksh sh5
; do
39671 if ("$as_dir/$as_base" -c '
39672 as_lineno_1=$LINENO
39673 as_lineno_2=$LINENO
39674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39675 test "x$as_lineno_1" != "x$as_lineno_2" &&
39676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
39677 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
39678 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
39679 CONFIG_SHELL
=$as_dir/$as_base
39680 export CONFIG_SHELL
39681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39690 # uniformly replaced by the line number. The first 'sed' inserts a
39691 # line-number line before each line; the second 'sed' does the real
39692 # work. The second script uses 'N' to pair each line-number line
39693 # with the numbered line, and appends trailing '-' during
39694 # substitution so that $LINENO is not a special case at line end.
39695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39697 sed '=' <$as_myself |
39702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39705 s,^['$as_cr_digits']*\n,,
39706 ' >$as_me.lineno
&&
39707 chmod +x
$as_me.lineno ||
39708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39709 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39710 { (exit 1); exit 1; }; }
39712 # Don't try to exec as it changes $[0], causing all sort of problems
39713 # (the dirname of $[0] is not the place where we might find the
39714 # original and so on. Autoconf is especially sensible to this).
39716 # Exit status is that of the last command.
39721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39722 *c
*,-n*) ECHO_N
= ECHO_C
='
39724 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
39725 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
39728 if expr a
: '\(a\)' >/dev
/null
2>&1; then
39734 rm -f conf$$ conf$$.exe conf$$.
file
39736 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
39737 # We could just check for DJGPP; but this test a) works b) is more generic
39738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39739 if test -f conf$$.exe
; then
39740 # Don't use ln at all; we don't have any links
39745 elif ln conf$$.
file conf$$
2>/dev
/null
; then
39750 rm -f conf$$ conf$$.exe conf$$.
file
39752 if mkdir
-p .
2>/dev
/null
; then
39758 as_executable_p
="test -f"
39760 # Sed expression to map a string onto a valid CPP name.
39761 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
39763 # Sed expression to map a string onto a valid variable name.
39764 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
39768 # We need space, tab and new line, in precisely that order.
39778 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39779 # report actual input values of CONFIG_FILES etc. instead of their
39780 # values after options handling. Logging --version etc. is OK.
39784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39785 ## Running $as_me. ##
39790 This file was extended by GNU coreutils $as_me 4.5.4, which was
39791 generated by GNU Autoconf 2.57. Invocation command line was
39793 CONFIG_FILES = $CONFIG_FILES
39794 CONFIG_HEADERS = $CONFIG_HEADERS
39795 CONFIG_LINKS = $CONFIG_LINKS
39796 CONFIG_COMMANDS = $CONFIG_COMMANDS
39800 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39804 # Files that config.status was made for.
39805 if test -n "$ac_config_files"; then
39806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39809 if test -n "$ac_config_headers"; then
39810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39813 if test -n "$ac_config_links"; then
39814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39817 if test -n "$ac_config_commands"; then
39818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39821 cat >>$CONFIG_STATUS <<\_ACEOF
39824 \`$as_me' instantiates files from templates according to the
39825 current configuration.
39827 Usage: $0 [OPTIONS] [FILE]...
39829 -h, --help print this help, then exit
39830 -V, --version print version number, then exit
39831 -q, --quiet do not print progress messages
39832 -d, --debug don't remove temporary files
39833 --recheck update $as_me by reconfiguring in the same conditions
39834 --file=FILE[:TEMPLATE]
39835 instantiate the configuration file FILE
39836 --header=FILE[:TEMPLATE]
39837 instantiate the configuration header FILE
39839 Configuration files:
39842 Configuration headers:
39845 Configuration links:
39848 Configuration commands:
39851 Report bugs to <bug-autoconf@gnu.org>."
39854 cat >>$CONFIG_STATUS <<_ACEOF
39856 GNU coreutils config.status 4.5.4
39857 configured by $0, generated by GNU Autoconf 2.57,
39858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39861 Free Software Foundation, Inc.
39862 This config.status script is free software; the Free Software Foundation
39863 gives unlimited permission to copy, distribute and modify it."
39868 cat >>$CONFIG_STATUS <<\_ACEOF
39869 # If no file are specified by the user, then we need to provide default
39870 # value. By we need to know if files were specified by the user.
39876 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
39877 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
39885 *) # This is not an option, so the user has probably given explicit
39888 ac_need_defaults
=false
;;
39892 # Handling of the options.
39894 cat >>$CONFIG_STATUS <<\_ACEOF
39895 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
39897 --version |
--vers* |
-V )
39898 echo "$ac_cs_version"; exit 0 ;;
39900 # Conflict between --help and --header
39901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39902 Try \`$0 --help' for more information." >&5
39903 echo "$as_me: error: ambiguous option: $1
39904 Try \`$0 --help' for more information." >&2;}
39905 { (exit 1); exit 1; }; };;
39906 --help |
--hel |
-h )
39907 echo "$ac_cs_usage"; exit 0 ;;
39908 --debug |
--d* |
-d )
39910 --file |
--fil |
--fi |
--f )
39912 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
39913 ac_need_defaults
=false
;;
39914 --header |
--heade |
--head |
--hea )
39916 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
39917 ac_need_defaults
=false
;;
39918 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
39919 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
39922 # This is an error.
39923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39924 Try \`$0 --help' for more information." >&5
39925 echo "$as_me: error: unrecognized option: $1
39926 Try \`$0 --help' for more information." >&2;}
39927 { (exit 1); exit 1; }; } ;;
39929 *) ac_config_targets
="$ac_config_targets $1" ;;
39935 ac_configure_extra_args
=
39937 if $ac_cs_silent; then
39939 ac_configure_extra_args
="$ac_configure_extra_args --silent"
39943 cat >>$CONFIG_STATUS <<_ACEOF
39944 if \$ac_cs_recheck; then
39945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39951 cat >>$CONFIG_STATUS <<_ACEOF
39953 # INIT-COMMANDS section.
39956 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39957 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
39958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
39960 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
39961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
39962 LINGUAS="${LINGUAS-%UNSET%}"
39969 cat >>$CONFIG_STATUS <<\_ACEOF
39970 for ac_config_target
in $ac_config_targets
39972 case "$ac_config_target" in
39973 # Handling of arguments.
39974 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
39975 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
39976 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
39977 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
39978 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
39979 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
39980 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
39981 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
39982 "tests/basename/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/basename/Makefile" ;;
39983 "tests/chgrp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chgrp/Makefile" ;;
39984 "tests/chmod/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chmod/Makefile" ;;
39985 "tests/chown/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chown/Makefile" ;;
39986 "tests/cp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cp/Makefile" ;;
39987 "tests/cut/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cut/Makefile" ;;
39988 "tests/date/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/date/Makefile" ;;
39989 "tests/dd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dd/Makefile" ;;
39990 "tests/dircolors/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dircolors/Makefile" ;;
39991 "tests/du/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/du/Makefile" ;;
39992 "tests/expr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/expr/Makefile" ;;
39993 "tests/factor/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/factor/Makefile" ;;
39994 "tests/fmt/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/fmt/Makefile" ;;
39995 "tests/head/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/head/Makefile" ;;
39996 "tests/install/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/install/Makefile" ;;
39997 "tests/join/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/join/Makefile" ;;
39998 "tests/ln/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ln/Makefile" ;;
39999 "tests/ls-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls-2/Makefile" ;;
40000 "tests/ls/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls/Makefile" ;;
40001 "tests/md5sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/md5sum/Makefile" ;;
40002 "tests/misc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/misc/Makefile" ;;
40003 "tests/mkdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mkdir/Makefile" ;;
40004 "tests/mv/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mv/Makefile" ;;
40005 "tests/od/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/od/Makefile" ;;
40006 "tests/pr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/pr/Makefile" ;;
40007 "tests/rm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rm/Makefile" ;;
40008 "tests/rmdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rmdir/Makefile" ;;
40009 "tests/seq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/seq/Makefile" ;;
40010 "tests/sha1sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sha1sum/Makefile" ;;
40011 "tests/shred/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/shred/Makefile" ;;
40012 "tests/sort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sort/Makefile" ;;
40013 "tests/stty/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/stty/Makefile" ;;
40014 "tests/sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sum/Makefile" ;;
40015 "tests/tac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tac/Makefile" ;;
40016 "tests/tail-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail-2/Makefile" ;;
40017 "tests/tail/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail/Makefile" ;;
40018 "tests/test/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/test/Makefile" ;;
40019 "tests/touch/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/touch/Makefile" ;;
40020 "tests/tr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tr/Makefile" ;;
40021 "tests/tsort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tsort/Makefile" ;;
40022 "tests/unexpand/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/unexpand/Makefile" ;;
40023 "tests/uniq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/uniq/Makefile" ;;
40024 "tests/wc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/wc/Makefile" ;;
40025 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
40026 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
40027 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
40028 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
40029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40031 { (exit 1); exit 1; }; };;
40035 # If the user did not use the arguments to specify the items to instantiate,
40036 # then the envvar interface is used. Set only those that are not.
40037 # We use the long form for the default assignment because of an extremely
40038 # bizarre bug on SunOS 4.1.3.
40039 if $ac_need_defaults; then
40040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
40041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
40042 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
40043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
40046 # Have a temporary directory for convenience. Make it in the build tree
40047 # simply because there is no reason to put it here, and in addition,
40048 # creating and moving files from /tmp can sometimes cause problems.
40049 # Create a temporary directory, and hook for its removal unless debugging.
40052 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40053 trap '{ (exit 1); exit 1; }' 1 2 13 15
40056 # Create a (secure) tmp directory for tmp files.
40059 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40060 test -n "$tmp" && test -d "$tmp"
40063 tmp
=.
/confstat$$
-$RANDOM
40064 (umask 077 && mkdir
$tmp)
40067 echo "$me: cannot create a temporary directory in ." >&2
40068 { (exit 1); exit 1; }
40073 cat >>$CONFIG_STATUS <<_ACEOF
40076 # CONFIG_FILES section.
40079 # No need to generate the scripts if there are no CONFIG_FILES.
40080 # This happens for instance when ./config.status config.h
40081 if test -n "\$CONFIG_FILES"; then
40082 # Protect against being on the right side of a sed subst in config.status.
40083 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40084 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40085 s,@SHELL@,$SHELL,;t t
40086 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40087 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40088 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40089 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40090 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40091 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40092 s,@exec_prefix@,$exec_prefix,;t t
40093 s,@prefix@,$prefix,;t t
40094 s,@program_transform_name@,$program_transform_name,;t t
40095 s,@bindir@,$bindir,;t t
40096 s,@sbindir@,$sbindir,;t t
40097 s,@libexecdir@,$libexecdir,;t t
40098 s,@datadir@,$datadir,;t t
40099 s,@sysconfdir@,$sysconfdir,;t t
40100 s,@sharedstatedir@,$sharedstatedir,;t t
40101 s,@localstatedir@,$localstatedir,;t t
40102 s,@libdir@,$libdir,;t t
40103 s,@includedir@,$includedir,;t t
40104 s,@oldincludedir@,$oldincludedir,;t t
40105 s,@infodir@,$infodir,;t t
40106 s,@mandir@,$mandir,;t t
40107 s,@build_alias@,$build_alias,;t t
40108 s,@host_alias@,$host_alias,;t t
40109 s,@target_alias@,$target_alias,;t t
40110 s,@DEFS@,$DEFS,;t t
40111 s,@ECHO_C@,$ECHO_C,;t t
40112 s,@ECHO_N@,$ECHO_N,;t t
40113 s,@ECHO_T@,$ECHO_T,;t t
40114 s,@LIBS@,$LIBS,;t t
40115 s,@build@,$build,;t t
40116 s,@build_cpu@,$build_cpu,;t t
40117 s,@build_vendor@,$build_vendor,;t t
40118 s,@build_os@,$build_os,;t t
40119 s,@host@,$host,;t t
40120 s,@host_cpu@,$host_cpu,;t t
40121 s,@host_vendor@,$host_vendor,;t t
40122 s,@host_os@,$host_os,;t t
40123 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40124 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40125 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40126 s,@CYGPATH_W@,$CYGPATH_W,;t t
40127 s,@PACKAGE@,$PACKAGE,;t t
40128 s,@VERSION@,$VERSION,;t t
40129 s,@ACLOCAL@,$ACLOCAL,;t t
40130 s,@AUTOCONF@,$AUTOCONF,;t t
40131 s,@AUTOMAKE@,$AUTOMAKE,;t t
40132 s,@AUTOHEADER@,$AUTOHEADER,;t t
40133 s,@MAKEINFO@,$MAKEINFO,;t t
40134 s,@AMTAR@,$AMTAR,;t t
40135 s,@install_sh@,$install_sh,;t t
40136 s,@STRIP@,$STRIP,;t t
40137 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40138 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40140 s,@SET_MAKE@,$SET_MAKE,;t t
40141 s,@PERL@,$PERL,;t t
40143 s,@CFLAGS@,$CFLAGS,;t t
40144 s,@LDFLAGS@,$LDFLAGS,;t t
40145 s,@CPPFLAGS@,$CPPFLAGS,;t t
40146 s,@ac_ct_CC@,$ac_ct_CC,;t t
40147 s,@EXEEXT@,$EXEEXT,;t t
40148 s,@OBJEXT@,$OBJEXT,;t t
40149 s,@DEPDIR@,$DEPDIR,;t t
40150 s,@am__include@,$am__include,;t t
40151 s,@am__quote@,$am__quote,;t t
40152 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40153 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40154 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40155 s,@CCDEPMODE@,$CCDEPMODE,;t t
40156 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40157 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40159 s,@EGREP@,$EGREP,;t t
40160 s,@RANLIB@,$RANLIB,;t t
40161 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40162 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
40163 s,@HELP2MAN@,$HELP2MAN,;t t
40164 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
40165 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
40167 s,@DF_PROG@,$DF_PROG,;t t
40169 s,@ANSI2KNR@,$ANSI2KNR,;t t
40170 s,@LIBOBJS@,$LIBOBJS,;t t
40171 s,@YACC@,$YACC,;t t
40172 s,@ALLOCA@,$ALLOCA,;t t
40173 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
40174 s,@NEED_SETGID@,$NEED_SETGID,;t t
40175 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
40176 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
40177 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
40178 s,@POW_LIB@,$POW_LIB,;t t
40179 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
40180 s,@GLIBC21@,$GLIBC21,;t t
40181 s,@LIBICONV@,$LIBICONV,;t t
40182 s,@LTLIBICONV@,$LTLIBICONV,;t t
40183 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
40184 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
40185 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
40186 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
40187 s,@MSGFMT@,$MSGFMT,;t t
40188 s,@GMSGFMT@,$GMSGFMT,;t t
40189 s,@XGETTEXT@,$XGETTEXT,;t t
40190 s,@MSGMERGE@,$MSGMERGE,;t t
40191 s,@USE_NLS@,$USE_NLS,;t t
40192 s,@INTLLIBS@,$INTLLIBS,;t t
40193 s,@LIBINTL@,$LIBINTL,;t t
40194 s,@LTLIBINTL@,$LTLIBINTL,;t t
40195 s,@POSUB@,$POSUB,;t t
40196 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40201 cat >>$CONFIG_STATUS <<\_ACEOF
40202 # Split the substitutions into bite-sized pieces for seds with
40203 # small command number limits, like on Digital OSF/1 and HP-UX.
40204 ac_max_sed_lines
=48
40205 ac_sed_frag
=1 # Number of current file.
40206 ac_beg
=1 # First line for current file.
40207 ac_end
=$ac_max_sed_lines # Line after last line for current file.
40210 while $ac_more_lines; do
40211 if test $ac_beg -gt 1; then
40212 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
40214 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
40216 if test ! -s $tmp/subs.frag
; then
40217 ac_more_lines
=false
40219 # The purpose of the label and of the branching condition is to
40220 # speed up the sed processing (if there are no `@' at all, there
40221 # is no need to browse any of the substitutions).
40222 # These are the two extra sed commands mentioned above.
40224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
40225 if test -z "$ac_sed_cmds"; then
40226 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
40228 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40230 ac_sed_frag
=`expr $ac_sed_frag + 1`
40232 ac_end
=`expr $ac_end + $ac_max_sed_lines`
40235 if test -z "$ac_sed_cmds"; then
40238 fi # test -n "$CONFIG_FILES"
40241 cat >>$CONFIG_STATUS <<\_ACEOF
40242 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
40243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40245 - |
*:- |
*:-:* ) # input from stdin
40247 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40248 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
40249 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40250 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
40251 * ) ac_file_in
=$ac_file.
in ;;
40254 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40255 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
40256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40257 X"$ac_file" : 'X\(//\)[^/]' \| \
40258 X"$ac_file" : 'X\(//\)$' \| \
40259 X"$ac_file" : 'X\(/\)' \| \
40260 . : '\(.\)' 2>/dev/null ||
40262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40264 /^X\(\/\/\)$/{ s//\1/; q; }
40265 /^X\(\/\).*/{ s//\1/; q; }
40267 { if $as_mkdir_p; then
40272 while test ! -d "$as_dir"; do
40273 as_dirs
="$as_dir $as_dirs"
40274 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
40275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40276 X"$as_dir" : 'X\(//\)[^/]' \| \
40277 X"$as_dir" : 'X\(//\)$' \| \
40278 X"$as_dir" : 'X\(/\)' \| \
40279 . : '\(.\)' 2>/dev/null ||
40281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40283 /^X\(\/\/\)$/{ s//\1/; q; }
40284 /^X\(\/\).*/{ s//\1/; q; }
40287 test ! -n "$as_dirs" || mkdir
$as_dirs
40288 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40289 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40290 { (exit 1); exit 1; }; }; }
40294 if test "$ac_dir" != .
; then
40295 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40296 # A "../" for each directory in $ac_dir_suffix.
40297 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40299 ac_dir_suffix
= ac_top_builddir
=
40303 .
) # No --srcdir option. We are building in place.
40305 if test -z "$ac_top_builddir"; then
40308 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
40310 [\\/]* | ?
:[\\/]* ) # Absolute path.
40311 ac_srcdir
=$srcdir$ac_dir_suffix;
40312 ac_top_srcdir
=$srcdir ;;
40313 *) # Relative path.
40314 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
40315 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
40317 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40319 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
40320 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40321 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40322 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40326 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
40327 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
40330 if test x
"$ac_file" != x-
; then
40331 { echo "$as_me:$LINENO: creating $ac_file" >&5
40332 echo "$as_me: creating $ac_file" >&6;}
40335 # Let's still pretend it is `configure' which instantiates (i.e., don't
40336 # use $as_me), people would be surprised to read:
40337 # /* config.h. Generated by config.status. */
40338 if test x
"$ac_file" = x-
; then
40341 configure_input
="$ac_file. "
40343 configure_input
=$configure_input"Generated from `echo $ac_file_in |
40344 sed 's,.*/,,'` by configure."
40346 # First look for the input files in the build tree, otherwise in the
40348 ac_file_inputs
=`IFS=:
40349 for f in $ac_file_in; do
40351 -) echo $tmp/stdin ;;
40353 # Absolute (can't be DOS-style, as IFS=:)
40354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40355 echo "$as_me: error: cannot find input file: $f" >&2;}
40356 { (exit 1); exit 1; }; }
40359 if test -f "$f"; then
40362 elif test -f "$srcdir/$f"; then
40367 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40368 echo "$as_me: error: cannot find input file: $f" >&2;}
40369 { (exit 1); exit 1; }; }
40372 done` ||
{ (exit 1); exit 1; }
40374 cat >>$CONFIG_STATUS <<_ACEOF
40378 cat >>$CONFIG_STATUS <<\_ACEOF
40380 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
40381 s
,@configure_input@
,$configure_input,;t t
40382 s
,@srcdir@
,$ac_srcdir,;t t
40383 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
40384 s
,@top_srcdir@
,$ac_top_srcdir,;t t
40385 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
40386 s
,@builddir@
,$ac_builddir,;t t
40387 s
,@abs_builddir@
,$ac_abs_builddir,;t t
40388 s
,@top_builddir@
,$ac_top_builddir,;t t
40389 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
40390 s
,@INSTALL@
,$ac_INSTALL,;t t
40391 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40393 if test x"$ac_file" != x-; then
40394 mv $tmp/out $ac_file
40402 cat >>$CONFIG_STATUS <<\_ACEOF
40405 # CONFIG_HEADER section.
40408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
40409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40411 # ac_d sets the value in "#define NAME VALUE" lines.
40412 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40413 ac_dB
='[ ].*$,\1#\2'
40416 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40417 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40418 ac_uB
='$,\1#\2define\3'
40422 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
40423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40425 - |
*:- |
*:-:* ) # input from stdin
40427 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40428 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
40429 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40430 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
40431 * ) ac_file_in
=$ac_file.
in ;;
40434 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
40435 echo "$as_me: creating $ac_file" >&6;}
40437 # First look for the input files in the build tree, otherwise in the
40439 ac_file_inputs
=`IFS=:
40440 for f in $ac_file_in; do
40442 -) echo $tmp/stdin ;;
40444 # Absolute (can't be DOS-style, as IFS=:)
40445 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40446 echo "$as_me: error: cannot find input file: $f" >&2;}
40447 { (exit 1); exit 1; }; }
40450 if test -f "$f"; then
40453 elif test -f "$srcdir/$f"; then
40458 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40459 echo "$as_me: error: cannot find input file: $f" >&2;}
40460 { (exit 1); exit 1; }; }
40463 done` ||
{ (exit 1); exit 1; }
40464 # Remove the trailing spaces.
40465 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40469 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40470 # `conftest.undefs', that substitutes the proper values into
40471 # config.h.in to produce config.h. The first handles `#define'
40472 # templates, and the second `#undef' templates.
40473 # And first: Protect against being on the right side of a sed subst in
40474 # config.status. Protect against being in an unquoted here document
40475 # in config.status.
40476 rm -f conftest.defines conftest.undefs
40477 # Using a here document instead of a string reduces the quoting nightmare.
40478 # Putting comments in sed scripts is not portable.
40480 # `end' is used to avoid that the second main sed command (meant for
40481 # 0-ary CPP macros) applies to n-ary macro definitions.
40482 # See the Autoconf documentation for `clear'.
40483 cat >confdef2sed.
sed <<\_ACEOF
40488 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40490 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40493 # If some macros were called several times there might be several times
40494 # the same #defines, which is useless. Nevertheless, we may not want to
40495 # sort them, since we want the *last* AC-DEFINE to be honored.
40496 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40497 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40498 rm -f confdef2sed.sed
40500 # This sed command replaces #undef with comments. This is necessary, for
40501 # example, in the case of _POSIX_SOURCE, which is predefined and required
40502 # on some systems where configure will not decide to define it.
40503 cat >>conftest.undefs <<\_ACEOF
40504 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40507 # Break up conftest.defines because some shells have a limit on the size
40508 # of here documents, and old seds have small limits too (100 cmds).
40509 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40510 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40511 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40512 echo ' :' >>$CONFIG_STATUS
40513 rm -f conftest.tail
40514 while grep . conftest.defines >/dev/null
40516 # Write a limited-size here document to $tmp/defines.sed.
40517 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40518 # Speed up: don't consider the non `#define' lines.
40519 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40520 # Work around the forget-to-reset-the-flag bug.
40521 echo 't clr' >>$CONFIG_STATUS
40522 echo ': clr' >>$CONFIG_STATUS
40523 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
40525 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40527 mv $tmp/out $tmp/in
40529 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
40530 rm -f conftest.defines
40531 mv conftest.
tail conftest.defines
40533 rm -f conftest.defines
40534 echo ' fi # grep' >>$CONFIG_STATUS
40535 echo >>$CONFIG_STATUS
40537 # Break up conftest.undefs because some shells have a limit on the size
40538 # of here documents, and old seds have small limits too (100 cmds).
40539 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40540 rm -f conftest.
tail
40541 while grep . conftest.undefs
>/dev
/null
40543 # Write a limited-size here document to $tmp/undefs.sed.
40544 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40545 # Speed up: don't consider the non
`#undef'
40546 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40547 # Work around the forget-to-reset-the-flag bug.
40548 echo 't clr' >>$CONFIG_STATUS
40549 echo ': clr' >>$CONFIG_STATUS
40550 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40552 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40554 mv $tmp/out $tmp/in
40556 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40557 rm -f conftest.undefs
40558 mv conftest.tail conftest.undefs
40560 rm -f conftest.undefs
40562 cat >>$CONFIG_STATUS <<\_ACEOF
40563 # Let's still pretend it is `configure
' which instantiates (i.e., don't
40564 # use $as_me), people would be surprised to read:
40565 # /* config.h. Generated by config.status. */
40566 if test x
"$ac_file" = x-
; then
40567 echo "/* Generated by configure. */" >$tmp/config.h
40569 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40571 cat $tmp/in >>$tmp/config.h
40573 if test x
"$ac_file" != x-
; then
40574 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
40575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40576 echo "$as_me: $ac_file is unchanged" >&6;}
40578 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
40579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40580 X"$ac_file" : 'X\(//\)[^/]' \| \
40581 X"$ac_file" : 'X\(//\)$' \| \
40582 X"$ac_file" : 'X\(/\)' \| \
40583 . : '\(.\)' 2>/dev/null ||
40585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40587 /^X\(\/\/\)$/{ s//\1/; q; }
40588 /^X\(\/\).*/{ s//\1/; q; }
40590 { if $as_mkdir_p; then
40595 while test ! -d "$as_dir"; do
40596 as_dirs
="$as_dir $as_dirs"
40597 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
40598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40599 X"$as_dir" : 'X\(//\)[^/]' \| \
40600 X"$as_dir" : 'X\(//\)$' \| \
40601 X"$as_dir" : 'X\(/\)' \| \
40602 . : '\(.\)' 2>/dev/null ||
40604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40606 /^X\(\/\/\)$/{ s//\1/; q; }
40607 /^X\(\/\).*/{ s//\1/; q; }
40610 test ! -n "$as_dirs" || mkdir
$as_dirs
40611 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40613 { (exit 1); exit 1; }; }; }
40616 mv $tmp/config.h
$ac_file
40620 rm -f $tmp/config.h
40622 _am_stamp_count
=`expr ${_am_stamp_count-0} + 1`
40623 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40624 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40625 X$ac_file : 'X\(//\)[^/]' \| \
40626 X$ac_file : 'X\(//\)$' \| \
40627 X$ac_file : 'X\(/\)' \| \
40628 . : '\(.\)' 2>/dev/null ||
40630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40632 /^X\(\/\/\)$/{ s//\1/; q; }
40633 /^X\(\/\).*/{ s//\1/; q; }
40634 s/.*/./; q'`/stamp-h
$_am_stamp_count
40637 cat >>$CONFIG_STATUS <<\_ACEOF
40640 # CONFIG_LINKS section.
40643 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
40644 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
40645 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40647 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
40648 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
40650 if test ! -r $srcdir/$ac_source; then
40651 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
40652 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
40653 { (exit 1); exit 1; }; }
40657 # Make relative symlinks.
40658 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
40659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40660 X"$ac_dest" : 'X\(//\)[^/]' \| \
40661 X"$ac_dest" : 'X\(//\)$' \| \
40662 X"$ac_dest" : 'X\(/\)' \| \
40663 . : '\(.\)' 2>/dev/null ||
40665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40667 /^X\(\/\/\)$/{ s//\1/; q; }
40668 /^X\(\/\).*/{ s//\1/; q; }
40670 { if $as_mkdir_p; then
40671 mkdir
-p "$ac_dest_dir"
40673 as_dir
="$ac_dest_dir"
40675 while test ! -d "$as_dir"; do
40676 as_dirs
="$as_dir $as_dirs"
40677 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
40678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40679 X"$as_dir" : 'X\(//\)[^/]' \| \
40680 X"$as_dir" : 'X\(//\)$' \| \
40681 X"$as_dir" : 'X\(/\)' \| \
40682 . : '\(.\)' 2>/dev/null ||
40684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40686 /^X\(\/\/\)$/{ s//\1/; q; }
40687 /^X\(\/\).*/{ s//\1/; q; }
40690 test ! -n "$as_dirs" || mkdir
$as_dirs
40691 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
40692 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
40693 { (exit 1); exit 1; }; }; }
40697 if test "$ac_dest_dir" != .
; then
40698 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
40699 # A "../" for each directory in $ac_dir_suffix.
40700 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40702 ac_dir_suffix
= ac_top_builddir
=
40706 .
) # No --srcdir option. We are building in place.
40708 if test -z "$ac_top_builddir"; then
40711 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
40713 [\\/]* | ?
:[\\/]* ) # Absolute path.
40714 ac_srcdir
=$srcdir$ac_dir_suffix;
40715 ac_top_srcdir
=$srcdir ;;
40716 *) # Relative path.
40717 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
40718 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
40720 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
40722 ac_abs_builddir
=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
40723 ac_abs_top_builddir
=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
40724 ac_abs_srcdir
=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
40725 ac_abs_top_srcdir
=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
40729 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
40730 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
40733 # Try a symlink, then a hard link, then a copy.
40734 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
40735 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
40736 cp -p $srcdir/$ac_source $ac_dest ||
40737 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
40738 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
40739 { (exit 1); exit 1; }; }
40742 cat >>$CONFIG_STATUS <<\_ACEOF
40745 # CONFIG_COMMANDS section.
40747 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
40748 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
40749 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
40750 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
40751 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40752 X"$ac_dest" : 'X\(//\)[^/]' \| \
40753 X"$ac_dest" : 'X\(//\)$' \| \
40754 X"$ac_dest" : 'X\(/\)' \| \
40755 . : '\(.\)' 2>/dev/null ||
40757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40759 /^X\(\/\/\)$/{ s//\1/; q; }
40760 /^X\(\/\).*/{ s//\1/; q; }
40764 if test "$ac_dir" != .
; then
40765 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40766 # A "../" for each directory in $ac_dir_suffix.
40767 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40769 ac_dir_suffix
= ac_top_builddir
=
40773 .
) # No --srcdir option. We are building in place.
40775 if test -z "$ac_top_builddir"; then
40778 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
40780 [\\/]* | ?
:[\\/]* ) # Absolute path.
40781 ac_srcdir
=$srcdir$ac_dir_suffix;
40782 ac_top_srcdir
=$srcdir ;;
40783 *) # Relative path.
40784 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
40785 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
40787 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40789 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
40790 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40791 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40792 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40795 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40796 echo "$as_me: executing $ac_dest commands" >&6;}
40798 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
40799 # Strip MF so we end up with the name of the file.
40800 mf
=`echo "$mf" | sed -e 's/:.*$//'`
40801 # Check whether this is an Automake generated Makefile or not.
40802 # We used to match only the files named `Makefile.in', but
40803 # some people rename them; so instead we look at the file content.
40804 # Grep'ing the first line is not enough: some people post-process
40805 # each Makefile.in and add a new line on top of each file to say so.
40806 # So let's grep whole file.
40807 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
40808 dirpart
=`(dirname "$mf") 2>/dev/null ||
40809 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40810 X"$mf" : 'X\(//\)[^/]' \| \
40811 X"$mf" : 'X\(//\)$' \| \
40812 X"$mf" : 'X\(/\)' \| \
40813 . : '\(.\)' 2>/dev/null ||
40815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40817 /^X\(\/\/\)$/{ s//\1/; q; }
40818 /^X\(\/\).*/{ s//\1/; q; }
40823 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
40824 # Extract the definition of DEP_FILES from the Makefile without
40826 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
40827 test -z "$DEPDIR" && continue
40828 # When using ansi2knr, U may be empty or an underscore; expand it
40829 U
=`sed -n -e '/^U = / s///p' < "$mf"`
40830 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
40831 # We invoke sed twice because it is the simplest approach to
40832 # changing $(DEPDIR) to its actual value in the expansion.
40833 for file in `sed -n -e '
40834 /^DEP_FILES = .*\\\\$/ {
40843 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
40844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40845 # Make sure the directory exists.
40846 test -f "$dirpart/$file" && continue
40847 fdir
=`(dirname "$file") 2>/dev/null ||
40848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40849 X"$file" : 'X\(//\)[^/]' \| \
40850 X"$file" : 'X\(//\)$' \| \
40851 X"$file" : 'X\(/\)' \| \
40852 . : '\(.\)' 2>/dev/null ||
40854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40856 /^X\(\/\/\)$/{ s//\1/; q; }
40857 /^X\(\/\).*/{ s//\1/; q; }
40859 { if $as_mkdir_p; then
40860 mkdir
-p $dirpart/$fdir
40862 as_dir
=$dirpart/$fdir
40864 while test ! -d "$as_dir"; do
40865 as_dirs
="$as_dir $as_dirs"
40866 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
40867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40868 X"$as_dir" : 'X\(//\)[^/]' \| \
40869 X"$as_dir" : 'X\(//\)$' \| \
40870 X"$as_dir" : 'X\(/\)' \| \
40871 . : '\(.\)' 2>/dev/null ||
40873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40875 /^X\(\/\/\)$/{ s//\1/; q; }
40876 /^X\(\/\).*/{ s//\1/; q; }
40879 test ! -n "$as_dirs" || mkdir
$as_dirs
40880 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40881 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40882 { (exit 1); exit 1; }; }; }
40884 # echo "creating $dirpart/$file"
40885 echo '# dummy' > "$dirpart/$file"
40890 for ac_file
in $CONFIG_FILES; do
40891 # Support "outfile[:infile[:infile...]]"
40893 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
40895 # PO directories have a Makefile.in generated from Makefile.in.in.
40896 case "$ac_file" in */Makefile.
in)
40897 # Adjust a relative srcdir.
40898 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
40899 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
40900 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40901 # In autoconf-2.13 it is called $ac_given_srcdir.
40902 # In autoconf-2.50 it is called $srcdir.
40903 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
40904 case "$ac_given_srcdir" in
40905 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
40906 /*) top_srcdir
="$ac_given_srcdir" ;;
40907 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
40909 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40910 rm -f "$ac_dir/POTFILES"
40911 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
40912 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40913 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
40914 # on $ac_dir but don't depend on user-specified configuration
40916 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40917 # The LINGUAS file contains the set of available languages.
40918 if test -n "$ALL_LINGUAS"; then
40919 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
40921 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40922 # Hide the ALL_LINGUAS assigment from automake.
40923 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40925 case "$ac_given_srcdir" in
40927 *) srcdirpre
='$(srcdir)/' ;;
40933 for lang
in $ALL_LINGUAS; do
40934 POFILES
="$POFILES $srcdirpre$lang.po"
40935 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
40936 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
40937 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
40939 # CATALOGS depends on both $ac_dir and the user's LINGUAS
40940 # environment variable.
40942 if test -n "$ALL_LINGUAS"; then
40943 for presentlang
in $ALL_LINGUAS; do
40945 if test "%UNSET%" != "$LINGUAS"; then
40946 desiredlanguages
="$LINGUAS"
40948 desiredlanguages
="$ALL_LINGUAS"
40950 for desiredlang
in $desiredlanguages; do
40951 # Use the presentlang catalog if desiredlang is
40952 # a. equal to presentlang, or
40953 # b. a variant of presentlang (because in this case,
40954 # presentlang can be used as a fallback for messages
40955 # which are not translated in the desiredlang catalog).
40956 case "$desiredlang" in
40957 "$presentlang"*) useit
=yes;;
40960 if test $useit = yes; then
40961 INST_LINGUAS
="$INST_LINGUAS $presentlang"
40966 if test -n "$INST_LINGUAS"; then
40967 for lang
in $INST_LINGUAS; do
40968 CATALOGS
="$CATALOGS $lang.gmo"
40971 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
40972 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"
40973 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
40974 if test -f "$f"; then
40976 *.orig |
*.bak |
*~
) ;;
40977 *) cat "$f" >> "$ac_dir/Makefile" ;;
40989 cat >>$CONFIG_STATUS <<\_ACEOF
40991 { (exit 0); exit 0; }
40993 chmod +x
$CONFIG_STATUS
40994 ac_clean_files
=$ac_clean_files_save
40997 # configure is writing to config.log, and then calls config.status.
40998 # config.status does its own redirection, appending to config.log.
40999 # Unfortunately, on DOS this fails, as config.log is still kept open
41000 # by configure, so config.status won't be able to write to it; its
41001 # output is simply discarded. So we exec the FD to /dev/null,
41002 # effectively closing config.log, so it can be properly (re)opened and
41003 # appended to by config.status. When coming back to configure, we
41004 # need to make the FD available again.
41005 if test "$no_create" != yes; then
41007 ac_config_status_args
=
41008 test "$silent" = yes &&
41009 ac_config_status_args
="$ac_config_status_args --quiet"
41011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
41013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41014 # would make configure fail if this is the last instruction.
41015 $ac_cs_success ||
{ (exit 1); exit 1; }