2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53b for GNU coreutils 0.1.0.
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
27 # Support unset when possible.
28 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
34 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
35 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
36 { LANG
=C
; export LANG
; }
37 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
38 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
39 { LC_ALL
=C
; export LC_ALL
; }
40 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
41 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
42 { LC_TIME
=C
; export LC_TIME
; }
43 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
44 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
45 { LC_CTYPE
=C
; export LC_CTYPE
; }
46 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
47 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
48 { LANGUAGE
=C
; export LANGUAGE
; }
49 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
50 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
51 { LC_COLLATE
=C
; export LC_COLLATE
; }
52 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
53 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
54 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
55 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
56 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
57 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
60 # Required to use basename.
61 if expr a
: '\(a\)' >/dev
/null
2>&1; then
67 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
74 # Name of the executable.
75 as_me
=`$as_basename "$0" ||
76 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77 X"$0" : 'X\(//\)$' \| \
78 X"$0" : 'X\(/\)$' \| \
79 . : '\(.\)' 2>/dev/null ||
81 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82 /^X\/\(\/\/\)$/{ s//\1/; q; }
83 /^X\/\(\/\).*/{ s//\1/; q; }
87 # PATH needs CR, and LINENO needs CR and PATH.
88 # Avoid depending upon Character Ranges.
89 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
90 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
92 as_cr_digits
='0123456789'
93 as_cr_alnum
=$as_cr_Letters$as_cr_digits
95 # The user is always right.
96 if test "${PATH_SEPARATOR+set}" != set; then
97 echo "#! /bin/sh" >conftest.sh
98 echo "exit 0" >>conftest.sh
100 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
111 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
112 test "x$as_lineno_1" != "x$as_lineno_2" &&
113 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
114 # Find who we are. Look in the path if we contain no path at all
117 *[\\/]* ) as_myself
=$0 ;;
118 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
122 test -z "$as_dir" && as_dir
=.
123 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
128 # We did not find ourselves, most probably we were run as `sh COMMAND'
129 # in which case we are not to be found in the path.
130 if test "x$as_myself" = x
; then
133 if test ! -f "$as_myself"; then
134 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135 { (exit 1); exit 1; }; }
137 case $CONFIG_SHELL in
139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
140 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
143 test -z "$as_dir" && as_dir
=.
144 for as_base
in sh bash ksh sh5
; do
147 if ("$as_dir/$as_base" -c '
150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151 test "x$as_lineno_1" != "x$as_lineno_2" &&
152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
153 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
154 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
155 CONFIG_SHELL
=$as_dir/$as_base
157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166 # uniformly replaced by the line number. The first 'sed' inserts a
167 # line-number line before each line; the second 'sed' does the real
168 # work. The second script uses 'N' to pair each line-number line
169 # with the numbered line, and appends trailing '-' during
170 # substitution so that $LINENO is not a special case at line end.
171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
173 sed '=' <$as_myself |
178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
181 s,^['$as_cr_digits']*\n,,
183 chmod +x
$as_me.lineno ||
184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185 { (exit 1); exit 1; }; }
187 # Don't try to exec as it changes $[0], causing all sort of problems
188 # (the dirname of $[0] is not the place where we might find the
189 # original and so on. Autoconf is especially sensible to this).
191 # Exit status is that of the last command.
196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197 *c
*,-n*) ECHO_N
= ECHO_C
='
199 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
200 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
203 if expr a
: '\(a\)' >/dev
/null
2>&1; then
209 rm -f conf$$ conf$$.exe conf$$.
file
211 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
212 # We could just check for DJGPP; but this test a) works b) is more generic
213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214 if test -f conf$$.exe
; then
215 # Don't use ln at all; we don't have any links
220 elif ln conf$$.
file conf$$
2>/dev
/null
; then
225 rm -f conf$$ conf$$.exe conf$$.
file
227 if mkdir
-p .
2>/dev
/null
; then
233 as_executable_p
="test -f"
235 # Sed expression to map a string onto a valid CPP name.
236 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
238 # Sed expression to map a string onto a valid variable name.
239 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
243 # We need space, tab and new line, in precisely that order.
249 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
253 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
254 # so uname gets run too.
255 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
262 ac_default_prefix
=/usr
/local
263 ac_config_libobj_dir
=.
268 SHELL
=${CONFIG_SHELL-/bin/sh}
270 # Maximum number of lines to put in a shell here document.
271 # This variable seems obsolete. It should probably be removed, and
272 # only ac_max_sed_lines should be used.
273 : ${ac_max_here_lines=38}
275 # Identity of this package.
276 PACKAGE_NAME
='GNU coreutils'
277 PACKAGE_TARNAME
='coreutils'
278 PACKAGE_VERSION
='0.1.0'
279 PACKAGE_STRING
='GNU coreutils 0.1.0'
280 PACKAGE_BUGREPORT
='bug-coreutils@gnu.org'
282 ac_unique_file
="src/ls.c"
283 # Factoring default headers for most tests.
284 ac_includes_default
="\
287 # include <sys/types.h>
290 # include <sys/stat.h>
301 # if !STDC_HEADERS && HAVE_MEMORY_H
307 # include <strings.h>
310 # include <inttypes.h>
320 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 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'
323 # Initialize some variables set by options.
325 ac_init_version
=false
326 # The variables have the same names as the options, with
327 # dashes changed to underlines.
335 program_transform_name
=s
,x
,x
,
343 # Installation directory options.
344 # These are left unexpanded so users can "make install exec_prefix=/foo"
345 # and all the variables that are supposed to be based on exec_prefix
346 # by default will actually change.
347 # Use braces instead of parens because sh, perl, etc. also accept them.
348 bindir
='${exec_prefix}/bin'
349 sbindir
='${exec_prefix}/sbin'
350 libexecdir
='${exec_prefix}/libexec'
351 datadir
='${prefix}/share'
352 sysconfdir
='${prefix}/etc'
353 sharedstatedir
='${prefix}/com'
354 localstatedir
='${prefix}/var'
355 libdir
='${exec_prefix}/lib'
356 includedir
='${prefix}/include'
357 oldincludedir
='/usr/include'
358 infodir
='${prefix}/info'
359 mandir
='${prefix}/man'
364 # If the previous option needs an argument, assign it.
365 if test -n "$ac_prev"; then
366 eval "$ac_prev=\$ac_option"
371 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
373 # Accept the important Cygnus configure options, so we can diagnose typos.
377 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
379 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
382 -build |
--build |
--buil |
--bui |
--bu)
383 ac_prev
=build_alias
;;
384 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
385 build_alias
=$ac_optarg ;;
387 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
388 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
389 ac_prev
=cache_file
;;
390 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
391 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
392 cache_file
=$ac_optarg ;;
395 cache_file
=config.cache
;;
397 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
399 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
401 datadir
=$ac_optarg ;;
403 -disable-* |
--disable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
410 eval "enable_$ac_feature=no" ;;
412 -enable-* |
--enable-*)
413 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
414 # Reject names that are not valid shell variable names.
415 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
416 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
417 { (exit 1); exit 1; }; }
418 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
420 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
423 eval "enable_$ac_feature='$ac_optarg'" ;;
425 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
426 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
427 |
--exec |
--exe |
--ex)
428 ac_prev
=exec_prefix
;;
429 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
430 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
431 |
--exec=* |
--exe=* |
--ex=*)
432 exec_prefix
=$ac_optarg ;;
434 -gas |
--gas |
--ga |
--g)
435 # Obsolete; use --with-gas.
438 -help |
--help |
--hel |
--he |
-h)
440 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
441 ac_init_help
=recursive
;;
442 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
443 ac_init_help
=short
;;
445 -host |
--host |
--hos |
--ho)
446 ac_prev
=host_alias
;;
447 -host=* |
--host=* |
--hos=* |
--ho=*)
448 host_alias
=$ac_optarg ;;
450 -includedir |
--includedir |
--includedi |
--included |
--include \
451 |
--includ |
--inclu |
--incl |
--inc)
452 ac_prev
=includedir
;;
453 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
454 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
455 includedir
=$ac_optarg ;;
457 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
459 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
460 infodir
=$ac_optarg ;;
462 -libdir |
--libdir |
--libdi |
--libd)
464 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
467 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
468 |
--libexe |
--libex |
--libe)
469 ac_prev
=libexecdir
;;
470 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
471 |
--libexe=* |
--libex=* |
--libe=*)
472 libexecdir
=$ac_optarg ;;
474 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
475 |
--localstate |
--localstat |
--localsta |
--localst \
476 |
--locals |
--local |
--loca |
--loc |
--lo)
477 ac_prev
=localstatedir
;;
478 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
479 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
480 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
481 localstatedir
=$ac_optarg ;;
483 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
485 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
489 # Obsolete; use --without-fp.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c |
-n)
496 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
497 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
500 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
501 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
502 |
--oldin |
--oldi |
--old |
--ol |
--o)
503 ac_prev
=oldincludedir
;;
504 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
505 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
506 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
507 oldincludedir
=$ac_optarg ;;
509 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
511 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
514 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
515 |
--program-pre |
--program-pr |
--program-p)
516 ac_prev
=program_prefix
;;
517 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
518 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
519 program_prefix
=$ac_optarg ;;
521 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
522 |
--program-suf |
--program-su |
--program-s)
523 ac_prev
=program_suffix
;;
524 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
525 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
526 program_suffix
=$ac_optarg ;;
528 -program-transform-name |
--program-transform-name \
529 |
--program-transform-nam |
--program-transform-na \
530 |
--program-transform-n |
--program-transform- \
531 |
--program-transform |
--program-transfor \
532 |
--program-transfo |
--program-transf \
533 |
--program-trans |
--program-tran \
534 |
--progr-tra |
--program-tr |
--program-t)
535 ac_prev
=program_transform_name
;;
536 -program-transform-name=* |
--program-transform-name=* \
537 |
--program-transform-nam=* |
--program-transform-na=* \
538 |
--program-transform-n=* |
--program-transform-=* \
539 |
--program-transform=* |
--program-transfor=* \
540 |
--program-transfo=* |
--program-transf=* \
541 |
--program-trans=* |
--program-tran=* \
542 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
543 program_transform_name
=$ac_optarg ;;
545 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
546 |
-silent |
--silent |
--silen |
--sile |
--sil)
549 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
551 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
553 sbindir
=$ac_optarg ;;
555 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
556 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
557 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
559 ac_prev
=sharedstatedir
;;
560 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
561 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
562 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
564 sharedstatedir
=$ac_optarg ;;
566 -site |
--site |
--sit)
568 -site=* |
--site=* |
--sit=*)
571 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
573 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
576 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
577 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
578 ac_prev
=sysconfdir
;;
579 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
580 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
581 sysconfdir
=$ac_optarg ;;
583 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
584 ac_prev
=target_alias
;;
585 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
586 target_alias
=$ac_optarg ;;
588 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
591 -version |
--version |
--versio |
--versi |
--vers |
-V)
595 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
598 { echo "$as_me: error: invalid package name: $ac_package" >&2
599 { (exit 1); exit 1; }; }
600 ac_package
=`echo $ac_package| sed 's/-/_/g'`
602 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
605 eval "with_$ac_package='$ac_optarg'" ;;
607 -without-* |
--without-*)
608 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
609 # Reject names that are not valid shell variable names.
610 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
611 { echo "$as_me: error: invalid package name: $ac_package" >&2
612 { (exit 1); exit 1; }; }
613 ac_package
=`echo $ac_package | sed 's/-/_/g'`
614 eval "with_$ac_package=no" ;;
617 # Obsolete; use --with-x.
620 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
621 |
--x-incl |
--x-inc |
--x-in |
--x-i)
622 ac_prev
=x_includes
;;
623 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
624 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
625 x_includes
=$ac_optarg ;;
627 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
628 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
629 ac_prev
=x_libraries
;;
630 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
631 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
632 x_libraries
=$ac_optarg ;;
634 -*) { echo "$as_me: error: unrecognized option: $ac_option
635 Try \`$0 --help' for more information." >&2
636 { (exit 1); exit 1; }; }
640 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
641 # Reject names that are not valid shell variable names.
642 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
643 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
644 { (exit 1); exit 1; }; }
645 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
646 eval "$ac_envvar='$ac_optarg'"
650 # FIXME: should be removed in autoconf 3.0.
651 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
653 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
660 if test -n "$ac_prev"; then
661 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
662 { echo "$as_me: error: missing argument to $ac_option" >&2
663 { (exit 1); exit 1; }; }
666 # Be sure to have absolute paths.
667 for ac_var
in exec_prefix prefix
669 eval ac_val
=$
`echo $ac_var`
671 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
677 # Be sure to have absolute paths.
678 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
679 localstatedir libdir includedir oldincludedir infodir mandir
681 eval ac_val
=$
`echo $ac_var`
683 [\\/$
]* | ?
:[\\/]* ) ;;
684 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
685 { (exit 1); exit 1; }; };;
689 # There might be people who depend on the old broken behavior: `$host'
690 # used to hold the argument of --host etc.
691 # FIXME: To remove some day.
696 # FIXME: To remove some day.
697 if test "x$host_alias" != x
; then
698 if test "x$build_alias" = x
; then
699 cross_compiling
=maybe
700 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
701 If a cross compiler is detected then cross compile mode will be used." >&2
702 elif test "x$build_alias" != "x$host_alias"; then
708 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
710 test "$silent" = yes && exec 6>/dev
/null
713 # Find the source files, if location was not specified.
714 if test -z "$srcdir"; then
715 ac_srcdir_defaulted
=yes
716 # Try the directory containing this script, then its parent.
717 ac_confdir
=`(dirname "$0") 2>/dev/null ||
718 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
719 X"$0" : 'X\(//\)[^/]' \| \
720 X"$0" : 'X\(//\)$' \| \
721 X"$0" : 'X\(/\)' \| \
722 . : '\(.\)' 2>/dev/null ||
724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
726 /^X\(\/\/\)$/{ s//\1/; q; }
727 /^X\(\/\).*/{ s//\1/; q; }
730 if test ! -r $srcdir/$ac_unique_file; then
734 ac_srcdir_defaulted
=no
736 if test ! -r $srcdir/$ac_unique_file; then
737 if test "$ac_srcdir_defaulted" = yes; then
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
739 { (exit 1); exit 1; }; }
741 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
742 { (exit 1); exit 1; }; }
745 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set
=${build_alias+set}
747 ac_env_build_alias_value
=$build_alias
748 ac_cv_env_build_alias_set
=${build_alias+set}
749 ac_cv_env_build_alias_value
=$build_alias
750 ac_env_host_alias_set
=${host_alias+set}
751 ac_env_host_alias_value
=$host_alias
752 ac_cv_env_host_alias_set
=${host_alias+set}
753 ac_cv_env_host_alias_value
=$host_alias
754 ac_env_target_alias_set
=${target_alias+set}
755 ac_env_target_alias_value
=$target_alias
756 ac_cv_env_target_alias_set
=${target_alias+set}
757 ac_cv_env_target_alias_value
=$target_alias
758 ac_env_CC_set
=${CC+set}
760 ac_cv_env_CC_set
=${CC+set}
761 ac_cv_env_CC_value
=$CC
762 ac_env_CFLAGS_set
=${CFLAGS+set}
763 ac_env_CFLAGS_value
=$CFLAGS
764 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value
=$CFLAGS
766 ac_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_env_LDFLAGS_value
=$LDFLAGS
768 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value
=$LDFLAGS
770 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
774 ac_env_CPP_set
=${CPP+set}
775 ac_env_CPP_value
=$CPP
776 ac_cv_env_CPP_set
=${CPP+set}
777 ac_cv_env_CPP_value
=$CPP
780 # Report the --help message.
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
786 \`configure' configures GNU coreutils 0.1.0 to adapt to many kinds of systems.
788 Usage: $0 [OPTION]... [VAR=VALUE]...
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
793 Defaults for the options are specified in brackets.
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
820 For better control, use the options below.
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
851 case $ac_init_help in
852 short | recursive
) echo "Configuration of GNU coreutils 0.1.0:";;
857 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
858 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
859 --disable-dependency-tracking Speeds up one-time builds
860 --enable-dependency-tracking Do not reject slow dependency extractors
861 --disable-largefile omit support
for large files
862 --disable-assert turn off assertions
863 --disable-rpath do not hardcode runtime library paths
864 --disable-nls do not use Native Language Support
867 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
868 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
869 --without-included-regex don
't compile regex; this is the default on
870 systems with version 2 of the GNU C library
871 (use with caution on other system)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
874 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
875 --with-libintl-prefix=DIR search
for libintl
in DIR
/include and DIR
/lib
876 --without-libintl-prefix don
't search for libintl in includedir and libdir
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
887 Use these variables to override the choices made by `configure' or to
help
888 it to
find libraries and programs with nonstandard names
/locations.
890 Report bugs to
<bug-coreutils@gnu.org
>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
898 test -d $ac_dir ||
continue
901 if test "$ac_dir" != .
; then
902 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix
= ac_top_builddir
=
910 .
) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?
:[\\/]* ) # Absolute path.
918 ac_srcdir
=$srcdir$ac_dir_suffix;
919 ac_top_srcdir
=$srcdir ;;
921 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
928 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu
; then
935 $SHELL $ac_srcdir/configure.gnu
--help=recursive
936 elif test -f $ac_srcdir/configure
; then
938 $SHELL $ac_srcdir/configure
--help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.
in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 GNU coreutils configure
0.1.0
954 generated by GNU Autoconf
2.53b
956 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation
, Inc.
958 This configure
script is free software
; the Free Software Foundation
959 gives unlimited permission to copy
, distribute and modify it.
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by GNU coreutils $as_me 0.1.0, which was
969 generated by GNU Autoconf 2.53b. Invocation command line was
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1003 test -z "$as_dir" && as_dir
=.
1004 echo "PATH: $as_dir"
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1027 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1028 |
--no-cr |
--no-c |
-n ) continue ;;
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1032 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 case " $ac_configure_args " in
1036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1037 *) ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log. We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ## ----------------- ##
1078 ## Output variables. ##
1079 ## ----------------- ##
1082 for ac_var in $ac_subst_vars
1084 eval ac_val=$`echo $ac_var`
1085 echo "$ac_var='"'"'$ac_val'"'"'"
1089 if test -n "$ac_subst_files"; then
1096 for ac_var in $ac_subst_files
1098 eval ac_val=$`echo $ac_var`
1099 echo "$ac_var='"'"'$ac_val'"'"'"
1104 if test -s confdefs.h; then
1111 sed "/^$/d" confdefs.h | sort
1114 test "$ac_signal" != 0 &&
1115 echo "$as_me: caught signal $ac_signal"
1116 echo "$as_me: exit $exit_status"
1118 rm -f core core.* *.core &&
1119 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1122 for ac_signal
in 1 2 13 15; do
1123 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1128 rm -rf conftest
* confdefs.h
1129 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1132 # Predefined preprocessor variables.
1134 cat >>confdefs.h
<<_ACEOF
1135 #define PACKAGE_NAME "$PACKAGE_NAME"
1139 cat >>confdefs.h
<<_ACEOF
1140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1144 cat >>confdefs.h
<<_ACEOF
1145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1149 cat >>confdefs.h
<<_ACEOF
1150 #define PACKAGE_STRING "$PACKAGE_STRING"
1154 cat >>confdefs.h
<<_ACEOF
1155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1159 # Let the site file select an alternate cache file if it wants to.
1160 # Prefer explicitly selected file to automatically selected ones.
1161 if test -z "$CONFIG_SITE"; then
1162 if test "x$prefix" != xNONE
; then
1163 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1165 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1168 for ac_site_file
in $CONFIG_SITE; do
1169 if test -r "$ac_site_file"; then
1170 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1171 echo "$as_me: loading site script $ac_site_file" >&6;}
1172 sed 's/^/| /' "$ac_site_file" >&5
1177 if test -r "$cache_file"; then
1178 # Some versions of bash will fail to source /dev/null (special
1179 # files actually), so we avoid doing that.
1180 if test -f "$cache_file"; then
1181 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1182 echo "$as_me: loading cache $cache_file" >&6;}
1184 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1185 *) . .
/$cache_file;;
1189 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1190 echo "$as_me: creating cache $cache_file" >&6;}
1194 # Check that the precious variables saved in the cache have kept the same
1196 ac_cache_corrupted
=false
1197 for ac_var
in `(set) 2>&1 |
1198 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1199 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1200 eval ac_new_set
=\
$ac_env_${ac_var}_set
1201 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1202 eval ac_new_val
="\$ac_env_${ac_var}_value"
1203 case $ac_old_set,$ac_new_set in
1205 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1207 ac_cache_corrupted
=: ;;
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1211 ac_cache_corrupted
=: ;;
1214 if test "x$ac_old_val" != "x$ac_new_val"; then
1215 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1218 echo "$as_me: former value: $ac_old_val" >&2;}
1219 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1220 echo "$as_me: current value: $ac_new_val" >&2;}
1221 ac_cache_corrupted
=:
1224 # Pass precious variables to config.status.
1225 if test "$ac_new_set" = set; then
1227 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 *) ac_arg
=$ac_var=$ac_new_val ;;
1231 case " $ac_configure_args " in
1232 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1233 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1237 if $ac_cache_corrupted; then
1238 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242 { (exit 1); exit 1; }; }
1246 ac_cpp
='$CPP $CPPFLAGS'
1247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1280 for ac_dir
in config
$srcdir/config
; do
1281 if test -f $ac_dir/install-sh
; then
1283 ac_install_sh
="$ac_aux_dir/install-sh -c"
1285 elif test -f $ac_dir/install.sh
; then
1287 ac_install_sh
="$ac_aux_dir/install.sh -c"
1289 elif test -f $ac_dir/shtool
; then
1291 ac_install_sh
="$ac_aux_dir/shtool install -c"
1295 if test -z "$ac_aux_dir"; then
1296 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1297 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1298 { (exit 1); exit 1; }; }
1300 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1301 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1302 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1304 ac_config_headers
="$ac_config_headers config.h:config.hin"
1306 # Make sure we can run config.sub.
1307 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1308 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1309 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1310 { (exit 1); exit 1; }; }
1312 echo "$as_me:$LINENO: checking build system type" >&5
1313 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1314 if test "${ac_cv_build+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 ac_cv_build_alias
=$build_alias
1318 test -z "$ac_cv_build_alias" &&
1319 ac_cv_build_alias
=`$ac_config_guess`
1320 test -z "$ac_cv_build_alias" &&
1321 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1322 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1323 { (exit 1); exit 1; }; }
1324 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1325 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1326 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1327 { (exit 1); exit 1; }; }
1330 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1331 echo "${ECHO_T}$ac_cv_build" >&6
1333 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$as_me:$LINENO: checking host system type" >&5
1339 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1340 if test "${ac_cv_host+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 ac_cv_host_alias
=$host_alias
1344 test -z "$ac_cv_host_alias" &&
1345 ac_cv_host_alias
=$ac_cv_build_alias
1346 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1348 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1353 echo "${ECHO_T}$ac_cv_host" >&6
1355 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361 am__api_version
="1.6b"
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1369 # AmigaOS /C/install, which installs bootblocks on floppy discs
1370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373 # ./install, which can be erroneously created by make from ./install.sh.
1374 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1375 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1376 if test -z "$INSTALL"; then
1377 if test "${ac_cv_path_install+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1384 test -z "$as_dir" && as_dir
=.
1385 # Account for people who put trailing slashes in PATH elements.
1387 .
/ | .
// |
/cC
/* | \
1388 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1391 # OSF1 and SCO ODT 3.0 have their own names for install.
1392 # Don't use installbsd from OSF since it installs stuff as root
1394 for ac_prog
in ginstall scoinst
install; do
1395 for ac_exec_ext
in '' $ac_executable_extensions; do
1396 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1397 if test $ac_prog = install &&
1398 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1399 # AIX install. It has an incompatible calling convention.
1401 elif test $ac_prog = install &&
1402 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1403 # program-specific install script used by HP pwplus--don't use.
1406 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1418 if test "${ac_cv_path_install+set}" = set; then
1419 INSTALL
=$ac_cv_path_install
1421 # As a last resort, use the slow shell script. We don't cache a
1422 # path for INSTALL within a source directory, because that will
1423 # break other packages using the cache if that directory is
1424 # removed, or if the path is relative.
1425 INSTALL
=$ac_install_sh
1428 echo "$as_me:$LINENO: result: $INSTALL" >&5
1429 echo "${ECHO_T}$INSTALL" >&6
1431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1432 # It thinks the first close brace ends the variable substitution.
1433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1437 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1439 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1440 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1443 echo timestamp
> conftest.
file
1444 # Do `set' in a subshell so we don't clobber the current shell's
1445 # arguments. Must try -L first in case configure is actually a
1446 # symlink; some systems play weird games with the mod time of symlinks
1447 # (eg FreeBSD returns the mod time of the symlink's containing
1450 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1451 if test "$*" = "X"; then
1453 set X
`ls -t $srcdir/configure conftest.file`
1456 if test "$*" != "X $srcdir/configure conftest.file" \
1457 && test "$*" != "X conftest.file $srcdir/configure"; then
1459 # If neither matched, then we have a broken ls. This can happen
1460 # if, for instance, CONFIG_SHELL is bash and it inherits a
1461 # broken ls alias from the environment. This has actually
1462 # happened. Such a system could not be considered "sane".
1463 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1464 alias in your environment" >&5
1465 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1466 alias in your environment" >&2;}
1467 { (exit 1); exit 1; }; }
1470 test "$2" = conftest.
file
1476 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1477 Check your system clock" >&5
1478 echo "$as_me: error: newly created file is older than distributed files!
1479 Check your system clock" >&2;}
1480 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: yes" >&5
1483 echo "${ECHO_T}yes" >&6
1484 test "$program_prefix" != NONE
&&
1485 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1486 # Use a double $ so make ignores it.
1487 test "$program_suffix" != NONE
&&
1488 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1489 # Double any \ or $. echo might interpret backslashes.
1490 # By default was `s,x,x', remove it if useless.
1491 cat <<\_ACEOF
>conftest.
sed
1492 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1494 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1498 # expand $ac_aux_dir to an absolute path
1499 am_aux_dir
=`cd $ac_aux_dir && pwd`
1501 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1502 # Use eval to expand $SHELL
1503 if eval "$MISSING --run true"; then
1504 am_missing_run
="$MISSING --run "
1507 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1508 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1511 for ac_prog
in gawk mawk nawk
awk
1513 # Extract the first word of "$ac_prog", so it can be a program name with args.
1514 set dummy
$ac_prog; ac_word
=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_AWK+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$AWK"; then
1521 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir
=.
1528 for ac_exec_ext
in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_AWK
="$ac_prog"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 if test -n "$AWK"; then
1541 echo "$as_me:$LINENO: result: $AWK" >&5
1542 echo "${ECHO_T}$AWK" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1548 test -n "$AWK" && break
1551 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1552 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1553 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1554 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 cat >conftest.
make <<\_ACEOF
1559 @
echo 'ac_maketemp="${MAKE}"'
1561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1562 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1563 if test -n "$ac_maketemp"; then
1564 eval ac_cv_prog_make_
${ac_make}_set
=yes
1566 eval ac_cv_prog_make_
${ac_make}_set
=no
1570 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1571 echo "$as_me:$LINENO: result: yes" >&5
1572 echo "${ECHO_T}yes" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 SET_MAKE
="MAKE=${MAKE-make}"
1580 # test to see if srcdir already configured
1581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1582 test -f $srcdir/config.status
; then
1583 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1585 { (exit 1); exit 1; }; }
1588 # Define the identity of the package.
1593 cat >>confdefs.h
<<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1598 cat >>confdefs.h
<<_ACEOF
1599 #define VERSION "$VERSION"
1602 # Some tools Automake needs.
1604 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1607 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1610 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1613 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1616 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1619 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1621 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'. However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no
; then
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$STRIP"; then
1637 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir
=.
1644 for ac_exec_ext
in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 STRIP
=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657 echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_STRIP"; then
1667 # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip
; ac_word
=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_STRIP"; then
1675 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir
=.
1682 for ac_exec_ext
in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_STRIP
="strip"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1694 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1705 STRIP
="$ac_cv_prog_STRIP"
1709 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1711 # We need awk for the "check" target. The system "awk" is bad on
1718 cat >>confdefs.h
<<\_ACEOF
1719 #define _GNU_SOURCE 1
1724 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1725 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1726 if test "${PERL+set}" = set; then
1727 # `PERL' is set in the user's environment.
1728 candidate_perl_names
="$PERL"
1731 candidate_perl_names
='perl perl5'
1737 PERL
="$missing_dir/missing perl"
1738 for perl
in $candidate_perl_names; do
1739 # Run test in a subshell; some versions of sh will print an error if
1740 # an executable is not found, even if stderr is redirected.
1741 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev
/null
2>&1; then
1748 echo "$as_me:$LINENO: result: $found" >&5
1749 echo "${ECHO_T}$found" >&6
1750 test $found = no
&& { echo "$as_me:$LINENO: WARNING:
1751 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1752 a usable version of the Perl File::Compare module. As a result,
1753 you may be unable to run a few tests or to regenerate certain
1754 files if you modify the sources from which they are derived.
1756 echo "$as_me: WARNING:
1757 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1758 a usable version of the Perl File::Compare module. As a result,
1759 you may be unable to run a few tests or to regenerate certain
1760 files if you modify the sources from which they are derived.
1764 ac_cpp
='$CPP $CPPFLAGS'
1765 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC
="$CC" # Let the user override the test.
1779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir
=.
1784 for ac_exec_ext
in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc
; ac_word
=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir
=.
1822 for ac_exec_ext
in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC
="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC
="$CC" # Let the user override the test.
1859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir
=.
1864 for ac_exec_ext
in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc
; ac_word
=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir
=.
1902 for ac_exec_ext
in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC
="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc
; ac_word
=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC
="$CC" # Let the user override the test.
1940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir
=.
1945 for ac_exec_ext
in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected
=yes
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy
$ac_cv_prog_CC
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1967 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC
="$CC" # Let the user override the test.
1996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir
=.
2001 for ac_exec_ext
in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy
$ac_prog; ac_word
=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir
=.
2043 for ac_exec_ext
in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC
="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2074 { (exit 1); exit 1; }; }
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO:" \
2078 "checking for C compiler version" >&5
2079 ac_compiler
=`set X $ac_compile; echo $2`
2080 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2096 cat >conftest.
$ac_ext <<_ACEOF
2097 #line $LINENO "configure"
2098 #include "confdefs.h"
2108 ac_clean_files_save
=$ac_clean_files
2109 ac_clean_files
="$ac_clean_files a.out a.exe"
2110 # Try to create an executable without -o first, disregard a.out.
2111 # It will help us diagnose broken compilers, and finding out an intuition
2113 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2114 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2115 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117 (eval $ac_link_default) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 # Find the output, starting from the most likely. This scheme is
2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125 # Be careful to initialize this variable, since it used to be cached.
2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2128 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2129 ls a.out conftest 2>/dev/null;
2130 ls a.* conftest.* 2>/dev/null`; do
2132 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2133 a.out
) # We found the default executable, but exeext='' is most
2136 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2147 echo "$as_me: error: C compiler cannot create executables" >&2;}
2148 { (exit 77); exit 77; }; }
2151 ac_exeext
=$ac_cv_exeext
2152 echo "$as_me:$LINENO: result: $ac_file" >&5
2153 echo "${ECHO_T}$ac_file" >&6
2155 # Check the compiler produces executables we can run. If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2158 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2159 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2160 # If not cross compiling, check that we can run a simple program.
2161 if test "$cross_compiling" != yes; then
2162 if { ac_try
='./$ac_file'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2170 if test "$cross_compiling" = maybe
; then
2173 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'." >&2;}
2177 { (exit 1); exit 1; }; }
2181 echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6
2184 rm -f a.out a.exe conftest
$ac_cv_exeext
2185 ac_clean_files
=$ac_clean_files_save
2186 # Check the compiler produces executables we can run. If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2190 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 echo "${ECHO_T}$cross_compiling" >&6
2193 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2196 (eval $ac_link) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; then
2200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2202 # work properly (i.e., refer to `conftest.exe'), while it won't with
2204 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2206 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2207 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest
$ac_cv_exeext
2220 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2221 echo "${ECHO_T}$ac_cv_exeext" >&6
2223 rm -f conftest.
$ac_ext
2224 EXEEXT
=$ac_cv_exeext
2226 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2228 if test "${ac_cv_objext+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 cat >conftest.
$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2233 #include "confdefs.h"
2243 rm -f conftest.o conftest.obj
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2251 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2252 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2260 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2266 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6
2268 OBJEXT
=$ac_cv_objext
2270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 cat >conftest.
$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2290 rm -f conftest.
$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2308 rm -f conftest.
$ac_objext conftest.
$ac_ext
2309 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS
=${CFLAGS+set}
2316 ac_save_CFLAGS
=$CFLAGS
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.
$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2335 rm -f conftest.
$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try
='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2353 rm -f conftest.
$ac_objext conftest.
$ac_ext
2355 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2356 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2357 if test "$ac_test_CFLAGS" = set; then
2358 CFLAGS
=$ac_save_CFLAGS
2359 elif test $ac_cv_prog_cc_g = yes; then
2360 if test "$GCC" = yes; then
2366 if test "$GCC" = yes; then
2372 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2373 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2374 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 ac_cv_prog_cc_stdc
=no
2379 cat >conftest.
$ac_ext <<_ACEOF
2380 #line $LINENO "configure"
2381 #include "confdefs.h"
2384 #include <sys/types.h>
2385 #include <sys/stat.h>
2386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2387 struct buf { int x; };
2388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2389 static char *e (p, i)
2395 static char *f (char * (*g) (char **, int), char **p, ...)
2400 s = g (p, va_arg (v,int));
2404 int test (int i, double x);
2405 struct s1 {int (*f) (int a);};
2406 struct s2 {int (*f) (double a);};
2407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2418 # Don't try gcc -ansi; that turns off useful extensions and
2419 # breaks some systems' header files.
2420 # AIX -qlanglvl=ansi
2421 # Ultrix and OSF/1 -std1
2422 # HP-UX 10.20 and later -Ae
2423 # HP-UX older versions -Aa -D_HPUX_SOURCE
2424 # SVR4 -Xc -D__EXTENSIONS__
2425 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2427 CC
="$ac_save_CC $ac_arg"
2428 rm -f conftest.
$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try
='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_cv_prog_cc_stdc
=$ac_arg
2443 echo "$as_me: failed program was:" >&5
2444 cat conftest.
$ac_ext >&5
2446 rm -f conftest.
$ac_objext
2448 rm -f conftest.
$ac_ext conftest.
$ac_objext
2453 case "x$ac_cv_prog_cc_stdc" in
2455 echo "$as_me:$LINENO: result: none needed" >&5
2456 echo "${ECHO_T}none needed" >&6 ;;
2458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2460 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2463 # Some people use a C++ compiler to compile C. Since we use `exit',
2464 # in C++ we need to declare it. In case someone uses the same compiler
2465 # for both compiling C and C++ we need to have the C++ compiler decide
2466 # the declaration of exit, since it's the most demanding environment.
2467 cat >conftest.
$ac_ext <<_ACEOF
2472 rm -f conftest.
$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try
='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 for ac_declaration
in \
2486 '#include <stdlib.h>' \
2487 'extern "C" void std::exit (int) throw (); using std::exit;' \
2488 'extern "C" void std::exit (int); using std::exit;' \
2489 'extern "C" void exit (int) throw ();' \
2490 'extern "C" void exit (int);' \
2493 cat >conftest.
$ac_ext <<_ACEOF
2494 #line $LINENO "configure"
2495 #include "confdefs.h"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try
='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2524 rm -f conftest.
$ac_objext conftest.
$ac_ext
2525 cat >conftest.
$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 #include "confdefs.h"
2537 rm -f conftest.
$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try
='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 cat conftest.
$ac_ext >&5
2554 rm -f conftest.
$ac_objext conftest.
$ac_ext
2557 if test -n "$ac_declaration"; then
2558 echo '#ifdef __cplusplus' >>confdefs.h
2559 echo $ac_declaration >>confdefs.h
2560 echo '#endif' >>confdefs.h
2564 echo "$as_me: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2567 rm -f conftest.
$ac_objext conftest.
$ac_ext
2569 ac_cpp
='$CPP $CPPFLAGS'
2570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2573 rm -f .deps
2>/dev
/null
2574 mkdir .deps
2>/dev
/null
2575 if test -d .deps
; then
2578 # MS-DOS does not allow filenames that begin with a dot.
2581 rmdir .deps
2>/dev
/null
2584 ac_config_commands
="$ac_config_commands depfiles"
2587 am_make
=${MAKE-make}
2588 cat > confinc
<< 'END'
2592 # If we don't find an include directive, just comment out the code.
2593 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2594 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2598 # First try GNU make style include.
2599 echo "include confinc" > confmf
2600 # We grep out `Entering directory' and `Leaving directory'
2601 # messages which can occur if `w' ends up in MAKEFLAGS.
2602 # In particular we don't look at `^make:' because GNU make might
2603 # be invoked under some other name (usually "gmake"), in which
2604 # case it prints its new name instead of `make'.
2605 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2610 # Now try BSD make style include.
2611 if test "$am__include" = "#"; then
2612 echo '.include "confinc"' > confmf
2613 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2614 am__include
=.include
2621 echo "$as_me:$LINENO: result: $_am_result" >&5
2622 echo "${ECHO_T}$_am_result" >&6
2623 rm -f confinc confmf
2625 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2626 if test "${enable_dependency_tracking+set}" = set; then
2627 enableval
="$enable_dependency_tracking"
2630 if test "x$enable_dependency_tracking" != xno
; then
2631 am_depcomp
="$ac_aux_dir/depcomp"
2636 if test "x$enable_dependency_tracking" != xno; then
2647 depcc
="$CC" am_compiler_list
=
2649 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2650 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2651 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2655 # We make a subdir and do the tests there. Otherwise we can end up
2656 # making bogus files that we don't know about and never remove. For
2657 # instance it was reported that on HP-UX the gcc test will end up
2658 # making a dummy file named `D' -- because `-MD' means `put the output
2661 # Copy depcomp to subdir because otherwise we won't find it if we're
2662 # using a relative directory.
2663 cp "$am_depcomp" conftest.dir
2666 am_cv_CC_dependencies_compiler_type
=none
2667 if test "$am_compiler_list" = ""; then
2668 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2670 for depmode
in $am_compiler_list; do
2671 # We need to recreate these files for each test, as the compiler may
2672 # overwrite some of them when testing with obscure command lines.
2673 # This happens at least with the AIX C compiler.
2674 echo '#include "conftest.h"' > conftest.c
2675 echo 'int i;' > conftest.h
2676 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2680 # after this tag, mechanisms are not by side-effect, so they'll
2681 # only be used when explicitly requested
2682 if test "x$enable_dependency_tracking" = xyes
; then
2690 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2691 # mode. It turns out that the SunPro C++ compiler does not properly
2692 # handle `-M -o', and we need to detect this.
2693 if depmode
=$depmode \
2694 source=conftest.c object
=conftest.o \
2695 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2696 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2697 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2698 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2699 am_cv_CC_dependencies_compiler_type
=$depmode
2707 am_cv_CC_dependencies_compiler_type
=none
2711 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2713 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2718 test "x$enable_dependency_tracking" != xno \
2719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
2721 am__fastdepCC_FALSE
='#'
2723 am__fastdepCC_TRUE
='#'
2724 am__fastdepCC_FALSE
=
2729 ac_cpp
='$CPP $CPPFLAGS'
2730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2735 # On Suns, sometimes $CPP names a directory.
2736 if test -n "$CPP" && test -d "$CPP"; then
2739 if test -z "$CPP"; then
2740 if test "${ac_cv_prog_CPP+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 # Double quotes because CPP needs to be expanded
2744 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2747 for ac_c_preproc_warn_flag
in '' yes
2749 # Use a header file that comes with gcc, so configuring glibc
2750 # with a fresh cross-compiler works.
2751 # On the NeXT, cc -E runs the code through the compiler's parser,
2752 # not just through cpp. "Syntax error" is here to catch this case.
2753 cat >conftest.
$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2762 grep -v '^ *+' conftest.er1
>conftest.err
2764 cat conftest.err
>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } >/dev
/null
; then
2767 if test -s conftest.err
; then
2768 ac_cpp_err
=$ac_c_preproc_warn_flag
2775 if test -z "$ac_cpp_err"; then
2778 echo "$as_me: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2780 # Broken: fails on valid input.
2783 rm -f conftest.err conftest.
$ac_ext
2785 # OK, works on sane cases. Now check whether non-existent headers
2786 # can be detected and how.
2787 cat >conftest.
$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790 #include <ac_nonexistent.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1
>conftest.err
2797 cat conftest.err
>&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev
/null
; then
2800 if test -s conftest.err
; then
2801 ac_cpp_err
=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2809 # Broken: success on invalid input.
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2814 # Passes both tests.
2818 rm -f conftest.err conftest.
$ac_ext
2821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822 rm -f conftest.err conftest.
$ac_ext
2823 if $ac_preproc_ok; then
2835 echo "$as_me:$LINENO: result: $CPP" >&5
2836 echo "${ECHO_T}$CPP" >&6
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 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat >conftest.
$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 #include "confdefs.h"
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2853 grep -v '^ *+' conftest.er1
>conftest.err
2855 cat conftest.err
>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } >/dev
/null
; then
2858 if test -s conftest.err
; then
2859 ac_cpp_err
=$ac_c_preproc_warn_flag
2866 if test -z "$ac_cpp_err"; then
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2871 # Broken: fails on valid input.
2874 rm -f conftest.err conftest.
$ac_ext
2876 # OK, works on sane cases. Now check whether non-existent headers
2877 # can be detected and how.
2878 cat >conftest.
$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 #include "confdefs.h"
2881 #include <ac_nonexistent.h>
2883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2886 grep -v '^ *+' conftest.er1
>conftest.err
2888 cat conftest.err
>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } >/dev
/null
; then
2891 if test -s conftest.err
; then
2892 ac_cpp_err
=$ac_c_preproc_warn_flag
2899 if test -z "$ac_cpp_err"; then
2900 # Broken: success on invalid input.
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2905 # Passes both tests.
2909 rm -f conftest.err conftest.
$ac_ext
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.
$ac_ext
2914 if $ac_preproc_ok; then
2917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2919 { (exit 1); exit 1; }; }
2923 ac_cpp
='$CPP $CPPFLAGS'
2924 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2930 echo "$as_me:$LINENO: checking for egrep" >&5
2931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2932 if test "${ac_cv_prog_egrep+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2936 then ac_cv_prog_egrep
='grep -E'
2937 else ac_cv_prog_egrep
='egrep'
2940 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2941 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2942 EGREP
=$ac_cv_prog_egrep
2945 if test $ac_cv_c_compiler_gnu = yes; then
2946 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2947 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2948 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 ac_pattern
="Autoconf.*'x'"
2952 cat >conftest.
$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 #include "confdefs.h"
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2960 ac_cv_prog_gcc_traditional
=yes
2962 ac_cv_prog_gcc_traditional
=no
2967 if test $ac_cv_prog_gcc_traditional = no
; then
2968 cat >conftest.
$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 #include "confdefs.h"
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2976 ac_cv_prog_gcc_traditional
=yes
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2983 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2984 if test $ac_cv_prog_gcc_traditional = yes; then
2985 CC
="$CC -traditional"
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2991 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_RANLIB+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 if test -n "$RANLIB"; then
2998 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir
=.
3005 for ac_exec_ext
in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 RANLIB
=$ac_cv_prog_RANLIB
3017 if test -n "$RANLIB"; then
3018 echo "$as_me:$LINENO: result: $RANLIB" >&5
3019 echo "${ECHO_T}$RANLIB" >&6
3021 echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6
3026 if test -z "$ac_cv_prog_RANLIB"; then
3027 ac_ct_RANLIB
=$RANLIB
3028 # Extract the first word of "ranlib", so it can be a program name with args.
3029 set dummy ranlib
; ac_word
=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$ac_ct_RANLIB"; then
3036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir
=.
3043 for ac_exec_ext
in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3056 if test -n "$ac_ct_RANLIB"; then
3057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3060 echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3064 RANLIB
=$ac_ct_RANLIB
3066 RANLIB
="$ac_cv_prog_RANLIB"
3070 echo "$as_me:$LINENO: checking for AIX" >&5
3071 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3072 cat >conftest.
$ac_ext <<_ACEOF
3073 #line $LINENO "configure"
3074 #include "confdefs.h"
3080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081 $EGREP "yes" >/dev
/null
2>&1; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3084 cat >>confdefs.h
<<\_ACEOF
3085 #define _ALL_SOURCE 1
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3097 if test "${ac_cv_header_stdc+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.
$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 #include "confdefs.h"
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3112 grep -v '^ *+' conftest.er1
>conftest.err
3114 cat conftest.err
>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev
/null
; then
3117 if test -s conftest.err
; then
3118 ac_cpp_err
=$ac_c_preproc_warn_flag
3125 if test -z "$ac_cpp_err"; then
3126 ac_cv_header_stdc
=yes
3128 echo "$as_me: failed program was:" >&5
3129 cat conftest.
$ac_ext >&5
3130 ac_cv_header_stdc
=no
3132 rm -f conftest.err conftest.
$ac_ext
3134 if test $ac_cv_header_stdc = yes; then
3135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3136 cat >conftest.
$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 #include "confdefs.h"
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143 $EGREP "memchr" >/dev
/null
2>&1; then
3146 ac_cv_header_stdc
=no
3152 if test $ac_cv_header_stdc = yes; then
3153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3154 cat >conftest.
$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "free" >/dev
/null
2>&1; then
3164 ac_cv_header_stdc
=no
3170 if test $ac_cv_header_stdc = yes; then
3171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3172 if test "$cross_compiling" = yes; then
3175 cat >conftest.
$ac_ext <<_ACEOF
3176 #line $LINENO "configure"
3177 #include "confdefs.h"
3179 #if ((' ' & 0x0FF) == 0x020)
3180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3183 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3184 || ('j' <= (c) && (c) <= 'r') \
3185 || ('s' <= (c) && (c) <= 'z'))
3186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3194 for (i = 0; i < 256; i++)
3195 if (XOR (islower (i), ISLOWER (i))
3196 || toupper (i) != TOUPPER (i))
3201 rm -f conftest
$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203 (eval $ac_link) 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3214 echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.
$ac_ext >&5
3218 ac_cv_header_stdc
=no
3220 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3226 if test $ac_cv_header_stdc = yes; then
3228 cat >>confdefs.h
<<\_ACEOF
3229 #define STDC_HEADERS 1
3234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3244 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3245 inttypes.h stdint.h unistd.h
3247 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 cat >conftest.
$ac_ext <<_ACEOF
3254 #line $LINENO "configure"
3255 #include "confdefs.h"
3256 $ac_includes_default
3258 #include <$ac_header>
3260 rm -f conftest.
$ac_objext
3261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try
='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 eval "$as_ac_Header=yes"
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3276 eval "$as_ac_Header=no"
3278 rm -f conftest.
$ac_objext conftest.
$ac_ext
3280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283 cat >>confdefs.h
<<_ACEOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3292 if test "${ac_cv_header_minix_config_h+set}" = set; then
3293 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3294 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3295 if test "${ac_cv_header_minix_config_h+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3299 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3301 # Is the header compilable?
3302 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3303 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3304 cat >conftest.
$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3307 $ac_includes_default
3308 #include <minix/config.h>
3310 rm -f conftest.
$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_header_compiler
=yes
3324 echo "$as_me: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3326 ac_header_compiler
=no
3328 rm -f conftest.
$ac_objext conftest.
$ac_ext
3329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3330 echo "${ECHO_T}$ac_header_compiler" >&6
3332 # Is the header present?
3333 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3334 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3335 cat >conftest.
$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 #include "confdefs.h"
3338 #include <minix/config.h>
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3343 grep -v '^ *+' conftest.er1
>conftest.err
3345 cat conftest.err
>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev
/null
; then
3348 if test -s conftest.err
; then
3349 ac_cpp_err
=$ac_c_preproc_warn_flag
3356 if test -z "$ac_cpp_err"; then
3357 ac_header_preproc
=yes
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3361 ac_header_preproc
=no
3363 rm -f conftest.err conftest.
$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3365 echo "${ECHO_T}$ac_header_preproc" >&6
3367 # So? What about this header?
3368 case $ac_header_compiler:$ac_header_preproc in
3370 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3371 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3372 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3373 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3375 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3376 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3377 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3378 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3379 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3380 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3382 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3383 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3384 if test "${ac_cv_header_minix_config_h+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_header_minix_config_h
=$ac_header_preproc
3389 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3390 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3393 if test $ac_cv_header_minix_config_h = yes; then
3400 if test "$MINIX" = yes; then
3402 cat >>confdefs.h
<<\_ACEOF
3403 #define _POSIX_SOURCE 1
3407 cat >>confdefs.h
<<\_ACEOF
3408 #define _POSIX_1_SOURCE 2
3412 cat >>confdefs.h
<<\_ACEOF
3420 for ac_func
in uname
3422 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3423 echo "$as_me:$LINENO: checking for $ac_func" >&5
3424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3425 if eval "test \"\${$as_ac_var+set}\" = set"; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.
$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432 which can conflict with char $ac_func (); below. */
3434 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 /* The GNU C library defines this for functions which it implements
3447 to always fail with ENOSYS. Some functions are actually named
3448 something starting with __ and the normal name is an alias. */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3459 rm -f conftest.
$ac_objext conftest
$ac_exeext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461 (eval $ac_link) 2>&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try
='test -s conftest$ac_exeext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 eval "$as_ac_var=yes"
3473 echo "$as_me: failed program was:" >&5
3474 cat conftest.
$ac_ext >&5
3475 eval "$as_ac_var=no"
3477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3481 if test `eval echo '${'$as_ac_var'}'` = yes; then
3482 cat >>confdefs.h
<<_ACEOF
3483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3485 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uname" MAN
="$MAN uname.1"
3490 for ac_func
in chroot
3492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3493 echo "$as_me:$LINENO: checking for $ac_func" >&5
3494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_var+set}\" = set"; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 cat >conftest.
$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3501 /* System header to define __stub macros and hopefully few prototypes,
3502 which can conflict with char $ac_func (); below. */
3504 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3516 /* The GNU C library defines this for functions which it implements
3517 to always fail with ENOSYS. Some functions are actually named
3518 something starting with __ and the normal name is an alias. */
3519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3529 rm -f conftest.
$ac_objext conftest
$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -s conftest$ac_exeext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 eval "$as_ac_var=yes"
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.
$ac_ext >&5
3545 eval "$as_ac_var=no"
3547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3551 if test `eval echo '${'$as_ac_var'}'` = yes; then
3552 cat >>confdefs.h
<<_ACEOF
3553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3555 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS chroot" MAN
="$MAN chroot.1"
3560 for ac_func
in gethostid
3562 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3563 echo "$as_me:$LINENO: checking for $ac_func" >&5
3564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_var+set}\" = set"; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 cat >conftest.
$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572 which can conflict with char $ac_func (); below. */
3574 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 rm -f conftest.
$ac_objext conftest
$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try
='test -s conftest$ac_exeext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 eval "$as_ac_var=yes"
3613 echo "$as_me: failed program was:" >&5
3614 cat conftest.
$ac_ext >&5
3615 eval "$as_ac_var=no"
3617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3621 if test `eval echo '${'$as_ac_var'}'` = yes; then
3622 cat >>confdefs.h
<<_ACEOF
3623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3625 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS hostid" MAN
="$MAN hostid.1"
3631 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3632 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3633 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_check_lib_save_LIBS
=$LIBS
3637 LIBS
="-lcposix $LIBS"
3638 cat >conftest.
$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3642 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3657 rm -f conftest.
$ac_objext conftest
$ac_exeext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try
='test -s conftest$ac_exeext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_lib_cposix_strerror
=yes
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3673 ac_cv_lib_cposix_strerror
=no
3675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3676 LIBS
=$ac_check_lib_save_LIBS
3678 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3679 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3680 if test $ac_cv_lib_cposix_strerror = yes; then
3681 LIBS
="$LIBS -lcposix"
3686 # Check whether --enable-largefile or --disable-largefile was given.
3687 if test "${enable_largefile+set}" = set; then
3688 enableval
="$enable_largefile"
3691 if test "$enable_largefile" != no
; then
3693 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3694 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3695 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_sys_largefile_CC
=no
3699 if test "$GCC" != yes; then
3702 # IRIX 6.2 and later do not support large files by default,
3703 # so use the C compiler's -n32 option if that helps.
3704 cat >conftest.
$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3708 /* Check that off_t can represent 2**63 - 1 correctly.
3709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3710 since some C++ compilers masquerading as C compilers
3711 incorrectly reject 9223372036854775807. */
3712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3714 && LARGE_OFF_T % 2147483647 == 1)
3724 rm -f conftest.
$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try
='test -s conftest.$ac_objext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3738 echo "$as_me: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 rm -f conftest.
$ac_objext
3743 rm -f conftest.
$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try
='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_sys_largefile_CC
=' -n32'; break
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 rm -f conftest.
$ac_objext
3764 rm -f conftest.
$ac_ext
3767 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3768 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3769 if test "$ac_cv_sys_largefile_CC" != no
; then
3770 CC
=$CC$ac_cv_sys_largefile_CC
3773 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3774 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3775 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_cv_sys_file_offset_bits
=no
3780 cat >conftest.
$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 #include "confdefs.h"
3783 #include <sys/types.h>
3784 /* Check that off_t can represent 2**63 - 1 correctly.
3785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3786 since some C++ compilers masquerading as C compilers
3787 incorrectly reject 9223372036854775807. */
3788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3790 && LARGE_OFF_T % 2147483647 == 1)
3800 rm -f conftest.
$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try
='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.
$ac_ext >&5
3817 rm -f conftest.
$ac_objext conftest.
$ac_ext
3818 cat >conftest.
$ac_ext <<_ACEOF
3819 #line $LINENO "configure"
3820 #include "confdefs.h"
3821 #define _FILE_OFFSET_BITS 64
3822 #include <sys/types.h>
3823 /* Check that off_t can represent 2**63 - 1 correctly.
3824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3825 since some C++ compilers masquerading as C compilers
3826 incorrectly reject 9223372036854775807. */
3827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3829 && LARGE_OFF_T % 2147483647 == 1)
3839 rm -f conftest.
$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try
='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_sys_file_offset_bits
=64; break
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.
$ac_ext >&5
3856 rm -f conftest.
$ac_objext conftest.
$ac_ext
3860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3862 if test "$ac_cv_sys_file_offset_bits" != no
; then
3864 cat >>confdefs.h
<<_ACEOF
3865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3870 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3871 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3872 if test "${ac_cv_sys_large_files+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 ac_cv_sys_large_files
=no
3877 cat >conftest.
$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 #include "confdefs.h"
3880 #include <sys/types.h>
3881 /* Check that off_t can represent 2**63 - 1 correctly.
3882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3883 since some C++ compilers masquerading as C compilers
3884 incorrectly reject 9223372036854775807. */
3885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3887 && LARGE_OFF_T % 2147483647 == 1)
3897 rm -f conftest.
$ac_objext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try
='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3911 echo "$as_me: failed program was:" >&5
3912 cat conftest.
$ac_ext >&5
3914 rm -f conftest.
$ac_objext conftest.
$ac_ext
3915 cat >conftest.
$ac_ext <<_ACEOF
3916 #line $LINENO "configure"
3917 #include "confdefs.h"
3918 #define _LARGE_FILES 1
3919 #include <sys/types.h>
3920 /* Check that off_t can represent 2**63 - 1 correctly.
3921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3922 since some C++ compilers masquerading as C compilers
3923 incorrectly reject 9223372036854775807. */
3924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3926 && LARGE_OFF_T % 2147483647 == 1)
3936 rm -f conftest.
$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try
='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_cv_sys_large_files
=1; break
3950 echo "$as_me: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 rm -f conftest.
$ac_objext conftest.
$ac_ext
3957 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3958 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3959 if test "$ac_cv_sys_large_files" != no
; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define _LARGE_FILES $ac_cv_sys_large_files
3972 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3973 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3974 if test "${am_cv_prog_cc_stdc+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 am_cv_prog_cc_stdc
=no
3979 # Don't try gcc -ansi; that turns off useful extensions and
3980 # breaks some systems' header files.
3981 # AIX -qlanglvl=ansi
3982 # Ultrix and OSF/1 -std1
3983 # HP-UX 10.20 and later -Ae
3984 # HP-UX older versions -Aa -D_HPUX_SOURCE
3985 # SVR4 -Xc -D__EXTENSIONS__
3986 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988 CC
="$ac_save_CC $ac_arg"
3989 cat >conftest.
$ac_ext <<_ACEOF
3990 #line $LINENO "configure"
3991 #include "confdefs.h"
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4010 s = g (p, va_arg (v,int));
4014 int test (int i, double x);
4015 struct s1 {int (*f) (int a);};
4016 struct s2 {int (*f) (double a);};
4017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4031 rm -f conftest.
$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try
='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 am_cv_prog_cc_stdc
="$ac_arg"; break
4045 echo "$as_me: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4048 rm -f conftest.
$ac_objext conftest.
$ac_ext
4054 if test -z "$am_cv_prog_cc_stdc"; then
4055 echo "$as_me:$LINENO: result: none needed" >&5
4056 echo "${ECHO_T}none needed" >&6
4058 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4059 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4061 case "x$am_cv_prog_cc_stdc" in
4063 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4068 echo "$as_me:$LINENO: checking for function prototypes" >&5
4069 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4070 if test "$am_cv_prog_cc_stdc" != no
; then
4071 echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6
4074 cat >>confdefs.h
<<\_ACEOF
4075 #define PROTOTYPES 1
4080 echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082 U
=_ ANSI2KNR
=.
/ansi2knr
4084 # Ensure some checks needed by ansi2knr itself.
4085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4087 if test "${ac_cv_header_stdc+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 cat >conftest.
$ac_ext <<_ACEOF
4091 #line $LINENO "configure"
4092 #include "confdefs.h"
4099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4102 grep -v '^ *+' conftest.er1
>conftest.err
4104 cat conftest.err
>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } >/dev
/null
; then
4107 if test -s conftest.err
; then
4108 ac_cpp_err
=$ac_c_preproc_warn_flag
4115 if test -z "$ac_cpp_err"; then
4116 ac_cv_header_stdc
=yes
4118 echo "$as_me: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4120 ac_cv_header_stdc
=no
4122 rm -f conftest.err conftest.
$ac_ext
4124 if test $ac_cv_header_stdc = yes; then
4125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4126 cat >conftest.
$ac_ext <<_ACEOF
4127 #line $LINENO "configure"
4128 #include "confdefs.h"
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "memchr" >/dev
/null
2>&1; then
4136 ac_cv_header_stdc
=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144 cat >conftest.
$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "free" >/dev
/null
2>&1; then
4154 ac_cv_header_stdc
=no
4160 if test $ac_cv_header_stdc = yes; then
4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4162 if test "$cross_compiling" = yes; then
4165 cat >conftest.
$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4167 #include "confdefs.h"
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4191 rm -f conftest
$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193 (eval $ac_link) 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 cat conftest.
$ac_ext >&5
4208 ac_cv_header_stdc
=no
4210 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4216 if test $ac_cv_header_stdc = yes; then
4218 cat >>confdefs.h
<<\_ACEOF
4219 #define STDC_HEADERS 1
4225 for ac_header
in string.h
4227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4229 echo "$as_me:$LINENO: checking for $ac_header" >&5
4230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4237 # Is the header compilable?
4238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4240 cat >conftest.
$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 #include "confdefs.h"
4243 $ac_includes_default
4244 #include <$ac_header>
4246 rm -f conftest.
$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try
='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 ac_header_compiler
=yes
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4262 ac_header_compiler
=no
4264 rm -f conftest.
$ac_objext conftest.
$ac_ext
4265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4266 echo "${ECHO_T}$ac_header_compiler" >&6
4268 # Is the header present?
4269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4271 cat >conftest.
$ac_ext <<_ACEOF
4272 #line $LINENO "configure"
4273 #include "confdefs.h"
4274 #include <$ac_header>
4276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4279 grep -v '^ *+' conftest.er1
>conftest.err
4281 cat conftest.err
>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } >/dev
/null
; then
4284 if test -s conftest.err
; then
4285 ac_cpp_err
=$ac_c_preproc_warn_flag
4292 if test -z "$ac_cpp_err"; then
4293 ac_header_preproc
=yes
4295 echo "$as_me: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4297 ac_header_preproc
=no
4299 rm -f conftest.err conftest.
$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4301 echo "${ECHO_T}$ac_header_preproc" >&6
4303 # So? What about this header?
4304 case $ac_header_compiler:$ac_header_preproc in
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4318 echo "$as_me:$LINENO: checking for $ac_header" >&5
4319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 eval "$as_ac_Header=$ac_header_preproc"
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330 cat >>confdefs.h
<<_ACEOF
4331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4339 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4340 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4341 if test "${ac_cv_c_bigendian+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 # See if sys/param.h defines the BYTE_ORDER macro.
4345 cat >conftest.
$ac_ext <<_ACEOF
4346 #line $LINENO "configure"
4347 #include "confdefs.h"
4348 #include <sys/types.h>
4349 #include <sys/param.h>
4354 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4362 rm -f conftest.
$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 # It does; now see whether it defined to BIG_ENDIAN or not.
4375 cat >conftest.
$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 #include "confdefs.h"
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4384 #if BYTE_ORDER != BIG_ENDIAN
4392 rm -f conftest.
$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try
='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_c_bigendian
=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4408 ac_cv_c_bigendian
=no
4410 rm -f conftest.
$ac_objext conftest.
$ac_ext
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4414 # It does not; compile a test program.
4415 if test "$cross_compiling" = yes; then
4416 # try to guess the endianness by grepping values into an object file
4417 ac_cv_c_bigendian
=unknown
4418 cat >conftest.
$ac_ext <<_ACEOF
4419 #line $LINENO "configure"
4420 #include "confdefs.h"
4421 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4422 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4423 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4424 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4425 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4426 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4430 _ascii (); _ebcdic ();
4435 rm -f conftest.
$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try
='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4448 ac_cv_c_bigendian
=yes
4450 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4451 if test "$ac_cv_c_bigendian" = unknown
; then
4452 ac_cv_c_bigendian
=no
4454 # finding both strings is unlikely to happen, but who knows?
4455 ac_cv_c_bigendian
=unknown
4459 echo "$as_me: failed program was:" >&5
4460 cat conftest.
$ac_ext >&5
4462 rm -f conftest.
$ac_objext conftest.
$ac_ext
4464 cat >conftest.
$ac_ext <<_ACEOF
4465 #line $LINENO "configure"
4466 #include "confdefs.h"
4470 /* Are we little or big endian? From Harbison&Steele. */
4474 char c[sizeof (long)];
4477 exit (u.c[sizeof (long) - 1] == 1);
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
4491 ac_cv_c_bigendian
=no
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 ac_cv_c_bigendian
=yes
4499 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4502 rm -f conftest.
$ac_objext conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4505 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4506 case $ac_cv_c_bigendian in
4509 cat >>confdefs.h
<<\_ACEOF
4510 #define WORDS_BIGENDIAN 1
4516 { { echo "$as_me:$LINENO: error: unknown endianness
4517 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4518 echo "$as_me: error: unknown endianness
4519 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4520 { (exit 1); exit 1; }; } ;;
4523 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4524 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4525 if test "${ac_cv_c_const+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.
$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4530 #include "confdefs.h"
4535 /* FIXME: Include the comments suggested by Paul. */
4537 /* Ultrix mips cc rejects this. */
4538 typedef int charset[2];
4540 /* SunOS 4.1.1 cc rejects this. */
4541 char const *const *ccp;
4543 /* NEC SVR4.0.2 mips cc rejects this. */
4544 struct point {int x, y;};
4545 static struct point const zero = {0,0};
4546 /* AIX XL C 1.02.0.0 rejects this.
4547 It does not let you subtract one const X* pointer from another in
4548 an arm of an if-expression whose if-part is not a constant
4550 const char *g = "string";
4551 ccp = &g + (g ? g-g : 0);
4552 /* HPUX 7.0 cc rejects these. */
4555 ccp = (char const *const *) p;
4556 { /* SCO 3.2v4 cc rejects this. */
4558 char const *s = 0 ? (char *) 0 : (char const *) 0;
4562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4564 const int *foo = &x[0];
4567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4568 typedef const int *iptr;
4572 { /* AIX XL C 1.02.0.0 rejects this saying
4573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4574 struct s { int j; const int *ap[3]; };
4575 struct s *b; b->j = 5;
4577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4586 rm -f conftest.
$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try
='test -s conftest.$ac_objext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4600 echo "$as_me: failed program was:" >&5
4601 cat conftest.
$ac_ext >&5
4604 rm -f conftest.
$ac_objext conftest.
$ac_ext
4606 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4607 echo "${ECHO_T}$ac_cv_c_const" >&6
4608 if test $ac_cv_c_const = no
; then
4610 cat >>confdefs.h
<<\_ACEOF
4616 echo "$as_me:$LINENO: checking for working volatile" >&5
4617 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4618 if test "${ac_cv_c_volatile+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat >conftest.
$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 #include "confdefs.h"
4635 rm -f conftest.
$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try
='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_c_volatile
=yes
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4653 rm -f conftest.
$ac_objext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4656 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4657 if test $ac_cv_c_volatile = no
; then
4659 cat >>confdefs.h
<<\_ACEOF
4665 echo "$as_me:$LINENO: checking for inline" >&5
4666 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4667 if test "${ac_cv_c_inline+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 for ac_kw
in inline __inline__ __inline
; do
4672 cat >conftest.
$ac_ext <<_ACEOF
4673 #line $LINENO "configure"
4674 #include "confdefs.h"
4677 static $ac_kw foo_t static_foo () {return 0; }
4678 $ac_kw foo_t foo () {return 0; }
4682 rm -f conftest.
$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try
='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_c_inline
=$ac_kw; break
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4699 rm -f conftest.
$ac_objext conftest.
$ac_ext
4703 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4704 echo "${ECHO_T}$ac_cv_c_inline" >&6
4705 case $ac_cv_c_inline in
4708 cat >>confdefs.h
<<\_ACEOF
4712 *) cat >>confdefs.h
<<_ACEOF
4713 #define inline $ac_cv_c_inline
4718 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4719 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4720 if test "${ac_cv_c_long_double+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.
$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4727 long double foo = 0.0;
4731 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4732 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4733 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4740 rm -f conftest.
$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try
='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_c_long_double
=yes
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4756 ac_cv_c_long_double
=no
4758 rm -f conftest.
$ac_objext conftest.
$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4761 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4762 if test $ac_cv_c_long_double = yes; then
4764 cat >>confdefs.h
<<\_ACEOF
4765 #define HAVE_LONG_DOUBLE 1
4850 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4852 echo "$as_me:$LINENO: checking for $ac_header" >&5
4853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4860 # Is the header compilable?
4861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4863 cat >conftest.
$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4865 #include "confdefs.h"
4866 $ac_includes_default
4867 #include <$ac_header>
4869 rm -f conftest.
$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try
='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_header_compiler
=yes
4883 echo "$as_me: failed program was:" >&5
4884 cat conftest.
$ac_ext >&5
4885 ac_header_compiler
=no
4887 rm -f conftest.
$ac_objext conftest.
$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897 #include <$ac_header>
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1
>conftest.err
4904 cat conftest.err
>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev
/null
; then
4907 if test -s conftest.err
; then
4908 ac_cpp_err
=$ac_c_preproc_warn_flag
4915 if test -z "$ac_cpp_err"; then
4916 ac_header_preproc
=yes
4918 echo "$as_me: failed program was:" >&5
4919 cat conftest.
$ac_ext >&5
4920 ac_header_preproc
=no
4922 rm -f conftest.err conftest.
$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4924 echo "${ECHO_T}$ac_header_preproc" >&6
4926 # So? What about this header?
4927 case $ac_header_compiler:$ac_header_preproc in
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4941 echo "$as_me:$LINENO: checking for $ac_header" >&5
4942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 eval "$as_ac_Header=$ac_header_preproc"
4948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953 cat >>confdefs.h
<<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4969 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4970 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4971 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 cat >conftest.
$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 #include "confdefs.h"
4978 #include <sys/types.h>
4990 rm -f conftest.
$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 eval "$as_ac_Header=yes"
5004 echo "$as_me: failed program was:" >&5
5005 cat conftest.
$ac_ext >&5
5006 eval "$as_ac_Header=no"
5008 rm -f conftest.
$ac_objext conftest.
$ac_ext
5010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5013 cat >>confdefs.h
<<_ACEOF
5014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5017 ac_header_dirent
=$ac_hdr; break
5021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5022 if test $ac_header_dirent = dirent.h
; then
5024 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5026 if test "${ac_cv_search_opendir+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_func_search_save_LIBS
=$LIBS
5031 ac_cv_search_opendir
=no
5032 cat >conftest.
$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 #include "confdefs.h"
5036 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5051 rm -f conftest.
$ac_objext conftest
$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try
='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_search_opendir
='none required'
5065 echo "$as_me: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5069 if test "$ac_cv_search_opendir" = no
; then
5070 for ac_lib
in dir
; do
5071 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5072 cat >conftest.
$ac_ext <<_ACEOF
5073 #line $LINENO "configure"
5074 #include "confdefs.h"
5076 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5091 rm -f conftest.
$ac_objext conftest
$ac_exeext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093 (eval $ac_link) 2>&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try
='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_search_opendir
="-l$ac_lib"; break
5105 echo "$as_me: failed program was:" >&5
5106 cat conftest.
$ac_ext >&5
5108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5111 LIBS
=$ac_func_search_save_LIBS
5114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5117 if test "$ac_cv_search_opendir" = no
; then :
5120 if test "$ac_cv_search_opendir" = 'none required'; then :
5123 LIBS
="$ac_cv_search_opendir $LIBS"
5130 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5131 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5132 if test "${ac_cv_search_opendir+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_func_search_save_LIBS
=$LIBS
5137 ac_cv_search_opendir
=no
5138 cat >conftest.
$ac_ext <<_ACEOF
5139 #line $LINENO "configure"
5140 #include "confdefs.h"
5142 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5157 rm -f conftest.
$ac_objext conftest
$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try
='test -s conftest$ac_exeext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_search_opendir
='none required'
5171 echo "$as_me: failed program was:" >&5
5172 cat conftest.
$ac_ext >&5
5174 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5175 if test "$ac_cv_search_opendir" = no
; then
5177 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5178 cat >conftest.
$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5182 /* Override any gcc2 internal prototype to avoid an error. */
5186 /* We use char because int might match the return type of a gcc2
5187 builtin and then its argument prototype would still apply. */
5197 rm -f conftest.
$ac_objext conftest
$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try
='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_search_opendir
="-l$ac_lib"; break
5211 echo "$as_me: failed program was:" >&5
5212 cat conftest.
$ac_ext >&5
5214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5217 LIBS
=$ac_func_search_save_LIBS
5220 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5221 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5223 if test "$ac_cv_search_opendir" = no
; then :
5226 if test "$ac_cv_search_opendir" = 'none required'; then :
5229 LIBS
="$ac_cv_search_opendir $LIBS"
5236 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5237 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5238 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.
$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 $ac_includes_default
5248 static struct stat ac_aggr;
5249 if (ac_aggr.st_blocks)
5255 rm -f conftest.
$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try
='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_member_struct_stat_st_blocks
=yes
5269 echo "$as_me: failed program was:" >&5
5270 cat conftest.
$ac_ext >&5
5271 cat >conftest.
$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 #include "confdefs.h"
5274 $ac_includes_default
5278 static struct stat ac_aggr;
5279 if (sizeof ac_aggr.st_blocks)
5285 rm -f conftest.
$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
5291 { ac_try
='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_cv_member_struct_stat_st_blocks
=yes
5299 echo "$as_me: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5301 ac_cv_member_struct_stat_st_blocks
=no
5303 rm -f conftest.
$ac_objext conftest.
$ac_ext
5305 rm -f conftest.
$ac_objext conftest.
$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5308 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5309 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5311 cat >>confdefs.h
<<_ACEOF
5312 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5316 cat >>confdefs.h
<<\_ACEOF
5317 #define HAVE_ST_BLOCKS 1
5321 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5327 if test "${ac_cv_struct_tm+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 cat >conftest.
$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5332 #include "confdefs.h"
5333 #include <sys/types.h>
5339 struct tm *tp; tp->tm_sec;
5344 rm -f conftest.
$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try
='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_struct_tm
=time.h
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.
$ac_ext >&5
5360 ac_cv_struct_tm
=sys
/time.h
5362 rm -f conftest.
$ac_objext conftest.
$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5366 if test $ac_cv_struct_tm = sys
/time.h
; then
5368 cat >>confdefs.h
<<\_ACEOF
5369 #define TM_IN_SYS_TIME 1
5374 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5375 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5376 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 cat >conftest.
$ac_ext <<_ACEOF
5380 #line $LINENO "configure"
5381 #include "confdefs.h"
5382 #include <sys/types.h>
5383 #include <$ac_cv_struct_tm>
5389 static struct tm ac_aggr;
5390 if (ac_aggr.tm_zone)
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try
='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_member_struct_tm_tm_zone
=yes
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5415 #include <sys/types.h>
5416 #include <$ac_cv_struct_tm>
5422 static struct tm ac_aggr;
5423 if (sizeof ac_aggr.tm_zone)
5429 rm -f conftest.
$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try
='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_member_struct_tm_tm_zone
=yes
5443 echo "$as_me: failed program was:" >&5
5444 cat conftest.
$ac_ext >&5
5445 ac_cv_member_struct_tm_tm_zone
=no
5447 rm -f conftest.
$ac_objext conftest.
$ac_ext
5449 rm -f conftest.
$ac_objext conftest.
$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5452 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5453 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5455 cat >>confdefs.h
<<_ACEOF
5456 #define HAVE_STRUCT_TM_TM_ZONE 1
5462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5464 cat >>confdefs.h
<<\_ACEOF
5465 #define HAVE_TM_ZONE 1
5469 echo "$as_me:$LINENO: checking for tzname" >&5
5470 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5471 if test "${ac_cv_var_tzname+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 cat >conftest.
$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 #include "confdefs.h"
5478 #ifndef tzname /* For SGI. */
5479 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5490 rm -f conftest.
$ac_objext conftest
$ac_exeext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try
='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_cv_var_tzname
=yes
5504 echo "$as_me: failed program was:" >&5
5505 cat conftest.
$ac_ext >&5
5508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5510 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5511 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5512 if test $ac_cv_var_tzname = yes; then
5514 cat >>confdefs.h
<<\_ACEOF
5515 #define HAVE_TZNAME 1
5521 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5522 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5523 if test "${ac_cv_header_stat_broken+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat >conftest.
$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 #include "confdefs.h"
5529 #include <sys/types.h>
5530 #include <sys/stat.h>
5532 #if defined(S_ISBLK) && defined(S_IFDIR)
5533 # if S_ISBLK (S_IFDIR)
5538 #if defined(S_ISBLK) && defined(S_IFCHR)
5539 # if S_ISBLK (S_IFCHR)
5544 #if defined(S_ISLNK) && defined(S_IFREG)
5545 # if S_ISLNK (S_IFREG)
5550 #if defined(S_ISSOCK) && defined(S_IFREG)
5551 # if S_ISSOCK (S_IFREG)
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558 $EGREP "You lose" >/dev
/null
2>&1; then
5559 ac_cv_header_stat_broken
=yes
5561 ac_cv_header_stat_broken
=no
5566 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5567 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5568 if test $ac_cv_header_stat_broken = yes; then
5570 cat >>confdefs.h
<<\_ACEOF
5571 #define STAT_MACROS_BROKEN 1
5576 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5577 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5578 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 ac_save_CPPFLAGS
="$CPPFLAGS"
5582 ac_cv_struct_st_mtim_nsec
=no
5583 # tv_nsec -- the usual case
5584 # _tv_nsec -- Solaris 2.6, if
5585 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5586 # && !defined __EXTENSIONS__)
5587 # st__tim.tv_nsec -- UnixWare 2.1.2
5588 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
5589 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5590 cat >conftest.
$ac_ext <<_ACEOF
5591 #line $LINENO "configure"
5592 #include "confdefs.h"
5593 #include <sys/types.h>
5594 #include <sys/stat.h>
5598 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5603 rm -f conftest.
$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try
='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_struct_st_mtim_nsec
=$ac_val; break
5617 echo "$as_me: failed program was:" >&5
5618 cat conftest.
$ac_ext >&5
5620 rm -f conftest.
$ac_objext conftest.
$ac_ext
5622 CPPFLAGS
="$ac_save_CPPFLAGS"
5624 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
5625 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
5627 if test $ac_cv_struct_st_mtim_nsec != no
; then
5629 cat >>confdefs.h
<<_ACEOF
5630 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
5636 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
5637 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
5638 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.
$ac_ext <<_ACEOF
5642 #line $LINENO "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5645 #include <sys/stat.h>
5649 struct stat s; s.st_dm_mode;
5654 rm -f conftest.
$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_struct_st_dm_mode
=yes
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.
$ac_ext >&5
5670 ac_cv_struct_st_dm_mode
=no
5672 rm -f conftest.
$ac_objext conftest.
$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
5675 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
5677 if test $ac_cv_struct_st_dm_mode = yes; then
5679 cat >>confdefs.h
<<\_ACEOF
5680 #define HAVE_ST_DM_MODE 1
5686 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5687 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5688 if test "${ac_cv_header_time+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 cat >conftest.
$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5694 #include <sys/types.h>
5695 #include <sys/time.h>
5701 if ((struct tm *) 0)
5707 rm -f conftest.
$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_header_time
=yes
5721 echo "$as_me: failed program was:" >&5
5722 cat conftest.
$ac_ext >&5
5723 ac_cv_header_time
=no
5725 rm -f conftest.
$ac_objext conftest.
$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5728 echo "${ECHO_T}$ac_cv_header_time" >&6
5729 if test $ac_cv_header_time = yes; then
5731 cat >>confdefs.h
<<\_ACEOF
5732 #define TIME_WITH_SYS_TIME 1
5739 echo "$as_me:$LINENO: checking for struct timespec" >&5
5740 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
5741 if test "${fu_cv_sys_struct_timespec+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 cat >conftest.
$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5746 #include "confdefs.h"
5748 # if TIME_WITH_SYS_TIME
5749 # include <sys/time.h>
5752 # if HAVE_SYS_TIME_H
5753 # include <sys/time.h>
5762 static struct timespec x; x.tv_sec = x.tv_nsec;
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 fu_cv_sys_struct_timespec
=yes
5781 echo "$as_me: failed program was:" >&5
5782 cat conftest.
$ac_ext >&5
5783 fu_cv_sys_struct_timespec
=no
5785 rm -f conftest.
$ac_objext conftest.
$ac_ext
5788 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
5789 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
5791 if test $fu_cv_sys_struct_timespec = yes; then
5793 cat >>confdefs.h
<<\_ACEOF
5794 #define HAVE_STRUCT_TIMESPEC 1
5799 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5800 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5801 if test "${ac_cv_type_uid_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 #include "confdefs.h"
5807 #include <sys/types.h>
5810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811 $EGREP "uid_t" >/dev
/null
2>&1; then
5812 ac_cv_type_uid_t
=yes
5819 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5820 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5821 if test $ac_cv_type_uid_t = no
; then
5823 cat >>confdefs.h
<<\_ACEOF
5828 cat >>confdefs.h
<<\_ACEOF
5834 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
5835 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
5836 if test "${ac_cv_type_getgroups+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 if test "$cross_compiling" = yes; then
5840 ac_cv_type_getgroups
=cross
5842 cat >conftest.
$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 #include "confdefs.h"
5845 /* Thanks to Mike Rendell for this test. */
5846 #include <sys/types.h>
5849 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5856 union { gid_t gval; long lval; } val;
5859 for (i = 0; i < NGID; i++)
5860 gidset[i] = val.gval;
5861 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5863 /* Exit non-zero if getgroups seems to require an array of ints. This
5864 happens when gid_t is short but getgroups modifies an array of ints. */
5865 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5868 rm -f conftest
$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_type_getgroups
=gid_t
5881 echo "$as_me: program exited with status $ac_status" >&5
5882 echo "$as_me: failed program was:" >&5
5883 cat conftest.
$ac_ext >&5
5885 ac_cv_type_getgroups
=int
5887 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5889 if test $ac_cv_type_getgroups = cross
; then
5890 cat >conftest.
$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 #include "confdefs.h"
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
5898 ac_cv_type_getgroups
=gid_t
5900 ac_cv_type_getgroups
=int
5906 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
5907 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
5909 cat >>confdefs.h
<<_ACEOF
5910 #define GETGROUPS_T $ac_cv_type_getgroups
5914 echo "$as_me:$LINENO: checking for mode_t" >&5
5915 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5916 if test "${ac_cv_type_mode_t+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 cat >conftest.
$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 #include "confdefs.h"
5922 $ac_includes_default
5928 if (sizeof (mode_t))
5934 rm -f conftest.
$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_type_mode_t
=yes
5948 echo "$as_me: failed program was:" >&5
5949 cat conftest.
$ac_ext >&5
5950 ac_cv_type_mode_t
=no
5952 rm -f conftest.
$ac_objext conftest.
$ac_ext
5954 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5955 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5956 if test $ac_cv_type_mode_t = yes; then
5960 cat >>confdefs.h
<<_ACEOF
5966 echo "$as_me:$LINENO: checking for off_t" >&5
5967 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5968 if test "${ac_cv_type_off_t+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.
$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 #include "confdefs.h"
5974 $ac_includes_default
5986 rm -f conftest.
$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -s conftest.$ac_objext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_type_off_t
=yes
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.
$ac_ext >&5
6004 rm -f conftest.
$ac_objext conftest.
$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6007 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6008 if test $ac_cv_type_off_t = yes; then
6012 cat >>confdefs.h
<<_ACEOF
6018 echo "$as_me:$LINENO: checking for pid_t" >&5
6019 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6020 if test "${ac_cv_type_pid_t+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.
$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 $ac_includes_default
6038 rm -f conftest.
$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try
='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_type_pid_t
=yes
6052 echo "$as_me: failed program was:" >&5
6053 cat conftest.
$ac_ext >&5
6056 rm -f conftest.
$ac_objext conftest.
$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6059 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6060 if test $ac_cv_type_pid_t = yes; then
6064 cat >>confdefs.h
<<_ACEOF
6070 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6071 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6072 if test "${ac_cv_type_signal+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 cat >conftest.
$ac_ext <<_ACEOF
6076 #line $LINENO "configure"
6077 #include "confdefs.h"
6078 #include <sys/types.h>
6084 extern "C" void (*signal (int, void (*)(int)))(int);
6086 void (*signal ()) ();
6097 rm -f conftest.
$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try
='test -s conftest.$ac_objext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_cv_type_signal
=void
6111 echo "$as_me: failed program was:" >&5
6112 cat conftest.
$ac_ext >&5
6113 ac_cv_type_signal
=int
6115 rm -f conftest.
$ac_objext conftest.
$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6118 echo "${ECHO_T}$ac_cv_type_signal" >&6
6120 cat >>confdefs.h
<<_ACEOF
6121 #define RETSIGTYPE $ac_cv_type_signal
6125 echo "$as_me:$LINENO: checking for size_t" >&5
6126 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6127 if test "${ac_cv_type_size_t+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 #include "confdefs.h"
6133 $ac_includes_default
6139 if (sizeof (size_t))
6145 rm -f conftest.
$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147 (eval $ac_compile) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_type_size_t
=yes
6159 echo "$as_me: failed program was:" >&5
6160 cat conftest.
$ac_ext >&5
6161 ac_cv_type_size_t
=no
6163 rm -f conftest.
$ac_objext conftest.
$ac_ext
6165 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6166 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6167 if test $ac_cv_type_size_t = yes; then
6171 cat >>confdefs.h
<<_ACEOF
6172 #define size_t unsigned
6178 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6179 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6180 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 cat >conftest.
$ac_ext <<_ACEOF
6184 #line $LINENO "configure"
6185 #include "confdefs.h"
6186 unsigned long long ull = 1; int i = 63;
6190 unsigned long long ullmax = (unsigned long long) -1;
6191 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6196 rm -f conftest.
$ac_objext conftest
$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_type_unsigned_long_long
=yes
6210 echo "$as_me: failed program was:" >&5
6211 cat conftest.
$ac_ext >&5
6212 ac_cv_type_unsigned_long_long
=no
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6217 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6218 if test $ac_cv_type_unsigned_long_long = yes; then
6220 cat >>confdefs.h
<<\_ACEOF
6221 #define HAVE_UNSIGNED_LONG_LONG 1
6228 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6229 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6230 if test "${ac_cv_type_uintmax_t+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 cat >conftest.
$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6236 $ac_includes_default
6240 if ((uintmax_t *) 0)
6242 if (sizeof (uintmax_t))
6248 rm -f conftest.
$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try
='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_type_uintmax_t
=yes
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.
$ac_ext >&5
6264 ac_cv_type_uintmax_t
=no
6266 rm -f conftest.
$ac_objext conftest.
$ac_ext
6268 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6269 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6270 if test $ac_cv_type_uintmax_t = yes; then
6273 test $ac_cv_type_unsigned_long_long = yes \
6274 && ac_type
='unsigned long long' \
6275 || ac_type
='unsigned long'
6277 cat >>confdefs.h
<<_ACEOF
6278 #define uintmax_t $ac_type
6284 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6285 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6286 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 cat >conftest.
$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 #include "confdefs.h"
6292 #include <sys/types.h>
6296 return makedev(0, 0);
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try
='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_header_sys_types_h_makedev
=yes
6315 echo "$as_me: failed program was:" >&5
6316 cat conftest.
$ac_ext >&5
6317 ac_cv_header_sys_types_h_makedev
=no
6319 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6323 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6325 if test $ac_cv_header_sys_types_h_makedev = no
; then
6326 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6327 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6328 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6329 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6333 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6335 # Is the header compilable?
6336 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6337 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6338 cat >conftest.
$ac_ext <<_ACEOF
6339 #line $LINENO "configure"
6340 #include "confdefs.h"
6341 $ac_includes_default
6342 #include <sys/mkdev.h>
6344 rm -f conftest.
$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -s conftest.$ac_objext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_header_compiler
=yes
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.
$ac_ext >&5
6360 ac_header_compiler
=no
6362 rm -f conftest.
$ac_objext conftest.
$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6368 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6369 cat >conftest.
$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 #include "confdefs.h"
6372 #include <sys/mkdev.h>
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1
>conftest.err
6379 cat conftest.err
>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } >/dev
/null
; then
6382 if test -s conftest.err
; then
6383 ac_cpp_err
=$ac_c_preproc_warn_flag
6390 if test -z "$ac_cpp_err"; then
6391 ac_header_preproc
=yes
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.
$ac_ext >&5
6395 ac_header_preproc
=no
6397 rm -f conftest.err conftest.
$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 echo "${ECHO_T}$ac_header_preproc" >&6
6401 # So? What about this header?
6402 case $ac_header_compiler:$ac_header_preproc in
6404 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6405 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6407 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
6409 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};;
6416 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6417 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6418 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6424 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6427 if test $ac_cv_header_sys_mkdev_h = yes; then
6429 cat >>confdefs.h
<<\_ACEOF
6430 #define MAJOR_IN_MKDEV 1
6437 if test $ac_cv_header_sys_mkdev_h = no
; then
6438 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6439 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6440 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6441 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6447 # Is the header compilable?
6448 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6449 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6450 cat >conftest.
$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 #include "confdefs.h"
6453 $ac_includes_default
6454 #include <sys/sysmacros.h>
6456 rm -f conftest.
$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try
='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_header_compiler
=yes
6470 echo "$as_me: failed program was:" >&5
6471 cat conftest.
$ac_ext >&5
6472 ac_header_compiler
=no
6474 rm -f conftest.
$ac_objext conftest.
$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6476 echo "${ECHO_T}$ac_header_compiler" >&6
6478 # Is the header present?
6479 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6480 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6481 cat >conftest.
$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6484 #include <sys/sysmacros.h>
6486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6489 grep -v '^ *+' conftest.er1
>conftest.err
6491 cat conftest.err
>&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } >/dev
/null
; then
6494 if test -s conftest.err
; then
6495 ac_cpp_err
=$ac_c_preproc_warn_flag
6502 if test -z "$ac_cpp_err"; then
6503 ac_header_preproc
=yes
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.
$ac_ext >&5
6507 ac_header_preproc
=no
6509 rm -f conftest.err conftest.
$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6513 # So? What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
6521 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6522 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6524 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6526 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};;
6528 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6529 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
6535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6539 if test $ac_cv_header_sys_sysmacros_h = yes; then
6541 cat >>confdefs.h
<<\_ACEOF
6542 #define MAJOR_IN_SYSMACROS 1
6552 echo "$as_me:$LINENO: checking host operating system" >&5
6553 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
6554 if test "${utils_cv_host_operating_system+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 # These operating system names do not use the default heuristic below.
6560 # They are in reverse order, so that more-specific prefixes come first.
6561 winnt
*) os
='Windows NT';;
6563 sysv
*) os
='Unix System V';;
6564 superux
*) os
='SUPER-UX';;
6565 sunos
*) os
='SunOS';;
6567 sco
*) os
='SCO Unix';;
6568 riscos
*) os
='RISC OS';;
6569 riscix
*) os
='RISCiX';;
6573 plan9
*) os
='Plan 9';;
6576 openbsd
*) os
='OpenBSD';;
6577 nsk
*) os
='NonStop Kernel';;
6578 nonstopux
*) os
='NonStop-UX';;
6579 netbsd
*) os
='NetBSD';;
6580 msdosdjgpp
*) os
='DJGPP';;
6581 mpeix
*) os
='MPE/iX';;
6583 mingw
*) os
='MinGW';;
6584 lynxos
*) os
='LynxOS';;
6585 linux
*) os
='GNU/Linux';;
6589 freebsd
*) os
='FreeBSD';;
6591 bsdi
*) os
='BSD/OS';;
6595 atheos
*) os
='AtheOS';;
6596 amigaos
*) os
='Amiga OS';;
6599 # The default heuristic takes the initial alphabetic string
6600 # from $host_os, but capitalizes its first letter.
6603 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
6605 expr "X$host_os" : 'X.\([A-Za-z]*\)'
6609 # If $host_os does not start with an alphabetic string, use it unchanged.
6613 utils_cv_host_operating_system
=$os
6615 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
6616 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
6618 cat >>confdefs.h
<<_ACEOF
6619 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
6623 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
6624 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
6625 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 # Arrange for deletion of the temporary directory this test might create.
6630 ac_clean_files
="$ac_clean_files confdir-slash"
6631 if test "$cross_compiling" = yes; then
6632 utils_cv_func_mkdir_trailing_slash_bug
=yes
6635 cat >conftest.
$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 #include "confdefs.h"
6639 # include <sys/types.h>
6640 # include <sys/stat.h>
6641 # include <stdlib.h>
6644 rmdir ("confdir-slash");
6645 exit (mkdir ("confdir-slash/", 0700));
6649 rm -f conftest
$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 utils_cv_func_mkdir_trailing_slash_bug
=no
6662 echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.
$ac_ext >&5
6666 utils_cv_func_mkdir_trailing_slash_bug
=yes
6668 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6673 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
6674 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
6676 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
6677 LIBOBJS
="$LIBOBJS mkdir.$ac_objext"
6679 cat >>confdefs.h
<<\_ACEOF
6680 #define mkdir rpl_mkdir
6686 # getdate.y works with bison only.
6687 : ${YACC='bison -y'}
6691 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
6692 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
6693 # Check whether --enable-assert or --disable-assert was given.
6694 if test "${enable_assert+set}" = set; then
6695 enableval
="$enable_assert"
6696 echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6699 cat >>confdefs.h
<<\_ACEOF
6704 echo "$as_me:$LINENO: result: yes" >&5
6705 echo "${ECHO_T}yes" >&6
6711 for ac_header
in utime.h
6713 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6715 echo "$as_me:$LINENO: checking for $ac_header" >&5
6716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6723 # Is the header compilable?
6724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6726 cat >conftest.
$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6728 #include "confdefs.h"
6729 $ac_includes_default
6730 #include <$ac_header>
6732 rm -f conftest.
$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try
='test -s conftest.$ac_objext'
6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 ac_header_compiler
=yes
6746 echo "$as_me: failed program was:" >&5
6747 cat conftest.
$ac_ext >&5
6748 ac_header_compiler
=no
6750 rm -f conftest.
$ac_objext conftest.
$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752 echo "${ECHO_T}$ac_header_compiler" >&6
6754 # Is the header present?
6755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6757 cat >conftest.
$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 #include "confdefs.h"
6760 #include <$ac_header>
6762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6763 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6765 grep -v '^ *+' conftest.er1
>conftest.err
6767 cat conftest.err
>&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } >/dev
/null
; then
6770 if test -s conftest.err
; then
6771 ac_cpp_err
=$ac_c_preproc_warn_flag
6778 if test -z "$ac_cpp_err"; then
6779 ac_header_preproc
=yes
6781 echo "$as_me: failed program was:" >&5
6782 cat conftest.
$ac_ext >&5
6783 ac_header_preproc
=no
6785 rm -f conftest.err conftest.
$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6787 echo "${ECHO_T}$ac_header_preproc" >&6
6789 # So? What about this header?
6790 case $ac_header_compiler:$ac_header_preproc in
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6804 echo "$as_me:$LINENO: checking for $ac_header" >&5
6805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 eval "$as_ac_Header=$ac_header_preproc"
6811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6816 cat >>confdefs.h
<<_ACEOF
6817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6826 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6827 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.
$ac_ext <<_ACEOF
6831 #line $LINENO "configure"
6832 #include "confdefs.h"
6834 #ifdef TIME_WITH_SYS_TIME
6835 # include <sys/time.h>
6838 # ifdef HAVE_SYS_TIME_H
6839 # include <sys/time.h>
6851 static struct utimbuf x; x.actime = x.modtime;
6856 rm -f conftest.
$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858 (eval $ac_compile) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try
='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 fu_cv_sys_struct_utimbuf
=yes
6870 echo "$as_me: failed program was:" >&5
6871 cat conftest.
$ac_ext >&5
6872 fu_cv_sys_struct_utimbuf
=no
6874 rm -f conftest.
$ac_objext conftest.
$ac_ext
6877 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
6878 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
6880 if test $fu_cv_sys_struct_utimbuf = yes; then
6882 cat >>confdefs.h
<<\_ACEOF
6883 #define HAVE_STRUCT_UTIMBUF 1
6888 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
6889 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
6890 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 cat >conftest.
$ac_ext <<_ACEOF
6894 #line $LINENO "configure"
6895 #include "confdefs.h"
6897 #include <sys/types.h>
6898 #ifdef HAVE_DIRENT_H
6899 # include <dirent.h>
6900 #else /* not HAVE_DIRENT_H */
6901 # define dirent direct
6902 # ifdef HAVE_SYS_NDIR_H
6903 # include <sys/ndir.h>
6904 # endif /* HAVE_SYS_NDIR_H */
6905 # ifdef HAVE_SYS_DIR_H
6906 # include <sys/dir.h>
6907 # endif /* HAVE_SYS_DIR_H */
6910 # endif /* HAVE_NDIR_H */
6911 #endif /* HAVE_DIRENT_H */
6916 struct dirent dp; dp.d_type = 0;
6921 rm -f conftest.
$ac_objext conftest
$ac_exeext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try
='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 jm_cv_struct_dirent_d_type
=yes
6935 echo "$as_me: failed program was:" >&5
6936 cat conftest.
$ac_ext >&5
6937 jm_cv_struct_dirent_d_type
=no
6939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6943 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
6944 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
6945 if test $jm_cv_struct_dirent_d_type = yes; then
6947 cat >>confdefs.h
<<\_ACEOF
6948 #define HAVE_STRUCT_DIRENT_D_TYPE 1
6954 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
6955 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
6956 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6960 #line $LINENO "configure"
6961 #include "confdefs.h"
6963 #include <sys/types.h>
6964 #ifdef HAVE_DIRENT_H
6965 # include <dirent.h>
6966 #else /* not HAVE_DIRENT_H */
6967 # define dirent direct
6968 # ifdef HAVE_SYS_NDIR_H
6969 # include <sys/ndir.h>
6970 # endif /* HAVE_SYS_NDIR_H */
6971 # ifdef HAVE_SYS_DIR_H
6972 # include <sys/dir.h>
6973 # endif /* HAVE_SYS_DIR_H */
6976 # endif /* HAVE_NDIR_H */
6977 #endif /* HAVE_DIRENT_H */
6982 struct dirent dp; dp.d_ino = 0;
6987 rm -f conftest.
$ac_objext conftest
$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try
='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 jm_cv_struct_dirent_d_ino
=yes
7001 echo "$as_me: failed program was:" >&5
7002 cat conftest.
$ac_ext >&5
7003 jm_cv_struct_dirent_d_ino
=no
7005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7009 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7010 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7011 if test $jm_cv_struct_dirent_d_ino = yes; then
7013 cat >>confdefs.h
<<\_ACEOF
7014 #define D_INO_IN_DIRENT 1
7032 for ac_header
in grp.h memory.h
pwd.h string.h
strings.h stdlib.h \
7033 unistd.h sys
/time.h utmp.h utmpx.h
7035 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7037 echo "$as_me:$LINENO: checking for $ac_header" >&5
7038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7045 # Is the header compilable?
7046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7048 cat >conftest.
$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 #include "confdefs.h"
7051 $ac_includes_default
7052 #include <$ac_header>
7054 rm -f conftest.
$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try
='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_header_compiler
=yes
7068 echo "$as_me: failed program was:" >&5
7069 cat conftest.
$ac_ext >&5
7070 ac_header_compiler
=no
7072 rm -f conftest.
$ac_objext conftest.
$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7074 echo "${ECHO_T}$ac_header_compiler" >&6
7076 # Is the header present?
7077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7079 cat >conftest.
$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 #include <$ac_header>
7084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7087 grep -v '^ *+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev
/null
; then
7092 if test -s conftest.err
; then
7093 ac_cpp_err
=$ac_c_preproc_warn_flag
7100 if test -z "$ac_cpp_err"; then
7101 ac_header_preproc
=yes
7103 echo "$as_me: failed program was:" >&5
7104 cat conftest.
$ac_ext >&5
7105 ac_header_preproc
=no
7107 rm -f conftest.err conftest.
$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7109 echo "${ECHO_T}$ac_header_preproc" >&6
7111 # So? What about this header?
7112 case $ac_header_compiler:$ac_header_preproc in
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7126 echo "$as_me:$LINENO: checking for $ac_header" >&5
7127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 eval "$as_ac_Header=$ac_header_preproc"
7133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7138 cat >>confdefs.h
<<_ACEOF
7139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153 # if !STDC_HEADERS && HAVE_MEMORY_H
7154 # include <memory.h>
7156 # include <string.h>
7159 # include <strings.h>
7163 # include <stdlib.h>
7166 # include <unistd.h>
7169 #include <sys/types.h>
7170 #if TIME_WITH_SYS_TIME
7171 # include <sys/time.h>
7174 # if HAVE_SYS_TIME_H
7175 # include <sys/time.h>
7194 echo "$as_me:$LINENO: checking whether free is declared" >&5
7195 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7196 if test "${ac_cv_have_decl_free+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 cat >conftest.
$ac_ext <<_ACEOF
7200 #line $LINENO "configure"
7201 #include "confdefs.h"
7208 char *p = (char *) free;
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try
='test -s conftest.$ac_objext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_cv_have_decl_free
=yes
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.
$ac_ext >&5
7231 ac_cv_have_decl_free
=no
7233 rm -f conftest.
$ac_objext conftest.
$ac_ext
7235 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7236 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7237 if test $ac_cv_have_decl_free = yes; then
7239 cat >>confdefs.h
<<_ACEOF
7240 #define HAVE_DECL_FREE 1
7245 cat >>confdefs.h
<<_ACEOF
7246 #define HAVE_DECL_FREE 0
7251 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7252 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7253 if test "${ac_cv_have_decl_getenv+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 cat >conftest.
$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7265 char *p = (char *) getenv;
7272 rm -f conftest.
$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try
='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_have_decl_getenv
=yes
7286 echo "$as_me: failed program was:" >&5
7287 cat conftest.
$ac_ext >&5
7288 ac_cv_have_decl_getenv
=no
7290 rm -f conftest.
$ac_objext conftest.
$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7293 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7294 if test $ac_cv_have_decl_getenv = yes; then
7296 cat >>confdefs.h
<<_ACEOF
7297 #define HAVE_DECL_GETENV 1
7302 cat >>confdefs.h
<<_ACEOF
7303 #define HAVE_DECL_GETENV 0
7308 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7309 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7310 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.
$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7322 char *p = (char *) geteuid;
7329 rm -f conftest.
$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_have_decl_geteuid
=yes
7343 echo "$as_me: failed program was:" >&5
7344 cat conftest.
$ac_ext >&5
7345 ac_cv_have_decl_geteuid
=no
7347 rm -f conftest.
$ac_objext conftest.
$ac_ext
7349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
7350 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7351 if test $ac_cv_have_decl_geteuid = yes; then
7353 cat >>confdefs.h
<<_ACEOF
7354 #define HAVE_DECL_GETEUID 1
7359 cat >>confdefs.h
<<_ACEOF
7360 #define HAVE_DECL_GETEUID 0
7365 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
7366 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7367 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 cat >conftest.
$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7372 #include "confdefs.h"
7379 char *p = (char *) getgrgid;
7386 rm -f conftest.
$ac_objext
7387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388 (eval $ac_compile) 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try
='test -s conftest.$ac_objext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 ac_cv_have_decl_getgrgid
=yes
7400 echo "$as_me: failed program was:" >&5
7401 cat conftest.
$ac_ext >&5
7402 ac_cv_have_decl_getgrgid
=no
7404 rm -f conftest.
$ac_objext conftest.
$ac_ext
7406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
7407 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7408 if test $ac_cv_have_decl_getgrgid = yes; then
7410 cat >>confdefs.h
<<_ACEOF
7411 #define HAVE_DECL_GETGRGID 1
7416 cat >>confdefs.h
<<_ACEOF
7417 #define HAVE_DECL_GETGRGID 0
7422 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
7423 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7424 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 cat >conftest.
$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7429 #include "confdefs.h"
7436 char *p = (char *) getlogin;
7443 rm -f conftest.
$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try
='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_cv_have_decl_getlogin
=yes
7457 echo "$as_me: failed program was:" >&5
7458 cat conftest.
$ac_ext >&5
7459 ac_cv_have_decl_getlogin
=no
7461 rm -f conftest.
$ac_objext conftest.
$ac_ext
7463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
7464 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7465 if test $ac_cv_have_decl_getlogin = yes; then
7467 cat >>confdefs.h
<<_ACEOF
7468 #define HAVE_DECL_GETLOGIN 1
7473 cat >>confdefs.h
<<_ACEOF
7474 #define HAVE_DECL_GETLOGIN 0
7479 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
7480 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7481 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 cat >conftest.
$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 #include "confdefs.h"
7493 char *p = (char *) getpwuid;
7500 rm -f conftest.
$ac_objext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502 (eval $ac_compile) 2>&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try
='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_have_decl_getpwuid
=yes
7514 echo "$as_me: failed program was:" >&5
7515 cat conftest.
$ac_ext >&5
7516 ac_cv_have_decl_getpwuid
=no
7518 rm -f conftest.
$ac_objext conftest.
$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
7521 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7522 if test $ac_cv_have_decl_getpwuid = yes; then
7524 cat >>confdefs.h
<<_ACEOF
7525 #define HAVE_DECL_GETPWUID 1
7530 cat >>confdefs.h
<<_ACEOF
7531 #define HAVE_DECL_GETPWUID 0
7536 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
7537 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7538 if test "${ac_cv_have_decl_getuid+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7542 #line $LINENO "configure"
7543 #include "confdefs.h"
7550 char *p = (char *) getuid;
7557 rm -f conftest.
$ac_objext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559 (eval $ac_compile) 2>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try
='test -s conftest.$ac_objext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 ac_cv_have_decl_getuid
=yes
7571 echo "$as_me: failed program was:" >&5
7572 cat conftest.
$ac_ext >&5
7573 ac_cv_have_decl_getuid
=no
7575 rm -f conftest.
$ac_objext conftest.
$ac_ext
7577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
7578 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
7579 if test $ac_cv_have_decl_getuid = yes; then
7581 cat >>confdefs.h
<<_ACEOF
7582 #define HAVE_DECL_GETUID 1
7587 cat >>confdefs.h
<<_ACEOF
7588 #define HAVE_DECL_GETUID 0
7593 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
7594 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
7595 if test "${ac_cv_have_decl_getutent+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.
$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 #include "confdefs.h"
7607 char *p = (char *) getutent;
7614 rm -f conftest.
$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try
='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_have_decl_getutent
=yes
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.
$ac_ext >&5
7630 ac_cv_have_decl_getutent
=no
7632 rm -f conftest.
$ac_objext conftest.
$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
7635 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
7636 if test $ac_cv_have_decl_getutent = yes; then
7638 cat >>confdefs.h
<<_ACEOF
7639 #define HAVE_DECL_GETUTENT 1
7644 cat >>confdefs.h
<<_ACEOF
7645 #define HAVE_DECL_GETUTENT 0
7650 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
7651 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
7652 if test "${ac_cv_have_decl_lseek+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 cat >conftest.
$ac_ext <<_ACEOF
7656 #line $LINENO "configure"
7657 #include "confdefs.h"
7664 char *p = (char *) lseek;
7671 rm -f conftest.
$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try
='test -s conftest.$ac_objext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 ac_cv_have_decl_lseek
=yes
7685 echo "$as_me: failed program was:" >&5
7686 cat conftest.
$ac_ext >&5
7687 ac_cv_have_decl_lseek
=no
7689 rm -f conftest.
$ac_objext conftest.
$ac_ext
7691 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
7692 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
7693 if test $ac_cv_have_decl_lseek = yes; then
7695 cat >>confdefs.h
<<_ACEOF
7696 #define HAVE_DECL_LSEEK 1
7701 cat >>confdefs.h
<<_ACEOF
7702 #define HAVE_DECL_LSEEK 0
7707 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
7708 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7709 if test "${ac_cv_have_decl_malloc+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 cat >conftest.
$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7721 char *p = (char *) malloc;
7728 rm -f conftest.
$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try
='test -s conftest.$ac_objext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_have_decl_malloc
=yes
7742 echo "$as_me: failed program was:" >&5
7743 cat conftest.
$ac_ext >&5
7744 ac_cv_have_decl_malloc
=no
7746 rm -f conftest.
$ac_objext conftest.
$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
7749 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7750 if test $ac_cv_have_decl_malloc = yes; then
7752 cat >>confdefs.h
<<_ACEOF
7753 #define HAVE_DECL_MALLOC 1
7758 cat >>confdefs.h
<<_ACEOF
7759 #define HAVE_DECL_MALLOC 0
7764 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
7765 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
7766 if test "${ac_cv_have_decl_memchr+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 cat >conftest.
$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7778 char *p = (char *) memchr;
7785 rm -f conftest.
$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787 (eval $ac_compile) 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try
='test -s conftest.$ac_objext'
7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 ac_cv_have_decl_memchr
=yes
7799 echo "$as_me: failed program was:" >&5
7800 cat conftest.
$ac_ext >&5
7801 ac_cv_have_decl_memchr
=no
7803 rm -f conftest.
$ac_objext conftest.
$ac_ext
7805 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
7806 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
7807 if test $ac_cv_have_decl_memchr = yes; then
7809 cat >>confdefs.h
<<_ACEOF
7810 #define HAVE_DECL_MEMCHR 1
7815 cat >>confdefs.h
<<_ACEOF
7816 #define HAVE_DECL_MEMCHR 0
7821 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
7822 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
7823 if test "${ac_cv_have_decl_memrchr+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7828 #include "confdefs.h"
7835 char *p = (char *) memrchr;
7842 rm -f conftest.
$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try
='test -s conftest.$ac_objext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_cv_have_decl_memrchr
=yes
7856 echo "$as_me: failed program was:" >&5
7857 cat conftest.
$ac_ext >&5
7858 ac_cv_have_decl_memrchr
=no
7860 rm -f conftest.
$ac_objext conftest.
$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
7863 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
7864 if test $ac_cv_have_decl_memrchr = yes; then
7866 cat >>confdefs.h
<<_ACEOF
7867 #define HAVE_DECL_MEMRCHR 1
7872 cat >>confdefs.h
<<_ACEOF
7873 #define HAVE_DECL_MEMRCHR 0
7878 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
7879 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
7880 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.
$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7892 char *p = (char *) nanosleep;
7899 rm -f conftest.
$ac_objext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901 (eval $ac_compile) 2>&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try
='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_have_decl_nanosleep
=yes
7913 echo "$as_me: failed program was:" >&5
7914 cat conftest.
$ac_ext >&5
7915 ac_cv_have_decl_nanosleep
=no
7917 rm -f conftest.
$ac_objext conftest.
$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
7920 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
7921 if test $ac_cv_have_decl_nanosleep = yes; then
7923 cat >>confdefs.h
<<_ACEOF
7924 #define HAVE_DECL_NANOSLEEP 1
7929 cat >>confdefs.h
<<_ACEOF
7930 #define HAVE_DECL_NANOSLEEP 0
7935 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
7936 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7937 if test "${ac_cv_have_decl_realloc+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 #include "confdefs.h"
7949 char *p = (char *) realloc;
7956 rm -f conftest.
$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try
='test -s conftest.$ac_objext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_have_decl_realloc
=yes
7970 echo "$as_me: failed program was:" >&5
7971 cat conftest.
$ac_ext >&5
7972 ac_cv_have_decl_realloc
=no
7974 rm -f conftest.
$ac_objext conftest.
$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
7977 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7978 if test $ac_cv_have_decl_realloc = yes; then
7980 cat >>confdefs.h
<<_ACEOF
7981 #define HAVE_DECL_REALLOC 1
7986 cat >>confdefs.h
<<_ACEOF
7987 #define HAVE_DECL_REALLOC 0
7992 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
7993 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7994 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 cat >conftest.
$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
7999 #include "confdefs.h"
8006 char *p = (char *) stpcpy;
8013 rm -f conftest.
$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try
='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_have_decl_stpcpy
=yes
8027 echo "$as_me: failed program was:" >&5
8028 cat conftest.
$ac_ext >&5
8029 ac_cv_have_decl_stpcpy
=no
8031 rm -f conftest.
$ac_objext conftest.
$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8034 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8035 if test $ac_cv_have_decl_stpcpy = yes; then
8037 cat >>confdefs.h
<<_ACEOF
8038 #define HAVE_DECL_STPCPY 1
8043 cat >>confdefs.h
<<_ACEOF
8044 #define HAVE_DECL_STPCPY 0
8049 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8050 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8051 if test "${ac_cv_have_decl_strndup+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 cat >conftest.
$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8056 #include "confdefs.h"
8063 char *p = (char *) strndup;
8070 rm -f conftest.
$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try
='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_have_decl_strndup
=yes
8084 echo "$as_me: failed program was:" >&5
8085 cat conftest.
$ac_ext >&5
8086 ac_cv_have_decl_strndup
=no
8088 rm -f conftest.
$ac_objext conftest.
$ac_ext
8090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8091 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8092 if test $ac_cv_have_decl_strndup = yes; then
8094 cat >>confdefs.h
<<_ACEOF
8095 #define HAVE_DECL_STRNDUP 1
8100 cat >>confdefs.h
<<_ACEOF
8101 #define HAVE_DECL_STRNDUP 0
8106 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8107 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8108 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.
$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8113 #include "confdefs.h"
8120 char *p = (char *) strnlen;
8127 rm -f conftest.
$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try
='test -s conftest.$ac_objext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_have_decl_strnlen
=yes
8141 echo "$as_me: failed program was:" >&5
8142 cat conftest.
$ac_ext >&5
8143 ac_cv_have_decl_strnlen
=no
8145 rm -f conftest.
$ac_objext conftest.
$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8148 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8149 if test $ac_cv_have_decl_strnlen = yes; then
8151 cat >>confdefs.h
<<_ACEOF
8152 #define HAVE_DECL_STRNLEN 1
8157 cat >>confdefs.h
<<_ACEOF
8158 #define HAVE_DECL_STRNLEN 0
8163 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8164 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8165 if test "${ac_cv_have_decl_strstr+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 cat >conftest.
$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 #include "confdefs.h"
8177 char *p = (char *) strstr;
8184 rm -f conftest.
$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try
='test -s conftest.$ac_objext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 ac_cv_have_decl_strstr
=yes
8198 echo "$as_me: failed program was:" >&5
8199 cat conftest.
$ac_ext >&5
8200 ac_cv_have_decl_strstr
=no
8202 rm -f conftest.
$ac_objext conftest.
$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8205 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8206 if test $ac_cv_have_decl_strstr = yes; then
8208 cat >>confdefs.h
<<_ACEOF
8209 #define HAVE_DECL_STRSTR 1
8214 cat >>confdefs.h
<<_ACEOF
8215 #define HAVE_DECL_STRSTR 0
8220 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8221 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8222 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 cat >conftest.
$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8227 #include "confdefs.h"
8234 char *p = (char *) strtoul;
8241 rm -f conftest.
$ac_objext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try
='test -s conftest.$ac_objext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_have_decl_strtoul
=yes
8255 echo "$as_me: failed program was:" >&5
8256 cat conftest.
$ac_ext >&5
8257 ac_cv_have_decl_strtoul
=no
8259 rm -f conftest.
$ac_objext conftest.
$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8263 if test $ac_cv_have_decl_strtoul = yes; then
8265 cat >>confdefs.h
<<_ACEOF
8266 #define HAVE_DECL_STRTOUL 1
8271 cat >>confdefs.h
<<_ACEOF
8272 #define HAVE_DECL_STRTOUL 0
8277 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
8278 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 #include "confdefs.h"
8291 char *p = (char *) strtoull;
8298 rm -f conftest.
$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try
='test -s conftest.$ac_objext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_have_decl_strtoull
=yes
8312 echo "$as_me: failed program was:" >&5
8313 cat conftest.
$ac_ext >&5
8314 ac_cv_have_decl_strtoull
=no
8316 rm -f conftest.
$ac_objext conftest.
$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
8319 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8320 if test $ac_cv_have_decl_strtoull = yes; then
8322 cat >>confdefs.h
<<_ACEOF
8323 #define HAVE_DECL_STRTOULL 1
8328 cat >>confdefs.h
<<_ACEOF
8329 #define HAVE_DECL_STRTOULL 0
8334 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
8335 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8336 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 cat >conftest.
$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 #include "confdefs.h"
8348 char *p = (char *) ttyname;
8355 rm -f conftest.
$ac_objext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8357 (eval $ac_compile) 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try
='test -s conftest.$ac_objext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_have_decl_ttyname
=yes
8369 echo "$as_me: failed program was:" >&5
8370 cat conftest.
$ac_ext >&5
8371 ac_cv_have_decl_ttyname
=no
8373 rm -f conftest.
$ac_objext conftest.
$ac_ext
8375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
8376 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8377 if test $ac_cv_have_decl_ttyname = yes; then
8379 cat >>confdefs.h
<<_ACEOF
8380 #define HAVE_DECL_TTYNAME 1
8385 cat >>confdefs.h
<<_ACEOF
8386 #define HAVE_DECL_TTYNAME 0
8394 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8395 # for constant arguments. Useless!
8396 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8397 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8398 if test "${ac_cv_working_alloca_h+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 cat >conftest.
$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8408 char *p = (char *) alloca (2 * sizeof (int));
8413 rm -f conftest.
$ac_objext conftest
$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try
='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_working_alloca_h
=yes
8427 echo "$as_me: failed program was:" >&5
8428 cat conftest.
$ac_ext >&5
8429 ac_cv_working_alloca_h
=no
8431 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8434 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8435 if test $ac_cv_working_alloca_h = yes; then
8437 cat >>confdefs.h
<<\_ACEOF
8438 #define HAVE_ALLOCA_H 1
8443 echo "$as_me:$LINENO: checking for alloca" >&5
8444 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8445 if test "${ac_cv_func_alloca_works+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 cat >conftest.
$ac_ext <<_ACEOF
8449 #line $LINENO "configure"
8450 #include "confdefs.h"
8452 # define alloca __builtin_alloca
8455 # include <malloc.h>
8456 # define alloca _alloca
8459 # include <alloca.h>
8464 # ifndef alloca /* predefined by HP cc +Olibcalls */
8475 char *p = (char *) alloca (1);
8480 rm -f conftest.
$ac_objext conftest
$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try
='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_func_alloca_works
=yes
8494 echo "$as_me: failed program was:" >&5
8495 cat conftest.
$ac_ext >&5
8496 ac_cv_func_alloca_works
=no
8498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8501 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8503 if test $ac_cv_func_alloca_works = yes; then
8505 cat >>confdefs.h
<<\_ACEOF
8506 #define HAVE_ALLOCA 1
8510 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8511 # that cause trouble. Some versions do not even contain alloca or
8512 # contain a buggy version. If you still want to use their alloca,
8513 # use ar to extract alloca.o from them instead of compiling alloca.c.
8515 ALLOCA
=alloca.
$ac_objext
8517 cat >>confdefs.h
<<\_ACEOF
8522 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8523 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8524 if test "${ac_cv_os_cray+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.
$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 #include "confdefs.h"
8530 #if defined(CRAY) && ! defined(CRAY2)
8537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8538 $EGREP "webecray" >/dev
/null
2>&1; then
8546 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8547 echo "${ECHO_T}$ac_cv_os_cray" >&6
8548 if test $ac_cv_os_cray = yes; then
8549 for ac_func
in _getb67 GETB67 getb67
; do
8550 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8551 echo "$as_me:$LINENO: checking for $ac_func" >&5
8552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8553 if eval "test \"\${$as_ac_var+set}\" = set"; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 cat >conftest.
$ac_ext <<_ACEOF
8557 #line $LINENO "configure"
8558 #include "confdefs.h"
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char $ac_func (); below. */
8562 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8574 /* The GNU C library defines this for functions which it implements
8575 to always fail with ENOSYS. Some functions are actually named
8576 something starting with __ and the normal name is an alias. */
8577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8587 rm -f conftest.
$ac_objext conftest
$ac_exeext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589 (eval $ac_link) 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try
='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 eval "$as_ac_var=yes"
8601 echo "$as_me: failed program was:" >&5
8602 cat conftest.
$ac_ext >&5
8603 eval "$as_ac_var=no"
8605 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8609 if test `eval echo '${'$as_ac_var'}'` = yes; then
8611 cat >>confdefs.h
<<_ACEOF
8612 #define CRAY_STACKSEG_END $ac_func
8621 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8622 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8623 if test "${ac_cv_c_stack_direction+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 if test "$cross_compiling" = yes; then
8627 ac_cv_c_stack_direction
=0
8629 cat >conftest.
$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8633 find_stack_direction ()
8635 static char *addr = 0;
8640 return find_stack_direction ();
8643 return (&dummy > addr) ? 1 : -1;
8649 exit (find_stack_direction () < 0);
8652 rm -f conftest
$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 ac_cv_c_stack_direction
=1
8665 echo "$as_me: program exited with status $ac_status" >&5
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.
$ac_ext >&5
8669 ac_cv_c_stack_direction
=-1
8671 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8675 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8677 cat >>confdefs.h
<<_ACEOF
8678 #define STACK_DIRECTION $ac_cv_c_stack_direction
8684 # for STACK_DIRECTION
8687 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
8688 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
8689 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 if test "$cross_compiling" = yes; then
8693 ac_cv_sys_xsi_stack_overflow_heuristic
=cross-compiling
8695 cat >conftest.
$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 #include "confdefs.h"
8700 #include <ucontext.h>
8704 char buffer[SIGSTKSZ];
8708 } alternate_signal_stack;
8711 # define find_stack_direction(ptr) STACK_DIRECTION
8714 find_stack_direction (char const *addr)
8717 return (! addr ? find_stack_direction (&dummy)
8718 : addr < &dummy ? 1 : -1);
8723 segv_handler (int signo, siginfo_t *info, void *context)
8725 if (0 < info->si_code)
8727 ucontext_t const *user_context = context;
8728 char const *stack_min = user_context->uc_stack.ss_sp;
8729 size_t stack_size = user_context->uc_stack.ss_size;
8730 char const *faulting_address = info->si_addr;
8731 size_t s = faulting_address - stack_min;
8732 size_t page_size = sysconf (_SC_PAGESIZE);
8733 if (find_stack_direction (0) < 0)
8735 if (s < stack_size + page_size)
8743 c_stack_action (void)
8746 struct sigaction act;
8750 st.ss_sp = alternate_signal_stack.buffer;
8751 st.ss_size = sizeof alternate_signal_stack.buffer;
8752 r = sigaltstack (&st, 0);
8756 sigemptyset (&act.sa_mask);
8757 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
8758 act.sa_sigaction = segv_handler;
8759 return sigaction (SIGSEGV, &act, 0);
8767 return *p + recurse (array);
8774 return recurse ("\1");
8778 rm -f conftest
$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_sys_xsi_stack_overflow_heuristic
=yes
8791 echo "$as_me: program exited with status $ac_status" >&5
8792 echo "$as_me: failed program was:" >&5
8793 cat conftest.
$ac_ext >&5
8795 ac_cv_sys_xsi_stack_overflow_heuristic
=no
8797 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8800 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
8801 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
8803 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
8805 cat >>confdefs.h
<<\_ACEOF
8806 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
8810 echo "$as_me:$LINENO: checking for mbstate_t" >&5
8811 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8812 if test "${ac_cv_type_mbstate_t+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.
$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8818 $ac_includes_default
8823 mbstate_t x; return sizeof x;
8828 rm -f conftest.
$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try
='test -s conftest.$ac_objext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_type_mbstate_t
=yes
8842 echo "$as_me: failed program was:" >&5
8843 cat conftest.
$ac_ext >&5
8844 ac_cv_type_mbstate_t
=no
8846 rm -f conftest.
$ac_objext conftest.
$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8849 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8850 if test $ac_cv_type_mbstate_t = yes; then
8852 cat >>confdefs.h
<<\_ACEOF
8853 #define HAVE_MBSTATE_T 1
8858 cat >>confdefs.h
<<\_ACEOF
8859 #define mbstate_t int
8865 echo "$as_me:$LINENO: checking for long file names" >&5
8866 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8867 if test "${ac_cv_sys_long_file_names+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 ac_cv_sys_long_file_names
=yes
8871 # Test for long file names in all the places we know might matter:
8872 # . the current directory, where building will happen
8873 # $prefix/lib where we will be installing things
8874 # $exec_prefix/lib likewise
8875 # eval it to expand exec_prefix.
8876 # $TMPDIR if set, where it might want to write temporary files
8877 # if $TMPDIR is not set:
8878 # /tmp where it might want to write temporary files
8881 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8884 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8886 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8887 test -d $ac_dir ||
continue
8888 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8889 ac_xdir
=$ac_dir/cf$$
8890 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8891 ac_tf1
=$ac_xdir/conftest9012345
8892 ac_tf2
=$ac_xdir/conftest9012346
8893 (echo 1 >$ac_tf1) 2>/dev
/null
8894 (echo 2 >$ac_tf2) 2>/dev
/null
8895 ac_val
=`cat $ac_tf1 2>/dev/null`
8896 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8897 ac_cv_sys_long_file_names
=no
8898 rm -rf $ac_xdir 2>/dev
/null
8901 rm -rf $ac_xdir 2>/dev
/null
8904 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8905 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8906 if test $ac_cv_sys_long_file_names = yes; then
8908 cat >>confdefs.h
<<\_ACEOF
8909 #define HAVE_LONG_FILE_NAMES 1
8915 for ac_func
in pathconf
8917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 echo "$as_me:$LINENO: checking for $ac_func" >&5
8919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_var+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 cat >conftest.
$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 /* System header to define __stub macros and hopefully few prototypes,
8927 which can conflict with char $ac_func (); below. */
8929 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8941 /* The GNU C library defines this for functions which it implements
8942 to always fail with ENOSYS. Some functions are actually named
8943 something starting with __ and the normal name is an alias. */
8944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try
='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 eval "$as_ac_var=yes"
8968 echo "$as_me: failed program was:" >&5
8969 cat conftest.
$ac_ext >&5
8970 eval "$as_ac_var=no"
8972 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977 cat >>confdefs.h
<<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8987 for ac_header
in limits.h string.h unistd.h
8989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991 echo "$as_me:$LINENO: checking for $ac_header" >&5
8992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8999 # Is the header compilable?
9000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9002 cat >conftest.
$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9005 $ac_includes_default
9006 #include <$ac_header>
9008 rm -f conftest.
$ac_objext
9009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010 (eval $ac_compile) 2>&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try
='test -s conftest.$ac_objext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_header_compiler
=yes
9022 echo "$as_me: failed program was:" >&5
9023 cat conftest.
$ac_ext >&5
9024 ac_header_compiler
=no
9026 rm -f conftest.
$ac_objext conftest.
$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.
$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 #include <$ac_header>
9038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1
>conftest.err
9043 cat conftest.err
>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } >/dev
/null
; then
9046 if test -s conftest.err
; then
9047 ac_cpp_err
=$ac_c_preproc_warn_flag
9054 if test -z "$ac_cpp_err"; then
9055 ac_header_preproc
=yes
9057 echo "$as_me: failed program was:" >&5
9058 cat conftest.
$ac_ext >&5
9059 ac_header_preproc
=no
9061 rm -f conftest.err conftest.
$ac_ext
9062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6
9065 # So? What about this header?
9066 case $ac_header_compiler:$ac_header_preproc in
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9080 echo "$as_me:$LINENO: checking for $ac_header" >&5
9081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 eval "$as_ac_Header=$ac_header_preproc"
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092 cat >>confdefs.h
<<_ACEOF
9093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9103 # for STACK_DIRECTION
9108 for ac_func
in getcontext sigaltstack
9110 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9111 echo "$as_me:$LINENO: checking for $ac_func" >&5
9112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_var+set}\" = set"; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 cat >conftest.
$ac_ext <<_ACEOF
9117 #line $LINENO "configure"
9118 #include "confdefs.h"
9119 /* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below. */
9122 /* Override any gcc2 internal prototype to avoid an error. */
9126 /* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9134 /* The GNU C library defines this for functions which it implements
9135 to always fail with ENOSYS. Some functions are actually named
9136 something starting with __ and the normal name is an alias. */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9147 rm -f conftest.
$ac_objext conftest
$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try
='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 eval "$as_ac_var=yes"
9161 echo "$as_me: failed program was:" >&5
9162 cat conftest.
$ac_ext >&5
9163 eval "$as_ac_var=no"
9165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9169 if test `eval echo '${'$as_ac_var'}'` = yes; then
9170 cat >>confdefs.h
<<_ACEOF
9171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9177 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
9178 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
9179 if test "${ac_cv_have_decl_getcontext+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 cat >conftest.
$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 #include "confdefs.h"
9185 #include <ucontext.h>
9191 char *p = (char *) getcontext;
9198 rm -f conftest.
$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try
='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_have_decl_getcontext
=yes
9212 echo "$as_me: failed program was:" >&5
9213 cat conftest.
$ac_ext >&5
9214 ac_cv_have_decl_getcontext
=no
9216 rm -f conftest.
$ac_objext conftest.
$ac_ext
9218 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
9219 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
9220 if test $ac_cv_have_decl_getcontext = yes; then
9222 cat >>confdefs.h
<<_ACEOF
9223 #define HAVE_DECL_GETCONTEXT 1
9228 cat >>confdefs.h
<<_ACEOF
9229 #define HAVE_DECL_GETCONTEXT 0
9236 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
9237 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
9238 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.
$ac_ext <<_ACEOF
9242 #line $LINENO "configure"
9243 #include "confdefs.h"
9250 char *p = (char *) sigaltstack;
9257 rm -f conftest.
$ac_objext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259 (eval $ac_compile) 2>&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try
='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 ac_cv_have_decl_sigaltstack
=yes
9271 echo "$as_me: failed program was:" >&5
9272 cat conftest.
$ac_ext >&5
9273 ac_cv_have_decl_sigaltstack
=no
9275 rm -f conftest.
$ac_objext conftest.
$ac_ext
9277 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
9278 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
9279 if test $ac_cv_have_decl_sigaltstack = yes; then
9281 cat >>confdefs.h
<<_ACEOF
9282 #define HAVE_DECL_SIGALTSTACK 1
9287 cat >>confdefs.h
<<_ACEOF
9288 #define HAVE_DECL_SIGALTSTACK 0
9299 for ac_header
in sys
/resource.h ucontext.h unistd.h
9301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303 echo "$as_me:$LINENO: checking for $ac_header" >&5
9304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311 # Is the header compilable?
9312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9314 cat >conftest.
$ac_ext <<_ACEOF
9315 #line $LINENO "configure"
9316 #include "confdefs.h"
9317 $ac_includes_default
9318 #include <$ac_header>
9320 rm -f conftest.
$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try
='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_header_compiler
=yes
9334 echo "$as_me: failed program was:" >&5
9335 cat conftest.
$ac_ext >&5
9336 ac_header_compiler
=no
9338 rm -f conftest.
$ac_objext conftest.
$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.
$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9347 #include "confdefs.h"
9348 #include <$ac_header>
9350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9351 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } >/dev
/null
; then
9358 if test -s conftest.err
; then
9359 ac_cpp_err
=$ac_c_preproc_warn_flag
9366 if test -z "$ac_cpp_err"; then
9367 ac_header_preproc
=yes
9369 echo "$as_me: failed program was:" >&5
9370 cat conftest.
$ac_ext >&5
9371 ac_header_preproc
=no
9373 rm -f conftest.err conftest.
$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9375 echo "${ECHO_T}$ac_header_preproc" >&6
9377 # So? What about this header?
9378 case $ac_header_compiler:$ac_header_preproc in
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9392 echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 eval "$as_ac_Header=$ac_header_preproc"
9399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9404 cat >>confdefs.h
<<_ACEOF
9405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9413 echo "$as_me:$LINENO: checking for stack_t" >&5
9414 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
9415 if test "${ac_cv_type_stack_t+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.
$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 #include "confdefs.h"
9428 if (sizeof (stack_t))
9434 rm -f conftest.
$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try
='test -s conftest.$ac_objext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_type_stack_t
=yes
9448 echo "$as_me: failed program was:" >&5
9449 cat conftest.
$ac_ext >&5
9450 ac_cv_type_stack_t
=no
9452 rm -f conftest.
$ac_objext conftest.
$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
9455 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
9456 if test $ac_cv_type_stack_t = yes; then
9458 cat >>confdefs.h
<<_ACEOF
9459 #define HAVE_STACK_T 1
9467 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9468 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9469 if test "${ac_cv_search_gethostbyname+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 ac_func_search_save_LIBS
=$LIBS
9474 ac_cv_search_gethostbyname
=no
9475 cat >conftest.
$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 #include "confdefs.h"
9479 /* Override any gcc2 internal prototype to avoid an error. */
9483 /* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9485 char gethostbyname ();
9494 rm -f conftest.
$ac_objext conftest
$ac_exeext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496 (eval $ac_link) 2>&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try
='test -s conftest$ac_exeext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_cv_search_gethostbyname
='none required'
9508 echo "$as_me: failed program was:" >&5
9509 cat conftest.
$ac_ext >&5
9511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9512 if test "$ac_cv_search_gethostbyname" = no
; then
9513 for ac_lib
in inet nsl
; do
9514 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9515 cat >conftest.
$ac_ext <<_ACEOF
9516 #line $LINENO "configure"
9517 #include "confdefs.h"
9519 /* Override any gcc2 internal prototype to avoid an error. */
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9525 char gethostbyname ();
9534 rm -f conftest.
$ac_objext conftest
$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try
='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_cv_search_gethostbyname
="-l$ac_lib"; break
9548 echo "$as_me: failed program was:" >&5
9549 cat conftest.
$ac_ext >&5
9551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9554 LIBS
=$ac_func_search_save_LIBS
9557 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9558 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9560 if test "$ac_cv_search_gethostbyname" = no
; then :
9563 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
9566 LIBS
="$ac_cv_search_gethostbyname $LIBS"
9575 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
9577 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9578 echo "$as_me:$LINENO: checking for $ac_func" >&5
9579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_var+set}\" = set"; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.
$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 #include "confdefs.h"
9586 /* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char $ac_func (); below. */
9589 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9601 /* The GNU C library defines this for functions which it implements
9602 to always fail with ENOSYS. Some functions are actually named
9603 something starting with __ and the normal name is an alias. */
9604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9614 rm -f conftest.
$ac_objext conftest
$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try
='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_var=yes"
9628 echo "$as_me: failed program was:" >&5
9629 cat conftest.
$ac_ext >&5
9630 eval "$as_ac_var=no"
9632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9636 if test `eval echo '${'$as_ac_var'}'` = yes; then
9637 cat >>confdefs.h
<<_ACEOF
9638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
9650 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9651 echo "$as_me:$LINENO: checking for $ac_func" >&5
9652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9653 if eval "test \"\${$as_ac_var+set}\" = set"; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.
$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 /* System header to define __stub macros and hopefully few prototypes,
9660 which can conflict with char $ac_func (); below. */
9662 /* Override any gcc2 internal prototype to avoid an error. */
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9674 /* The GNU C library defines this for functions which it implements
9675 to always fail with ENOSYS. Some functions are actually named
9676 something starting with __ and the normal name is an alias. */
9677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9687 rm -f conftest.
$ac_objext conftest
$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try
='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 eval "$as_ac_var=yes"
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.
$ac_ext >&5
9703 eval "$as_ac_var=no"
9705 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9709 if test `eval echo '${'$as_ac_var'}'` = yes; then
9710 cat >>confdefs.h
<<_ACEOF
9711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9723 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
9724 netinet
/in.h arpa
/inet.h
9726 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9728 echo "$as_me:$LINENO: checking for $ac_header" >&5
9729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736 # Is the header compilable?
9737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9739 cat >conftest.
$ac_ext <<_ACEOF
9740 #line $LINENO "configure"
9741 #include "confdefs.h"
9742 $ac_includes_default
9743 #include <$ac_header>
9745 rm -f conftest.
$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try
='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_header_compiler
=yes
9759 echo "$as_me: failed program was:" >&5
9760 cat conftest.
$ac_ext >&5
9761 ac_header_compiler
=no
9763 rm -f conftest.
$ac_objext conftest.
$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765 echo "${ECHO_T}$ac_header_compiler" >&6
9767 # Is the header present?
9768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770 cat >conftest.
$ac_ext <<_ACEOF
9771 #line $LINENO "configure"
9772 #include "confdefs.h"
9773 #include <$ac_header>
9775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev
/null
; then
9783 if test -s conftest.err
; then
9784 ac_cpp_err
=$ac_c_preproc_warn_flag
9791 if test -z "$ac_cpp_err"; then
9792 ac_header_preproc
=yes
9794 echo "$as_me: failed program was:" >&5
9795 cat conftest.
$ac_ext >&5
9796 ac_header_preproc
=no
9798 rm -f conftest.err conftest.
$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6
9802 # So? What about this header?
9803 case $ac_header_compiler:$ac_header_preproc in
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9817 echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 eval "$as_ac_Header=$ac_header_preproc"
9824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9829 cat >>confdefs.h
<<_ACEOF
9830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9841 if test "${ac_cv_header_stdc+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.
$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9856 grep -v '^ *+' conftest.er1
>conftest.err
9858 cat conftest.err
>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } >/dev
/null
; then
9861 if test -s conftest.err
; then
9862 ac_cpp_err
=$ac_c_preproc_warn_flag
9869 if test -z "$ac_cpp_err"; then
9870 ac_cv_header_stdc
=yes
9872 echo "$as_me: failed program was:" >&5
9873 cat conftest.
$ac_ext >&5
9874 ac_cv_header_stdc
=no
9876 rm -f conftest.err conftest.
$ac_ext
9878 if test $ac_cv_header_stdc = yes; then
9879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9880 cat >conftest.
$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9882 #include "confdefs.h"
9886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9887 $EGREP "memchr" >/dev
/null
2>&1; then
9890 ac_cv_header_stdc
=no
9896 if test $ac_cv_header_stdc = yes; then
9897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9898 cat >conftest.
$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 #include "confdefs.h"
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "free" >/dev
/null
2>&1; then
9908 ac_cv_header_stdc
=no
9914 if test $ac_cv_header_stdc = yes; then
9915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9916 if test "$cross_compiling" = yes; then
9919 cat >conftest.
$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9923 #if ((' ' & 0x0FF) == 0x020)
9924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9927 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9928 || ('j' <= (c) && (c) <= 'r') \
9929 || ('s' <= (c) && (c) <= 'z'))
9930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9938 for (i = 0; i < 256; i++)
9939 if (XOR (islower (i), ISLOWER (i))
9940 || toupper (i) != TOUPPER (i))
9945 rm -f conftest
$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9958 echo "$as_me: program exited with status $ac_status" >&5
9959 echo "$as_me: failed program was:" >&5
9960 cat conftest.
$ac_ext >&5
9962 ac_cv_header_stdc
=no
9964 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9970 if test $ac_cv_header_stdc = yes; then
9972 cat >>confdefs.h
<<\_ACEOF
9973 #define STDC_HEADERS 1
9979 for ac_header
in string.h
9981 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983 echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9991 # Is the header compilable?
9992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9994 cat >conftest.
$ac_ext <<_ACEOF
9995 #line $LINENO "configure"
9996 #include "confdefs.h"
9997 $ac_includes_default
9998 #include <$ac_header>
10000 rm -f conftest.
$ac_objext
10001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try
='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_header_compiler
=yes
10014 echo "$as_me: failed program was:" >&5
10015 cat conftest.
$ac_ext >&5
10016 ac_header_compiler
=no
10018 rm -f conftest.
$ac_objext conftest.
$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 echo "${ECHO_T}$ac_header_compiler" >&6
10022 # Is the header present?
10023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10025 cat >conftest.
$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <$ac_header>
10030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10033 grep -v '^ *+' conftest.er1
>conftest.err
10035 cat conftest.err
>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } >/dev
/null
; then
10038 if test -s conftest.err
; then
10039 ac_cpp_err
=$ac_c_preproc_warn_flag
10046 if test -z "$ac_cpp_err"; then
10047 ac_header_preproc
=yes
10049 echo "$as_me: failed program was:" >&5
10050 cat conftest.
$ac_ext >&5
10051 ac_header_preproc
=no
10053 rm -f conftest.err conftest.
$ac_ext
10054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 echo "${ECHO_T}$ac_header_preproc" >&6
10057 # So? What about this header?
10058 case $ac_header_compiler:$ac_header_preproc in
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10072 echo "$as_me:$LINENO: checking for $ac_header" >&5
10073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 eval "$as_ac_Header=$ac_header_preproc"
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 cat >>confdefs.h
<<_ACEOF
10085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097 for ac_func
in strerror vprintf doprnt
10099 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10100 echo "$as_me:$LINENO: checking for $ac_func" >&5
10101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_var+set}\" = set"; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 cat >conftest.
$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below. */
10110 #include <assert.h>
10111 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10123 /* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10136 rm -f conftest.
$ac_objext conftest
$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try
='test -s conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 eval "$as_ac_var=yes"
10150 echo "$as_me: failed program was:" >&5
10151 cat conftest.
$ac_ext >&5
10152 eval "$as_ac_var=no"
10154 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10158 if test `eval echo '${'$as_ac_var'}'` = yes; then
10159 cat >>confdefs.h
<<_ACEOF
10160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10166 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10167 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
10168 if test "${ac_cv_have_decl_strerror+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.
$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 #include "confdefs.h"
10174 $ac_includes_default
10179 char *p = (char *) strerror;
10186 rm -f conftest.
$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try
='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 ac_cv_have_decl_strerror
=yes
10200 echo "$as_me: failed program was:" >&5
10201 cat conftest.
$ac_ext >&5
10202 ac_cv_have_decl_strerror
=no
10204 rm -f conftest.
$ac_objext conftest.
$ac_ext
10206 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10207 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
10208 if test $ac_cv_have_decl_strerror = yes; then
10210 cat >>confdefs.h
<<_ACEOF
10211 #define HAVE_DECL_STRERROR 1
10216 cat >>confdefs.h
<<_ACEOF
10217 #define HAVE_DECL_STRERROR 0
10224 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
10225 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
10226 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 cat >conftest.
$ac_ext <<_ACEOF
10230 #line $LINENO "configure"
10231 #include "confdefs.h"
10232 $ac_includes_default
10237 char *p = (char *) strerror_r;
10244 rm -f conftest.
$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try
='test -s conftest.$ac_objext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_cv_have_decl_strerror_r
=yes
10258 echo "$as_me: failed program was:" >&5
10259 cat conftest.
$ac_ext >&5
10260 ac_cv_have_decl_strerror_r
=no
10262 rm -f conftest.
$ac_objext conftest.
$ac_ext
10264 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
10265 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
10266 if test $ac_cv_have_decl_strerror_r = yes; then
10268 cat >>confdefs.h
<<_ACEOF
10269 #define HAVE_DECL_STRERROR_R 1
10274 cat >>confdefs.h
<<_ACEOF
10275 #define HAVE_DECL_STRERROR_R 0
10283 for ac_func
in strerror_r
10285 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10286 echo "$as_me:$LINENO: checking for $ac_func" >&5
10287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10288 if eval "test \"\${$as_ac_var+set}\" = set"; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 cat >conftest.
$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10293 #include "confdefs.h"
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func (); below. */
10296 #include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error. */
10301 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10322 rm -f conftest.
$ac_objext conftest
$ac_exeext
10323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try
='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 eval "$as_ac_var=yes"
10336 echo "$as_me: failed program was:" >&5
10337 cat conftest.
$ac_ext >&5
10338 eval "$as_ac_var=no"
10340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10344 if test `eval echo '${'$as_ac_var'}'` = yes; then
10345 cat >>confdefs.h
<<_ACEOF
10346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10352 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10353 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
10354 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 ac_cv_func_strerror_r_char_p
=no
10359 if test $ac_cv_have_decl_strerror_r = yes; then
10360 cat >conftest.
$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 $ac_includes_default
10369 char x = *strerror_r (0, buf, sizeof buf);
10370 char *p = strerror_r (0, buf, sizeof buf);
10376 rm -f conftest.
$ac_objext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10378 (eval $ac_compile) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try
='test -s conftest.$ac_objext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_func_strerror_r_char_p
=yes
10390 echo "$as_me: failed program was:" >&5
10391 cat conftest.
$ac_ext >&5
10393 rm -f conftest.
$ac_objext conftest.
$ac_ext
10395 # strerror_r is not declared. Choose between
10396 # systems that have relatively inaccessible declarations for the
10397 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
10398 # former has a strerror_r that returns char*, while the latter
10399 # has a strerror_r that returns `int'.
10400 # This test should segfault on the DEC system.
10401 if test "$cross_compiling" = yes; then
10404 cat >conftest.
$ac_ext <<_ACEOF
10405 #line $LINENO "configure"
10406 #include "confdefs.h"
10407 $ac_includes_default
10408 extern char *strerror_r ();
10413 char x = *strerror_r (0, buf, sizeof buf);
10414 exit (!isalpha (x));
10419 rm -f conftest
$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_func_strerror_r_char_p
=yes
10432 echo "$as_me: program exited with status $ac_status" >&5
10433 echo "$as_me: failed program was:" >&5
10434 cat conftest.
$ac_ext >&5
10436 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10441 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10442 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
10443 if test $ac_cv_func_strerror_r_char_p = yes; then
10445 cat >>confdefs.h
<<\_ACEOF
10446 #define STRERROR_R_CHAR_P 1
10451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10453 if test "${ac_cv_header_stdc+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.
$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10459 #include <stdlib.h>
10460 #include <stdarg.h>
10461 #include <string.h>
10465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1
>conftest.err
10470 cat conftest.err
>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } >/dev
/null
; then
10473 if test -s conftest.err
; then
10474 ac_cpp_err
=$ac_c_preproc_warn_flag
10481 if test -z "$ac_cpp_err"; then
10482 ac_cv_header_stdc
=yes
10484 echo "$as_me: failed program was:" >&5
10485 cat conftest.
$ac_ext >&5
10486 ac_cv_header_stdc
=no
10488 rm -f conftest.err conftest.
$ac_ext
10490 if test $ac_cv_header_stdc = yes; then
10491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10492 cat >conftest.
$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 #include "confdefs.h"
10495 #include <string.h>
10498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10499 $EGREP "memchr" >/dev
/null
2>&1; then
10502 ac_cv_header_stdc
=no
10508 if test $ac_cv_header_stdc = yes; then
10509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10510 cat >conftest.
$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 #include "confdefs.h"
10513 #include <stdlib.h>
10516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10517 $EGREP "free" >/dev
/null
2>&1; then
10520 ac_cv_header_stdc
=no
10526 if test $ac_cv_header_stdc = yes; then
10527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10528 if test "$cross_compiling" = yes; then
10531 cat >conftest.
$ac_ext <<_ACEOF
10532 #line $LINENO "configure"
10533 #include "confdefs.h"
10535 #if ((' ' & 0x0FF) == 0x020)
10536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10539 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10540 || ('j' <= (c) && (c) <= 'r') \
10541 || ('s' <= (c) && (c) <= 'z'))
10542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10550 for (i = 0; i < 256; i++)
10551 if (XOR (islower (i), ISLOWER (i))
10552 || toupper (i) != TOUPPER (i))
10557 rm -f conftest
$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 cat conftest.
$ac_ext >&5
10573 ( exit $ac_status )
10574 ac_cv_header_stdc
=no
10576 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10580 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10581 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10582 if test $ac_cv_header_stdc = yes; then
10584 cat >>confdefs.h
<<\_ACEOF
10585 #define STDC_HEADERS 1
10593 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
10594 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
10595 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 # Some versions of Solaris, SCO, and the GNU C Library
10599 # have a broken or incompatible fnmatch.
10600 # So we run a test program. If we are cross-compiling, take no chance.
10601 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
10602 if test "$cross_compiling" = yes; then
10603 ac_cv_func_fnmatch_gnu
=cross
10605 cat >conftest.
$ac_ext <<_ACEOF
10606 #line $LINENO "configure"
10607 #include "confdefs.h"
10608 #include <fnmatch.h>
10609 # define y(a, b, c) (fnmatch (a, b, c) == 0)
10610 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
10616 (!(y ("a*", "abc", 0)
10617 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
10618 && y ("a\\\\bc", "abc", 0)
10619 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
10620 && y ("*x", ".x", 0)
10621 && n ("*x", ".x", FNM_PERIOD)
10622 && y ("xxXX", "xXxX", FNM_CASEFOLD)
10623 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
10624 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
10625 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
10626 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
10627 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
10632 rm -f conftest
$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_func_fnmatch_gnu
=yes
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 cat conftest.
$ac_ext >&5
10648 ( exit $ac_status )
10649 ac_cv_func_fnmatch_gnu
=no
10651 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
10655 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
10656 if test $ac_cv_func_fnmatch_gnu = yes; then
10657 rm -f lib
/fnmatch.h
10659 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10660 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10661 if test "${ac_cv_have_decl_getenv+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 cat >conftest.
$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 #include "confdefs.h"
10667 $ac_includes_default
10672 char *p = (char *) getenv;
10679 rm -f conftest.
$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try
='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_have_decl_getenv
=yes
10693 echo "$as_me: failed program was:" >&5
10694 cat conftest.
$ac_ext >&5
10695 ac_cv_have_decl_getenv
=no
10697 rm -f conftest.
$ac_objext conftest.
$ac_ext
10699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10700 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10701 if test $ac_cv_have_decl_getenv = yes; then
10703 cat >>confdefs.h
<<_ACEOF
10704 #define HAVE_DECL_GETENV 1
10709 cat >>confdefs.h
<<_ACEOF
10710 #define HAVE_DECL_GETENV 0
10721 for ac_func
in btowc mbsrtowcs mempcpy wmempcpy
10723 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10724 echo "$as_me:$LINENO: checking for $ac_func" >&5
10725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10726 if eval "test \"\${$as_ac_var+set}\" = set"; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >conftest.
$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10731 #include "confdefs.h"
10732 /* System header to define __stub macros and hopefully few prototypes,
10733 which can conflict with char $ac_func (); below. */
10734 #include <assert.h>
10735 /* Override any gcc2 internal prototype to avoid an error. */
10739 /* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10747 /* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10762 (eval $ac_link) 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try
='test -s conftest$ac_exeext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 eval "$as_ac_var=yes"
10774 echo "$as_me: failed program was:" >&5
10775 cat conftest.
$ac_ext >&5
10776 eval "$as_ac_var=no"
10778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10782 if test `eval echo '${'$as_ac_var'}'` = yes; then
10783 cat >>confdefs.h
<<_ACEOF
10784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10792 for ac_header
in wchar.h wctype.h
10794 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 #include "confdefs.h"
10810 $ac_includes_default
10811 #include <$ac_header>
10813 rm -f conftest.
$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815 (eval $ac_compile) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try
='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_header_compiler
=yes
10827 echo "$as_me: failed program was:" >&5
10828 cat conftest.
$ac_ext >&5
10829 ac_header_compiler
=no
10831 rm -f conftest.
$ac_objext conftest.
$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6
10835 # Is the header present?
10836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10838 cat >conftest.
$ac_ext <<_ACEOF
10839 #line $LINENO "configure"
10840 #include "confdefs.h"
10841 #include <$ac_header>
10843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1
>conftest.err
10848 cat conftest.err
>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } >/dev
/null
; then
10851 if test -s conftest.err
; then
10852 ac_cpp_err
=$ac_c_preproc_warn_flag
10859 if test -z "$ac_cpp_err"; then
10860 ac_header_preproc
=yes
10862 echo "$as_me: failed program was:" >&5
10863 cat conftest.
$ac_ext >&5
10864 ac_header_preproc
=no
10866 rm -f conftest.err conftest.
$ac_ext
10867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10868 echo "${ECHO_T}$ac_header_preproc" >&6
10870 # So? What about this header?
10871 case $ac_header_compiler:$ac_header_preproc in
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10885 echo "$as_me:$LINENO: checking for $ac_header" >&5
10886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 eval "$as_ac_Header=$ac_header_preproc"
10892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10897 cat >>confdefs.h
<<_ACEOF
10898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
10906 ac_config_links
="$ac_config_links lib/fnmatch.h:lib/fnmatch_.h"
10909 cat >>confdefs.h
<<\_ACEOF
10910 #define fnmatch rpl_fnmatch
10918 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10919 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10920 if test "${ac_cv_header_stdbool_h+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 cat >conftest.
$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10927 #include <stdbool.h>
10929 "error: bool is not defined"
10932 "error: false is not defined"
10935 "error: false is not 0"
10938 "error: false is not defined"
10941 "error: true is not 1"
10943 #ifndef __bool_true_false_are_defined
10944 "error: __bool_true_false_are_defined is not defined"
10947 struct s { _Bool s: 1; _Bool t; } s;
10949 char a[true == 1 ? 1 : -1];
10950 char b[false == 0 ? 1 : -1];
10951 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10952 char d[(bool) -0.5 == true ? 1 : -1];
10954 char f[(_Bool) -0.0 == false ? 1 : -1];
10956 char h[sizeof (_Bool)];
10957 char i[sizeof s.t];
10962 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10967 rm -f conftest.
$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try
='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_header_stdbool_h
=yes
10981 echo "$as_me: failed program was:" >&5
10982 cat conftest.
$ac_ext >&5
10983 ac_cv_header_stdbool_h
=no
10985 rm -f conftest.
$ac_objext conftest.
$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10988 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10989 if test $ac_cv_header_stdbool_h = yes; then
10991 cat >>confdefs.h
<<\_ACEOF
10992 #define HAVE_STDBOOL_H 1
10999 for ac_func
in getpagesize
11001 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_var+set}\" = set"; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 cat >conftest.
$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func (); below. */
11012 #include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error. */
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11038 rm -f conftest.
$ac_objext conftest
$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try
='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 eval "$as_ac_var=yes"
11052 echo "$as_me: failed program was:" >&5
11053 cat conftest.
$ac_ext >&5
11054 eval "$as_ac_var=no"
11056 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h
<<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 for ac_header
in OS.h unistd.h
11072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11074 echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11082 # Is the header compilable?
11083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11085 cat >conftest.
$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11087 #include "confdefs.h"
11088 $ac_includes_default
11089 #include <$ac_header>
11091 rm -f conftest.
$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try
='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_header_compiler
=yes
11105 echo "$as_me: failed program was:" >&5
11106 cat conftest.
$ac_ext >&5
11107 ac_header_compiler
=no
11109 rm -f conftest.
$ac_objext conftest.
$ac_ext
11110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11111 echo "${ECHO_T}$ac_header_compiler" >&6
11113 # Is the header present?
11114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11116 cat >conftest.
$ac_ext <<_ACEOF
11117 #line $LINENO "configure"
11118 #include "confdefs.h"
11119 #include <$ac_header>
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11124 grep -v '^ *+' conftest.er1
>conftest.err
11126 cat conftest.err
>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev
/null
; then
11129 if test -s conftest.err
; then
11130 ac_cpp_err
=$ac_c_preproc_warn_flag
11137 if test -z "$ac_cpp_err"; then
11138 ac_header_preproc
=yes
11140 echo "$as_me: failed program was:" >&5
11141 cat conftest.
$ac_ext >&5
11142 ac_header_preproc
=no
11144 rm -f conftest.err conftest.
$ac_ext
11145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11146 echo "${ECHO_T}$ac_header_preproc" >&6
11148 # So? What about this header?
11149 case $ac_header_compiler:$ac_header_preproc in
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11163 echo "$as_me:$LINENO: checking for $ac_header" >&5
11164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 eval "$as_ac_Header=$ac_header_preproc"
11170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175 cat >>confdefs.h
<<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11188 for ac_header
in locale.h stdlib.h string.h
11190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11192 echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11200 # Is the header compilable?
11201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11203 cat >conftest.
$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 #include "confdefs.h"
11206 $ac_includes_default
11207 #include <$ac_header>
11209 rm -f conftest.
$ac_objext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try
='test -s conftest.$ac_objext'
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 ac_header_compiler
=yes
11223 echo "$as_me: failed program was:" >&5
11224 cat conftest.
$ac_ext >&5
11225 ac_header_compiler
=no
11227 rm -f conftest.
$ac_objext conftest.
$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 echo "${ECHO_T}$ac_header_compiler" >&6
11231 # Is the header present?
11232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11234 cat >conftest.
$ac_ext <<_ACEOF
11235 #line $LINENO "configure"
11236 #include "confdefs.h"
11237 #include <$ac_header>
11239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11240 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11242 grep -v '^ *+' conftest.er1
>conftest.err
11244 cat conftest.err
>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } >/dev
/null
; then
11247 if test -s conftest.err
; then
11248 ac_cpp_err
=$ac_c_preproc_warn_flag
11255 if test -z "$ac_cpp_err"; then
11256 ac_header_preproc
=yes
11258 echo "$as_me: failed program was:" >&5
11259 cat conftest.
$ac_ext >&5
11260 ac_header_preproc
=no
11262 rm -f conftest.err conftest.
$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11264 echo "${ECHO_T}$ac_header_preproc" >&6
11266 # So? What about this header?
11267 case $ac_header_compiler:$ac_header_preproc in
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11281 echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 eval "$as_ac_Header=$ac_header_preproc"
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11293 cat >>confdefs.h
<<_ACEOF
11294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 for ac_func
in setlocale
11304 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_var+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 cat >conftest.
$ac_ext <<_ACEOF
11311 #line $LINENO "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func (); below. */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11328 /* The GNU C library defines this for functions which it implements
11329 to always fail with ENOSYS. Some functions are actually named
11330 something starting with __ and the normal name is an alias. */
11331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11341 rm -f conftest.
$ac_objext conftest
$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try
='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 eval "$as_ac_var=yes"
11355 echo "$as_me: failed program was:" >&5
11356 cat conftest.
$ac_ext >&5
11357 eval "$as_ac_var=no"
11359 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11363 if test `eval echo '${'$as_ac_var'}'` = yes; then
11364 cat >>confdefs.h
<<_ACEOF
11365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 echo "$as_me:$LINENO: checking for function prototypes" >&5
11374 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11375 if test "$am_cv_prog_cc_stdc" != no
; then
11376 echo "$as_me:$LINENO: result: yes" >&5
11377 echo "${ECHO_T}yes" >&6
11379 cat >>confdefs.h
<<\_ACEOF
11380 #define PROTOTYPES 1
11385 echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6
11387 U
=_ ANSI2KNR
=.
/ansi2knr
11389 # Ensure some checks needed by ansi2knr itself.
11390 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11391 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11392 if test "${ac_cv_header_stdc+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 cat >conftest.
$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 #include "confdefs.h"
11398 #include <stdlib.h>
11399 #include <stdarg.h>
11400 #include <string.h>
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1
>conftest.err
11409 cat conftest.err
>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } >/dev
/null
; then
11412 if test -s conftest.err
; then
11413 ac_cpp_err
=$ac_c_preproc_warn_flag
11420 if test -z "$ac_cpp_err"; then
11421 ac_cv_header_stdc
=yes
11423 echo "$as_me: failed program was:" >&5
11424 cat conftest.
$ac_ext >&5
11425 ac_cv_header_stdc
=no
11427 rm -f conftest.err conftest.
$ac_ext
11429 if test $ac_cv_header_stdc = yes; then
11430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11431 cat >conftest.
$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11433 #include "confdefs.h"
11434 #include <string.h>
11437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11438 $EGREP "memchr" >/dev
/null
2>&1; then
11441 ac_cv_header_stdc
=no
11447 if test $ac_cv_header_stdc = yes; then
11448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11449 cat >conftest.
$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11452 #include <stdlib.h>
11455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11456 $EGREP "free" >/dev
/null
2>&1; then
11459 ac_cv_header_stdc
=no
11465 if test $ac_cv_header_stdc = yes; then
11466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11467 if test "$cross_compiling" = yes; then
11470 cat >conftest.
$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11474 #if ((' ' & 0x0FF) == 0x020)
11475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11478 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11479 || ('j' <= (c) && (c) <= 'r') \
11480 || ('s' <= (c) && (c) <= 'z'))
11481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11489 for (i = 0; i < 256; i++)
11490 if (XOR (islower (i), ISLOWER (i))
11491 || toupper (i) != TOUPPER (i))
11496 rm -f conftest
$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11509 echo "$as_me: program exited with status $ac_status" >&5
11510 echo "$as_me: failed program was:" >&5
11511 cat conftest.
$ac_ext >&5
11512 ( exit $ac_status )
11513 ac_cv_header_stdc
=no
11515 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11520 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11521 if test $ac_cv_header_stdc = yes; then
11523 cat >>confdefs.h
<<\_ACEOF
11524 #define STDC_HEADERS 1
11530 for ac_header
in string.h
11532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11534 echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11542 # Is the header compilable?
11543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11545 cat >conftest.
$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11547 #include "confdefs.h"
11548 $ac_includes_default
11549 #include <$ac_header>
11551 rm -f conftest.
$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try
='test -s conftest.$ac_objext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 ac_header_compiler
=yes
11565 echo "$as_me: failed program was:" >&5
11566 cat conftest.
$ac_ext >&5
11567 ac_header_compiler
=no
11569 rm -f conftest.
$ac_objext conftest.
$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6
11573 # Is the header present?
11574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11576 cat >conftest.
$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11578 #include "confdefs.h"
11579 #include <$ac_header>
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11584 grep -v '^ *+' conftest.er1
>conftest.err
11586 cat conftest.err
>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev
/null
; then
11589 if test -s conftest.err
; then
11590 ac_cpp_err
=$ac_c_preproc_warn_flag
11597 if test -z "$ac_cpp_err"; then
11598 ac_header_preproc
=yes
11600 echo "$as_me: failed program was:" >&5
11601 cat conftest.
$ac_ext >&5
11602 ac_header_preproc
=no
11604 rm -f conftest.err conftest.
$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 echo "${ECHO_T}$ac_header_preproc" >&6
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc in
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11623 echo "$as_me:$LINENO: checking for $ac_header" >&5
11624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 eval "$as_ac_Header=$ac_header_preproc"
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11635 cat >>confdefs.h
<<_ACEOF
11636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 for ac_header
in stdlib.h
11649 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11651 echo "$as_me:$LINENO: checking for $ac_header" >&5
11652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11659 # Is the header compilable?
11660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11662 cat >conftest.
$ac_ext <<_ACEOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665 $ac_includes_default
11666 #include <$ac_header>
11668 rm -f conftest.
$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670 (eval $ac_compile) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try
='test -s conftest.$ac_objext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_header_compiler
=yes
11682 echo "$as_me: failed program was:" >&5
11683 cat conftest.
$ac_ext >&5
11684 ac_header_compiler
=no
11686 rm -f conftest.
$ac_objext conftest.
$ac_ext
11687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11688 echo "${ECHO_T}$ac_header_compiler" >&6
11690 # Is the header present?
11691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11693 cat >conftest.
$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11696 #include <$ac_header>
11698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11699 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11701 grep -v '^ *+' conftest.er1
>conftest.err
11703 cat conftest.err
>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } >/dev
/null
; then
11706 if test -s conftest.err
; then
11707 ac_cpp_err
=$ac_c_preproc_warn_flag
11714 if test -z "$ac_cpp_err"; then
11715 ac_header_preproc
=yes
11717 echo "$as_me: failed program was:" >&5
11718 cat conftest.
$ac_ext >&5
11719 ac_header_preproc
=no
11721 rm -f conftest.err conftest.
$ac_ext
11722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11723 echo "${ECHO_T}$ac_header_preproc" >&6
11725 # So? What about this header?
11726 case $ac_header_compiler:$ac_header_preproc in
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11740 echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 eval "$as_ac_Header=$ac_header_preproc"
11747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11752 cat >>confdefs.h
<<_ACEOF
11753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11760 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11761 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11762 if test "${ac_cv_header_stdbool_h+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cat >conftest.
$ac_ext <<_ACEOF
11766 #line $LINENO "configure"
11767 #include "confdefs.h"
11769 #include <stdbool.h>
11771 "error: bool is not defined"
11774 "error: false is not defined"
11777 "error: false is not 0"
11780 "error: false is not defined"
11783 "error: true is not 1"
11785 #ifndef __bool_true_false_are_defined
11786 "error: __bool_true_false_are_defined is not defined"
11789 struct s { _Bool s: 1; _Bool t; } s;
11791 char a[true == 1 ? 1 : -1];
11792 char b[false == 0 ? 1 : -1];
11793 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11794 char d[(bool) -0.5 == true ? 1 : -1];
11796 char f[(_Bool) -0.0 == false ? 1 : -1];
11798 char h[sizeof (_Bool)];
11799 char i[sizeof s.t];
11804 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11809 rm -f conftest.
$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try
='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_header_stdbool_h
=yes
11823 echo "$as_me: failed program was:" >&5
11824 cat conftest.
$ac_ext >&5
11825 ac_cv_header_stdbool_h
=no
11827 rm -f conftest.
$ac_objext conftest.
$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11830 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
11831 if test $ac_cv_header_stdbool_h = yes; then
11833 cat >>confdefs.h
<<\_ACEOF
11834 #define HAVE_STDBOOL_H 1
11844 for ac_header
in limits.h stdlib.h string.h
11846 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11848 echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11856 # Is the header compilable?
11857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11859 cat >conftest.
$ac_ext <<_ACEOF
11860 #line $LINENO "configure"
11861 #include "confdefs.h"
11862 $ac_includes_default
11863 #include <$ac_header>
11865 rm -f conftest.
$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try
='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_header_compiler
=yes
11879 echo "$as_me: failed program was:" >&5
11880 cat conftest.
$ac_ext >&5
11881 ac_header_compiler
=no
11883 rm -f conftest.
$ac_objext conftest.
$ac_ext
11884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11885 echo "${ECHO_T}$ac_header_compiler" >&6
11887 # Is the header present?
11888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11890 cat >conftest.
$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 #include "confdefs.h"
11893 #include <$ac_header>
11895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11896 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1
>conftest.err
11900 cat conftest.err
>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } >/dev
/null
; then
11903 if test -s conftest.err
; then
11904 ac_cpp_err
=$ac_c_preproc_warn_flag
11911 if test -z "$ac_cpp_err"; then
11912 ac_header_preproc
=yes
11914 echo "$as_me: failed program was:" >&5
11915 cat conftest.
$ac_ext >&5
11916 ac_header_preproc
=no
11918 rm -f conftest.err conftest.
$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 echo "${ECHO_T}$ac_header_preproc" >&6
11922 # So? What about this header?
11923 case $ac_header_compiler:$ac_header_preproc in
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11937 echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 eval "$as_ac_Header=$ac_header_preproc"
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11949 cat >>confdefs.h
<<_ACEOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11957 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11958 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11959 if test "${ac_cv_have_decl_getenv+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.
$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11964 #include "confdefs.h"
11965 $ac_includes_default
11970 char *p = (char *) getenv;
11977 rm -f conftest.
$ac_objext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979 (eval $ac_compile) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try
='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_have_decl_getenv
=yes
11991 echo "$as_me: failed program was:" >&5
11992 cat conftest.
$ac_ext >&5
11993 ac_cv_have_decl_getenv
=no
11995 rm -f conftest.
$ac_objext conftest.
$ac_ext
11997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11998 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11999 if test $ac_cv_have_decl_getenv = yes; then
12001 cat >>confdefs.h
<<_ACEOF
12002 #define HAVE_DECL_GETENV 1
12007 cat >>confdefs.h
<<_ACEOF
12008 #define HAVE_DECL_GETENV 0
12024 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
12026 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12028 echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12036 # Is the header compilable?
12037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12039 cat >conftest.
$ac_ext <<_ACEOF
12040 #line $LINENO "configure"
12041 #include "confdefs.h"
12042 $ac_includes_default
12043 #include <$ac_header>
12045 rm -f conftest.
$ac_objext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12047 (eval $ac_compile) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try
='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_header_compiler
=yes
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.
$ac_ext >&5
12061 ac_header_compiler
=no
12063 rm -f conftest.
$ac_objext conftest.
$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12065 echo "${ECHO_T}$ac_header_compiler" >&6
12067 # Is the header present?
12068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12070 cat >conftest.
$ac_ext <<_ACEOF
12071 #line $LINENO "configure"
12072 #include "confdefs.h"
12073 #include <$ac_header>
12075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12078 grep -v '^ *+' conftest.er1
>conftest.err
12080 cat conftest.err
>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev
/null
; then
12083 if test -s conftest.err
; then
12084 ac_cpp_err
=$ac_c_preproc_warn_flag
12091 if test -z "$ac_cpp_err"; then
12092 ac_header_preproc
=yes
12094 echo "$as_me: failed program was:" >&5
12095 cat conftest.
$ac_ext >&5
12096 ac_header_preproc
=no
12098 rm -f conftest.err conftest.
$ac_ext
12099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12100 echo "${ECHO_T}$ac_header_preproc" >&6
12102 # So? What about this header?
12103 case $ac_header_compiler:$ac_header_preproc in
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12117 echo "$as_me:$LINENO: checking for $ac_header" >&5
12118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 eval "$as_ac_Header=$ac_header_preproc"
12124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12129 cat >>confdefs.h
<<_ACEOF
12130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12142 for ac_func
in isascii iswcntrl iswprint mbsinit wcwidth
12144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145 echo "$as_me:$LINENO: checking for $ac_func" >&5
12146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12147 if eval "test \"\${$as_ac_var+set}\" = set"; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 cat >conftest.
$ac_ext <<_ACEOF
12151 #line $LINENO "configure"
12152 #include "confdefs.h"
12153 /* System header to define __stub macros and hopefully few prototypes,
12154 which can conflict with char $ac_func (); below. */
12155 #include <assert.h>
12156 /* Override any gcc2 internal prototype to avoid an error. */
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12168 /* The GNU C library defines this for functions which it implements
12169 to always fail with ENOSYS. Some functions are actually named
12170 something starting with __ and the normal name is an alias. */
12171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12181 rm -f conftest.
$ac_objext conftest
$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try
='test -s conftest$ac_exeext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 eval "$as_ac_var=yes"
12195 echo "$as_me: failed program was:" >&5
12196 cat conftest.
$ac_ext >&5
12197 eval "$as_ac_var=no"
12199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204 cat >>confdefs.h
<<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12212 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
12213 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
12214 if test "${jm_cv_func_mbrtowc+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 cat >conftest.
$ac_ext <<_ACEOF
12218 #line $LINENO "configure"
12219 #include "confdefs.h"
12224 mbstate_t state; return ! (sizeof state && mbrtowc);
12229 rm -f conftest.
$ac_objext conftest
$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try
='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 jm_cv_func_mbrtowc
=yes
12243 echo "$as_me: failed program was:" >&5
12244 cat conftest.
$ac_ext >&5
12245 jm_cv_func_mbrtowc
=no
12247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12249 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
12250 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
12251 if test $jm_cv_func_mbrtowc = yes; then
12253 cat >>confdefs.h
<<\_ACEOF
12254 #define HAVE_MBRTOWC 1
12260 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12261 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12262 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 cat >conftest.
$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 #include "confdefs.h"
12269 /* AIX 3.2.5 declares wcwidth in <string.h>. */
12271 # include <string.h>
12274 # include <wchar.h>
12282 char *p = (char *) wcwidth;
12289 rm -f conftest.
$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try
='test -s conftest.$ac_objext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_have_decl_wcwidth
=yes
12303 echo "$as_me: failed program was:" >&5
12304 cat conftest.
$ac_ext >&5
12305 ac_cv_have_decl_wcwidth
=no
12307 rm -f conftest.
$ac_objext conftest.
$ac_ext
12309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12310 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12311 if test $ac_cv_have_decl_wcwidth = yes; then
12317 cat >>confdefs.h
<<_ACEOF
12318 #define HAVE_DECL_WCWIDTH $ac_val
12322 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12323 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12324 if test "${ac_cv_type_mbstate_t+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 cat >conftest.
$ac_ext <<_ACEOF
12328 #line $LINENO "configure"
12329 #include "confdefs.h"
12330 $ac_includes_default
12331 # include <wchar.h>
12335 mbstate_t x; return sizeof x;
12340 rm -f conftest.
$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try
='test -s conftest.$ac_objext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_type_mbstate_t
=yes
12354 echo "$as_me: failed program was:" >&5
12355 cat conftest.
$ac_ext >&5
12356 ac_cv_type_mbstate_t
=no
12358 rm -f conftest.
$ac_objext conftest.
$ac_ext
12360 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12361 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12362 if test $ac_cv_type_mbstate_t = yes; then
12364 cat >>confdefs.h
<<\_ACEOF
12365 #define HAVE_MBSTATE_T 1
12370 cat >>confdefs.h
<<\_ACEOF
12371 #define mbstate_t int
12380 for ac_header
in limits.h stdlib.h bp-sym.h
12382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12384 echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12392 # Is the header compilable?
12393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12395 cat >conftest.
$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12398 $ac_includes_default
12399 #include <$ac_header>
12401 rm -f conftest.
$ac_objext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try
='test -s conftest.$ac_objext'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_header_compiler
=yes
12415 echo "$as_me: failed program was:" >&5
12416 cat conftest.
$ac_ext >&5
12417 ac_header_compiler
=no
12419 rm -f conftest.
$ac_objext conftest.
$ac_ext
12420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421 echo "${ECHO_T}$ac_header_compiler" >&6
12423 # Is the header present?
12424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426 cat >conftest.
$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 #include "confdefs.h"
12429 #include <$ac_header>
12431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12434 grep -v '^ *+' conftest.er1
>conftest.err
12436 cat conftest.err
>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } >/dev
/null
; then
12439 if test -s conftest.err
; then
12440 ac_cpp_err
=$ac_c_preproc_warn_flag
12447 if test -z "$ac_cpp_err"; then
12448 ac_header_preproc
=yes
12450 echo "$as_me: failed program was:" >&5
12451 cat conftest.
$ac_ext >&5
12452 ac_header_preproc
=no
12454 rm -f conftest.err conftest.
$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12456 echo "${ECHO_T}$ac_header_preproc" >&6
12458 # So? What about this header?
12459 case $ac_header_compiler:$ac_header_preproc in
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12473 echo "$as_me:$LINENO: checking for $ac_header" >&5
12474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 eval "$as_ac_Header=$ac_header_preproc"
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h
<<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12497 for ac_header
in sys
/pstat.h unistd.h
12499 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12501 echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12509 # Is the header compilable?
12510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12512 cat >conftest.
$ac_ext <<_ACEOF
12513 #line $LINENO "configure"
12514 #include "confdefs.h"
12515 $ac_includes_default
12516 #include <$ac_header>
12518 rm -f conftest.
$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try
='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_header_compiler
=yes
12532 echo "$as_me: failed program was:" >&5
12533 cat conftest.
$ac_ext >&5
12534 ac_header_compiler
=no
12536 rm -f conftest.
$ac_objext conftest.
$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12538 echo "${ECHO_T}$ac_header_compiler" >&6
12540 # Is the header present?
12541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12543 cat >conftest.
$ac_ext <<_ACEOF
12544 #line $LINENO "configure"
12545 #include "confdefs.h"
12546 #include <$ac_header>
12548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12549 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } >/dev
/null
; then
12556 if test -s conftest.err
; then
12557 ac_cpp_err
=$ac_c_preproc_warn_flag
12564 if test -z "$ac_cpp_err"; then
12565 ac_header_preproc
=yes
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.
$ac_ext >&5
12569 ac_header_preproc
=no
12571 rm -f conftest.err conftest.
$ac_ext
12572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6
12575 # So? What about this header?
12576 case $ac_header_compiler:$ac_header_preproc in
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12590 echo "$as_me:$LINENO: checking for $ac_header" >&5
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 eval "$as_ac_Header=$ac_header_preproc"
12597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12602 cat >>confdefs.h
<<_ACEOF
12603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 for ac_func
in pstat_getstatic pstat_getdynamic
12614 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12617 if eval "test \"\${$as_ac_var+set}\" = set"; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 cat >conftest.
$ac_ext <<_ACEOF
12621 #line $LINENO "configure"
12622 #include "confdefs.h"
12623 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $ac_func (); below. */
12625 #include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error. */
12630 /* We use char because int might match the return type of a gcc2
12631 builtin and then its argument prototype would still apply. */
12638 /* The GNU C library defines this for functions which it implements
12639 to always fail with ENOSYS. Some functions are actually named
12640 something starting with __ and the normal name is an alias. */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12651 rm -f conftest.
$ac_objext conftest
$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
12657 { ac_try
='test -s conftest$ac_exeext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 eval "$as_ac_var=yes"
12665 echo "$as_me: failed program was:" >&5
12666 cat conftest.
$ac_ext >&5
12667 eval "$as_ac_var=no"
12669 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674 cat >>confdefs.h
<<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12684 for ac_header
in unistd.h
12686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12688 echo "$as_me:$LINENO: checking for $ac_header" >&5
12689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12696 # Is the header compilable?
12697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12699 cat >conftest.
$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702 $ac_includes_default
12703 #include <$ac_header>
12705 rm -f conftest.
$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try
='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_header_compiler
=yes
12719 echo "$as_me: failed program was:" >&5
12720 cat conftest.
$ac_ext >&5
12721 ac_header_compiler
=no
12723 rm -f conftest.
$ac_objext conftest.
$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12725 echo "${ECHO_T}$ac_header_compiler" >&6
12727 # Is the header present?
12728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12730 cat >conftest.
$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 #include <$ac_header>
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev
/null
; then
12743 if test -s conftest.err
; then
12744 ac_cpp_err
=$ac_c_preproc_warn_flag
12751 if test -z "$ac_cpp_err"; then
12752 ac_header_preproc
=yes
12754 echo "$as_me: failed program was:" >&5
12755 cat conftest.
$ac_ext >&5
12756 ac_header_preproc
=no
12758 rm -f conftest.err conftest.
$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12760 echo "${ECHO_T}$ac_header_preproc" >&6
12762 # So? What about this header?
12763 case $ac_header_compiler:$ac_header_preproc in
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12777 echo "$as_me:$LINENO: checking for $ac_header" >&5
12778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 eval "$as_ac_Header=$ac_header_preproc"
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12789 cat >>confdefs.h
<<_ACEOF
12790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12797 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12798 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12799 if test "${ac_cv_have_decl_getenv+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.
$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 $ac_includes_default
12810 char *p = (char *) getenv;
12817 rm -f conftest.
$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try
='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_have_decl_getenv
=yes
12831 echo "$as_me: failed program was:" >&5
12832 cat conftest.
$ac_ext >&5
12833 ac_cv_have_decl_getenv
=no
12835 rm -f conftest.
$ac_objext conftest.
$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12838 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12839 if test $ac_cv_have_decl_getenv = yes; then
12841 cat >>confdefs.h
<<_ACEOF
12842 #define HAVE_DECL_GETENV 1
12847 cat >>confdefs.h
<<_ACEOF
12848 #define HAVE_DECL_GETENV 0
12859 for ac_func
in isascii iswprint
12861 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 echo "$as_me:$LINENO: checking for $ac_func" >&5
12863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_var+set}\" = set"; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 cat >conftest.
$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 #include "confdefs.h"
12870 /* System header to define __stub macros and hopefully few prototypes,
12871 which can conflict with char $ac_func (); below. */
12872 #include <assert.h>
12873 /* Override any gcc2 internal prototype to avoid an error. */
12877 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */
12885 /* The GNU C library defines this for functions which it implements
12886 to always fail with ENOSYS. Some functions are actually named
12887 something starting with __ and the normal name is an alias. */
12888 #if defined (__stub_$ac_func) || defined (__stub___$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 cat conftest.
$ac_ext >&5
12914 eval "$as_ac_var=no"
12916 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12920 if test `eval echo '${'$as_ac_var'}'` = yes; then
12921 cat >>confdefs.h
<<_ACEOF
12922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
12930 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
12931 if test "${jm_cv_func_mbrtowc+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 cat >conftest.
$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12941 mbstate_t state; return ! (sizeof state && mbrtowc);
12946 rm -f conftest.
$ac_objext conftest
$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try
='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 jm_cv_func_mbrtowc
=yes
12960 echo "$as_me: failed program was:" >&5
12961 cat conftest.
$ac_ext >&5
12962 jm_cv_func_mbrtowc
=no
12964 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12966 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
12967 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
12968 if test $jm_cv_func_mbrtowc = yes; then
12970 cat >>confdefs.h
<<\_ACEOF
12971 #define HAVE_MBRTOWC 1
12982 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
12984 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12986 echo "$as_me:$LINENO: checking for $ac_header" >&5
12987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12994 # Is the header compilable?
12995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12997 cat >conftest.
$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13000 $ac_includes_default
13001 #include <$ac_header>
13003 rm -f conftest.
$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try
='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_header_compiler
=yes
13017 echo "$as_me: failed program was:" >&5
13018 cat conftest.
$ac_ext >&5
13019 ac_header_compiler
=no
13021 rm -f conftest.
$ac_objext conftest.
$ac_ext
13022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023 echo "${ECHO_T}$ac_header_compiler" >&6
13025 # Is the header present?
13026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13028 cat >conftest.
$ac_ext <<_ACEOF
13029 #line $LINENO "configure"
13030 #include "confdefs.h"
13031 #include <$ac_header>
13033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1
>conftest.err
13038 cat conftest.err
>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } >/dev
/null
; then
13041 if test -s conftest.err
; then
13042 ac_cpp_err
=$ac_c_preproc_warn_flag
13049 if test -z "$ac_cpp_err"; then
13050 ac_header_preproc
=yes
13052 echo "$as_me: failed program was:" >&5
13053 cat conftest.
$ac_ext >&5
13054 ac_header_preproc
=no
13056 rm -f conftest.err conftest.
$ac_ext
13057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13058 echo "${ECHO_T}$ac_header_preproc" >&6
13060 # So? What about this header?
13061 case $ac_header_compiler:$ac_header_preproc in
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13075 echo "$as_me:$LINENO: checking for $ac_header" >&5
13076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 eval "$as_ac_Header=$ac_header_preproc"
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13087 cat >>confdefs.h
<<_ACEOF
13088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13095 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13097 if test "${ac_cv_header_stdc+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 cat >conftest.
$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13103 #include <stdlib.h>
13104 #include <stdarg.h>
13105 #include <string.h>
13109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13112 grep -v '^ *+' conftest.er1
>conftest.err
13114 cat conftest.err
>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } >/dev
/null
; then
13117 if test -s conftest.err
; then
13118 ac_cpp_err
=$ac_c_preproc_warn_flag
13125 if test -z "$ac_cpp_err"; then
13126 ac_cv_header_stdc
=yes
13128 echo "$as_me: failed program was:" >&5
13129 cat conftest.
$ac_ext >&5
13130 ac_cv_header_stdc
=no
13132 rm -f conftest.err conftest.
$ac_ext
13134 if test $ac_cv_header_stdc = yes; then
13135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13136 cat >conftest.
$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 #include "confdefs.h"
13139 #include <string.h>
13142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13143 $EGREP "memchr" >/dev
/null
2>&1; then
13146 ac_cv_header_stdc
=no
13152 if test $ac_cv_header_stdc = yes; then
13153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13154 cat >conftest.
$ac_ext <<_ACEOF
13155 #line $LINENO "configure"
13156 #include "confdefs.h"
13157 #include <stdlib.h>
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "free" >/dev
/null
2>&1; then
13164 ac_cv_header_stdc
=no
13170 if test $ac_cv_header_stdc = yes; then
13171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13172 if test "$cross_compiling" = yes; then
13175 cat >conftest.
$ac_ext <<_ACEOF
13176 #line $LINENO "configure"
13177 #include "confdefs.h"
13179 #if ((' ' & 0x0FF) == 0x020)
13180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13183 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13184 || ('j' <= (c) && (c) <= 'r') \
13185 || ('s' <= (c) && (c) <= 'z'))
13186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13194 for (i = 0; i < 256; i++)
13195 if (XOR (islower (i), ISLOWER (i))
13196 || toupper (i) != TOUPPER (i))
13201 rm -f conftest
$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13214 echo "$as_me: program exited with status $ac_status" >&5
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.
$ac_ext >&5
13217 ( exit $ac_status )
13218 ac_cv_header_stdc
=no
13220 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13226 if test $ac_cv_header_stdc = yes; then
13228 cat >>confdefs.h
<<\_ACEOF
13229 #define STDC_HEADERS 1
13235 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
13236 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
13237 if test "${ac_cv_c_backslash_a+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 cat >conftest.
$ac_ext <<_ACEOF
13241 #line $LINENO "configure"
13242 #include "confdefs.h"
13251 char buf['\a' == 'a' ? -1 : 1];
13253 return buf[0] != "\a"[0];
13259 rm -f conftest.
$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try
='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_cv_c_backslash_a
=yes
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.
$ac_ext >&5
13275 ac_cv_c_backslash_a
=no
13277 rm -f conftest.
$ac_objext conftest.
$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
13280 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
13281 if test $ac_cv_c_backslash_a = yes; then
13283 cat >>confdefs.h
<<\_ACEOF
13284 #define HAVE_C_BACKSLASH_A 1
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"
13296 #include "confdefs.h"
13297 $ac_includes_default
13298 # include <wchar.h>
13302 mbstate_t x; return sizeof x;
13307 rm -f conftest.
$ac_objext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try
='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_type_mbstate_t
=yes
13321 echo "$as_me: failed program was:" >&5
13322 cat conftest.
$ac_ext >&5
13323 ac_cv_type_mbstate_t
=no
13325 rm -f conftest.
$ac_objext conftest.
$ac_ext
13327 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13328 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13329 if test $ac_cv_type_mbstate_t = yes; then
13331 cat >>confdefs.h
<<\_ACEOF
13332 #define HAVE_MBSTATE_T 1
13337 cat >>confdefs.h
<<\_ACEOF
13338 #define mbstate_t int
13344 echo "$as_me:$LINENO: checking for function prototypes" >&5
13345 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
13346 if test "$am_cv_prog_cc_stdc" != no
; then
13347 echo "$as_me:$LINENO: result: yes" >&5
13348 echo "${ECHO_T}yes" >&6
13350 cat >>confdefs.h
<<\_ACEOF
13351 #define PROTOTYPES 1
13356 echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6
13358 U
=_ ANSI2KNR
=.
/ansi2knr
13360 # Ensure some checks needed by ansi2knr itself.
13361 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13363 if test "${ac_cv_header_stdc+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.
$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 #include "confdefs.h"
13369 #include <stdlib.h>
13370 #include <stdarg.h>
13371 #include <string.h>
13375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1
>conftest.err
13380 cat conftest.err
>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev
/null
; then
13383 if test -s conftest.err
; then
13384 ac_cpp_err
=$ac_c_preproc_warn_flag
13391 if test -z "$ac_cpp_err"; then
13392 ac_cv_header_stdc
=yes
13394 echo "$as_me: failed program was:" >&5
13395 cat conftest.
$ac_ext >&5
13396 ac_cv_header_stdc
=no
13398 rm -f conftest.err conftest.
$ac_ext
13400 if test $ac_cv_header_stdc = yes; then
13401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13402 cat >conftest.
$ac_ext <<_ACEOF
13403 #line $LINENO "configure"
13404 #include "confdefs.h"
13405 #include <string.h>
13408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13409 $EGREP "memchr" >/dev
/null
2>&1; then
13412 ac_cv_header_stdc
=no
13418 if test $ac_cv_header_stdc = yes; then
13419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13420 cat >conftest.
$ac_ext <<_ACEOF
13421 #line $LINENO "configure"
13422 #include "confdefs.h"
13423 #include <stdlib.h>
13426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 $EGREP "free" >/dev
/null
2>&1; then
13430 ac_cv_header_stdc
=no
13436 if test $ac_cv_header_stdc = yes; then
13437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13438 if test "$cross_compiling" = yes; then
13441 cat >conftest.
$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 #include "confdefs.h"
13445 #if ((' ' & 0x0FF) == 0x020)
13446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13449 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13450 || ('j' <= (c) && (c) <= 'r') \
13451 || ('s' <= (c) && (c) <= 'z'))
13452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13460 for (i = 0; i < 256; i++)
13461 if (XOR (islower (i), ISLOWER (i))
13462 || toupper (i) != TOUPPER (i))
13467 rm -f conftest
$ac_exeext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13469 (eval $ac_link) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13480 echo "$as_me: program exited with status $ac_status" >&5
13481 echo "$as_me: failed program was:" >&5
13482 cat conftest.
$ac_ext >&5
13483 ( exit $ac_status )
13484 ac_cv_header_stdc
=no
13486 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13491 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13492 if test $ac_cv_header_stdc = yes; then
13494 cat >>confdefs.h
<<\_ACEOF
13495 #define STDC_HEADERS 1
13501 for ac_header
in string.h
13503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13505 echo "$as_me:$LINENO: checking for $ac_header" >&5
13506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13513 # Is the header compilable?
13514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13516 cat >conftest.
$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 #include "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 cat conftest.
$ac_ext >&5
13538 ac_header_compiler
=no
13540 rm -f conftest.
$ac_objext conftest.
$ac_ext
13541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 echo "${ECHO_T}$ac_header_compiler" >&6
13544 # Is the header present?
13545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13547 cat >conftest.
$ac_ext <<_ACEOF
13548 #line $LINENO "configure"
13549 #include "confdefs.h"
13550 #include <$ac_header>
13552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1
>conftest.err
13557 cat conftest.err
>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } >/dev
/null
; then
13560 if test -s conftest.err
; then
13561 ac_cpp_err
=$ac_c_preproc_warn_flag
13568 if test -z "$ac_cpp_err"; then
13569 ac_header_preproc
=yes
13571 echo "$as_me: failed program was:" >&5
13572 cat conftest.
$ac_ext >&5
13573 ac_header_preproc
=no
13575 rm -f conftest.err conftest.
$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13577 echo "${ECHO_T}$ac_header_preproc" >&6
13579 # So? What about this header?
13580 case $ac_header_compiler:$ac_header_preproc in
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13594 echo "$as_me:$LINENO: checking for $ac_header" >&5
13595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 eval "$as_ac_Header=$ac_header_preproc"
13601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13606 cat >>confdefs.h
<<_ACEOF
13607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13617 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13619 if test "${ac_cv_header_stdc+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 cat >conftest.
$ac_ext <<_ACEOF
13623 #line $LINENO "configure"
13624 #include "confdefs.h"
13625 #include <stdlib.h>
13626 #include <stdarg.h>
13627 #include <string.h>
13631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13634 grep -v '^ *+' conftest.er1
>conftest.err
13636 cat conftest.err
>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev
/null
; then
13639 if test -s conftest.err
; then
13640 ac_cpp_err
=$ac_c_preproc_warn_flag
13647 if test -z "$ac_cpp_err"; then
13648 ac_cv_header_stdc
=yes
13650 echo "$as_me: failed program was:" >&5
13651 cat conftest.
$ac_ext >&5
13652 ac_cv_header_stdc
=no
13654 rm -f conftest.err conftest.
$ac_ext
13656 if test $ac_cv_header_stdc = yes; then
13657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658 cat >conftest.
$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 #include <string.h>
13664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13665 $EGREP "memchr" >/dev
/null
2>&1; then
13668 ac_cv_header_stdc
=no
13674 if test $ac_cv_header_stdc = yes; then
13675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13676 cat >conftest.
$ac_ext <<_ACEOF
13677 #line $LINENO "configure"
13678 #include "confdefs.h"
13679 #include <stdlib.h>
13682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13683 $EGREP "free" >/dev
/null
2>&1; then
13686 ac_cv_header_stdc
=no
13692 if test $ac_cv_header_stdc = yes; then
13693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13694 if test "$cross_compiling" = yes; then
13697 cat >conftest.
$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13699 #include "confdefs.h"
13701 #if ((' ' & 0x0FF) == 0x020)
13702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13705 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13706 || ('j' <= (c) && (c) <= 'r') \
13707 || ('s' <= (c) && (c) <= 'z'))
13708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13716 for (i = 0; i < 256; i++)
13717 if (XOR (islower (i), ISLOWER (i))
13718 || toupper (i) != TOUPPER (i))
13723 rm -f conftest
$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13736 echo "$as_me: program exited with status $ac_status" >&5
13737 echo "$as_me: failed program was:" >&5
13738 cat conftest.
$ac_ext >&5
13739 ( exit $ac_status )
13740 ac_cv_header_stdc
=no
13742 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13748 if test $ac_cv_header_stdc = yes; then
13750 cat >>confdefs.h
<<\_ACEOF
13751 #define STDC_HEADERS 1
13760 for ac_header
in string.h utmp.h utmpx.h sys
/param.h
13762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13764 echo "$as_me:$LINENO: checking for $ac_header" >&5
13765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13772 # Is the header compilable?
13773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13775 cat >conftest.
$ac_ext <<_ACEOF
13776 #line $LINENO "configure"
13777 #include "confdefs.h"
13778 $ac_includes_default
13779 #include <$ac_header>
13781 rm -f conftest.
$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try
='test -s conftest.$ac_objext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 ac_header_compiler
=yes
13795 echo "$as_me: failed program was:" >&5
13796 cat conftest.
$ac_ext >&5
13797 ac_header_compiler
=no
13799 rm -f conftest.
$ac_objext conftest.
$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13801 echo "${ECHO_T}$ac_header_compiler" >&6
13803 # Is the header present?
13804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13806 cat >conftest.
$ac_ext <<_ACEOF
13807 #line $LINENO "configure"
13808 #include "confdefs.h"
13809 #include <$ac_header>
13811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13814 grep -v '^ *+' conftest.er1
>conftest.err
13816 cat conftest.err
>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev
/null
; then
13819 if test -s conftest.err
; then
13820 ac_cpp_err
=$ac_c_preproc_warn_flag
13827 if test -z "$ac_cpp_err"; then
13828 ac_header_preproc
=yes
13830 echo "$as_me: failed program was:" >&5
13831 cat conftest.
$ac_ext >&5
13832 ac_header_preproc
=no
13834 rm -f conftest.err conftest.
$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 echo "${ECHO_T}$ac_header_preproc" >&6
13838 # So? What about this header?
13839 case $ac_header_compiler:$ac_header_preproc in
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 eval "$as_ac_Header=$ac_header_preproc"
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865 cat >>confdefs.h
<<_ACEOF
13866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13874 for ac_func
in utmpname
13876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13877 echo "$as_me:$LINENO: checking for $ac_func" >&5
13878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13879 if eval "test \"\${$as_ac_var+set}\" = set"; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 cat >conftest.
$ac_ext <<_ACEOF
13883 #line $LINENO "configure"
13884 #include "confdefs.h"
13885 /* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char $ac_func (); below. */
13887 #include <assert.h>
13888 /* Override any gcc2 internal prototype to avoid an error. */
13892 /* We use char because int might match the return type of a gcc2
13893 builtin and then its argument prototype would still apply. */
13900 /* The GNU C library defines this for functions which it implements
13901 to always fail with ENOSYS. Some functions are actually named
13902 something starting with __ and the normal name is an alias. */
13903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13913 rm -f conftest.
$ac_objext conftest
$ac_exeext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try
='test -s conftest$ac_exeext'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 eval "$as_ac_var=yes"
13927 echo "$as_me: failed program was:" >&5
13928 cat conftest.
$ac_ext >&5
13929 eval "$as_ac_var=no"
13931 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13935 if test `eval echo '${'$as_ac_var'}'` = yes; then
13936 cat >>confdefs.h
<<_ACEOF
13937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13944 for ac_func
in utmpxname
13946 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13947 echo "$as_me:$LINENO: checking for $ac_func" >&5
13948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13949 if eval "test \"\${$as_ac_var+set}\" = set"; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 cat >conftest.
$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 #include "confdefs.h"
13955 /* System header to define __stub macros and hopefully few prototypes,
13956 which can conflict with char $ac_func (); below. */
13957 #include <assert.h>
13958 /* Override any gcc2 internal prototype to avoid an error. */
13962 /* We use char because int might match the return type of a gcc2
13963 builtin and then its argument prototype would still apply. */
13970 /* The GNU C library defines this for functions which it implements
13971 to always fail with ENOSYS. Some functions are actually named
13972 something starting with __ and the normal name is an alias. */
13973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13983 rm -f conftest.
$ac_objext conftest
$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try
='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 eval "$as_ac_var=yes"
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.
$ac_ext >&5
13999 eval "$as_ac_var=no"
14001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006 cat >>confdefs.h
<<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14015 echo "$as_me:$LINENO: checking for function prototypes" >&5
14016 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
14017 if test "$am_cv_prog_cc_stdc" != no
; then
14018 echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6
14021 cat >>confdefs.h
<<\_ACEOF
14022 #define PROTOTYPES 1
14027 echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6
14029 U
=_ ANSI2KNR
=.
/ansi2knr
14031 # Ensure some checks needed by ansi2knr itself.
14032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14034 if test "${ac_cv_header_stdc+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 cat >conftest.
$ac_ext <<_ACEOF
14038 #line $LINENO "configure"
14039 #include "confdefs.h"
14040 #include <stdlib.h>
14041 #include <stdarg.h>
14042 #include <string.h>
14046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14047 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14049 grep -v '^ *+' conftest.er1
>conftest.err
14051 cat conftest.err
>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } >/dev
/null
; then
14054 if test -s conftest.err
; then
14055 ac_cpp_err
=$ac_c_preproc_warn_flag
14062 if test -z "$ac_cpp_err"; then
14063 ac_cv_header_stdc
=yes
14065 echo "$as_me: failed program was:" >&5
14066 cat conftest.
$ac_ext >&5
14067 ac_cv_header_stdc
=no
14069 rm -f conftest.err conftest.
$ac_ext
14071 if test $ac_cv_header_stdc = yes; then
14072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14073 cat >conftest.
$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14075 #include "confdefs.h"
14076 #include <string.h>
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "memchr" >/dev
/null
2>&1; then
14083 ac_cv_header_stdc
=no
14089 if test $ac_cv_header_stdc = yes; then
14090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091 cat >conftest.
$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 #include "confdefs.h"
14094 #include <stdlib.h>
14097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14098 $EGREP "free" >/dev
/null
2>&1; then
14101 ac_cv_header_stdc
=no
14107 if test $ac_cv_header_stdc = yes; then
14108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14109 if test "$cross_compiling" = yes; then
14112 cat >conftest.
$ac_ext <<_ACEOF
14113 #line $LINENO "configure"
14114 #include "confdefs.h"
14116 #if ((' ' & 0x0FF) == 0x020)
14117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14120 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14121 || ('j' <= (c) && (c) <= 'r') \
14122 || ('s' <= (c) && (c) <= 'z'))
14123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14131 for (i = 0; i < 256; i++)
14132 if (XOR (islower (i), ISLOWER (i))
14133 || toupper (i) != TOUPPER (i))
14138 rm -f conftest
$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14151 echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 cat conftest.
$ac_ext >&5
14154 ( exit $ac_status )
14155 ac_cv_header_stdc
=no
14157 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14161 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14162 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14163 if test $ac_cv_header_stdc = yes; then
14165 cat >>confdefs.h
<<\_ACEOF
14166 #define STDC_HEADERS 1
14172 for ac_header
in string.h
14174 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14176 echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14184 # Is the header compilable?
14185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14187 cat >conftest.
$ac_ext <<_ACEOF
14188 #line $LINENO "configure"
14189 #include "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 cat conftest.
$ac_ext >&5
14209 ac_header_compiler
=no
14211 rm -f conftest.
$ac_objext conftest.
$ac_ext
14212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14213 echo "${ECHO_T}$ac_header_compiler" >&6
14215 # Is the header present?
14216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14218 cat >conftest.
$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 #include "confdefs.h"
14221 #include <$ac_header>
14223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14226 grep -v '^ *+' conftest.er1
>conftest.err
14228 cat conftest.err
>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } >/dev
/null
; then
14231 if test -s conftest.err
; then
14232 ac_cpp_err
=$ac_c_preproc_warn_flag
14239 if test -z "$ac_cpp_err"; then
14240 ac_header_preproc
=yes
14242 echo "$as_me: failed program was:" >&5
14243 cat conftest.
$ac_ext >&5
14244 ac_header_preproc
=no
14246 rm -f conftest.err conftest.
$ac_ext
14247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 echo "${ECHO_T}$ac_header_preproc" >&6
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc in
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14265 echo "$as_me:$LINENO: checking for $ac_header" >&5
14266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 eval "$as_ac_Header=$ac_header_preproc"
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14277 cat >>confdefs.h
<<_ACEOF
14278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14287 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
14289 $ac_includes_default
14290 #ifdef HAVE_UTMPX_H
14291 # include <utmpx.h>
14297 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
14298 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
14299 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 cat >conftest.
$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 #include "confdefs.h"
14310 static struct utmpx ac_aggr;
14311 if (ac_aggr.ut_user)
14317 rm -f conftest.
$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try
='test -s conftest.$ac_objext'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_member_struct_utmpx_ut_user
=yes
14331 echo "$as_me: failed program was:" >&5
14332 cat conftest.
$ac_ext >&5
14333 cat >conftest.
$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14335 #include "confdefs.h"
14341 static struct utmpx ac_aggr;
14342 if (sizeof ac_aggr.ut_user)
14348 rm -f conftest.
$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350 (eval $ac_compile) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try
='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_member_struct_utmpx_ut_user
=yes
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.
$ac_ext >&5
14364 ac_cv_member_struct_utmpx_ut_user
=no
14366 rm -f conftest.
$ac_objext conftest.
$ac_ext
14368 rm -f conftest.
$ac_objext conftest.
$ac_ext
14370 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
14371 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
14372 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
14374 cat >>confdefs.h
<<_ACEOF
14375 #define HAVE_STRUCT_UTMPX_UT_USER 1
14381 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
14382 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
14383 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.
$ac_ext <<_ACEOF
14387 #line $LINENO "configure"
14388 #include "confdefs.h"
14394 static struct utmp ac_aggr;
14395 if (ac_aggr.ut_user)
14401 rm -f conftest.
$ac_objext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14403 (eval $ac_compile) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try
='test -s conftest.$ac_objext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_cv_member_struct_utmp_ut_user
=yes
14415 echo "$as_me: failed program was:" >&5
14416 cat conftest.
$ac_ext >&5
14417 cat >conftest.
$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14419 #include "confdefs.h"
14425 static struct utmp ac_aggr;
14426 if (sizeof ac_aggr.ut_user)
14432 rm -f conftest.
$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try
='test -s conftest.$ac_objext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 ac_cv_member_struct_utmp_ut_user
=yes
14446 echo "$as_me: failed program was:" >&5
14447 cat conftest.
$ac_ext >&5
14448 ac_cv_member_struct_utmp_ut_user
=no
14450 rm -f conftest.
$ac_objext conftest.
$ac_ext
14452 rm -f conftest.
$ac_objext conftest.
$ac_ext
14454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
14455 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
14456 if test $ac_cv_member_struct_utmp_ut_user = yes; then
14458 cat >>confdefs.h
<<_ACEOF
14459 #define HAVE_STRUCT_UTMP_UT_USER 1
14465 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
14466 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
14467 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 cat >conftest.
$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 #include "confdefs.h"
14478 static struct utmpx ac_aggr;
14479 if (ac_aggr.ut_name)
14485 rm -f conftest.
$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try
='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_member_struct_utmpx_ut_name
=yes
14499 echo "$as_me: failed program was:" >&5
14500 cat conftest.
$ac_ext >&5
14501 cat >conftest.
$ac_ext <<_ACEOF
14502 #line $LINENO "configure"
14503 #include "confdefs.h"
14509 static struct utmpx ac_aggr;
14510 if (sizeof ac_aggr.ut_name)
14516 rm -f conftest.
$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try
='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_member_struct_utmpx_ut_name
=yes
14530 echo "$as_me: failed program was:" >&5
14531 cat conftest.
$ac_ext >&5
14532 ac_cv_member_struct_utmpx_ut_name
=no
14534 rm -f conftest.
$ac_objext conftest.
$ac_ext
14536 rm -f conftest.
$ac_objext conftest.
$ac_ext
14538 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
14539 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
14540 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
14542 cat >>confdefs.h
<<_ACEOF
14543 #define HAVE_STRUCT_UTMPX_UT_NAME 1
14549 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
14550 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
14551 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.
$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14562 static struct utmp ac_aggr;
14563 if (ac_aggr.ut_name)
14569 rm -f conftest.
$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try
='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_member_struct_utmp_ut_name
=yes
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.
$ac_ext >&5
14585 cat >conftest.
$ac_ext <<_ACEOF
14586 #line $LINENO "configure"
14587 #include "confdefs.h"
14593 static struct utmp ac_aggr;
14594 if (sizeof ac_aggr.ut_name)
14600 rm -f conftest.
$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try
='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_cv_member_struct_utmp_ut_name
=yes
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.
$ac_ext >&5
14616 ac_cv_member_struct_utmp_ut_name
=no
14618 rm -f conftest.
$ac_objext conftest.
$ac_ext
14620 rm -f conftest.
$ac_objext conftest.
$ac_ext
14622 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
14623 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
14624 if test $ac_cv_member_struct_utmp_ut_name = yes; then
14626 cat >>confdefs.h
<<_ACEOF
14627 #define HAVE_STRUCT_UTMP_UT_NAME 1
14633 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
14634 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
14635 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 cat >conftest.
$ac_ext <<_ACEOF
14639 #line $LINENO "configure"
14640 #include "confdefs.h"
14646 static struct utmpx ac_aggr;
14647 if (ac_aggr.ut_type)
14653 rm -f conftest.
$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655 (eval $ac_compile) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try
='test -s conftest.$ac_objext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_member_struct_utmpx_ut_type
=yes
14667 echo "$as_me: failed program was:" >&5
14668 cat conftest.
$ac_ext >&5
14669 cat >conftest.
$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 #include "confdefs.h"
14677 static struct utmpx ac_aggr;
14678 if (sizeof ac_aggr.ut_type)
14684 rm -f conftest.
$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try
='test -s conftest.$ac_objext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_member_struct_utmpx_ut_type
=yes
14698 echo "$as_me: failed program was:" >&5
14699 cat conftest.
$ac_ext >&5
14700 ac_cv_member_struct_utmpx_ut_type
=no
14702 rm -f conftest.
$ac_objext conftest.
$ac_ext
14704 rm -f conftest.
$ac_objext conftest.
$ac_ext
14706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
14707 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
14708 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
14710 cat >>confdefs.h
<<_ACEOF
14711 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
14717 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
14718 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
14719 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 cat >conftest.
$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14724 #include "confdefs.h"
14730 static struct utmp ac_aggr;
14731 if (ac_aggr.ut_type)
14737 rm -f conftest.
$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try
='test -s conftest.$ac_objext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_cv_member_struct_utmp_ut_type
=yes
14751 echo "$as_me: failed program was:" >&5
14752 cat conftest.
$ac_ext >&5
14753 cat >conftest.
$ac_ext <<_ACEOF
14754 #line $LINENO "configure"
14755 #include "confdefs.h"
14761 static struct utmp ac_aggr;
14762 if (sizeof ac_aggr.ut_type)
14768 rm -f conftest.
$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770 (eval $ac_compile) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try
='test -s conftest.$ac_objext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_member_struct_utmp_ut_type
=yes
14782 echo "$as_me: failed program was:" >&5
14783 cat conftest.
$ac_ext >&5
14784 ac_cv_member_struct_utmp_ut_type
=no
14786 rm -f conftest.
$ac_objext conftest.
$ac_ext
14788 rm -f conftest.
$ac_objext conftest.
$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
14791 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
14792 if test $ac_cv_member_struct_utmp_ut_type = yes; then
14794 cat >>confdefs.h
<<_ACEOF
14795 #define HAVE_STRUCT_UTMP_UT_TYPE 1
14801 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
14802 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
14803 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 cat >conftest.
$ac_ext <<_ACEOF
14807 #line $LINENO "configure"
14808 #include "confdefs.h"
14814 static struct utmpx ac_aggr;
14815 if (ac_aggr.ut_pid)
14821 rm -f conftest.
$ac_objext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823 (eval $ac_compile) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try
='test -s conftest.$ac_objext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_member_struct_utmpx_ut_pid
=yes
14835 echo "$as_me: failed program was:" >&5
14836 cat conftest.
$ac_ext >&5
14837 cat >conftest.
$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14839 #include "confdefs.h"
14845 static struct utmpx ac_aggr;
14846 if (sizeof ac_aggr.ut_pid)
14852 rm -f conftest.
$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try
='test -s conftest.$ac_objext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_member_struct_utmpx_ut_pid
=yes
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.
$ac_ext >&5
14868 ac_cv_member_struct_utmpx_ut_pid
=no
14870 rm -f conftest.
$ac_objext conftest.
$ac_ext
14872 rm -f conftest.
$ac_objext conftest.
$ac_ext
14874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
14875 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
14876 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
14878 cat >>confdefs.h
<<_ACEOF
14879 #define HAVE_STRUCT_UTMPX_UT_PID 1
14885 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
14886 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
14887 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 cat >conftest.
$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14898 static struct utmp ac_aggr;
14899 if (ac_aggr.ut_pid)
14905 rm -f conftest.
$ac_objext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907 (eval $ac_compile) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try
='test -s conftest.$ac_objext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_member_struct_utmp_ut_pid
=yes
14919 echo "$as_me: failed program was:" >&5
14920 cat conftest.
$ac_ext >&5
14921 cat >conftest.
$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14923 #include "confdefs.h"
14929 static struct utmp ac_aggr;
14930 if (sizeof ac_aggr.ut_pid)
14936 rm -f conftest.
$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -s conftest.$ac_objext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_cv_member_struct_utmp_ut_pid
=yes
14950 echo "$as_me: failed program was:" >&5
14951 cat conftest.
$ac_ext >&5
14952 ac_cv_member_struct_utmp_ut_pid
=no
14954 rm -f conftest.
$ac_objext conftest.
$ac_ext
14956 rm -f conftest.
$ac_objext conftest.
$ac_ext
14958 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
14959 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
14960 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
14962 cat >>confdefs.h
<<_ACEOF
14963 #define HAVE_STRUCT_UTMP_UT_PID 1
14969 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
14970 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
14971 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 cat >conftest.
$ac_ext <<_ACEOF
14975 #line $LINENO "configure"
14976 #include "confdefs.h"
14982 static struct utmpx ac_aggr;
14989 rm -f conftest.
$ac_objext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14991 (eval $ac_compile) 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try
='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001 ac_cv_member_struct_utmpx_ut_id
=yes
15003 echo "$as_me: failed program was:" >&5
15004 cat conftest.
$ac_ext >&5
15005 cat >conftest.
$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15013 static struct utmpx ac_aggr;
15014 if (sizeof ac_aggr.ut_id)
15020 rm -f conftest.
$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try
='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_member_struct_utmpx_ut_id
=yes
15034 echo "$as_me: failed program was:" >&5
15035 cat conftest.
$ac_ext >&5
15036 ac_cv_member_struct_utmpx_ut_id
=no
15038 rm -f conftest.
$ac_objext conftest.
$ac_ext
15040 rm -f conftest.
$ac_objext conftest.
$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
15043 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
15044 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
15046 cat >>confdefs.h
<<_ACEOF
15047 #define HAVE_STRUCT_UTMPX_UT_ID 1
15053 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
15054 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
15055 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.
$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 #include "confdefs.h"
15066 static struct utmp ac_aggr;
15073 rm -f conftest.
$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try
='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_cv_member_struct_utmp_ut_id
=yes
15087 echo "$as_me: failed program was:" >&5
15088 cat conftest.
$ac_ext >&5
15089 cat >conftest.
$ac_ext <<_ACEOF
15090 #line $LINENO "configure"
15091 #include "confdefs.h"
15097 static struct utmp ac_aggr;
15098 if (sizeof ac_aggr.ut_id)
15104 rm -f conftest.
$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106 (eval $ac_compile) 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } &&
15110 { ac_try
='test -s conftest.$ac_objext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_member_struct_utmp_ut_id
=yes
15118 echo "$as_me: failed program was:" >&5
15119 cat conftest.
$ac_ext >&5
15120 ac_cv_member_struct_utmp_ut_id
=no
15122 rm -f conftest.
$ac_objext conftest.
$ac_ext
15124 rm -f conftest.
$ac_objext conftest.
$ac_ext
15126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
15127 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
15128 if test $ac_cv_member_struct_utmp_ut_id = yes; then
15130 cat >>confdefs.h
<<_ACEOF
15131 #define HAVE_STRUCT_UTMP_UT_ID 1
15138 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
15139 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
15140 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 cat >conftest.
$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 #include "confdefs.h"
15151 static struct utmpx ac_aggr;
15152 if (ac_aggr.ut_exit.ut_exit)
15158 rm -f conftest.
$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try
='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
15172 echo "$as_me: failed program was:" >&5
15173 cat conftest.
$ac_ext >&5
15174 cat >conftest.
$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 #include "confdefs.h"
15182 static struct utmpx ac_aggr;
15183 if (sizeof ac_aggr.ut_exit.ut_exit)
15189 rm -f conftest.
$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191 (eval $ac_compile) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try
='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=yes
15203 echo "$as_me: failed program was:" >&5
15204 cat conftest.
$ac_ext >&5
15205 ac_cv_member_struct_utmpx_ut_exit_ut_exit
=no
15207 rm -f conftest.
$ac_objext conftest.
$ac_ext
15209 rm -f conftest.
$ac_objext conftest.
$ac_ext
15211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
15212 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
15213 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
15215 cat >>confdefs.h
<<_ACEOF
15216 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
15222 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
15223 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
15224 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 cat >conftest.
$ac_ext <<_ACEOF
15228 #line $LINENO "configure"
15229 #include "confdefs.h"
15235 static struct utmp ac_aggr;
15236 if (ac_aggr.ut_exit.ut_exit)
15242 rm -f conftest.
$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try
='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
15256 echo "$as_me: failed program was:" >&5
15257 cat conftest.
$ac_ext >&5
15258 cat >conftest.
$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 #include "confdefs.h"
15266 static struct utmp ac_aggr;
15267 if (sizeof ac_aggr.ut_exit.ut_exit)
15273 rm -f conftest.
$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275 (eval $ac_compile) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try
='test -s conftest.$ac_objext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_cv_member_struct_utmp_ut_exit_ut_exit
=yes
15287 echo "$as_me: failed program was:" >&5
15288 cat conftest.
$ac_ext >&5
15289 ac_cv_member_struct_utmp_ut_exit_ut_exit
=no
15291 rm -f conftest.
$ac_objext conftest.
$ac_ext
15293 rm -f conftest.
$ac_objext conftest.
$ac_ext
15295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
15296 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
15297 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
15299 cat >>confdefs.h
<<_ACEOF
15300 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
15306 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
15307 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
15308 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 cat >conftest.
$ac_ext <<_ACEOF
15312 #line $LINENO "configure"
15313 #include "confdefs.h"
15319 static struct utmpx ac_aggr;
15320 if (ac_aggr.ut_exit.e_exit)
15326 rm -f conftest.
$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try
='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
15340 echo "$as_me: failed program was:" >&5
15341 cat conftest.
$ac_ext >&5
15342 cat >conftest.
$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15344 #include "confdefs.h"
15350 static struct utmpx ac_aggr;
15351 if (sizeof ac_aggr.ut_exit.e_exit)
15357 rm -f conftest.
$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try
='test -s conftest.$ac_objext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_member_struct_utmpx_ut_exit_e_exit
=yes
15371 echo "$as_me: failed program was:" >&5
15372 cat conftest.
$ac_ext >&5
15373 ac_cv_member_struct_utmpx_ut_exit_e_exit
=no
15375 rm -f conftest.
$ac_objext conftest.
$ac_ext
15377 rm -f conftest.
$ac_objext conftest.
$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
15380 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
15381 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
15383 cat >>confdefs.h
<<_ACEOF
15384 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
15390 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
15391 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
15392 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 cat >conftest.
$ac_ext <<_ACEOF
15396 #line $LINENO "configure"
15397 #include "confdefs.h"
15403 static struct utmp ac_aggr;
15404 if (ac_aggr.ut_exit.e_exit)
15410 rm -f conftest.
$ac_objext
15411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15412 (eval $ac_compile) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try
='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
15424 echo "$as_me: failed program was:" >&5
15425 cat conftest.
$ac_ext >&5
15426 cat >conftest.
$ac_ext <<_ACEOF
15427 #line $LINENO "configure"
15428 #include "confdefs.h"
15434 static struct utmp ac_aggr;
15435 if (sizeof ac_aggr.ut_exit.e_exit)
15441 rm -f conftest.
$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try
='test -s conftest.$ac_objext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 ac_cv_member_struct_utmp_ut_exit_e_exit
=yes
15455 echo "$as_me: failed program was:" >&5
15456 cat conftest.
$ac_ext >&5
15457 ac_cv_member_struct_utmp_ut_exit_e_exit
=no
15459 rm -f conftest.
$ac_objext conftest.
$ac_ext
15461 rm -f conftest.
$ac_objext conftest.
$ac_ext
15463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
15464 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
15465 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
15467 cat >>confdefs.h
<<_ACEOF
15468 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
15475 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
15476 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
15477 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 cat >conftest.
$ac_ext <<_ACEOF
15481 #line $LINENO "configure"
15482 #include "confdefs.h"
15488 static struct utmpx ac_aggr;
15489 if (ac_aggr.ut_exit.ut_termination)
15495 rm -f conftest.
$ac_objext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497 (eval $ac_compile) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try
='test -s conftest.$ac_objext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
15509 echo "$as_me: failed program was:" >&5
15510 cat conftest.
$ac_ext >&5
15511 cat >conftest.
$ac_ext <<_ACEOF
15512 #line $LINENO "configure"
15513 #include "confdefs.h"
15519 static struct utmpx ac_aggr;
15520 if (sizeof ac_aggr.ut_exit.ut_termination)
15526 rm -f conftest.
$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try
='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=yes
15540 echo "$as_me: failed program was:" >&5
15541 cat conftest.
$ac_ext >&5
15542 ac_cv_member_struct_utmpx_ut_exit_ut_termination
=no
15544 rm -f conftest.
$ac_objext conftest.
$ac_ext
15546 rm -f conftest.
$ac_objext conftest.
$ac_ext
15548 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
15549 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
15550 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
15552 cat >>confdefs.h
<<_ACEOF
15553 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
15559 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
15560 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
15561 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 cat >conftest.
$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 #include "confdefs.h"
15572 static struct utmp ac_aggr;
15573 if (ac_aggr.ut_exit.ut_termination)
15579 rm -f conftest.
$ac_objext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581 (eval $ac_compile) 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try
='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
15593 echo "$as_me: failed program was:" >&5
15594 cat conftest.
$ac_ext >&5
15595 cat >conftest.
$ac_ext <<_ACEOF
15596 #line $LINENO "configure"
15597 #include "confdefs.h"
15603 static struct utmp ac_aggr;
15604 if (sizeof ac_aggr.ut_exit.ut_termination)
15610 rm -f conftest.
$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612 (eval $ac_compile) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try
='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_member_struct_utmp_ut_exit_ut_termination
=yes
15624 echo "$as_me: failed program was:" >&5
15625 cat conftest.
$ac_ext >&5
15626 ac_cv_member_struct_utmp_ut_exit_ut_termination
=no
15628 rm -f conftest.
$ac_objext conftest.
$ac_ext
15630 rm -f conftest.
$ac_objext conftest.
$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
15633 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
15634 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
15636 cat >>confdefs.h
<<_ACEOF
15637 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
15643 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
15644 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
15645 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 cat >conftest.
$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 #include "confdefs.h"
15656 static struct utmpx ac_aggr;
15657 if (ac_aggr.ut_exit.e_termination)
15663 rm -f conftest.
$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665 (eval $ac_compile) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try
='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
15677 echo "$as_me: failed program was:" >&5
15678 cat conftest.
$ac_ext >&5
15679 cat >conftest.
$ac_ext <<_ACEOF
15680 #line $LINENO "configure"
15681 #include "confdefs.h"
15687 static struct utmpx ac_aggr;
15688 if (sizeof ac_aggr.ut_exit.e_termination)
15694 rm -f conftest.
$ac_objext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15696 (eval $ac_compile) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try
='test -s conftest.$ac_objext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_member_struct_utmpx_ut_exit_e_termination
=yes
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.
$ac_ext >&5
15710 ac_cv_member_struct_utmpx_ut_exit_e_termination
=no
15712 rm -f conftest.
$ac_objext conftest.
$ac_ext
15714 rm -f conftest.
$ac_objext conftest.
$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
15717 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
15718 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
15720 cat >>confdefs.h
<<_ACEOF
15721 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
15727 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
15728 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
15729 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cat >conftest.
$ac_ext <<_ACEOF
15733 #line $LINENO "configure"
15734 #include "confdefs.h"
15740 static struct utmp ac_aggr;
15741 if (ac_aggr.ut_exit.e_termination)
15747 rm -f conftest.
$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749 (eval $ac_compile) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try
='test -s conftest.$ac_objext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
15761 echo "$as_me: failed program was:" >&5
15762 cat conftest.
$ac_ext >&5
15763 cat >conftest.
$ac_ext <<_ACEOF
15764 #line $LINENO "configure"
15765 #include "confdefs.h"
15771 static struct utmp ac_aggr;
15772 if (sizeof ac_aggr.ut_exit.e_termination)
15778 rm -f conftest.
$ac_objext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780 (eval $ac_compile) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try
='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_cv_member_struct_utmp_ut_exit_e_termination
=yes
15792 echo "$as_me: failed program was:" >&5
15793 cat conftest.
$ac_ext >&5
15794 ac_cv_member_struct_utmp_ut_exit_e_termination
=no
15796 rm -f conftest.
$ac_objext conftest.
$ac_ext
15798 rm -f conftest.
$ac_objext conftest.
$ac_ext
15800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
15801 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
15802 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
15804 cat >>confdefs.h
<<_ACEOF
15805 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
15811 LIBOBJS
="$LIBOBJS readutmp.$ac_objext"
15819 for ac_func
in bzero bcopy isascii btowc
15821 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15822 echo "$as_me:$LINENO: checking for $ac_func" >&5
15823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15824 if eval "test \"\${$as_ac_var+set}\" = set"; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 cat >conftest.
$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15829 #include "confdefs.h"
15830 /* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char $ac_func (); below. */
15832 #include <assert.h>
15833 /* Override any gcc2 internal prototype to avoid an error. */
15837 /* We use char because int might match the return type of a gcc2
15838 builtin and then its argument prototype would still apply. */
15845 /* The GNU C library defines this for functions which it implements
15846 to always fail with ENOSYS. Some functions are actually named
15847 something starting with __ and the normal name is an alias. */
15848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15858 rm -f conftest.
$ac_objext conftest
$ac_exeext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try
='test -s conftest$ac_exeext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 eval "$as_ac_var=yes"
15872 echo "$as_me: failed program was:" >&5
15873 cat conftest.
$ac_ext >&5
15874 eval "$as_ac_var=no"
15876 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15880 if test `eval echo '${'$as_ac_var'}'` = yes; then
15881 cat >>confdefs.h
<<_ACEOF
15882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 for ac_header
in alloca.h libintl.h wctype.h wchar.h
15894 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15896 echo "$as_me:$LINENO: checking for $ac_header" >&5
15897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15904 # Is the header compilable?
15905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15907 cat >conftest.
$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 #include <$ac_header>
15913 rm -f conftest.
$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915 (eval $ac_compile) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try
='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_header_compiler
=yes
15927 echo "$as_me: failed program was:" >&5
15928 cat conftest.
$ac_ext >&5
15929 ac_header_compiler
=no
15931 rm -f conftest.
$ac_objext conftest.
$ac_ext
15932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15933 echo "${ECHO_T}$ac_header_compiler" >&6
15935 # Is the header present?
15936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15938 cat >conftest.
$ac_ext <<_ACEOF
15939 #line $LINENO "configure"
15940 #include "confdefs.h"
15941 #include <$ac_header>
15943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1
>conftest.err
15948 cat conftest.err
>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev
/null
; then
15951 if test -s conftest.err
; then
15952 ac_cpp_err
=$ac_c_preproc_warn_flag
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc
=yes
15962 echo "$as_me: failed program was:" >&5
15963 cat conftest.
$ac_ext >&5
15964 ac_header_preproc
=no
15966 rm -f conftest.err conftest.
$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15968 echo "${ECHO_T}$ac_header_preproc" >&6
15970 # So? What about this header?
15971 case $ac_header_compiler:$ac_header_preproc in
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15985 echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 eval "$as_ac_Header=$ac_header_preproc"
15992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997 cat >>confdefs.h
<<_ACEOF
15998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16006 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16007 if test "${ac_cv_header_stdc+set}" = set; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 cat >conftest.
$ac_ext <<_ACEOF
16011 #line $LINENO "configure"
16012 #include "confdefs.h"
16013 #include <stdlib.h>
16014 #include <stdarg.h>
16015 #include <string.h>
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1
>conftest.err
16024 cat conftest.err
>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev
/null
; then
16027 if test -s conftest.err
; then
16028 ac_cpp_err
=$ac_c_preproc_warn_flag
16035 if test -z "$ac_cpp_err"; then
16036 ac_cv_header_stdc
=yes
16038 echo "$as_me: failed program was:" >&5
16039 cat conftest.
$ac_ext >&5
16040 ac_cv_header_stdc
=no
16042 rm -f conftest.err conftest.
$ac_ext
16044 if test $ac_cv_header_stdc = yes; then
16045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16046 cat >conftest.
$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16048 #include "confdefs.h"
16049 #include <string.h>
16052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16053 $EGREP "memchr" >/dev
/null
2>&1; then
16056 ac_cv_header_stdc
=no
16062 if test $ac_cv_header_stdc = yes; then
16063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16064 cat >conftest.
$ac_ext <<_ACEOF
16065 #line $LINENO "configure"
16066 #include "confdefs.h"
16067 #include <stdlib.h>
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071 $EGREP "free" >/dev
/null
2>&1; then
16074 ac_cv_header_stdc
=no
16080 if test $ac_cv_header_stdc = yes; then
16081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16082 if test "$cross_compiling" = yes; then
16085 cat >conftest.
$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16087 #include "confdefs.h"
16089 #if ((' ' & 0x0FF) == 0x020)
16090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16093 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16094 || ('j' <= (c) && (c) <= 'r') \
16095 || ('s' <= (c) && (c) <= 'z'))
16096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16104 for (i = 0; i < 256; i++)
16105 if (XOR (islower (i), ISLOWER (i))
16106 || toupper (i) != TOUPPER (i))
16111 rm -f conftest
$ac_exeext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113 (eval $ac_link) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16124 echo "$as_me: program exited with status $ac_status" >&5
16125 echo "$as_me: failed program was:" >&5
16126 cat conftest.
$ac_ext >&5
16127 ( exit $ac_status )
16128 ac_cv_header_stdc
=no
16130 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16134 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16135 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16136 if test $ac_cv_header_stdc = yes; then
16138 cat >>confdefs.h
<<\_ACEOF
16139 #define STDC_HEADERS 1
16144 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16145 # for constant arguments. Useless!
16146 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16147 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16148 if test "${ac_cv_working_alloca_h+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 cat >conftest.
$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16153 #include "confdefs.h"
16154 #include <alloca.h>
16158 char *p = (char *) alloca (2 * sizeof (int));
16163 rm -f conftest.
$ac_objext conftest
$ac_exeext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16165 (eval $ac_link) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
16169 { ac_try
='test -s conftest$ac_exeext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_working_alloca_h
=yes
16177 echo "$as_me: failed program was:" >&5
16178 cat conftest.
$ac_ext >&5
16179 ac_cv_working_alloca_h
=no
16181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16183 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16184 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16185 if test $ac_cv_working_alloca_h = yes; then
16187 cat >>confdefs.h
<<\_ACEOF
16188 #define HAVE_ALLOCA_H 1
16193 echo "$as_me:$LINENO: checking for alloca" >&5
16194 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16195 if test "${ac_cv_func_alloca_works+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 cat >conftest.
$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 #include "confdefs.h"
16202 # define alloca __builtin_alloca
16205 # include <malloc.h>
16206 # define alloca _alloca
16209 # include <alloca.h>
16214 # ifndef alloca /* predefined by HP cc +Olibcalls */
16225 char *p = (char *) alloca (1);
16230 rm -f conftest.
$ac_objext conftest
$ac_exeext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232 (eval $ac_link) 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try
='test -s conftest$ac_exeext'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_cv_func_alloca_works
=yes
16244 echo "$as_me: failed program was:" >&5
16245 cat conftest.
$ac_ext >&5
16246 ac_cv_func_alloca_works
=no
16248 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16250 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16251 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16253 if test $ac_cv_func_alloca_works = yes; then
16255 cat >>confdefs.h
<<\_ACEOF
16256 #define HAVE_ALLOCA 1
16260 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16261 # that cause trouble. Some versions do not even contain alloca or
16262 # contain a buggy version. If you still want to use their alloca,
16263 # use ar to extract alloca.o from them instead of compiling alloca.c.
16265 ALLOCA
=alloca.
$ac_objext
16267 cat >>confdefs.h
<<\_ACEOF
16272 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16273 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16274 if test "${ac_cv_os_cray+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 cat >conftest.
$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 #include "confdefs.h"
16280 #if defined(CRAY) && ! defined(CRAY2)
16287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16288 $EGREP "webecray" >/dev
/null
2>&1; then
16296 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16297 echo "${ECHO_T}$ac_cv_os_cray" >&6
16298 if test $ac_cv_os_cray = yes; then
16299 for ac_func
in _getb67 GETB67 getb67
; do
16300 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16301 echo "$as_me:$LINENO: checking for $ac_func" >&5
16302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_var+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 cat >conftest.
$ac_ext <<_ACEOF
16307 #line $LINENO "configure"
16308 #include "confdefs.h"
16309 /* System header to define __stub macros and hopefully few prototypes,
16310 which can conflict with char $ac_func (); below. */
16311 #include <assert.h>
16312 /* Override any gcc2 internal prototype to avoid an error. */
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16324 /* The GNU C library defines this for functions which it implements
16325 to always fail with ENOSYS. Some functions are actually named
16326 something starting with __ and the normal name is an alias. */
16327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16337 rm -f conftest.
$ac_objext conftest
$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try
='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 eval "$as_ac_var=yes"
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.
$ac_ext >&5
16353 eval "$as_ac_var=no"
16355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16359 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361 cat >>confdefs.h
<<_ACEOF
16362 #define CRAY_STACKSEG_END $ac_func
16371 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16372 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16373 if test "${ac_cv_c_stack_direction+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 if test "$cross_compiling" = yes; then
16377 ac_cv_c_stack_direction
=0
16379 cat >conftest.
$ac_ext <<_ACEOF
16380 #line $LINENO "configure"
16381 #include "confdefs.h"
16383 find_stack_direction ()
16385 static char *addr = 0;
16390 return find_stack_direction ();
16393 return (&dummy > addr) ? 1 : -1;
16399 exit (find_stack_direction () < 0);
16402 rm -f conftest
$ac_exeext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16404 (eval $ac_link) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_c_stack_direction
=1
16415 echo "$as_me: program exited with status $ac_status" >&5
16416 echo "$as_me: failed program was:" >&5
16417 cat conftest.
$ac_ext >&5
16418 ( exit $ac_status )
16419 ac_cv_c_stack_direction
=-1
16421 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16424 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16425 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16427 cat >>confdefs.h
<<_ACEOF
16428 #define STACK_DIRECTION $ac_cv_c_stack_direction
16440 for ac_header
in sys
/sysmacros.h sys
/statvfs.h sys
/vfs.h inttypes.h
16442 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16444 echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16452 # Is the header compilable?
16453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16455 cat >conftest.
$ac_ext <<_ACEOF
16456 #line $LINENO "configure"
16457 #include "confdefs.h"
16458 $ac_includes_default
16459 #include <$ac_header>
16461 rm -f conftest.
$ac_objext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16463 (eval $ac_compile) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try
='test -s conftest.$ac_objext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_header_compiler
=yes
16475 echo "$as_me: failed program was:" >&5
16476 cat conftest.
$ac_ext >&5
16477 ac_header_compiler
=no
16479 rm -f conftest.
$ac_objext conftest.
$ac_ext
16480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16481 echo "${ECHO_T}$ac_header_compiler" >&6
16483 # Is the header present?
16484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16486 cat >conftest.
$ac_ext <<_ACEOF
16487 #line $LINENO "configure"
16488 #include "confdefs.h"
16489 #include <$ac_header>
16491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16492 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1
>conftest.err
16496 cat conftest.err
>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } >/dev
/null
; then
16499 if test -s conftest.err
; then
16500 ac_cpp_err
=$ac_c_preproc_warn_flag
16507 if test -z "$ac_cpp_err"; then
16508 ac_header_preproc
=yes
16510 echo "$as_me: failed program was:" >&5
16511 cat 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;};;
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16533 echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 eval "$as_ac_Header=$ac_header_preproc"
16540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16545 cat >>confdefs.h
<<_ACEOF
16546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16555 for ac_header
in sys
/param.h sys
/mount.h
16557 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16559 echo "$as_me:$LINENO: checking for $ac_header" >&5
16560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16567 # Is the header compilable?
16568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16570 cat >conftest.
$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16572 #include "confdefs.h"
16573 $ac_includes_default
16574 #include <$ac_header>
16576 rm -f conftest.
$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578 (eval $ac_compile) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try
='test -s conftest.$ac_objext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_header_compiler
=yes
16590 echo "$as_me: failed program was:" >&5
16591 cat conftest.
$ac_ext >&5
16592 ac_header_compiler
=no
16594 rm -f conftest.
$ac_objext conftest.
$ac_ext
16595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16596 echo "${ECHO_T}$ac_header_compiler" >&6
16598 # Is the header present?
16599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16601 cat >conftest.
$ac_ext <<_ACEOF
16602 #line $LINENO "configure"
16603 #include "confdefs.h"
16604 #include <$ac_header>
16606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16609 grep -v '^ *+' conftest.er1
>conftest.err
16611 cat conftest.err
>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } >/dev
/null
; then
16614 if test -s conftest.err
; then
16615 ac_cpp_err
=$ac_c_preproc_warn_flag
16622 if test -z "$ac_cpp_err"; then
16623 ac_header_preproc
=yes
16625 echo "$as_me: failed program was:" >&5
16626 cat conftest.
$ac_ext >&5
16627 ac_header_preproc
=no
16629 rm -f conftest.err conftest.
$ac_ext
16630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16631 echo "${ECHO_T}$ac_header_preproc" >&6
16633 # So? What about this header?
16634 case $ac_header_compiler:$ac_header_preproc in
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 eval "$as_ac_Header=$ac_header_preproc"
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660 cat >>confdefs.h
<<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16669 for ac_func
in statvfs
16671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16674 if eval "test \"\${$as_ac_var+set}\" = set"; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 cat >conftest.
$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16679 #include "confdefs.h"
16680 /* System header to define __stub macros and hopefully few prototypes,
16681 which can conflict with char $ac_func (); below. */
16682 #include <assert.h>
16683 /* Override any gcc2 internal prototype to avoid an error. */
16687 /* We use char because int might match the return type of a gcc2
16688 builtin and then its argument prototype would still apply. */
16695 /* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16708 rm -f conftest.
$ac_objext conftest
$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try
='test -s conftest$ac_exeext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 eval "$as_ac_var=yes"
16722 echo "$as_me: failed program was:" >&5
16723 cat conftest.
$ac_ext >&5
16724 eval "$as_ac_var=no"
16726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h
<<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16739 echo "$as_me:$LINENO: checking for long long" >&5
16740 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16741 if test "${ac_cv_type_long_long+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 cat >conftest.
$ac_ext <<_ACEOF
16745 #line $LINENO "configure"
16746 #include "confdefs.h"
16747 long long ll = 1; int i = 63;
16751 long long llmax = (long long) -1;
16752 return ll << i | ll >> i | llmax / ll | llmax % ll;
16757 rm -f conftest.
$ac_objext conftest
$ac_exeext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16759 (eval $ac_link) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try
='test -s conftest$ac_exeext'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_type_long_long
=yes
16771 echo "$as_me: failed program was:" >&5
16772 cat conftest.
$ac_ext >&5
16773 ac_cv_type_long_long
=no
16775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16777 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16778 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16779 if test $ac_cv_type_long_long = yes; then
16781 cat >>confdefs.h
<<\_ACEOF
16782 #define HAVE_LONG_LONG 1
16788 statxfs_includes
="\
16789 $ac_includes_default
16790 #if HAVE_SYS_STATVFS_H
16791 # include <sys/statvfs.h>
16794 # include <sys/vfs.h>
16796 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
16797 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
16798 # include <sys/param.h>
16799 # include <sys/mount.h>
16802 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
16803 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
16804 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 cat >conftest.
$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16809 #include "confdefs.h"
16815 static struct statfs ac_aggr;
16816 if (ac_aggr.f_basetype)
16822 rm -f conftest.
$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824 (eval $ac_compile) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_statfs_f_basetype
=yes
16836 echo "$as_me: failed program was:" >&5
16837 cat conftest.
$ac_ext >&5
16838 cat >conftest.
$ac_ext <<_ACEOF
16839 #line $LINENO "configure"
16840 #include "confdefs.h"
16846 static struct statfs ac_aggr;
16847 if (sizeof ac_aggr.f_basetype)
16853 rm -f conftest.
$ac_objext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16855 (eval $ac_compile) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try
='test -s conftest.$ac_objext'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_member_struct_statfs_f_basetype
=yes
16867 echo "$as_me: failed program was:" >&5
16868 cat conftest.
$ac_ext >&5
16869 ac_cv_member_struct_statfs_f_basetype
=no
16871 rm -f conftest.
$ac_objext conftest.
$ac_ext
16873 rm -f conftest.
$ac_objext conftest.
$ac_ext
16875 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
16876 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
16877 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
16879 cat >>confdefs.h
<<_ACEOF
16880 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
16886 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
16887 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
16888 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.
$ac_ext <<_ACEOF
16892 #line $LINENO "configure"
16893 #include "confdefs.h"
16899 static struct statvfs ac_aggr;
16900 if (ac_aggr.f_basetype)
16906 rm -f conftest.
$ac_objext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908 (eval $ac_compile) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try
='test -s conftest.$ac_objext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_member_struct_statvfs_f_basetype
=yes
16920 echo "$as_me: failed program was:" >&5
16921 cat conftest.
$ac_ext >&5
16922 cat >conftest.
$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16924 #include "confdefs.h"
16930 static struct statvfs ac_aggr;
16931 if (sizeof ac_aggr.f_basetype)
16937 rm -f conftest.
$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try
='test -s conftest.$ac_objext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_cv_member_struct_statvfs_f_basetype
=yes
16951 echo "$as_me: failed program was:" >&5
16952 cat conftest.
$ac_ext >&5
16953 ac_cv_member_struct_statvfs_f_basetype
=no
16955 rm -f conftest.
$ac_objext conftest.
$ac_ext
16957 rm -f conftest.
$ac_objext conftest.
$ac_ext
16959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
16960 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
16961 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
16963 cat >>confdefs.h
<<_ACEOF
16964 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
16970 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
16971 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
16972 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 cat >conftest.
$ac_ext <<_ACEOF
16976 #line $LINENO "configure"
16977 #include "confdefs.h"
16983 static struct statfs ac_aggr;
16984 if (ac_aggr.f_fstypename)
16990 rm -f conftest.
$ac_objext
16991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16992 (eval $ac_compile) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try
='test -s conftest.$ac_objext'
16997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_member_struct_statfs_f_fstypename
=yes
17004 echo "$as_me: failed program was:" >&5
17005 cat conftest.
$ac_ext >&5
17006 cat >conftest.
$ac_ext <<_ACEOF
17007 #line $LINENO "configure"
17008 #include "confdefs.h"
17014 static struct statfs ac_aggr;
17015 if (sizeof ac_aggr.f_fstypename)
17021 rm -f conftest.
$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023 (eval $ac_compile) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try
='test -s conftest.$ac_objext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_member_struct_statfs_f_fstypename
=yes
17035 echo "$as_me: failed program was:" >&5
17036 cat conftest.
$ac_ext >&5
17037 ac_cv_member_struct_statfs_f_fstypename
=no
17039 rm -f conftest.
$ac_objext conftest.
$ac_ext
17041 rm -f conftest.
$ac_objext conftest.
$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17044 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17045 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17047 cat >>confdefs.h
<<_ACEOF
17048 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17054 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17055 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17056 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 cat >conftest.
$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17061 #include "confdefs.h"
17067 static struct statfs ac_aggr;
17068 if (ac_aggr.f_type)
17074 rm -f conftest.
$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076 (eval $ac_compile) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try
='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 ac_cv_member_struct_statfs_f_type
=yes
17088 echo "$as_me: failed program was:" >&5
17089 cat conftest.
$ac_ext >&5
17090 cat >conftest.
$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 #include "confdefs.h"
17098 static struct statfs ac_aggr;
17099 if (sizeof ac_aggr.f_type)
17105 rm -f conftest.
$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try
='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_member_struct_statfs_f_type
=yes
17119 echo "$as_me: failed program was:" >&5
17120 cat conftest.
$ac_ext >&5
17121 ac_cv_member_struct_statfs_f_type
=no
17123 rm -f conftest.
$ac_objext conftest.
$ac_ext
17125 rm -f conftest.
$ac_objext conftest.
$ac_ext
17127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17128 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17129 if test $ac_cv_member_struct_statfs_f_type = yes; then
17131 cat >>confdefs.h
<<_ACEOF
17132 #define HAVE_STRUCT_STATFS_F_TYPE 1
17138 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17139 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17140 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.
$ac_ext <<_ACEOF
17144 #line $LINENO "configure"
17145 #include "confdefs.h"
17151 static struct statvfs ac_aggr;
17152 if (ac_aggr.f_type)
17158 rm -f conftest.
$ac_objext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try
='test -s conftest.$ac_objext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 ac_cv_member_struct_statvfs_f_type
=yes
17172 echo "$as_me: failed program was:" >&5
17173 cat conftest.
$ac_ext >&5
17174 cat >conftest.
$ac_ext <<_ACEOF
17175 #line $LINENO "configure"
17176 #include "confdefs.h"
17182 static struct statvfs ac_aggr;
17183 if (sizeof ac_aggr.f_type)
17189 rm -f conftest.
$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191 (eval $ac_compile) 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try
='test -s conftest.$ac_objext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 ac_cv_member_struct_statvfs_f_type
=yes
17203 echo "$as_me: failed program was:" >&5
17204 cat conftest.
$ac_ext >&5
17205 ac_cv_member_struct_statvfs_f_type
=no
17207 rm -f conftest.
$ac_objext conftest.
$ac_ext
17209 rm -f conftest.
$ac_objext conftest.
$ac_ext
17211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17212 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17213 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17215 cat >>confdefs.h
<<_ACEOF
17216 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17222 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
17223 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
17224 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 cat >conftest.
$ac_ext <<_ACEOF
17228 #line $LINENO "configure"
17229 #include "confdefs.h"
17235 static struct statfs ac_aggr;
17236 if (ac_aggr.f_fsid.__val)
17242 rm -f conftest.
$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try
='test -s conftest.$ac_objext'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 ac_cv_member_struct_statfs_f_fsid___val
=yes
17256 echo "$as_me: failed program was:" >&5
17257 cat conftest.
$ac_ext >&5
17258 cat >conftest.
$ac_ext <<_ACEOF
17259 #line $LINENO "configure"
17260 #include "confdefs.h"
17266 static struct statfs ac_aggr;
17267 if (sizeof ac_aggr.f_fsid.__val)
17273 rm -f conftest.
$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275 (eval $ac_compile) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try
='test -s conftest.$ac_objext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_member_struct_statfs_f_fsid___val
=yes
17287 echo "$as_me: failed program was:" >&5
17288 cat conftest.
$ac_ext >&5
17289 ac_cv_member_struct_statfs_f_fsid___val
=no
17291 rm -f conftest.
$ac_objext conftest.
$ac_ext
17293 rm -f conftest.
$ac_objext conftest.
$ac_ext
17295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
17296 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
17297 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
17299 cat >>confdefs.h
<<_ACEOF
17300 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
17306 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
17307 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
17308 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 cat >conftest.
$ac_ext <<_ACEOF
17312 #line $LINENO "configure"
17313 #include "confdefs.h"
17319 static struct statvfs ac_aggr;
17320 if (ac_aggr.f_fsid.__val)
17326 rm -f conftest.
$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328 (eval $ac_compile) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try
='test -s conftest.$ac_objext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_member_struct_statvfs_f_fsid___val
=yes
17340 echo "$as_me: failed program was:" >&5
17341 cat conftest.
$ac_ext >&5
17342 cat >conftest.
$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17344 #include "confdefs.h"
17350 static struct statvfs ac_aggr;
17351 if (sizeof ac_aggr.f_fsid.__val)
17357 rm -f conftest.
$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try
='test -s conftest.$ac_objext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_member_struct_statvfs_f_fsid___val
=yes
17371 echo "$as_me: failed program was:" >&5
17372 cat conftest.
$ac_ext >&5
17373 ac_cv_member_struct_statvfs_f_fsid___val
=no
17375 rm -f conftest.
$ac_objext conftest.
$ac_ext
17377 rm -f conftest.
$ac_objext conftest.
$ac_ext
17379 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
17380 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
17381 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
17383 cat >>confdefs.h
<<_ACEOF
17384 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
17390 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
17391 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
17392 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 cat >conftest.
$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 #include "confdefs.h"
17403 static struct statfs ac_aggr;
17404 if (ac_aggr.f_namemax)
17410 rm -f conftest.
$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try
='test -s conftest.$ac_objext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_member_struct_statfs_f_namemax
=yes
17424 echo "$as_me: failed program was:" >&5
17425 cat conftest.
$ac_ext >&5
17426 cat >conftest.
$ac_ext <<_ACEOF
17427 #line $LINENO "configure"
17428 #include "confdefs.h"
17434 static struct statfs ac_aggr;
17435 if (sizeof ac_aggr.f_namemax)
17441 rm -f conftest.
$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443 (eval $ac_compile) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try
='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_member_struct_statfs_f_namemax
=yes
17455 echo "$as_me: failed program was:" >&5
17456 cat conftest.
$ac_ext >&5
17457 ac_cv_member_struct_statfs_f_namemax
=no
17459 rm -f conftest.
$ac_objext conftest.
$ac_ext
17461 rm -f conftest.
$ac_objext conftest.
$ac_ext
17463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
17464 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
17465 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
17467 cat >>confdefs.h
<<_ACEOF
17468 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
17474 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
17475 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
17476 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.
$ac_ext <<_ACEOF
17480 #line $LINENO "configure"
17481 #include "confdefs.h"
17487 static struct statvfs ac_aggr;
17488 if (ac_aggr.f_namemax)
17494 rm -f conftest.
$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try
='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_member_struct_statvfs_f_namemax
=yes
17508 echo "$as_me: failed program was:" >&5
17509 cat conftest.
$ac_ext >&5
17510 cat >conftest.
$ac_ext <<_ACEOF
17511 #line $LINENO "configure"
17512 #include "confdefs.h"
17518 static struct statvfs ac_aggr;
17519 if (sizeof ac_aggr.f_namemax)
17525 rm -f conftest.
$ac_objext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try
='test -s conftest.$ac_objext'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_cv_member_struct_statvfs_f_namemax
=yes
17539 echo "$as_me: failed program was:" >&5
17540 cat conftest.
$ac_ext >&5
17541 ac_cv_member_struct_statvfs_f_namemax
=no
17543 rm -f conftest.
$ac_objext conftest.
$ac_ext
17545 rm -f conftest.
$ac_objext conftest.
$ac_ext
17547 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
17548 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
17549 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
17551 cat >>confdefs.h
<<_ACEOF
17552 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
17558 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
17559 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
17560 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 cat >conftest.
$ac_ext <<_ACEOF
17564 #line $LINENO "configure"
17565 #include "confdefs.h"
17571 static struct statfs ac_aggr;
17572 if (ac_aggr.f_namelen)
17578 rm -f conftest.
$ac_objext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17580 (eval $ac_compile) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try
='test -s conftest.$ac_objext'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 ac_cv_member_struct_statfs_f_namelen
=yes
17592 echo "$as_me: failed program was:" >&5
17593 cat conftest.
$ac_ext >&5
17594 cat >conftest.
$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 #include "confdefs.h"
17602 static struct statfs ac_aggr;
17603 if (sizeof ac_aggr.f_namelen)
17609 rm -f conftest.
$ac_objext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17611 (eval $ac_compile) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try
='test -s conftest.$ac_objext'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_member_struct_statfs_f_namelen
=yes
17623 echo "$as_me: failed program was:" >&5
17624 cat conftest.
$ac_ext >&5
17625 ac_cv_member_struct_statfs_f_namelen
=no
17627 rm -f conftest.
$ac_objext conftest.
$ac_ext
17629 rm -f conftest.
$ac_objext conftest.
$ac_ext
17631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
17632 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
17633 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
17635 cat >>confdefs.h
<<_ACEOF
17636 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
17642 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
17643 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
17644 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 cat >conftest.
$ac_ext <<_ACEOF
17648 #line $LINENO "configure"
17649 #include "confdefs.h"
17655 static struct statvfs ac_aggr;
17656 if (ac_aggr.f_namelen)
17662 rm -f conftest.
$ac_objext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17664 (eval $ac_compile) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } &&
17668 { ac_try
='test -s conftest.$ac_objext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_member_struct_statvfs_f_namelen
=yes
17676 echo "$as_me: failed program was:" >&5
17677 cat conftest.
$ac_ext >&5
17678 cat >conftest.
$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17680 #include "confdefs.h"
17686 static struct statvfs ac_aggr;
17687 if (sizeof ac_aggr.f_namelen)
17693 rm -f conftest.
$ac_objext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17695 (eval $ac_compile) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try
='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_member_struct_statvfs_f_namelen
=yes
17707 echo "$as_me: failed program was:" >&5
17708 cat conftest.
$ac_ext >&5
17709 ac_cv_member_struct_statvfs_f_namelen
=no
17711 rm -f conftest.
$ac_objext conftest.
$ac_ext
17713 rm -f conftest.
$ac_objext conftest.
$ac_ext
17715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
17716 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
17717 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
17719 cat >>confdefs.h
<<_ACEOF
17720 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
17728 echo "$as_me:$LINENO: checking for working strnlen" >&5
17729 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
17730 if test "${ac_cv_func_strnlen_working+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 if test "$cross_compiling" = yes; then
17734 ac_cv_func_strnlen_working
=no
17736 cat >conftest.
$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17738 #include "confdefs.h"
17745 #define S_LEN (sizeof S - 1)
17747 /* At least one implementation is buggy: that of AIX 4.3 would
17748 give strnlen (S, 1) == 3. */
17751 for (i = 0; i < S_LEN + 1; ++i)
17753 int expected = i <= S_LEN ? i : S_LEN;
17754 if (strnlen (S, i) != expected)
17763 rm -f conftest
$ac_exeext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17765 (eval $ac_link) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_func_strnlen_working
=yes
17776 echo "$as_me: program exited with status $ac_status" >&5
17777 echo "$as_me: failed program was:" >&5
17778 cat conftest.
$ac_ext >&5
17779 ( exit $ac_status )
17780 ac_cv_func_strnlen_working
=no
17782 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
17786 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
17787 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
17789 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17791 if test "${ac_cv_header_stdc+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 cat >conftest.
$ac_ext <<_ACEOF
17795 #line $LINENO "configure"
17796 #include "confdefs.h"
17797 #include <stdlib.h>
17798 #include <stdarg.h>
17799 #include <string.h>
17803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17804 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17806 grep -v '^ *+' conftest.er1
>conftest.err
17808 cat conftest.err
>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } >/dev
/null
; then
17811 if test -s conftest.err
; then
17812 ac_cpp_err
=$ac_c_preproc_warn_flag
17819 if test -z "$ac_cpp_err"; then
17820 ac_cv_header_stdc
=yes
17822 echo "$as_me: failed program was:" >&5
17823 cat conftest.
$ac_ext >&5
17824 ac_cv_header_stdc
=no
17826 rm -f conftest.err conftest.
$ac_ext
17828 if test $ac_cv_header_stdc = yes; then
17829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17830 cat >conftest.
$ac_ext <<_ACEOF
17831 #line $LINENO "configure"
17832 #include "confdefs.h"
17833 #include <string.h>
17836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17837 $EGREP "memchr" >/dev
/null
2>&1; then
17840 ac_cv_header_stdc
=no
17846 if test $ac_cv_header_stdc = yes; then
17847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17848 cat >conftest.
$ac_ext <<_ACEOF
17849 #line $LINENO "configure"
17850 #include "confdefs.h"
17851 #include <stdlib.h>
17854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17855 $EGREP "free" >/dev
/null
2>&1; then
17858 ac_cv_header_stdc
=no
17864 if test $ac_cv_header_stdc = yes; then
17865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17866 if test "$cross_compiling" = yes; then
17869 cat >conftest.
$ac_ext <<_ACEOF
17870 #line $LINENO "configure"
17871 #include "confdefs.h"
17873 #if ((' ' & 0x0FF) == 0x020)
17874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17877 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17878 || ('j' <= (c) && (c) <= 'r') \
17879 || ('s' <= (c) && (c) <= 'z'))
17880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17888 for (i = 0; i < 256; i++)
17889 if (XOR (islower (i), ISLOWER (i))
17890 || toupper (i) != TOUPPER (i))
17895 rm -f conftest
$ac_exeext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17897 (eval $ac_link) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17908 echo "$as_me: program exited with status $ac_status" >&5
17909 echo "$as_me: failed program was:" >&5
17910 cat conftest.
$ac_ext >&5
17911 ( exit $ac_status )
17912 ac_cv_header_stdc
=no
17914 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17918 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17919 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17920 if test $ac_cv_header_stdc = yes; then
17922 cat >>confdefs.h
<<\_ACEOF
17923 #define STDC_HEADERS 1
17929 for ac_header
in memory.h
17931 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17933 echo "$as_me:$LINENO: checking for $ac_header" >&5
17934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17941 # Is the header compilable?
17942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17944 cat >conftest.
$ac_ext <<_ACEOF
17945 #line $LINENO "configure"
17946 #include "confdefs.h"
17947 $ac_includes_default
17948 #include <$ac_header>
17950 rm -f conftest.
$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952 (eval $ac_compile) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try
='test -s conftest.$ac_objext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_header_compiler
=yes
17964 echo "$as_me: failed program was:" >&5
17965 cat conftest.
$ac_ext >&5
17966 ac_header_compiler
=no
17968 rm -f conftest.
$ac_objext conftest.
$ac_ext
17969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17970 echo "${ECHO_T}$ac_header_compiler" >&6
17972 # Is the header present?
17973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17975 cat >conftest.
$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 #include "confdefs.h"
17978 #include <$ac_header>
17980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17981 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17983 grep -v '^ *+' conftest.er1
>conftest.err
17985 cat conftest.err
>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } >/dev
/null
; then
17988 if test -s conftest.err
; then
17989 ac_cpp_err
=$ac_c_preproc_warn_flag
17996 if test -z "$ac_cpp_err"; then
17997 ac_header_preproc
=yes
17999 echo "$as_me: failed program was:" >&5
18000 cat conftest.
$ac_ext >&5
18001 ac_header_preproc
=no
18003 rm -f conftest.err conftest.
$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18005 echo "${ECHO_T}$ac_header_preproc" >&6
18007 # So? What about this header?
18008 case $ac_header_compiler:$ac_header_preproc in
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18022 echo "$as_me:$LINENO: checking for $ac_header" >&5
18023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 eval "$as_ac_Header=$ac_header_preproc"
18029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18034 cat >>confdefs.h
<<_ACEOF
18035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18042 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18043 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18044 if test "${ac_cv_have_decl_memchr+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 cat >conftest.
$ac_ext <<_ACEOF
18048 #line $LINENO "configure"
18049 #include "confdefs.h"
18050 $ac_includes_default
18055 char *p = (char *) memchr;
18062 rm -f conftest.
$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064 (eval $ac_compile) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try
='test -s conftest.$ac_objext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_cv_have_decl_memchr
=yes
18076 echo "$as_me: failed program was:" >&5
18077 cat conftest.
$ac_ext >&5
18078 ac_cv_have_decl_memchr
=no
18080 rm -f conftest.
$ac_objext conftest.
$ac_ext
18082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18083 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18084 if test $ac_cv_have_decl_memchr = yes; then
18086 cat >>confdefs.h
<<_ACEOF
18087 #define HAVE_DECL_MEMCHR 1
18092 cat >>confdefs.h
<<_ACEOF
18093 #define HAVE_DECL_MEMCHR 0
18101 # This is necessary because automake-1.6.1 doesn't understand
18102 # that the above use of AC_FUNC_STRNLEN means we may have to use
18104 test $ac_cv_func_strnlen_working = yes \
18105 && LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
18108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18110 if test "${ac_cv_header_stdc+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 cat >conftest.
$ac_ext <<_ACEOF
18114 #line $LINENO "configure"
18115 #include "confdefs.h"
18116 #include <stdlib.h>
18117 #include <stdarg.h>
18118 #include <string.h>
18122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18125 grep -v '^ *+' conftest.er1
>conftest.err
18127 cat conftest.err
>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } >/dev
/null
; then
18130 if test -s conftest.err
; then
18131 ac_cpp_err
=$ac_c_preproc_warn_flag
18138 if test -z "$ac_cpp_err"; then
18139 ac_cv_header_stdc
=yes
18141 echo "$as_me: failed program was:" >&5
18142 cat conftest.
$ac_ext >&5
18143 ac_cv_header_stdc
=no
18145 rm -f conftest.err conftest.
$ac_ext
18147 if test $ac_cv_header_stdc = yes; then
18148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18149 cat >conftest.
$ac_ext <<_ACEOF
18150 #line $LINENO "configure"
18151 #include "confdefs.h"
18152 #include <string.h>
18155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18156 $EGREP "memchr" >/dev
/null
2>&1; then
18159 ac_cv_header_stdc
=no
18165 if test $ac_cv_header_stdc = yes; then
18166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18167 cat >conftest.
$ac_ext <<_ACEOF
18168 #line $LINENO "configure"
18169 #include "confdefs.h"
18170 #include <stdlib.h>
18173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18174 $EGREP "free" >/dev
/null
2>&1; then
18177 ac_cv_header_stdc
=no
18183 if test $ac_cv_header_stdc = yes; then
18184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18185 if test "$cross_compiling" = yes; then
18188 cat >conftest.
$ac_ext <<_ACEOF
18189 #line $LINENO "configure"
18190 #include "confdefs.h"
18192 #if ((' ' & 0x0FF) == 0x020)
18193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18196 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18197 || ('j' <= (c) && (c) <= 'r') \
18198 || ('s' <= (c) && (c) <= 'z'))
18199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18207 for (i = 0; i < 256; i++)
18208 if (XOR (islower (i), ISLOWER (i))
18209 || toupper (i) != TOUPPER (i))
18214 rm -f conftest
$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18227 echo "$as_me: program exited with status $ac_status" >&5
18228 echo "$as_me: failed program was:" >&5
18229 cat conftest.
$ac_ext >&5
18230 ( exit $ac_status )
18231 ac_cv_header_stdc
=no
18233 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18239 if test $ac_cv_header_stdc = yes; then
18241 cat >>confdefs.h
<<\_ACEOF
18242 #define STDC_HEADERS 1
18247 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
18248 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
18249 if test "${ac_cv_header_stat_broken+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.
$ac_ext <<_ACEOF
18253 #line $LINENO "configure"
18254 #include "confdefs.h"
18255 #include <sys/types.h>
18256 #include <sys/stat.h>
18258 #if defined(S_ISBLK) && defined(S_IFDIR)
18259 # if S_ISBLK (S_IFDIR)
18264 #if defined(S_ISBLK) && defined(S_IFCHR)
18265 # if S_ISBLK (S_IFCHR)
18270 #if defined(S_ISLNK) && defined(S_IFREG)
18271 # if S_ISLNK (S_IFREG)
18276 #if defined(S_ISSOCK) && defined(S_IFREG)
18277 # if S_ISSOCK (S_IFREG)
18283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18284 $EGREP "You lose" >/dev
/null
2>&1; then
18285 ac_cv_header_stat_broken
=yes
18287 ac_cv_header_stat_broken
=no
18292 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
18293 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
18294 if test $ac_cv_header_stat_broken = yes; then
18296 cat >>confdefs.h
<<\_ACEOF
18297 #define STAT_MACROS_BROKEN 1
18306 for ac_header
in fcntl.h sys
/time.h stdint.h unistd.h
18308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18310 echo "$as_me:$LINENO: checking for $ac_header" >&5
18311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18318 # Is the header compilable?
18319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18321 cat >conftest.
$ac_ext <<_ACEOF
18322 #line $LINENO "configure"
18323 #include "confdefs.h"
18324 $ac_includes_default
18325 #include <$ac_header>
18327 rm -f conftest.
$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try
='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_header_compiler
=yes
18341 echo "$as_me: failed program was:" >&5
18342 cat conftest.
$ac_ext >&5
18343 ac_header_compiler
=no
18345 rm -f conftest.
$ac_objext conftest.
$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18347 echo "${ECHO_T}$ac_header_compiler" >&6
18349 # Is the header present?
18350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18352 cat >conftest.
$ac_ext <<_ACEOF
18353 #line $LINENO "configure"
18354 #include "confdefs.h"
18355 #include <$ac_header>
18357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18360 grep -v '^ *+' conftest.er1
>conftest.err
18362 cat conftest.err
>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } >/dev
/null
; then
18365 if test -s conftest.err
; then
18366 ac_cpp_err
=$ac_c_preproc_warn_flag
18373 if test -z "$ac_cpp_err"; then
18374 ac_header_preproc
=yes
18376 echo "$as_me: failed program was:" >&5
18377 cat conftest.
$ac_ext >&5
18378 ac_header_preproc
=no
18380 rm -f conftest.err conftest.
$ac_ext
18381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18382 echo "${ECHO_T}$ac_header_preproc" >&6
18384 # So? What about this header?
18385 case $ac_header_compiler:$ac_header_preproc in
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18399 echo "$as_me:$LINENO: checking for $ac_header" >&5
18400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 eval "$as_ac_Header=$ac_header_preproc"
18406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18411 cat >>confdefs.h
<<_ACEOF
18412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18421 for ac_func
in __secure_getenv gettimeofday
18423 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18424 echo "$as_me:$LINENO: checking for $ac_func" >&5
18425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18426 if eval "test \"\${$as_ac_var+set}\" = set"; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.
$ac_ext <<_ACEOF
18430 #line $LINENO "configure"
18431 #include "confdefs.h"
18432 /* System header to define __stub macros and hopefully few prototypes,
18433 which can conflict with char $ac_func (); below. */
18434 #include <assert.h>
18435 /* Override any gcc2 internal prototype to avoid an error. */
18439 /* We use char because int might match the return type of a gcc2
18440 builtin and then its argument prototype would still apply. */
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18460 rm -f conftest.
$ac_objext conftest
$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462 (eval $ac_link) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try
='test -s conftest$ac_exeext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 eval "$as_ac_var=yes"
18474 echo "$as_me: failed program was:" >&5
18475 cat conftest.
$ac_ext >&5
18476 eval "$as_ac_var=no"
18478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18482 if test `eval echo '${'$as_ac_var'}'` = yes; then
18483 cat >>confdefs.h
<<_ACEOF
18484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18490 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18491 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18492 if test "${ac_cv_have_decl_getenv+set}" = set; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 cat >conftest.
$ac_ext <<_ACEOF
18496 #line $LINENO "configure"
18497 #include "confdefs.h"
18498 $ac_includes_default
18503 char *p = (char *) getenv;
18510 rm -f conftest.
$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try
='test -s conftest.$ac_objext'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 ac_cv_have_decl_getenv
=yes
18524 echo "$as_me: failed program was:" >&5
18525 cat conftest.
$ac_ext >&5
18526 ac_cv_have_decl_getenv
=no
18528 rm -f conftest.
$ac_objext conftest.
$ac_ext
18530 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18531 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18532 if test $ac_cv_have_decl_getenv = yes; then
18534 cat >>confdefs.h
<<_ACEOF
18535 #define HAVE_DECL_GETENV 1
18540 cat >>confdefs.h
<<_ACEOF
18541 #define HAVE_DECL_GETENV 0
18549 # called by mkstemp
18551 echo "$as_me:$LINENO: checking for function prototypes" >&5
18552 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18553 if test "$ac_cv_prog_cc_stdc" != no
; then
18554 echo "$as_me:$LINENO: result: yes" >&5
18555 echo "${ECHO_T}yes" >&6
18557 cat >>confdefs.h
<<\_ACEOF
18558 #define PROTOTYPES 1
18562 cat >>confdefs.h
<<\_ACEOF
18563 #define __PROTOTYPES 1
18567 echo "$as_me:$LINENO: result: no" >&5
18568 echo "${ECHO_T}no" >&6
18575 for ac_header
in limits.h stdlib.h sys
/param.h unistd.h
18577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18579 echo "$as_me:$LINENO: checking for $ac_header" >&5
18580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18587 # Is the header compilable?
18588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18590 cat >conftest.
$ac_ext <<_ACEOF
18591 #line $LINENO "configure"
18592 #include "confdefs.h"
18593 $ac_includes_default
18594 #include <$ac_header>
18596 rm -f conftest.
$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try
='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_header_compiler
=yes
18610 echo "$as_me: failed program was:" >&5
18611 cat conftest.
$ac_ext >&5
18612 ac_header_compiler
=no
18614 rm -f conftest.
$ac_objext conftest.
$ac_ext
18615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18616 echo "${ECHO_T}$ac_header_compiler" >&6
18618 # Is the header present?
18619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18621 cat >conftest.
$ac_ext <<_ACEOF
18622 #line $LINENO "configure"
18623 #include "confdefs.h"
18624 #include <$ac_header>
18626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18629 grep -v '^ *+' conftest.er1
>conftest.err
18631 cat conftest.err
>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } >/dev
/null
; then
18634 if test -s conftest.err
; then
18635 ac_cpp_err
=$ac_c_preproc_warn_flag
18642 if test -z "$ac_cpp_err"; then
18643 ac_header_preproc
=yes
18645 echo "$as_me: failed program was:" >&5
18646 cat conftest.
$ac_ext >&5
18647 ac_header_preproc
=no
18649 rm -f conftest.err conftest.
$ac_ext
18650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18651 echo "${ECHO_T}$ac_header_preproc" >&6
18653 # So? What about this header?
18654 case $ac_header_compiler:$ac_header_preproc in
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18668 echo "$as_me:$LINENO: checking for $ac_header" >&5
18669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 eval "$as_ac_Header=$ac_header_preproc"
18675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18680 cat >>confdefs.h
<<_ACEOF
18681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18689 for ac_func
in getcwd
18691 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18692 echo "$as_me:$LINENO: checking for $ac_func" >&5
18693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18694 if eval "test \"\${$as_ac_var+set}\" = set"; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 cat >conftest.
$ac_ext <<_ACEOF
18698 #line $LINENO "configure"
18699 #include "confdefs.h"
18700 /* System header to define __stub macros and hopefully few prototypes,
18701 which can conflict with char $ac_func (); below. */
18702 #include <assert.h>
18703 /* Override any gcc2 internal prototype to avoid an error. */
18707 /* We use char because int might match the return type of a gcc2
18708 builtin and then its argument prototype would still apply. */
18715 /* The GNU C library defines this for functions which it implements
18716 to always fail with ENOSYS. Some functions are actually named
18717 something starting with __ and the normal name is an alias. */
18718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18728 rm -f conftest.
$ac_objext conftest
$ac_exeext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18730 (eval $ac_link) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try
='test -s conftest$ac_exeext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 eval "$as_ac_var=yes"
18742 echo "$as_me: failed program was:" >&5
18743 cat conftest.
$ac_ext >&5
18744 eval "$as_ac_var=no"
18746 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18750 if test `eval echo '${'$as_ac_var'}'` = yes; then
18751 cat >>confdefs.h
<<_ACEOF
18752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18760 for ac_header
in stdlib.h unistd.h
18762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18764 echo "$as_me:$LINENO: checking for $ac_header" >&5
18765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18772 # Is the header compilable?
18773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18775 cat >conftest.
$ac_ext <<_ACEOF
18776 #line $LINENO "configure"
18777 #include "confdefs.h"
18778 $ac_includes_default
18779 #include <$ac_header>
18781 rm -f conftest.
$ac_objext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try
='test -s conftest.$ac_objext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_header_compiler
=yes
18795 echo "$as_me: failed program was:" >&5
18796 cat conftest.
$ac_ext >&5
18797 ac_header_compiler
=no
18799 rm -f conftest.
$ac_objext conftest.
$ac_ext
18800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18801 echo "${ECHO_T}$ac_header_compiler" >&6
18803 # Is the header present?
18804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18806 cat >conftest.
$ac_ext <<_ACEOF
18807 #line $LINENO "configure"
18808 #include "confdefs.h"
18809 #include <$ac_header>
18811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18814 grep -v '^ *+' conftest.er1
>conftest.err
18816 cat conftest.err
>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } >/dev
/null
; then
18819 if test -s conftest.err
; then
18820 ac_cpp_err
=$ac_c_preproc_warn_flag
18827 if test -z "$ac_cpp_err"; then
18828 ac_header_preproc
=yes
18830 echo "$as_me: failed program was:" >&5
18831 cat conftest.
$ac_ext >&5
18832 ac_header_preproc
=no
18834 rm -f conftest.err conftest.
$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836 echo "${ECHO_T}$ac_header_preproc" >&6
18838 # So? What about this header?
18839 case $ac_header_compiler:$ac_header_preproc in
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18853 echo "$as_me:$LINENO: checking for $ac_header" >&5
18854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 eval "$as_ac_Header=$ac_header_preproc"
18860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18865 cat >>confdefs.h
<<_ACEOF
18866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18873 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
18874 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
18875 if test "${ac_cv_func_getcwd_null+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 if test "$cross_compiling" = yes; then
18879 ac_cv_func_getcwd_null
=no
18881 cat >conftest.
$ac_ext <<_ACEOF
18882 #line $LINENO "configure"
18883 #include "confdefs.h"
18885 # ifdef HAVE_STDLIB_H
18886 # include <stdlib.h>
18888 # ifdef HAVE_UNISTD_H
18889 # include <unistd.h>
18897 if (chdir ("/") != 0)
18901 char *f = getcwd (NULL, 0);
18902 exit (! (f && f[0] == '/' && !f[1]));
18906 rm -f conftest
$ac_exeext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18908 (eval $ac_link) 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_cv_func_getcwd_null
=yes
18919 echo "$as_me: program exited with status $ac_status" >&5
18920 echo "$as_me: failed program was:" >&5
18921 cat conftest.
$ac_ext >&5
18922 ( exit $ac_status )
18923 ac_cv_func_getcwd_null
=no
18925 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18928 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
18929 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
18930 if test $ac_cv_func_getcwd_null = yes; then
18932 cat >>confdefs.h
<<\_ACEOF
18933 #define HAVE_GETCWD_NULL 1
18939 echo "$as_me:$LINENO: checking for function prototypes" >&5
18940 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
18941 if test "$ac_cv_prog_cc_stdc" != no
; then
18942 echo "$as_me:$LINENO: result: yes" >&5
18943 echo "${ECHO_T}yes" >&6
18945 cat >>confdefs.h
<<\_ACEOF
18946 #define PROTOTYPES 1
18950 cat >>confdefs.h
<<\_ACEOF
18951 #define __PROTOTYPES 1
18955 echo "$as_me:$LINENO: result: no" >&5
18956 echo "${ECHO_T}no" >&6
18963 for ac_header
in limits.h stdlib.h sys
/types.h unistd.h
18965 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967 echo "$as_me:$LINENO: checking for $ac_header" >&5
18968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18975 # Is the header compilable?
18976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18978 cat >conftest.
$ac_ext <<_ACEOF
18979 #line $LINENO "configure"
18980 #include "confdefs.h"
18981 $ac_includes_default
18982 #include <$ac_header>
18984 rm -f conftest.
$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986 (eval $ac_compile) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try
='test -s conftest.$ac_objext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 ac_header_compiler
=yes
18998 echo "$as_me: failed program was:" >&5
18999 cat conftest.
$ac_ext >&5
19000 ac_header_compiler
=no
19002 rm -f conftest.
$ac_objext conftest.
$ac_ext
19003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19004 echo "${ECHO_T}$ac_header_compiler" >&6
19006 # Is the header present?
19007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19009 cat >conftest.
$ac_ext <<_ACEOF
19010 #line $LINENO "configure"
19011 #include "confdefs.h"
19012 #include <$ac_header>
19014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1
>conftest.err
19019 cat conftest.err
>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } >/dev
/null
; then
19022 if test -s conftest.err
; then
19023 ac_cpp_err
=$ac_c_preproc_warn_flag
19030 if test -z "$ac_cpp_err"; then
19031 ac_header_preproc
=yes
19033 echo "$as_me: failed program was:" >&5
19034 cat conftest.
$ac_ext >&5
19035 ac_header_preproc
=no
19037 rm -f conftest.err conftest.
$ac_ext
19038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19039 echo "${ECHO_T}$ac_header_preproc" >&6
19041 # So? What about this header?
19042 case $ac_header_compiler:$ac_header_preproc in
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 eval "$as_ac_Header=$ac_header_preproc"
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068 cat >>confdefs.h
<<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19084 ac_header_dirent
=no
19085 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19086 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19087 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 cat >conftest.
$ac_ext <<_ACEOF
19093 #line $LINENO "configure"
19094 #include "confdefs.h"
19095 #include <sys/types.h>
19107 rm -f conftest.
$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
19113 { ac_try
='test -s conftest.$ac_objext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 eval "$as_ac_Header=yes"
19121 echo "$as_me: failed program was:" >&5
19122 cat conftest.
$ac_ext >&5
19123 eval "$as_ac_Header=no"
19125 rm -f conftest.
$ac_objext conftest.
$ac_ext
19127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130 cat >>confdefs.h
<<_ACEOF
19131 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19134 ac_header_dirent
=$ac_hdr; break
19138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19139 if test $ac_header_dirent = dirent.h
; then
19141 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19142 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19143 if test "${ac_cv_search_opendir+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 ac_func_search_save_LIBS
=$LIBS
19148 ac_cv_search_opendir
=no
19149 cat >conftest.
$ac_ext <<_ACEOF
19150 #line $LINENO "configure"
19151 #include "confdefs.h"
19153 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19168 rm -f conftest.
$ac_objext conftest
$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try
='test -s conftest$ac_exeext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_cv_search_opendir
='none required'
19182 echo "$as_me: failed program was:" >&5
19183 cat conftest.
$ac_ext >&5
19185 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19186 if test "$ac_cv_search_opendir" = no
; then
19187 for ac_lib
in dir
; do
19188 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19189 cat >conftest.
$ac_ext <<_ACEOF
19190 #line $LINENO "configure"
19191 #include "confdefs.h"
19193 /* Override any gcc2 internal prototype to avoid an error. */
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19208 rm -f conftest.
$ac_objext conftest
$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try
='test -s conftest$ac_exeext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_search_opendir
="-l$ac_lib"; break
19222 echo "$as_me: failed program was:" >&5
19223 cat conftest.
$ac_ext >&5
19225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19228 LIBS
=$ac_func_search_save_LIBS
19231 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19232 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19234 if test "$ac_cv_search_opendir" = no
; then :
19237 if test "$ac_cv_search_opendir" = 'none required'; then :
19240 LIBS
="$ac_cv_search_opendir $LIBS"
19247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19249 if test "${ac_cv_search_opendir+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 ac_func_search_save_LIBS
=$LIBS
19254 ac_cv_search_opendir
=no
19255 cat >conftest.
$ac_ext <<_ACEOF
19256 #line $LINENO "configure"
19257 #include "confdefs.h"
19259 /* Override any gcc2 internal prototype to avoid an error. */
19263 /* We use char because int might match the return type of a gcc2
19264 builtin and then its argument prototype would still apply. */
19274 rm -f conftest.
$ac_objext conftest
$ac_exeext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19276 (eval $ac_link) 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try
='test -s conftest$ac_exeext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_search_opendir
='none required'
19288 echo "$as_me: failed program was:" >&5
19289 cat conftest.
$ac_ext >&5
19291 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19292 if test "$ac_cv_search_opendir" = no
; then
19293 for ac_lib
in x
; do
19294 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19295 cat >conftest.
$ac_ext <<_ACEOF
19296 #line $LINENO "configure"
19297 #include "confdefs.h"
19299 /* Override any gcc2 internal prototype to avoid an error. */
19303 /* We use char because int might match the return type of a gcc2
19304 builtin and then its argument prototype would still apply. */
19314 rm -f conftest.
$ac_objext conftest
$ac_exeext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19316 (eval $ac_link) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try
='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_search_opendir
="-l$ac_lib"; break
19328 echo "$as_me: failed program was:" >&5
19329 cat conftest.
$ac_ext >&5
19331 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19334 LIBS
=$ac_func_search_save_LIBS
19337 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19338 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19340 if test "$ac_cv_search_opendir" = no
; then :
19343 if test "$ac_cv_search_opendir" = 'none required'; then :
19346 LIBS
="$ac_cv_search_opendir $LIBS"
19355 # include <dirent.h>
19356 #else /* not HAVE_DIRENT_H */
19357 # define dirent direct
19358 # if HAVE_SYS_NDIR_H
19359 # include <sys/ndir.h>
19360 # endif /* HAVE_SYS_NDIR_H */
19361 # if HAVE_SYS_DIR_H
19362 # include <sys/dir.h>
19363 # endif /* HAVE_SYS_DIR_H */
19366 # endif /* HAVE_NDIR_H */
19367 #endif /* HAVE_DIRENT_H */
19370 for ac_func
in dirfd
19372 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373 echo "$as_me:$LINENO: checking for $ac_func" >&5
19374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19375 if eval "test \"\${$as_ac_var+set}\" = set"; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 cat >conftest.
$ac_ext <<_ACEOF
19379 #line $LINENO "configure"
19380 #include "confdefs.h"
19381 /* System header to define __stub macros and hopefully few prototypes,
19382 which can conflict with char $ac_func (); below. */
19383 #include <assert.h>
19384 /* Override any gcc2 internal prototype to avoid an error. */
19388 /* We use char because int might match the return type of a gcc2
19389 builtin and then its argument prototype would still apply. */
19396 /* The GNU C library defines this for functions which it implements
19397 to always fail with ENOSYS. Some functions are actually named
19398 something starting with __ and the normal name is an alias. */
19399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19409 rm -f conftest.
$ac_objext conftest
$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try
='test -s conftest$ac_exeext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 eval "$as_ac_var=yes"
19423 echo "$as_me: failed program was:" >&5
19424 cat conftest.
$ac_ext >&5
19425 eval "$as_ac_var=no"
19427 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19431 if test `eval echo '${'$as_ac_var'}'` = yes; then
19432 cat >>confdefs.h
<<_ACEOF
19433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19439 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
19440 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
19441 if test "${ac_cv_have_decl_dirfd+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 cat >conftest.
$ac_ext <<_ACEOF
19445 #line $LINENO "configure"
19446 #include "confdefs.h"
19453 char *p = (char *) dirfd;
19460 rm -f conftest.
$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try
='test -s conftest.$ac_objext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_have_decl_dirfd
=yes
19474 echo "$as_me: failed program was:" >&5
19475 cat conftest.
$ac_ext >&5
19476 ac_cv_have_decl_dirfd
=no
19478 rm -f conftest.
$ac_objext conftest.
$ac_ext
19480 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
19481 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
19482 if test $ac_cv_have_decl_dirfd = yes; then
19484 cat >>confdefs.h
<<_ACEOF
19485 #define HAVE_DECL_DIRFD 1
19490 cat >>confdefs.h
<<_ACEOF
19491 #define HAVE_DECL_DIRFD 0
19499 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
19500 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
19501 if test "${jm_cv_func_dirfd_macro+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 cat >conftest.
$ac_ext <<_ACEOF
19505 #line $LINENO "configure"
19506 #include "confdefs.h"
19509 dirent_header_defines_dirfd
19512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19513 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then
19514 jm_cv_func_dirfd_macro
=yes
19516 jm_cv_func_dirfd_macro
=no
19521 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
19522 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
19524 # Use the replacement only if we have no function, macro,
19525 # or declaration with that name.
19526 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
19529 for ac_func
in dirfd
19531 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19532 echo "$as_me:$LINENO: checking for $ac_func" >&5
19533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19534 if eval "test \"\${$as_ac_var+set}\" = set"; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 cat >conftest.
$ac_ext <<_ACEOF
19538 #line $LINENO "configure"
19539 #include "confdefs.h"
19540 /* System header to define __stub macros and hopefully few prototypes,
19541 which can conflict with char $ac_func (); below. */
19542 #include <assert.h>
19543 /* Override any gcc2 internal prototype to avoid an error. */
19547 /* We use char because int might match the return type of a gcc2
19548 builtin and then its argument prototype would still apply. */
19555 /* The GNU C library defines this for functions which it implements
19556 to always fail with ENOSYS. Some functions are actually named
19557 something starting with __ and the normal name is an alias. */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19568 rm -f conftest.
$ac_objext conftest
$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try
='test -s conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 eval "$as_ac_var=yes"
19582 echo "$as_me: failed program was:" >&5
19583 cat conftest.
$ac_ext >&5
19584 eval "$as_ac_var=no"
19586 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19590 if test `eval echo '${'$as_ac_var'}'` = yes; then
19591 cat >>confdefs.h
<<_ACEOF
19592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19596 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19601 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
19602 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
19603 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 dirfd_save_CFLAGS
=$CFLAGS
19608 for ac_expr
in d_fd dd_fd
; do
19610 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19611 cat >conftest.
$ac_ext <<_ACEOF
19612 #line $LINENO "configure"
19613 #include "confdefs.h"
19619 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19624 rm -f conftest.
$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try
='test -s conftest.$ac_objext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19639 echo "$as_me: failed program was:" >&5
19640 cat conftest.
$ac_ext >&5
19642 rm -f conftest.
$ac_objext conftest.
$ac_ext
19643 CFLAGS
=$dirfd_save_CFLAGS
19644 test "$dir_fd_found" = yes && break
19646 test "$dir_fd_found" = yes || ac_expr
=-1
19648 ac_cv_sys_dir_fd_member_name
=$ac_expr
19652 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
19653 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
19654 if test $ac_cv_have_decl_dirfd = -1; then
19656 cat >>confdefs.h
<<_ACEOF
19657 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
19666 for ac_header
in sys
/acl.h
19668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19670 echo "$as_me:$LINENO: checking for $ac_header" >&5
19671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19678 # Is the header compilable?
19679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19681 cat >conftest.
$ac_ext <<_ACEOF
19682 #line $LINENO "configure"
19683 #include "confdefs.h"
19684 $ac_includes_default
19685 #include <$ac_header>
19687 rm -f conftest.
$ac_objext
19688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19689 (eval $ac_compile) 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try
='test -s conftest.$ac_objext'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_header_compiler
=yes
19701 echo "$as_me: failed program was:" >&5
19702 cat conftest.
$ac_ext >&5
19703 ac_header_compiler
=no
19705 rm -f conftest.
$ac_objext conftest.
$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19712 cat >conftest.
$ac_ext <<_ACEOF
19713 #line $LINENO "configure"
19714 #include "confdefs.h"
19715 #include <$ac_header>
19717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1
>conftest.err
19722 cat conftest.err
>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } >/dev
/null
; then
19725 if test -s conftest.err
; then
19726 ac_cpp_err
=$ac_c_preproc_warn_flag
19733 if test -z "$ac_cpp_err"; then
19734 ac_header_preproc
=yes
19736 echo "$as_me: failed program was:" >&5
19737 cat conftest.
$ac_ext >&5
19738 ac_header_preproc
=no
19740 rm -f conftest.err conftest.
$ac_ext
19741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19742 echo "${ECHO_T}$ac_header_preproc" >&6
19744 # So? What about this header?
19745 case $ac_header_compiler:$ac_header_preproc in
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19759 echo "$as_me:$LINENO: checking for $ac_header" >&5
19760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 eval "$as_ac_Header=$ac_header_preproc"
19766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19771 cat >>confdefs.h
<<_ACEOF
19772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_var+set}\" = set"; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 cat >conftest.
$ac_ext <<_ACEOF
19789 #line $LINENO "configure"
19790 #include "confdefs.h"
19791 /* System header to define __stub macros and hopefully few prototypes,
19792 which can conflict with char $ac_func (); below. */
19793 #include <assert.h>
19794 /* Override any gcc2 internal prototype to avoid an error. */
19798 /* We use char because int might match the return type of a gcc2
19799 builtin and then its argument prototype would still apply. */
19806 /* The GNU C library defines this for functions which it implements
19807 to always fail with ENOSYS. Some functions are actually named
19808 something starting with __ and the normal name is an alias. */
19809 #if defined (__stub_$ac_func) || defined (__stub___$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 cat conftest.
$ac_ext >&5
19835 eval "$as_ac_var=no"
19837 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19841 if test `eval echo '${'$as_ac_var'}'` = yes; then
19842 cat >>confdefs.h
<<_ACEOF
19843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19852 for ac_func
in lchown
19854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19855 echo "$as_me:$LINENO: checking for $ac_func" >&5
19856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_var+set}\" = set"; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 cat >conftest.
$ac_ext <<_ACEOF
19861 #line $LINENO "configure"
19862 #include "confdefs.h"
19863 /* System header to define __stub macros and hopefully few prototypes,
19864 which can conflict with char $ac_func (); below. */
19865 #include <assert.h>
19866 /* Override any gcc2 internal prototype to avoid an error. */
19870 /* We use char because int might match the return type of a gcc2
19871 builtin and then its argument prototype would still apply. */
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19891 rm -f conftest.
$ac_objext conftest
$ac_exeext
19892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19893 (eval $ac_link) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
19897 { ac_try
='test -s conftest$ac_exeext'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 eval "$as_ac_var=yes"
19905 echo "$as_me: failed program was:" >&5
19906 cat conftest.
$ac_ext >&5
19907 eval "$as_ac_var=no"
19909 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
19911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19913 if test `eval echo '${'$as_ac_var'}'` = yes; then
19914 cat >>confdefs.h
<<_ACEOF
19915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19919 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19925 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
19926 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
19927 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 # Arrange for deletion of the temporary directory this test creates.
19932 ac_clean_files
="$ac_clean_files confdir2"
19933 mkdir confdir2
; : > confdir
2/file
19934 if test "$cross_compiling" = yes; then
19935 fetish_cv_func_rmdir_errno_not_empty
=ENOTEMPTY
19938 cat >conftest.
$ac_ext <<_ACEOF
19939 #line $LINENO "configure"
19940 #include "confdefs.h"
19951 rmdir ("confdir2");
19953 s = fopen ("confdir2/errno", "w");
19954 fprintf (s, "%d\n", val);
19959 rm -f conftest
$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961 (eval $ac_link) 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 fetish_cv_func_rmdir_errno_not_empty
=`cat confdir2/errno`
19972 echo "$as_me: program exited with status $ac_status" >&5
19973 echo "$as_me: failed program was:" >&5
19974 cat conftest.
$ac_ext >&5
19975 ( exit $ac_status )
19976 fetish_cv_func_rmdir_errno_not_empty
='configure error in rmdir-errno.m4'
19978 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19983 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
19984 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
19987 cat >>confdefs.h
<<_ACEOF
19988 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
19992 test -z "$ac_cv_header_unistd_h" \
19994 for ac_header
in unistd.h
19996 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19998 echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20006 # Is the header compilable?
20007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20009 cat >conftest.
$ac_ext <<_ACEOF
20010 #line $LINENO "configure"
20011 #include "confdefs.h"
20012 $ac_includes_default
20013 #include <$ac_header>
20015 rm -f conftest.
$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017 (eval $ac_compile) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try
='test -s conftest.$ac_objext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_header_compiler
=yes
20029 echo "$as_me: failed program was:" >&5
20030 cat conftest.
$ac_ext >&5
20031 ac_header_compiler
=no
20033 rm -f conftest.
$ac_objext conftest.
$ac_ext
20034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20035 echo "${ECHO_T}$ac_header_compiler" >&6
20037 # Is the header present?
20038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20040 cat >conftest.
$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 #include "confdefs.h"
20043 #include <$ac_header>
20045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20046 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20048 grep -v '^ *+' conftest.er1
>conftest.err
20050 cat conftest.err
>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } >/dev
/null
; then
20053 if test -s conftest.err
; then
20054 ac_cpp_err
=$ac_c_preproc_warn_flag
20061 if test -z "$ac_cpp_err"; then
20062 ac_header_preproc
=yes
20064 echo "$as_me: failed program was:" >&5
20065 cat conftest.
$ac_ext >&5
20066 ac_header_preproc
=no
20068 rm -f conftest.err conftest.
$ac_ext
20069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20070 echo "${ECHO_T}$ac_header_preproc" >&6
20072 # So? What about this header?
20073 case $ac_header_compiler:$ac_header_preproc in
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20087 echo "$as_me:$LINENO: checking for $ac_header" >&5
20088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 eval "$as_ac_Header=$ac_header_preproc"
20094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20099 cat >>confdefs.h
<<_ACEOF
20100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20107 echo "$as_me:$LINENO: checking for working chown" >&5
20108 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
20109 if test "${jm_cv_func_working_chown+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 if test "$cross_compiling" = yes; then
20113 jm_cv_func_working_chown
=no
20115 cat >conftest.
$ac_ext <<_ACEOF
20116 #line $LINENO "configure"
20117 #include "confdefs.h"
20119 # include <sys/types.h>
20120 # include <sys/stat.h>
20121 # include <fcntl.h>
20122 # ifdef HAVE_UNISTD_H
20123 # include <unistd.h>
20129 char *f = "conftest.chown";
20130 struct stat before, after;
20132 if (creat (f, 0600) < 0)
20134 if (stat (f, &before) < 0)
20136 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20138 if (stat (f, &after) < 0)
20140 exit ((before.st_uid == after.st_uid
20141 && before.st_gid == after.st_gid) ? 0 : 1);
20145 rm -f conftest
$ac_exeext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20147 (eval $ac_link) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 jm_cv_func_working_chown
=yes
20158 echo "$as_me: program exited with status $ac_status" >&5
20159 echo "$as_me: failed program was:" >&5
20160 cat conftest.
$ac_ext >&5
20161 ( exit $ac_status )
20162 jm_cv_func_working_chown
=no
20164 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20168 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
20169 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
20170 if test $jm_cv_func_working_chown = no
; then
20171 LIBOBJS
="$LIBOBJS chown.$ac_objext"
20173 cat >>confdefs.h
<<\_ACEOF
20174 #define chown rpl_chown
20181 for ac_header
in sys
/time.h unistd.h
20183 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20185 echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20193 # Is the header compilable?
20194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20196 cat >conftest.
$ac_ext <<_ACEOF
20197 #line $LINENO "configure"
20198 #include "confdefs.h"
20199 $ac_includes_default
20200 #include <$ac_header>
20202 rm -f conftest.
$ac_objext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204 (eval $ac_compile) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try
='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_header_compiler
=yes
20216 echo "$as_me: failed program was:" >&5
20217 cat conftest.
$ac_ext >&5
20218 ac_header_compiler
=no
20220 rm -f conftest.
$ac_objext conftest.
$ac_ext
20221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 echo "${ECHO_T}$ac_header_compiler" >&6
20224 # Is the header present?
20225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20227 cat >conftest.
$ac_ext <<_ACEOF
20228 #line $LINENO "configure"
20229 #include "confdefs.h"
20230 #include <$ac_header>
20232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20235 grep -v '^ *+' conftest.er1
>conftest.err
20237 cat conftest.err
>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } >/dev
/null
; then
20240 if test -s conftest.err
; then
20241 ac_cpp_err
=$ac_c_preproc_warn_flag
20248 if test -z "$ac_cpp_err"; then
20249 ac_header_preproc
=yes
20251 echo "$as_me: failed program was:" >&5
20252 cat conftest.
$ac_ext >&5
20253 ac_header_preproc
=no
20255 rm -f conftest.err conftest.
$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20257 echo "${ECHO_T}$ac_header_preproc" >&6
20259 # So? What about this header?
20260 case $ac_header_compiler:$ac_header_preproc in
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20274 echo "$as_me:$LINENO: checking for $ac_header" >&5
20275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 eval "$as_ac_Header=$ac_header_preproc"
20281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20286 cat >>confdefs.h
<<_ACEOF
20287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20295 for ac_func
in alarm
20297 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20298 echo "$as_me:$LINENO: checking for $ac_func" >&5
20299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20300 if eval "test \"\${$as_ac_var+set}\" = set"; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 cat >conftest.
$ac_ext <<_ACEOF
20304 #line $LINENO "configure"
20305 #include "confdefs.h"
20306 /* System header to define __stub macros and hopefully few prototypes,
20307 which can conflict with char $ac_func (); below. */
20308 #include <assert.h>
20309 /* Override any gcc2 internal prototype to avoid an error. */
20313 /* We use char because int might match the return type of a gcc2
20314 builtin and then its argument prototype would still apply. */
20321 /* The GNU C library defines this for functions which it implements
20322 to always fail with ENOSYS. Some functions are actually named
20323 something starting with __ and the normal name is an alias. */
20324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20334 rm -f conftest.
$ac_objext conftest
$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try
='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 eval "$as_ac_var=yes"
20348 echo "$as_me: failed program was:" >&5
20349 cat conftest.
$ac_ext >&5
20350 eval "$as_ac_var=no"
20352 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20356 if test `eval echo '${'$as_ac_var'}'` = yes; then
20357 cat >>confdefs.h
<<_ACEOF
20358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20364 echo "$as_me:$LINENO: checking for working mktime" >&5
20365 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20366 if test "${ac_cv_func_working_mktime+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 if test "$cross_compiling" = yes; then
20370 ac_cv_func_working_mktime
=no
20372 cat >conftest.
$ac_ext <<_ACEOF
20373 #line $LINENO "configure"
20374 #include "confdefs.h"
20375 /* Test program from Paul Eggert and Tony Leneis. */
20376 #if TIME_WITH_SYS_TIME
20377 # include <sys/time.h>
20380 # if HAVE_SYS_TIME_H
20381 # include <sys/time.h>
20388 # include <unistd.h>
20392 # define alarm(X) /* empty */
20395 /* Work around redefinition to rpl_putenv by other config tests. */
20398 static time_t time_t_max;
20400 /* Values we'll use to set the TZ environment variable. */
20401 static const char *const tz_strings[] = {
20402 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
20403 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20405 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20407 /* Fail if mktime fails to convert a date in the spring-forward gap.
20408 Based on a problem report from Andreas Jaeger. */
20410 spring_forward_gap ()
20412 /* glibc (up to about 1998-10-07) failed this test. */
20415 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20416 instead of "TZ=America/Vancouver" in order to detect the bug even
20417 on systems that don't support the Olson extension, or don't have the
20418 full zoneinfo tables installed. */
20419 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20428 if (mktime (&tm) == (time_t)-1)
20437 if ((lt = localtime (&now)) && mktime (lt) != now)
20439 now = time_t_max - now;
20440 if ((lt = localtime (&now)) && mktime (lt) != now)
20447 /* Based on code from Ariel Faigon. */
20457 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20467 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20468 now = mktime (&tm);
20469 if (now != (time_t) -1)
20471 struct tm *lt = localtime (&now);
20473 && lt->tm_year == tm.tm_year
20474 && lt->tm_mon == tm.tm_mon
20475 && lt->tm_mday == tm.tm_mday
20476 && lt->tm_hour == tm.tm_hour
20477 && lt->tm_min == tm.tm_min
20478 && lt->tm_sec == tm.tm_sec
20479 && lt->tm_yday == tm.tm_yday
20480 && lt->tm_wday == tm.tm_wday
20481 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20482 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20493 /* This test makes some buggy mktime implementations loop.
20494 Give up after 60 seconds; a mktime slower than that
20495 isn't worth using anyway. */
20498 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20501 delta = time_t_max / 997; /* a suitable prime number */
20502 for (i = 0; i < N_STRINGS; i++)
20505 putenv (tz_strings[i]);
20507 for (t = 0; t <= time_t_max - delta; t += delta)
20509 mktime_test ((time_t) 60 * 60);
20510 mktime_test ((time_t) 60 * 60 * 24);
20512 for (j = 1; 0 < j; j *= 2)
20514 bigtime_test (j - 1);
20517 spring_forward_gap ();
20521 rm -f conftest
$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523 (eval $ac_link) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_func_working_mktime
=yes
20534 echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 cat conftest.
$ac_ext >&5
20537 ( exit $ac_status )
20538 ac_cv_func_working_mktime
=no
20540 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20543 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20544 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20545 if test $ac_cv_func_working_mktime = no
; then
20546 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
20551 for ac_func
in localtime_r
20553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20554 echo "$as_me:$LINENO: checking for $ac_func" >&5
20555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20556 if eval "test \"\${$as_ac_var+set}\" = set"; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 cat >conftest.
$ac_ext <<_ACEOF
20560 #line $LINENO "configure"
20561 #include "confdefs.h"
20562 /* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func (); below. */
20564 #include <assert.h>
20565 /* Override any gcc2 internal prototype to avoid an error. */
20569 /* We use char because int might match the return type of a gcc2
20570 builtin and then its argument prototype would still apply. */
20577 /* The GNU C library defines this for functions which it implements
20578 to always fail with ENOSYS. Some functions are actually named
20579 something starting with __ and the normal name is an alias. */
20580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20590 rm -f conftest.
$ac_objext conftest
$ac_exeext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20592 (eval $ac_link) 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } &&
20596 { ac_try
='test -s conftest$ac_exeext'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 eval "$as_ac_var=yes"
20604 echo "$as_me: failed program was:" >&5
20605 cat conftest.
$ac_ext >&5
20606 eval "$as_ac_var=no"
20608 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20612 if test `eval echo '${'$as_ac_var'}'` = yes; then
20613 cat >>confdefs.h
<<_ACEOF
20614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20621 if test $ac_cv_func_working_mktime = no
; then
20623 cat >>confdefs.h
<<\_ACEOF
20624 #define mktime rpl_mktime
20629 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20630 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20631 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 rm -f conftest.sym conftest.
file
20635 echo >conftest.
file
20636 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
20637 if test "$cross_compiling" = yes; then
20638 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20640 cat >conftest.
$ac_ext <<_ACEOF
20641 #line $LINENO "configure"
20642 #include "confdefs.h"
20643 $ac_includes_default
20648 /* Linux will dereference the symlink and fail.
20649 That is better in the sense that it means we will not
20650 have to compile and use the lstat wrapper. */
20651 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20656 rm -f conftest
$ac_exeext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20658 (eval $ac_link) 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; }; then
20667 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
20669 echo "$as_me: program exited with status $ac_status" >&5
20670 echo "$as_me: failed program was:" >&5
20671 cat conftest.
$ac_ext >&5
20672 ( exit $ac_status )
20673 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20675 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20678 # If the `ln -s' command failed, then we probably don't even
20679 # have an lstat function.
20680 ac_cv_func_lstat_dereferences_slashed_symlink
=no
20682 rm -f conftest.sym conftest.
file
20685 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20686 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20688 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20690 cat >>confdefs.h
<<_ACEOF
20691 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20695 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
20696 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
20701 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20702 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20703 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 if test "$cross_compiling" = yes; then
20707 jm_cv_func_lstat_empty_string_bug
=yes
20709 cat >conftest.
$ac_ext <<_ACEOF
20710 #line $LINENO "configure"
20711 #include "confdefs.h"
20713 # include <sys/types.h>
20714 # include <sys/stat.h>
20720 exit (lstat ("", &sbuf) ? 1 : 0);
20724 rm -f conftest
$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726 (eval $ac_link) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; }; then
20735 jm_cv_func_lstat_empty_string_bug
=yes
20737 echo "$as_me: program exited with status $ac_status" >&5
20738 echo "$as_me: failed program was:" >&5
20739 cat conftest.
$ac_ext >&5
20740 ( exit $ac_status )
20741 jm_cv_func_lstat_empty_string_bug
=no
20743 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20747 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20748 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20749 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20750 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
20752 cat >>confdefs.h
<<\_ACEOF
20753 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20760 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20761 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
20762 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 if test "$cross_compiling" = yes; then
20766 jm_cv_func_stat_empty_string_bug
=yes
20768 cat >conftest.
$ac_ext <<_ACEOF
20769 #line $LINENO "configure"
20770 #include "confdefs.h"
20772 # include <sys/types.h>
20773 # include <sys/stat.h>
20779 exit (stat ("", &sbuf) ? 1 : 0);
20783 rm -f conftest
$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 jm_cv_func_stat_empty_string_bug
=yes
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 cat conftest.
$ac_ext >&5
20799 ( exit $ac_status )
20800 jm_cv_func_stat_empty_string_bug
=no
20802 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20806 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
20807 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
20808 if test $jm_cv_func_stat_empty_string_bug = yes; then
20809 LIBOBJS
="$LIBOBJS stat.$ac_objext"
20811 cat >>confdefs.h
<<\_ACEOF
20812 #define HAVE_STAT_EMPTY_STRING_BUG 1
20818 for ac_header
in stdlib.h
20820 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20822 echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20830 # Is the header compilable?
20831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20833 cat >conftest.
$ac_ext <<_ACEOF
20834 #line $LINENO "configure"
20835 #include "confdefs.h"
20836 $ac_includes_default
20837 #include <$ac_header>
20839 rm -f conftest.
$ac_objext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20841 (eval $ac_compile) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try
='test -s conftest.$ac_objext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_header_compiler
=yes
20853 echo "$as_me: failed program was:" >&5
20854 cat conftest.
$ac_ext >&5
20855 ac_header_compiler
=no
20857 rm -f conftest.
$ac_objext conftest.
$ac_ext
20858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20859 echo "${ECHO_T}$ac_header_compiler" >&6
20861 # Is the header present?
20862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20864 cat >conftest.
$ac_ext <<_ACEOF
20865 #line $LINENO "configure"
20866 #include "confdefs.h"
20867 #include <$ac_header>
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } >/dev
/null
; then
20877 if test -s conftest.err
; then
20878 ac_cpp_err
=$ac_c_preproc_warn_flag
20885 if test -z "$ac_cpp_err"; then
20886 ac_header_preproc
=yes
20888 echo "$as_me: failed program was:" >&5
20889 cat conftest.
$ac_ext >&5
20890 ac_header_preproc
=no
20892 rm -f conftest.err conftest.
$ac_ext
20893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20894 echo "${ECHO_T}$ac_header_preproc" >&6
20896 # So? What about this header?
20897 case $ac_header_compiler:$ac_header_preproc in
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20911 echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 eval "$as_ac_Header=$ac_header_preproc"
20918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20923 cat >>confdefs.h
<<_ACEOF
20924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931 echo "$as_me:$LINENO: checking for working realloc" >&5
20932 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
20933 if test "${ac_cv_func_realloc_works+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 if test "$cross_compiling" = yes; then
20937 ac_cv_func_realloc_works
=no
20939 cat >conftest.
$ac_ext <<_ACEOF
20940 #line $LINENO "configure"
20941 #include "confdefs.h"
20942 #if STDC_HEADERS || HAVE_STDLIB_H
20943 # include <stdlib.h>
20951 exit (realloc (0, 0) ? 0 : 1);
20956 rm -f conftest
$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958 (eval $ac_link) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 ac_cv_func_realloc_works
=yes
20969 echo "$as_me: program exited with status $ac_status" >&5
20970 echo "$as_me: failed program was:" >&5
20971 cat conftest.
$ac_ext >&5
20972 ( exit $ac_status )
20973 ac_cv_func_realloc_works
=no
20975 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20978 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_works" >&5
20979 echo "${ECHO_T}$ac_cv_func_realloc_works" >&6
20980 if test $ac_cv_func_realloc_works = yes; then
20982 cat >>confdefs.h
<<\_ACEOF
20983 #define HAVE_REALLOC 1
20987 cat >>confdefs.h
<<\_ACEOF
20988 #define HAVE_REALLOC 0
20991 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
20993 cat >>confdefs.h
<<\_ACEOF
20994 #define realloc rpl_realloc
21002 for ac_header
in stdlib.h
21004 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21006 echo "$as_me:$LINENO: checking for $ac_header" >&5
21007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21014 # Is the header compilable?
21015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21017 cat >conftest.
$ac_ext <<_ACEOF
21018 #line $LINENO "configure"
21019 #include "confdefs.h"
21020 $ac_includes_default
21021 #include <$ac_header>
21023 rm -f conftest.
$ac_objext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21025 (eval $ac_compile) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try
='test -s conftest.$ac_objext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_header_compiler
=yes
21037 echo "$as_me: failed program was:" >&5
21038 cat conftest.
$ac_ext >&5
21039 ac_header_compiler
=no
21041 rm -f conftest.
$ac_objext conftest.
$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21043 echo "${ECHO_T}$ac_header_compiler" >&6
21045 # Is the header present?
21046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21048 cat >conftest.
$ac_ext <<_ACEOF
21049 #line $LINENO "configure"
21050 #include "confdefs.h"
21051 #include <$ac_header>
21053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21054 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21056 grep -v '^ *+' conftest.er1
>conftest.err
21058 cat conftest.err
>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev
/null
; then
21061 if test -s conftest.err
; then
21062 ac_cpp_err
=$ac_c_preproc_warn_flag
21069 if test -z "$ac_cpp_err"; then
21070 ac_header_preproc
=yes
21072 echo "$as_me: failed program was:" >&5
21073 cat conftest.
$ac_ext >&5
21074 ac_header_preproc
=no
21076 rm -f conftest.err conftest.
$ac_ext
21077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6
21080 # So? What about this header?
21081 case $ac_header_compiler:$ac_header_preproc in
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21095 echo "$as_me:$LINENO: checking for $ac_header" >&5
21096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 eval "$as_ac_Header=$ac_header_preproc"
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21107 cat >>confdefs.h
<<_ACEOF
21108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21115 echo "$as_me:$LINENO: checking for working malloc" >&5
21116 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
21117 if test "${ac_cv_func_malloc_works+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 if test "$cross_compiling" = yes; then
21121 ac_cv_func_malloc_works
=no
21123 cat >conftest.
$ac_ext <<_ACEOF
21124 #line $LINENO "configure"
21125 #include "confdefs.h"
21126 #if STDC_HEADERS || HAVE_STDLIB_H
21127 # include <stdlib.h>
21135 exit (malloc (0) ? 0 : 1);
21140 rm -f conftest
$ac_exeext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142 (eval $ac_link) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 ac_cv_func_malloc_works
=yes
21153 echo "$as_me: program exited with status $ac_status" >&5
21154 echo "$as_me: failed program was:" >&5
21155 cat conftest.
$ac_ext >&5
21156 ( exit $ac_status )
21157 ac_cv_func_malloc_works
=no
21159 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21162 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
21163 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
21164 if test $ac_cv_func_malloc_works = yes; then
21166 cat >>confdefs.h
<<\_ACEOF
21167 #define HAVE_MALLOC 1
21171 cat >>confdefs.h
<<\_ACEOF
21172 #define HAVE_MALLOC 0
21175 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
21177 cat >>confdefs.h
<<\_ACEOF
21178 #define malloc rpl_malloc
21186 nanosleep_save_libs
=$LIBS
21188 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
21189 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21191 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21192 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
21193 if test "${ac_cv_search_nanosleep+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 ac_func_search_save_LIBS
=$LIBS
21198 ac_cv_search_nanosleep
=no
21199 cat >conftest.
$ac_ext <<_ACEOF
21200 #line $LINENO "configure"
21201 #include "confdefs.h"
21203 /* Override any gcc2 internal prototype to avoid an error. */
21207 /* We use char because int might match the return type of a gcc2
21208 builtin and then its argument prototype would still apply. */
21218 rm -f conftest.
$ac_objext conftest
$ac_exeext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220 (eval $ac_link) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try
='test -s conftest$ac_exeext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ac_cv_search_nanosleep
='none required'
21232 echo "$as_me: failed program was:" >&5
21233 cat conftest.
$ac_ext >&5
21235 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21236 if test "$ac_cv_search_nanosleep" = no
; then
21237 for ac_lib
in rt posix4
; do
21238 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21239 cat >conftest.
$ac_ext <<_ACEOF
21240 #line $LINENO "configure"
21241 #include "confdefs.h"
21243 /* Override any gcc2 internal prototype to avoid an error. */
21247 /* We use char because int might match the return type of a gcc2
21248 builtin and then its argument prototype would still apply. */
21258 rm -f conftest.
$ac_objext conftest
$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 (eval $ac_link) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try
='test -s conftest$ac_exeext'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }; then
21270 ac_cv_search_nanosleep
="-l$ac_lib"; break
21272 echo "$as_me: failed program was:" >&5
21273 cat conftest.
$ac_ext >&5
21275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21278 LIBS
=$ac_func_search_save_LIBS
21281 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21282 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
21284 if test "$ac_cv_search_nanosleep" = no
; then :
21287 if test "$ac_cv_search_nanosleep" = 'none required'; then :
21290 LIBS
="$ac_cv_search_nanosleep $LIBS"
21291 LIB_NANOSLEEP
=$ac_cv_search_nanosleep
21297 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
21298 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
21299 if test "${jm_cv_func_nanosleep_works+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 if test "$cross_compiling" = yes; then
21305 jm_cv_func_nanosleep_works
=no
21307 cat >conftest.
$ac_ext <<_ACEOF
21308 #line $LINENO "configure"
21309 #include "confdefs.h"
21311 # if TIME_WITH_SYS_TIME
21312 # include <sys/time.h>
21315 # if HAVE_SYS_TIME_H
21316 # include <sys/time.h>
21325 struct timespec ts_sleep, ts_remaining;
21326 ts_sleep.tv_sec = 0;
21327 ts_sleep.tv_nsec = 1;
21328 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
21332 rm -f conftest
$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 jm_cv_func_nanosleep_works
=yes
21345 echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 cat conftest.
$ac_ext >&5
21348 ( exit $ac_status )
21349 jm_cv_func_nanosleep_works
=no
21351 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21355 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
21356 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
21357 if test $jm_cv_func_nanosleep_works = no
; then
21358 LIBOBJS
="$LIBOBJS nanosleep.$ac_objext"
21360 cat >>confdefs.h
<<\_ACEOF
21361 #define nanosleep rpl_nanosleep
21366 LIBS
=$nanosleep_save_libs
21368 echo "$as_me:$LINENO: checking for working memcmp" >&5
21369 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21370 if test "${ac_cv_func_memcmp_working+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 if test "$cross_compiling" = yes; then
21374 ac_cv_func_memcmp_working
=no
21376 cat >conftest.
$ac_ext <<_ACEOF
21377 #line $LINENO "configure"
21378 #include "confdefs.h"
21384 /* Some versions of memcmp are not 8-bit clean. */
21385 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21386 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21389 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21390 or more and with at least one buffer not starting on a 4-byte boundary.
21391 William Lewis provided this test program. */
21396 for (i = 0; i < 4; i++)
21400 strcpy (a, "--------01111111");
21401 strcpy (b, "--------10000000");
21402 if (memcmp (a, b, 16) >= 0)
21412 rm -f conftest
$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_func_memcmp_working
=yes
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 cat conftest.
$ac_ext >&5
21428 ( exit $ac_status )
21429 ac_cv_func_memcmp_working
=no
21431 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21434 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21435 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21436 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
21438 if test $ac_cv_func_memcmp_working = no
; then
21440 cat >>confdefs.h
<<\_ACEOF
21441 #define memcmp rpl_memcmp
21447 # Kludge (not executed) to make autoheader do the right thing.
21448 if test a
= b
; then
21449 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
21450 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
21451 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 cat >conftest.
$ac_ext <<_ACEOF
21455 #line $LINENO "configure"
21456 #include "confdefs.h"
21457 $ac_includes_default
21461 #ifndef clearerr_unlocked
21462 char *p = (char *) clearerr_unlocked;
21469 rm -f conftest.
$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471 (eval $ac_compile) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try
='test -s conftest.$ac_objext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_have_decl_clearerr_unlocked
=yes
21483 echo "$as_me: failed program was:" >&5
21484 cat conftest.
$ac_ext >&5
21485 ac_cv_have_decl_clearerr_unlocked
=no
21487 rm -f conftest.
$ac_objext conftest.
$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
21490 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
21491 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
21493 cat >>confdefs.h
<<_ACEOF
21494 #define HAVE_DECL_CLEARERR_UNLOCKED 1
21499 cat >>confdefs.h
<<_ACEOF
21500 #define HAVE_DECL_CLEARERR_UNLOCKED 0
21505 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21506 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
21507 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.
$ac_ext <<_ACEOF
21511 #line $LINENO "configure"
21512 #include "confdefs.h"
21513 $ac_includes_default
21517 #ifndef feof_unlocked
21518 char *p = (char *) feof_unlocked;
21525 rm -f conftest.
$ac_objext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21527 (eval $ac_compile) 2>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
21531 { ac_try
='test -s conftest.$ac_objext'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; }; then
21537 ac_cv_have_decl_feof_unlocked
=yes
21539 echo "$as_me: failed program was:" >&5
21540 cat conftest.
$ac_ext >&5
21541 ac_cv_have_decl_feof_unlocked
=no
21543 rm -f conftest.
$ac_objext conftest.
$ac_ext
21545 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21546 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
21547 if test $ac_cv_have_decl_feof_unlocked = yes; then
21549 cat >>confdefs.h
<<_ACEOF
21550 #define HAVE_DECL_FEOF_UNLOCKED 1
21555 cat >>confdefs.h
<<_ACEOF
21556 #define HAVE_DECL_FEOF_UNLOCKED 0
21561 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
21562 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
21563 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 cat >conftest.
$ac_ext <<_ACEOF
21567 #line $LINENO "configure"
21568 #include "confdefs.h"
21569 $ac_includes_default
21573 #ifndef ferror_unlocked
21574 char *p = (char *) ferror_unlocked;
21581 rm -f conftest.
$ac_objext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21583 (eval $ac_compile) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } &&
21587 { ac_try
='test -s conftest.$ac_objext'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 ac_cv_have_decl_ferror_unlocked
=yes
21595 echo "$as_me: failed program was:" >&5
21596 cat conftest.
$ac_ext >&5
21597 ac_cv_have_decl_ferror_unlocked
=no
21599 rm -f conftest.
$ac_objext conftest.
$ac_ext
21601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
21602 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
21603 if test $ac_cv_have_decl_ferror_unlocked = yes; then
21605 cat >>confdefs.h
<<_ACEOF
21606 #define HAVE_DECL_FERROR_UNLOCKED 1
21611 cat >>confdefs.h
<<_ACEOF
21612 #define HAVE_DECL_FERROR_UNLOCKED 0
21617 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
21618 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
21619 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 cat >conftest.
$ac_ext <<_ACEOF
21623 #line $LINENO "configure"
21624 #include "confdefs.h"
21625 $ac_includes_default
21629 #ifndef fflush_unlocked
21630 char *p = (char *) fflush_unlocked;
21637 rm -f conftest.
$ac_objext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639 (eval $ac_compile) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } &&
21643 { ac_try
='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_have_decl_fflush_unlocked
=yes
21651 echo "$as_me: failed program was:" >&5
21652 cat conftest.
$ac_ext >&5
21653 ac_cv_have_decl_fflush_unlocked
=no
21655 rm -f conftest.
$ac_objext conftest.
$ac_ext
21657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
21658 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
21659 if test $ac_cv_have_decl_fflush_unlocked = yes; then
21661 cat >>confdefs.h
<<_ACEOF
21662 #define HAVE_DECL_FFLUSH_UNLOCKED 1
21667 cat >>confdefs.h
<<_ACEOF
21668 #define HAVE_DECL_FFLUSH_UNLOCKED 0
21673 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21674 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
21675 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 cat >conftest.
$ac_ext <<_ACEOF
21679 #line $LINENO "configure"
21680 #include "confdefs.h"
21681 $ac_includes_default
21685 #ifndef fgets_unlocked
21686 char *p = (char *) fgets_unlocked;
21693 rm -f conftest.
$ac_objext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21695 (eval $ac_compile) 2>&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try
='test -s conftest.$ac_objext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_cv_have_decl_fgets_unlocked
=yes
21707 echo "$as_me: failed program was:" >&5
21708 cat conftest.
$ac_ext >&5
21709 ac_cv_have_decl_fgets_unlocked
=no
21711 rm -f conftest.
$ac_objext conftest.
$ac_ext
21713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21714 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
21715 if test $ac_cv_have_decl_fgets_unlocked = yes; then
21717 cat >>confdefs.h
<<_ACEOF
21718 #define HAVE_DECL_FGETS_UNLOCKED 1
21723 cat >>confdefs.h
<<_ACEOF
21724 #define HAVE_DECL_FGETS_UNLOCKED 0
21729 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
21730 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
21731 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.
$ac_ext <<_ACEOF
21735 #line $LINENO "configure"
21736 #include "confdefs.h"
21737 $ac_includes_default
21741 #ifndef fputc_unlocked
21742 char *p = (char *) fputc_unlocked;
21749 rm -f conftest.
$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
21755 { ac_try
='test -s conftest.$ac_objext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 ac_cv_have_decl_fputc_unlocked
=yes
21763 echo "$as_me: failed program was:" >&5
21764 cat conftest.
$ac_ext >&5
21765 ac_cv_have_decl_fputc_unlocked
=no
21767 rm -f conftest.
$ac_objext conftest.
$ac_ext
21769 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
21770 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
21771 if test $ac_cv_have_decl_fputc_unlocked = yes; then
21773 cat >>confdefs.h
<<_ACEOF
21774 #define HAVE_DECL_FPUTC_UNLOCKED 1
21779 cat >>confdefs.h
<<_ACEOF
21780 #define HAVE_DECL_FPUTC_UNLOCKED 0
21785 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
21786 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
21787 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 cat >conftest.
$ac_ext <<_ACEOF
21791 #line $LINENO "configure"
21792 #include "confdefs.h"
21793 $ac_includes_default
21797 #ifndef fputs_unlocked
21798 char *p = (char *) fputs_unlocked;
21805 rm -f conftest.
$ac_objext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21807 (eval $ac_compile) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try
='test -s conftest.$ac_objext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_cv_have_decl_fputs_unlocked
=yes
21819 echo "$as_me: failed program was:" >&5
21820 cat conftest.
$ac_ext >&5
21821 ac_cv_have_decl_fputs_unlocked
=no
21823 rm -f conftest.
$ac_objext conftest.
$ac_ext
21825 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
21826 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
21827 if test $ac_cv_have_decl_fputs_unlocked = yes; then
21829 cat >>confdefs.h
<<_ACEOF
21830 #define HAVE_DECL_FPUTS_UNLOCKED 1
21835 cat >>confdefs.h
<<_ACEOF
21836 #define HAVE_DECL_FPUTS_UNLOCKED 0
21841 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
21842 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
21843 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 cat >conftest.
$ac_ext <<_ACEOF
21847 #line $LINENO "configure"
21848 #include "confdefs.h"
21849 $ac_includes_default
21853 #ifndef fread_unlocked
21854 char *p = (char *) fread_unlocked;
21861 rm -f conftest.
$ac_objext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21863 (eval $ac_compile) 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); } &&
21867 { ac_try
='test -s conftest.$ac_objext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 ac_cv_have_decl_fread_unlocked
=yes
21875 echo "$as_me: failed program was:" >&5
21876 cat conftest.
$ac_ext >&5
21877 ac_cv_have_decl_fread_unlocked
=no
21879 rm -f conftest.
$ac_objext conftest.
$ac_ext
21881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
21882 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
21883 if test $ac_cv_have_decl_fread_unlocked = yes; then
21885 cat >>confdefs.h
<<_ACEOF
21886 #define HAVE_DECL_FREAD_UNLOCKED 1
21891 cat >>confdefs.h
<<_ACEOF
21892 #define HAVE_DECL_FREAD_UNLOCKED 0
21897 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
21898 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
21899 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 cat >conftest.
$ac_ext <<_ACEOF
21903 #line $LINENO "configure"
21904 #include "confdefs.h"
21905 $ac_includes_default
21909 #ifndef fwrite_unlocked
21910 char *p = (char *) fwrite_unlocked;
21917 rm -f conftest.
$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919 (eval $ac_compile) 2>&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } &&
21923 { ac_try
='test -s conftest.$ac_objext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_have_decl_fwrite_unlocked
=yes
21931 echo "$as_me: failed program was:" >&5
21932 cat conftest.
$ac_ext >&5
21933 ac_cv_have_decl_fwrite_unlocked
=no
21935 rm -f conftest.
$ac_objext conftest.
$ac_ext
21937 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
21938 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
21939 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
21941 cat >>confdefs.h
<<_ACEOF
21942 #define HAVE_DECL_FWRITE_UNLOCKED 1
21947 cat >>confdefs.h
<<_ACEOF
21948 #define HAVE_DECL_FWRITE_UNLOCKED 0
21953 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
21954 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
21955 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 cat >conftest.
$ac_ext <<_ACEOF
21959 #line $LINENO "configure"
21960 #include "confdefs.h"
21961 $ac_includes_default
21965 #ifndef getc_unlocked
21966 char *p = (char *) getc_unlocked;
21973 rm -f conftest.
$ac_objext
21974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21975 (eval $ac_compile) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
21979 { ac_try
='test -s conftest.$ac_objext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_cv_have_decl_getc_unlocked
=yes
21987 echo "$as_me: failed program was:" >&5
21988 cat conftest.
$ac_ext >&5
21989 ac_cv_have_decl_getc_unlocked
=no
21991 rm -f conftest.
$ac_objext conftest.
$ac_ext
21993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
21994 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
21995 if test $ac_cv_have_decl_getc_unlocked = yes; then
21997 cat >>confdefs.h
<<_ACEOF
21998 #define HAVE_DECL_GETC_UNLOCKED 1
22003 cat >>confdefs.h
<<_ACEOF
22004 #define HAVE_DECL_GETC_UNLOCKED 0
22009 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
22010 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
22011 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 cat >conftest.
$ac_ext <<_ACEOF
22015 #line $LINENO "configure"
22016 #include "confdefs.h"
22017 $ac_includes_default
22021 #ifndef getchar_unlocked
22022 char *p = (char *) getchar_unlocked;
22029 rm -f conftest.
$ac_objext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22031 (eval $ac_compile) 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try
='test -s conftest.$ac_objext'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22041 ac_cv_have_decl_getchar_unlocked
=yes
22043 echo "$as_me: failed program was:" >&5
22044 cat conftest.
$ac_ext >&5
22045 ac_cv_have_decl_getchar_unlocked
=no
22047 rm -f conftest.
$ac_objext conftest.
$ac_ext
22049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
22050 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
22051 if test $ac_cv_have_decl_getchar_unlocked = yes; then
22053 cat >>confdefs.h
<<_ACEOF
22054 #define HAVE_DECL_GETCHAR_UNLOCKED 1
22059 cat >>confdefs.h
<<_ACEOF
22060 #define HAVE_DECL_GETCHAR_UNLOCKED 0
22065 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
22066 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
22067 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 cat >conftest.
$ac_ext <<_ACEOF
22071 #line $LINENO "configure"
22072 #include "confdefs.h"
22073 $ac_includes_default
22077 #ifndef putc_unlocked
22078 char *p = (char *) putc_unlocked;
22085 rm -f conftest.
$ac_objext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22087 (eval $ac_compile) 2>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try
='test -s conftest.$ac_objext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 ac_cv_have_decl_putc_unlocked
=yes
22099 echo "$as_me: failed program was:" >&5
22100 cat conftest.
$ac_ext >&5
22101 ac_cv_have_decl_putc_unlocked
=no
22103 rm -f conftest.
$ac_objext conftest.
$ac_ext
22105 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
22106 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
22107 if test $ac_cv_have_decl_putc_unlocked = yes; then
22109 cat >>confdefs.h
<<_ACEOF
22110 #define HAVE_DECL_PUTC_UNLOCKED 1
22115 cat >>confdefs.h
<<_ACEOF
22116 #define HAVE_DECL_PUTC_UNLOCKED 0
22121 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
22122 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
22123 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 cat >conftest.
$ac_ext <<_ACEOF
22127 #line $LINENO "configure"
22128 #include "confdefs.h"
22129 $ac_includes_default
22133 #ifndef putchar_unlocked
22134 char *p = (char *) putchar_unlocked;
22141 rm -f conftest.
$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143 (eval $ac_compile) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try
='test -s conftest.$ac_objext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 ac_cv_have_decl_putchar_unlocked
=yes
22155 echo "$as_me: failed program was:" >&5
22156 cat conftest.
$ac_ext >&5
22157 ac_cv_have_decl_putchar_unlocked
=no
22159 rm -f conftest.
$ac_objext conftest.
$ac_ext
22161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
22162 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
22163 if test $ac_cv_have_decl_putchar_unlocked = yes; then
22165 cat >>confdefs.h
<<_ACEOF
22166 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
22171 cat >>confdefs.h
<<_ACEOF
22172 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
22192 for ac_func
in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked
22194 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22195 echo "$as_me:$LINENO: checking for $ac_func" >&5
22196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22197 if eval "test \"\${$as_ac_var+set}\" = set"; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 cat >conftest.
$ac_ext <<_ACEOF
22201 #line $LINENO "configure"
22202 #include "confdefs.h"
22203 /* System header to define __stub macros and hopefully few prototypes,
22204 which can conflict with char $ac_func (); below. */
22205 #include <assert.h>
22206 /* Override any gcc2 internal prototype to avoid an error. */
22210 /* We use char because int might match the return type of a gcc2
22211 builtin and then its argument prototype would still apply. */
22218 /* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
22221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22231 rm -f conftest.
$ac_objext conftest
$ac_exeext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22233 (eval $ac_link) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } &&
22237 { ac_try
='test -s conftest$ac_exeext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 eval "$as_ac_var=yes"
22245 echo "$as_me: failed program was:" >&5
22246 cat conftest.
$ac_ext >&5
22247 eval "$as_ac_var=no"
22249 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22253 if test `eval echo '${'$as_ac_var'}'` = yes; then
22254 cat >>confdefs.h
<<_ACEOF
22255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22263 io_functions
='clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
22265 for jm_io_func
in $io_functions; do
22266 # Check for the existence of each function only if it is declared.
22267 # Otherwise, we'd get the Solaris5.5.1 functions that are not
22268 # declared, and that have been removed from Solaris5.6. The resulting
22269 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
22270 as_ac_Symbol
=`echo "ac_cv_have_decl_$jm_io_func" | $as_tr_sh`
22271 echo "$as_me:$LINENO: checking whether $jm_io_func is declared" >&5
22272 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" >&6
22273 if eval "test \"\${$as_ac_Symbol+set}\" = set"; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 cat >conftest.
$ac_ext <<_ACEOF
22277 #line $LINENO "configure"
22278 #include "confdefs.h"
22284 #ifndef $jm_io_func
22285 char *p = (char *) $jm_io_func;
22292 rm -f conftest.
$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294 (eval $ac_compile) 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } &&
22298 { ac_try
='test -s conftest.$ac_objext'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; }; then
22304 eval "$as_ac_Symbol=yes"
22306 echo "$as_me: failed program was:" >&5
22307 cat conftest.
$ac_ext >&5
22308 eval "$as_ac_Symbol=no"
22310 rm -f conftest.
$ac_objext conftest.
$ac_ext
22312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Symbol'}'`" >&5
22313 echo "${ECHO_T}`eval echo '${'$as_ac_Symbol'}'`" >&6
22314 if test `eval echo '${'$as_ac_Symbol'}'` = yes; then
22316 cat >>confdefs.h
<<_ACEOF
22317 #define `echo "HAVE_DECL_$jm_io_func" | $as_tr_cpp` 1
22322 cat >>confdefs.h
<<_ACEOF
22323 #define `echo "HAVE_DECL_$jm_io_func" | $as_tr_cpp` 0
22330 if test $jm_declared = yes; then
22332 for ac_func
in $jm_io_func
22334 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22335 echo "$as_me:$LINENO: checking for $ac_func" >&5
22336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22337 if eval "test \"\${$as_ac_var+set}\" = set"; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 cat >conftest.
$ac_ext <<_ACEOF
22341 #line $LINENO "configure"
22342 #include "confdefs.h"
22343 /* System header to define __stub macros and hopefully few prototypes,
22344 which can conflict with char $ac_func (); below. */
22345 #include <assert.h>
22346 /* Override any gcc2 internal prototype to avoid an error. */
22350 /* We use char because int might match the return type of a gcc2
22351 builtin and then its argument prototype would still apply. */
22358 /* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371 rm -f conftest.
$ac_objext conftest
$ac_exeext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22373 (eval $ac_link) 2>&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try
='test -s conftest$ac_exeext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 eval "$as_ac_var=yes"
22385 echo "$as_me: failed program was:" >&5
22386 cat conftest.
$ac_ext >&5
22387 eval "$as_ac_var=no"
22389 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22393 if test `eval echo '${'$as_ac_var'}'` = yes; then
22394 cat >>confdefs.h
<<_ACEOF
22395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22406 echo "$as_me:$LINENO: checking for group_member" >&5
22407 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
22408 if test "${ac_cv_func_group_member+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 cat >conftest.
$ac_ext <<_ACEOF
22412 #line $LINENO "configure"
22413 #include "confdefs.h"
22414 /* System header to define __stub macros and hopefully few prototypes,
22415 which can conflict with char group_member (); below. */
22416 #include <assert.h>
22417 /* Override any gcc2 internal prototype to avoid an error. */
22421 /* We use char because int might match the return type of a gcc2
22422 builtin and then its argument prototype would still apply. */
22423 char group_member ();
22429 /* The GNU C library defines this for functions which it implements
22430 to always fail with ENOSYS. Some functions are actually named
22431 something starting with __ and the normal name is an alias. */
22432 #if defined (__stub_group_member) || defined (__stub___group_member)
22442 rm -f conftest.
$ac_objext conftest
$ac_exeext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22444 (eval $ac_link) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } &&
22448 { ac_try
='test -s conftest$ac_exeext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_cv_func_group_member
=yes
22456 echo "$as_me: failed program was:" >&5
22457 cat conftest.
$ac_ext >&5
22458 ac_cv_func_group_member
=no
22460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22462 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
22463 echo "${ECHO_T}$ac_cv_func_group_member" >&6
22464 if test $ac_cv_func_group_member = yes; then
22467 LIBOBJS
="$LIBOBJS group-member.$ac_objext"
22472 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
22473 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
22474 if test "${jm_cv_func_svid_putenv+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 if test "$cross_compiling" = yes; then
22478 jm_cv_func_svid_putenv
=no
22480 cat >conftest.
$ac_ext <<_ACEOF
22481 #line $LINENO "configure"
22482 #include "confdefs.h"
22487 /* Put it in env. */
22488 if (putenv ("CONFTEST_putenv=val"))
22491 /* Try to remove it. */
22492 if (putenv ("CONFTEST_putenv"))
22495 /* Make sure it was deleted. */
22496 if (getenv ("CONFTEST_putenv") != 0)
22503 rm -f conftest
$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505 (eval $ac_link) 2>&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; }; then
22514 jm_cv_func_svid_putenv
=yes
22516 echo "$as_me: program exited with status $ac_status" >&5
22517 echo "$as_me: failed program was:" >&5
22518 cat conftest.
$ac_ext >&5
22519 ( exit $ac_status )
22520 jm_cv_func_svid_putenv
=no
22522 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22526 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
22527 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
22528 if test $jm_cv_func_svid_putenv = no
; then
22529 LIBOBJS
="$LIBOBJS putenv.$ac_objext"
22531 cat >>confdefs.h
<<\_ACEOF
22532 #define putenv rpl_putenv
22538 echo "$as_me:$LINENO: checking for AFS" >&5
22539 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
22540 if test -d /afs
; then
22542 cat >>confdefs.h
<<\_ACEOF
22550 echo "$as_me:$LINENO: result: $ac_result" >&5
22551 echo "${ECHO_T}$ac_result" >&6
22555 echo "$as_me:$LINENO: checking for intmax_t" >&5
22556 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22557 if test "${ac_cv_type_intmax_t+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22560 cat >conftest.
$ac_ext <<_ACEOF
22561 #line $LINENO "configure"
22562 #include "confdefs.h"
22563 $ac_includes_default
22567 if ((intmax_t *) 0)
22569 if (sizeof (intmax_t))
22575 rm -f conftest.
$ac_objext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22577 (eval $ac_compile) 2>&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } &&
22581 { ac_try
='test -s conftest.$ac_objext'
22582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583 (eval $ac_try) 2>&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; }; then
22587 ac_cv_type_intmax_t
=yes
22589 echo "$as_me: failed program was:" >&5
22590 cat conftest.
$ac_ext >&5
22591 ac_cv_type_intmax_t
=no
22593 rm -f conftest.
$ac_objext conftest.
$ac_ext
22595 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22596 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22597 if test $ac_cv_type_intmax_t = yes; then
22600 test $ac_cv_type_long_long = yes \
22601 && ac_type
='long long' \
22604 cat >>confdefs.h
<<_ACEOF
22605 #define intmax_t $ac_type
22616 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
22617 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
22618 if test "${ac_cv_have_decl_strtol+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 cat >conftest.
$ac_ext <<_ACEOF
22622 #line $LINENO "configure"
22623 #include "confdefs.h"
22624 $ac_includes_default
22629 char *p = (char *) strtol;
22636 rm -f conftest.
$ac_objext
22637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22638 (eval $ac_compile) 2>&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } &&
22642 { ac_try
='test -s conftest.$ac_objext'
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; }; then
22648 ac_cv_have_decl_strtol
=yes
22650 echo "$as_me: failed program was:" >&5
22651 cat conftest.
$ac_ext >&5
22652 ac_cv_have_decl_strtol
=no
22654 rm -f conftest.
$ac_objext conftest.
$ac_ext
22656 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
22657 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
22658 if test $ac_cv_have_decl_strtol = yes; then
22660 cat >>confdefs.h
<<_ACEOF
22661 #define HAVE_DECL_STRTOL 1
22666 cat >>confdefs.h
<<_ACEOF
22667 #define HAVE_DECL_STRTOL 0
22672 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
22673 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
22674 if test "${ac_cv_have_decl_strtoul+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 cat >conftest.
$ac_ext <<_ACEOF
22678 #line $LINENO "configure"
22679 #include "confdefs.h"
22680 $ac_includes_default
22685 char *p = (char *) strtoul;
22692 rm -f conftest.
$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694 (eval $ac_compile) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
22698 { ac_try
='test -s conftest.$ac_objext'
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; }; then
22704 ac_cv_have_decl_strtoul
=yes
22706 echo "$as_me: failed program was:" >&5
22707 cat conftest.
$ac_ext >&5
22708 ac_cv_have_decl_strtoul
=no
22710 rm -f conftest.
$ac_objext conftest.
$ac_ext
22712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
22713 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
22714 if test $ac_cv_have_decl_strtoul = yes; then
22716 cat >>confdefs.h
<<_ACEOF
22717 #define HAVE_DECL_STRTOUL 1
22722 cat >>confdefs.h
<<_ACEOF
22723 #define HAVE_DECL_STRTOUL 0
22728 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
22729 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
22730 if test "${ac_cv_have_decl_strtoull+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 cat >conftest.
$ac_ext <<_ACEOF
22734 #line $LINENO "configure"
22735 #include "confdefs.h"
22736 $ac_includes_default
22741 char *p = (char *) strtoull;
22748 rm -f conftest.
$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750 (eval $ac_compile) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } &&
22754 { ac_try
='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_have_decl_strtoull
=yes
22762 echo "$as_me: failed program was:" >&5
22763 cat conftest.
$ac_ext >&5
22764 ac_cv_have_decl_strtoull
=no
22766 rm -f conftest.
$ac_objext conftest.
$ac_ext
22768 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
22769 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
22770 if test $ac_cv_have_decl_strtoull = yes; then
22772 cat >>confdefs.h
<<_ACEOF
22773 #define HAVE_DECL_STRTOULL 1
22778 cat >>confdefs.h
<<_ACEOF
22779 #define HAVE_DECL_STRTOULL 0
22784 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
22785 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
22786 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 cat >conftest.
$ac_ext <<_ACEOF
22790 #line $LINENO "configure"
22791 #include "confdefs.h"
22792 $ac_includes_default
22797 char *p = (char *) strtoimax;
22804 rm -f conftest.
$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try
='test -s conftest.$ac_objext'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; }; then
22816 ac_cv_have_decl_strtoimax
=yes
22818 echo "$as_me: failed program was:" >&5
22819 cat conftest.
$ac_ext >&5
22820 ac_cv_have_decl_strtoimax
=no
22822 rm -f conftest.
$ac_objext conftest.
$ac_ext
22824 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
22825 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
22826 if test $ac_cv_have_decl_strtoimax = yes; then
22828 cat >>confdefs.h
<<_ACEOF
22829 #define HAVE_DECL_STRTOIMAX 1
22834 cat >>confdefs.h
<<_ACEOF
22835 #define HAVE_DECL_STRTOIMAX 0
22840 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
22841 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
22842 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 cat >conftest.
$ac_ext <<_ACEOF
22846 #line $LINENO "configure"
22847 #include "confdefs.h"
22848 $ac_includes_default
22853 char *p = (char *) strtoumax;
22860 rm -f conftest.
$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862 (eval $ac_compile) 2>&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
22866 { ac_try
='test -s conftest.$ac_objext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 ac_cv_have_decl_strtoumax
=yes
22874 echo "$as_me: failed program was:" >&5
22875 cat conftest.
$ac_ext >&5
22876 ac_cv_have_decl_strtoumax
=no
22878 rm -f conftest.
$ac_objext conftest.
$ac_ext
22880 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
22881 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
22882 if test $ac_cv_have_decl_strtoumax = yes; then
22884 cat >>confdefs.h
<<_ACEOF
22885 #define HAVE_DECL_STRTOUMAX 1
22890 cat >>confdefs.h
<<_ACEOF
22891 #define HAVE_DECL_STRTOUMAX 0
22901 for ac_header
in limits.h stdlib.h inttypes.h
22903 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22905 echo "$as_me:$LINENO: checking for $ac_header" >&5
22906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22913 # Is the header compilable?
22914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22916 cat >conftest.
$ac_ext <<_ACEOF
22917 #line $LINENO "configure"
22918 #include "confdefs.h"
22919 $ac_includes_default
22920 #include <$ac_header>
22922 rm -f conftest.
$ac_objext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22924 (eval $ac_compile) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } &&
22928 { ac_try
='test -s conftest.$ac_objext'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934 ac_header_compiler
=yes
22936 echo "$as_me: failed program was:" >&5
22937 cat conftest.
$ac_ext >&5
22938 ac_header_compiler
=no
22940 rm -f conftest.
$ac_objext conftest.
$ac_ext
22941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6
22944 # Is the header present?
22945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22947 cat >conftest.
$ac_ext <<_ACEOF
22948 #line $LINENO "configure"
22949 #include "confdefs.h"
22950 #include <$ac_header>
22952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22955 grep -v '^ *+' conftest.er1
>conftest.err
22957 cat conftest.err
>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } >/dev
/null
; then
22960 if test -s conftest.err
; then
22961 ac_cpp_err
=$ac_c_preproc_warn_flag
22968 if test -z "$ac_cpp_err"; then
22969 ac_header_preproc
=yes
22971 echo "$as_me: failed program was:" >&5
22972 cat conftest.
$ac_ext >&5
22973 ac_header_preproc
=no
22975 rm -f conftest.err conftest.
$ac_ext
22976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22977 echo "${ECHO_T}$ac_header_preproc" >&6
22979 # So? What about this header?
22980 case $ac_header_compiler:$ac_header_preproc in
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
22994 echo "$as_me:$LINENO: checking for $ac_header" >&5
22995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 eval "$as_ac_Header=$ac_header_preproc"
23001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23006 cat >>confdefs.h
<<_ACEOF
23007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23015 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
23016 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
23017 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 cat >conftest.
$ac_ext <<_ACEOF
23021 #line $LINENO "configure"
23022 #include "confdefs.h"
23023 #include <inttypes.h>
23025 inttypes_h_defines_strtoumax
23028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23029 $EGREP "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
23030 jm_cv_func_strtoumax_macro
=yes
23032 jm_cv_func_strtoumax_macro
=no
23037 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
23038 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
23040 if test "$jm_cv_func_strtoumax_macro" != yes; then
23042 for ac_func
in strtoumax
23044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23045 echo "$as_me:$LINENO: checking for $ac_func" >&5
23046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23047 if eval "test \"\${$as_ac_var+set}\" = set"; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 cat >conftest.
$ac_ext <<_ACEOF
23051 #line $LINENO "configure"
23052 #include "confdefs.h"
23053 /* System header to define __stub macros and hopefully few prototypes,
23054 which can conflict with char $ac_func (); below. */
23055 #include <assert.h>
23056 /* Override any gcc2 internal prototype to avoid an error. */
23060 /* We use char because int might match the return type of a gcc2
23061 builtin and then its argument prototype would still apply. */
23068 /* The GNU C library defines this for functions which it implements
23069 to always fail with ENOSYS. Some functions are actually named
23070 something starting with __ and the normal name is an alias. */
23071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23081 rm -f conftest.
$ac_objext conftest
$ac_exeext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083 (eval $ac_link) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } &&
23087 { ac_try
='test -s conftest$ac_exeext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 eval "$as_ac_var=yes"
23095 echo "$as_me: failed program was:" >&5
23096 cat conftest.
$ac_ext >&5
23097 eval "$as_ac_var=no"
23099 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23103 if test `eval echo '${'$as_ac_var'}'` = yes; then
23104 cat >>confdefs.h
<<_ACEOF
23105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23109 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23116 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
23119 for ac_func
in strtoul
23121 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23122 echo "$as_me:$LINENO: checking for $ac_func" >&5
23123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23124 if eval "test \"\${$as_ac_var+set}\" = set"; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 cat >conftest.
$ac_ext <<_ACEOF
23128 #line $LINENO "configure"
23129 #include "confdefs.h"
23130 /* System header to define __stub macros and hopefully few prototypes,
23131 which can conflict with char $ac_func (); below. */
23132 #include <assert.h>
23133 /* Override any gcc2 internal prototype to avoid an error. */
23137 /* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23145 /* The GNU C library defines this for functions which it implements
23146 to always fail with ENOSYS. Some functions are actually named
23147 something starting with __ and the normal name is an alias. */
23148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23158 rm -f conftest.
$ac_objext conftest
$ac_exeext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160 (eval $ac_link) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } &&
23164 { ac_try
='test -s conftest$ac_exeext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 eval "$as_ac_var=yes"
23172 echo "$as_me: failed program was:" >&5
23173 cat conftest.
$ac_ext >&5
23174 eval "$as_ac_var=no"
23176 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23180 if test `eval echo '${'$as_ac_var'}'` = yes; then
23181 cat >>confdefs.h
<<_ACEOF
23182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23186 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23192 if test "$ac_cv_type_unsigned_long_long" = yes; then
23194 for ac_func
in strtoull
23196 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23197 echo "$as_me:$LINENO: checking for $ac_func" >&5
23198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23199 if eval "test \"\${$as_ac_var+set}\" = set"; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 cat >conftest.
$ac_ext <<_ACEOF
23203 #line $LINENO "configure"
23204 #include "confdefs.h"
23205 /* System header to define __stub macros and hopefully few prototypes,
23206 which can conflict with char $ac_func (); below. */
23207 #include <assert.h>
23208 /* Override any gcc2 internal prototype to avoid an error. */
23212 /* We use char because int might match the return type of a gcc2
23213 builtin and then its argument prototype would still apply. */
23220 /* The GNU C library defines this for functions which it implements
23221 to always fail with ENOSYS. Some functions are actually named
23222 something starting with __ and the normal name is an alias. */
23223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23233 rm -f conftest.
$ac_objext conftest
$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235 (eval $ac_link) 2>&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try
='test -s conftest$ac_exeext'
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }; then
23245 eval "$as_ac_var=yes"
23247 echo "$as_me: failed program was:" >&5
23248 cat conftest.
$ac_ext >&5
23249 eval "$as_ac_var=no"
23251 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23255 if test `eval echo '${'$as_ac_var'}'` = yes; then
23256 cat >>confdefs.h
<<_ACEOF
23257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23261 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23275 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23276 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23277 if test "${ac_cv_have_decl_strtol+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23280 cat >conftest.
$ac_ext <<_ACEOF
23281 #line $LINENO "configure"
23282 #include "confdefs.h"
23283 $ac_includes_default
23288 char *p = (char *) strtol;
23295 rm -f conftest.
$ac_objext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23297 (eval $ac_compile) 2>&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } &&
23301 { ac_try
='test -s conftest.$ac_objext'
23302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303 (eval $ac_try) 2>&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); }; }; then
23307 ac_cv_have_decl_strtol
=yes
23309 echo "$as_me: failed program was:" >&5
23310 cat conftest.
$ac_ext >&5
23311 ac_cv_have_decl_strtol
=no
23313 rm -f conftest.
$ac_objext conftest.
$ac_ext
23315 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23316 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23317 if test $ac_cv_have_decl_strtol = yes; then
23319 cat >>confdefs.h
<<_ACEOF
23320 #define HAVE_DECL_STRTOL 1
23325 cat >>confdefs.h
<<_ACEOF
23326 #define HAVE_DECL_STRTOL 0
23331 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23332 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23333 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23336 cat >conftest.
$ac_ext <<_ACEOF
23337 #line $LINENO "configure"
23338 #include "confdefs.h"
23339 $ac_includes_default
23344 char *p = (char *) strtoul;
23351 rm -f conftest.
$ac_objext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353 (eval $ac_compile) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try
='test -s conftest.$ac_objext'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_have_decl_strtoul
=yes
23365 echo "$as_me: failed program was:" >&5
23366 cat conftest.
$ac_ext >&5
23367 ac_cv_have_decl_strtoul
=no
23369 rm -f conftest.
$ac_objext conftest.
$ac_ext
23371 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23372 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23373 if test $ac_cv_have_decl_strtoul = yes; then
23375 cat >>confdefs.h
<<_ACEOF
23376 #define HAVE_DECL_STRTOUL 1
23381 cat >>confdefs.h
<<_ACEOF
23382 #define HAVE_DECL_STRTOUL 0
23387 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
23388 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
23389 if test "${ac_cv_have_decl_strtoll+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 cat >conftest.
$ac_ext <<_ACEOF
23393 #line $LINENO "configure"
23394 #include "confdefs.h"
23395 $ac_includes_default
23400 char *p = (char *) strtoll;
23407 rm -f conftest.
$ac_objext
23408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23409 (eval $ac_compile) 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } &&
23413 { ac_try
='test -s conftest.$ac_objext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_cv_have_decl_strtoll
=yes
23421 echo "$as_me: failed program was:" >&5
23422 cat conftest.
$ac_ext >&5
23423 ac_cv_have_decl_strtoll
=no
23425 rm -f conftest.
$ac_objext conftest.
$ac_ext
23427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
23428 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
23429 if test $ac_cv_have_decl_strtoll = yes; then
23431 cat >>confdefs.h
<<_ACEOF
23432 #define HAVE_DECL_STRTOLL 1
23437 cat >>confdefs.h
<<_ACEOF
23438 #define HAVE_DECL_STRTOLL 0
23443 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23444 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23445 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 cat >conftest.
$ac_ext <<_ACEOF
23449 #line $LINENO "configure"
23450 #include "confdefs.h"
23451 $ac_includes_default
23456 char *p = (char *) strtoimax;
23463 rm -f conftest.
$ac_objext
23464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23465 (eval $ac_compile) 2>&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try
='test -s conftest.$ac_objext'
23470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471 (eval $ac_try) 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); }; }; then
23475 ac_cv_have_decl_strtoimax
=yes
23477 echo "$as_me: failed program was:" >&5
23478 cat conftest.
$ac_ext >&5
23479 ac_cv_have_decl_strtoimax
=no
23481 rm -f conftest.
$ac_objext conftest.
$ac_ext
23483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
23484 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
23485 if test $ac_cv_have_decl_strtoimax = yes; then
23487 cat >>confdefs.h
<<_ACEOF
23488 #define HAVE_DECL_STRTOIMAX 1
23493 cat >>confdefs.h
<<_ACEOF
23494 #define HAVE_DECL_STRTOIMAX 0
23499 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
23500 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
23501 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 cat >conftest.
$ac_ext <<_ACEOF
23505 #line $LINENO "configure"
23506 #include "confdefs.h"
23507 $ac_includes_default
23512 char *p = (char *) strtoumax;
23519 rm -f conftest.
$ac_objext
23520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23521 (eval $ac_compile) 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try
='test -s conftest.$ac_objext'
23526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527 (eval $ac_try) 2>&5
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 ac_cv_have_decl_strtoumax
=yes
23533 echo "$as_me: failed program was:" >&5
23534 cat conftest.
$ac_ext >&5
23535 ac_cv_have_decl_strtoumax
=no
23537 rm -f conftest.
$ac_objext conftest.
$ac_ext
23539 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
23540 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
23541 if test $ac_cv_have_decl_strtoumax = yes; then
23543 cat >>confdefs.h
<<_ACEOF
23544 #define HAVE_DECL_STRTOUMAX 1
23549 cat >>confdefs.h
<<_ACEOF
23550 #define HAVE_DECL_STRTOUMAX 0
23560 for ac_header
in limits.h stdlib.h inttypes.h
23562 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23564 echo "$as_me:$LINENO: checking for $ac_header" >&5
23565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23572 # Is the header compilable?
23573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23575 cat >conftest.
$ac_ext <<_ACEOF
23576 #line $LINENO "configure"
23577 #include "confdefs.h"
23578 $ac_includes_default
23579 #include <$ac_header>
23581 rm -f conftest.
$ac_objext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23583 (eval $ac_compile) 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } &&
23587 { ac_try
='test -s conftest.$ac_objext'
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; }; then
23593 ac_header_compiler
=yes
23595 echo "$as_me: failed program was:" >&5
23596 cat conftest.
$ac_ext >&5
23597 ac_header_compiler
=no
23599 rm -f conftest.
$ac_objext conftest.
$ac_ext
23600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23601 echo "${ECHO_T}$ac_header_compiler" >&6
23603 # Is the header present?
23604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23606 cat >conftest.
$ac_ext <<_ACEOF
23607 #line $LINENO "configure"
23608 #include "confdefs.h"
23609 #include <$ac_header>
23611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23612 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
23614 grep -v '^ *+' conftest.er1
>conftest.err
23616 cat conftest.err
>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } >/dev
/null
; then
23619 if test -s conftest.err
; then
23620 ac_cpp_err
=$ac_c_preproc_warn_flag
23627 if test -z "$ac_cpp_err"; then
23628 ac_header_preproc
=yes
23630 echo "$as_me: failed program was:" >&5
23631 cat conftest.
$ac_ext >&5
23632 ac_header_preproc
=no
23634 rm -f conftest.err conftest.
$ac_ext
23635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23636 echo "${ECHO_T}$ac_header_preproc" >&6
23638 # So? What about this header?
23639 case $ac_header_compiler:$ac_header_preproc in
23641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
23653 echo "$as_me:$LINENO: checking for $ac_header" >&5
23654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 eval "$as_ac_Header=$ac_header_preproc"
23660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23665 cat >>confdefs.h
<<_ACEOF
23666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23674 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
23675 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
23676 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23679 cat >conftest.
$ac_ext <<_ACEOF
23680 #line $LINENO "configure"
23681 #include "confdefs.h"
23682 #include <inttypes.h>
23684 inttypes_h_defines_strtoimax
23687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23688 $EGREP "inttypes_h_defines_strtoimax" >/dev
/null
2>&1; then
23689 jm_cv_func_strtoimax_macro
=yes
23691 jm_cv_func_strtoimax_macro
=no
23696 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
23697 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
23699 if test "$jm_cv_func_strtoimax_macro" != yes; then
23701 for ac_func
in strtoimax
23703 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23704 echo "$as_me:$LINENO: checking for $ac_func" >&5
23705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23706 if eval "test \"\${$as_ac_var+set}\" = set"; then
23707 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 cat >conftest.
$ac_ext <<_ACEOF
23710 #line $LINENO "configure"
23711 #include "confdefs.h"
23712 /* System header to define __stub macros and hopefully few prototypes,
23713 which can conflict with char $ac_func (); below. */
23714 #include <assert.h>
23715 /* Override any gcc2 internal prototype to avoid an error. */
23719 /* We use char because int might match the return type of a gcc2
23720 builtin and then its argument prototype would still apply. */
23727 /* The GNU C library defines this for functions which it implements
23728 to always fail with ENOSYS. Some functions are actually named
23729 something starting with __ and the normal name is an alias. */
23730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23740 rm -f conftest.
$ac_objext conftest
$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742 (eval $ac_link) 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } &&
23746 { ac_try
='test -s conftest$ac_exeext'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; }; then
23752 eval "$as_ac_var=yes"
23754 echo "$as_me: failed program was:" >&5
23755 cat conftest.
$ac_ext >&5
23756 eval "$as_ac_var=no"
23758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23762 if test `eval echo '${'$as_ac_var'}'` = yes; then
23763 cat >>confdefs.h
<<_ACEOF
23764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23768 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23775 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
23778 for ac_func
in strtol
23780 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23781 echo "$as_me:$LINENO: checking for $ac_func" >&5
23782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23783 if eval "test \"\${$as_ac_var+set}\" = set"; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23786 cat >conftest.
$ac_ext <<_ACEOF
23787 #line $LINENO "configure"
23788 #include "confdefs.h"
23789 /* System header to define __stub macros and hopefully few prototypes,
23790 which can conflict with char $ac_func (); below. */
23791 #include <assert.h>
23792 /* Override any gcc2 internal prototype to avoid an error. */
23796 /* We use char because int might match the return type of a gcc2
23797 builtin and then its argument prototype would still apply. */
23804 /* The GNU C library defines this for functions which it implements
23805 to always fail with ENOSYS. Some functions are actually named
23806 something starting with __ and the normal name is an alias. */
23807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23817 rm -f conftest.
$ac_objext conftest
$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819 (eval $ac_link) 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } &&
23823 { ac_try
='test -s conftest$ac_exeext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 eval "$as_ac_var=yes"
23831 echo "$as_me: failed program was:" >&5
23832 cat conftest.
$ac_ext >&5
23833 eval "$as_ac_var=no"
23835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23839 if test `eval echo '${'$as_ac_var'}'` = yes; then
23840 cat >>confdefs.h
<<_ACEOF
23841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23845 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23851 if test "$ac_cv_type_long_long" = yes; then
23853 for ac_func
in strtoll
23855 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23856 echo "$as_me:$LINENO: checking for $ac_func" >&5
23857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23858 if eval "test \"\${$as_ac_var+set}\" = set"; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 cat >conftest.
$ac_ext <<_ACEOF
23862 #line $LINENO "configure"
23863 #include "confdefs.h"
23864 /* System header to define __stub macros and hopefully few prototypes,
23865 which can conflict with char $ac_func (); below. */
23866 #include <assert.h>
23867 /* Override any gcc2 internal prototype to avoid an error. */
23871 /* We use char because int might match the return type of a gcc2
23872 builtin and then its argument prototype would still apply. */
23879 /* The GNU C library defines this for functions which it implements
23880 to always fail with ENOSYS. Some functions are actually named
23881 something starting with __ and the normal name is an alias. */
23882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23892 rm -f conftest.
$ac_objext conftest
$ac_exeext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23894 (eval $ac_link) 2>&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
23898 { ac_try
='test -s conftest$ac_exeext'
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; }; then
23904 eval "$as_ac_var=yes"
23906 echo "$as_me: failed program was:" >&5
23907 cat conftest.
$ac_ext >&5
23908 eval "$as_ac_var=no"
23910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23914 if test `eval echo '${'$as_ac_var'}'` = yes; then
23915 cat >>confdefs.h
<<_ACEOF
23916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23920 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
23929 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
23930 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
23931 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 test -z "$ac_cv_header_unistd_h" \
23937 for ac_header
in unistd.h
23939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23941 echo "$as_me:$LINENO: checking for $ac_header" >&5
23942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23949 # Is the header compilable?
23950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23952 cat >conftest.
$ac_ext <<_ACEOF
23953 #line $LINENO "configure"
23954 #include "confdefs.h"
23955 $ac_includes_default
23956 #include <$ac_header>
23958 rm -f conftest.
$ac_objext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23960 (eval $ac_compile) 2>&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
23964 { ac_try
='test -s conftest.$ac_objext'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23970 ac_header_compiler
=yes
23972 echo "$as_me: failed program was:" >&5
23973 cat conftest.
$ac_ext >&5
23974 ac_header_compiler
=no
23976 rm -f conftest.
$ac_objext conftest.
$ac_ext
23977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23978 echo "${ECHO_T}$ac_header_compiler" >&6
23980 # Is the header present?
23981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23983 cat >conftest.
$ac_ext <<_ACEOF
23984 #line $LINENO "configure"
23985 #include "confdefs.h"
23986 #include <$ac_header>
23988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
23991 grep -v '^ *+' conftest.er1
>conftest.err
23993 cat conftest.err
>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } >/dev
/null
; then
23996 if test -s conftest.err
; then
23997 ac_cpp_err
=$ac_c_preproc_warn_flag
24004 if test -z "$ac_cpp_err"; then
24005 ac_header_preproc
=yes
24007 echo "$as_me: failed program was:" >&5
24008 cat conftest.
$ac_ext >&5
24009 ac_header_preproc
=no
24011 rm -f conftest.err conftest.
$ac_ext
24012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24013 echo "${ECHO_T}$ac_header_preproc" >&6
24015 # So? What about this header?
24016 case $ac_header_compiler:$ac_header_preproc in
24018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24030 echo "$as_me:$LINENO: checking for $ac_header" >&5
24031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 eval "$as_ac_Header=$ac_header_preproc"
24037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24042 cat >>confdefs.h
<<_ACEOF
24043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24051 # Create a regular file.
24052 echo > conftest.
file
24053 if test "$cross_compiling" = yes; then
24054 jm_ac_cv_func_link_follows_symlink
=yes
24056 cat >conftest.
$ac_ext <<_ACEOF
24057 #line $LINENO "configure"
24058 #include "confdefs.h"
24060 # include <sys/types.h>
24061 # include <sys/stat.h>
24062 # ifdef HAVE_UNISTD_H
24063 # include <unistd.h>
24066 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
24067 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
24068 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
24073 const char *file = "conftest.file";
24074 const char *sym = "conftest.sym";
24075 const char *hard = "conftest.hard";
24076 struct stat sb_file, sb_hard;
24078 /* Create a symlink to the regular file. */
24079 if (symlink (file, sym))
24082 /* Create a hard link to that symlink. */
24083 if (link (sym, hard))
24086 if (lstat (hard, &sb_hard))
24088 if (lstat (file, &sb_file))
24091 /* If the dev/inode of hard and file are the same, then
24092 the link call followed the symlink. */
24093 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
24097 rm -f conftest
$ac_exeext
24098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24099 (eval $ac_link) 2>&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; }; then
24108 jm_ac_cv_func_link_follows_symlink
=yes
24110 echo "$as_me: program exited with status $ac_status" >&5
24111 echo "$as_me: failed program was:" >&5
24112 cat conftest.
$ac_ext >&5
24113 ( exit $ac_status )
24114 jm_ac_cv_func_link_follows_symlink
=no
24116 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24120 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
24121 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
24122 if test $jm_ac_cv_func_link_follows_symlink = yes; then
24124 cat >>confdefs.h
<<\_ACEOF
24125 #define LINK_FOLLOWS_SYMLINKS 1
24130 echo "$as_me:$LINENO: checking for error_at_line" >&5
24131 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24132 if test "${ac_cv_lib_error_at_line+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 cat >conftest.
$ac_ext <<_ACEOF
24136 #line $LINENO "configure"
24137 #include "confdefs.h"
24142 error_at_line (0, 0, "", 0, "");
24147 rm -f conftest.
$ac_objext conftest
$ac_exeext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24149 (eval $ac_link) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } &&
24153 { ac_try
='test -s conftest$ac_exeext'
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_cv_lib_error_at_line
=yes
24161 echo "$as_me: failed program was:" >&5
24162 cat conftest.
$ac_ext >&5
24163 ac_cv_lib_error_at_line
=no
24165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24167 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24168 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24169 if test $ac_cv_lib_error_at_line = no
; then
24170 LIBOBJS
="$LIBOBJS error.$ac_objext"
24177 for ac_func
in localtime_r strftime
24179 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24180 echo "$as_me:$LINENO: checking for $ac_func" >&5
24181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24182 if eval "test \"\${$as_ac_var+set}\" = set"; then
24183 echo $ECHO_N "(cached) $ECHO_C" >&6
24185 cat >conftest.
$ac_ext <<_ACEOF
24186 #line $LINENO "configure"
24187 #include "confdefs.h"
24188 /* System header to define __stub macros and hopefully few prototypes,
24189 which can conflict with char $ac_func (); below. */
24190 #include <assert.h>
24191 /* Override any gcc2 internal prototype to avoid an error. */
24195 /* We use char because int might match the return type of a gcc2
24196 builtin and then its argument prototype would still apply. */
24203 /* The GNU C library defines this for functions which it implements
24204 to always fail with ENOSYS. Some functions are actually named
24205 something starting with __ and the normal name is an alias. */
24206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24216 rm -f conftest.
$ac_objext conftest
$ac_exeext
24217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24218 (eval $ac_link) 2>&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } &&
24222 { ac_try
='test -s conftest$ac_exeext'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; }; then
24228 eval "$as_ac_var=yes"
24230 echo "$as_me: failed program was:" >&5
24231 cat conftest.
$ac_ext >&5
24232 eval "$as_ac_var=no"
24234 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24238 if test `eval echo '${'$as_ac_var'}'` = yes; then
24239 cat >>confdefs.h
<<_ACEOF
24240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24248 for ac_header
in limits.h
24250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24252 echo "$as_me:$LINENO: checking for $ac_header" >&5
24253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24255 echo $ECHO_N "(cached) $ECHO_C" >&6
24257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24260 # Is the header compilable?
24261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24263 cat >conftest.
$ac_ext <<_ACEOF
24264 #line $LINENO "configure"
24265 #include "confdefs.h"
24266 $ac_includes_default
24267 #include <$ac_header>
24269 rm -f conftest.
$ac_objext
24270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24271 (eval $ac_compile) 2>&5
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); } &&
24275 { ac_try
='test -s conftest.$ac_objext'
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_header_compiler
=yes
24283 echo "$as_me: failed program was:" >&5
24284 cat conftest.
$ac_ext >&5
24285 ac_header_compiler
=no
24287 rm -f conftest.
$ac_objext conftest.
$ac_ext
24288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24289 echo "${ECHO_T}$ac_header_compiler" >&6
24291 # Is the header present?
24292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24294 cat >conftest.
$ac_ext <<_ACEOF
24295 #line $LINENO "configure"
24296 #include "confdefs.h"
24297 #include <$ac_header>
24299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24302 grep -v '^ *+' conftest.er1
>conftest.err
24304 cat conftest.err
>&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } >/dev
/null
; then
24307 if test -s conftest.err
; then
24308 ac_cpp_err
=$ac_c_preproc_warn_flag
24315 if test -z "$ac_cpp_err"; then
24316 ac_header_preproc
=yes
24318 echo "$as_me: failed program was:" >&5
24319 cat conftest.
$ac_ext >&5
24320 ac_header_preproc
=no
24322 rm -f conftest.err conftest.
$ac_ext
24323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24324 echo "${ECHO_T}$ac_header_preproc" >&6
24326 # So? What about this header?
24327 case $ac_header_compiler:$ac_header_preproc in
24329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24341 echo "$as_me:$LINENO: checking for $ac_header" >&5
24342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24346 eval "$as_ac_Header=$ac_header_preproc"
24348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24353 cat >>confdefs.h
<<_ACEOF
24354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24366 for ac_func
in bcopy tzset mempcpy memcpy memset
24368 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24369 echo "$as_me:$LINENO: checking for $ac_func" >&5
24370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24371 if eval "test \"\${$as_ac_var+set}\" = set"; then
24372 echo $ECHO_N "(cached) $ECHO_C" >&6
24374 cat >conftest.
$ac_ext <<_ACEOF
24375 #line $LINENO "configure"
24376 #include "confdefs.h"
24377 /* System header to define __stub macros and hopefully few prototypes,
24378 which can conflict with char $ac_func (); below. */
24379 #include <assert.h>
24380 /* Override any gcc2 internal prototype to avoid an error. */
24384 /* We use char because int might match the return type of a gcc2
24385 builtin and then its argument prototype would still apply. */
24392 /* The GNU C library defines this for functions which it implements
24393 to always fail with ENOSYS. Some functions are actually named
24394 something starting with __ and the normal name is an alias. */
24395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24405 rm -f conftest.
$ac_objext conftest
$ac_exeext
24406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24407 (eval $ac_link) 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try
='test -s conftest$ac_exeext'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 eval "$as_ac_var=yes"
24419 echo "$as_me: failed program was:" >&5
24420 cat conftest.
$ac_ext >&5
24421 eval "$as_ac_var=no"
24423 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24427 if test `eval echo '${'$as_ac_var'}'` = yes; then
24428 cat >>confdefs.h
<<_ACEOF
24429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24436 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24437 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24438 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24439 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24442 cat >conftest.
$ac_ext <<_ACEOF
24443 #line $LINENO "configure"
24444 #include "confdefs.h"
24445 #include <sys/types.h>
24446 #include <$ac_cv_struct_tm>
24452 static struct tm ac_aggr;
24453 if (ac_aggr.tm_zone)
24459 rm -f conftest.
$ac_objext
24460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24461 (eval $ac_compile) 2>&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } &&
24465 { ac_try
='test -s conftest.$ac_objext'
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; }; then
24471 ac_cv_member_struct_tm_tm_zone
=yes
24473 echo "$as_me: failed program was:" >&5
24474 cat conftest.
$ac_ext >&5
24475 cat >conftest.
$ac_ext <<_ACEOF
24476 #line $LINENO "configure"
24477 #include "confdefs.h"
24478 #include <sys/types.h>
24479 #include <$ac_cv_struct_tm>
24485 static struct tm ac_aggr;
24486 if (sizeof ac_aggr.tm_zone)
24492 rm -f conftest.
$ac_objext
24493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24494 (eval $ac_compile) 2>&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } &&
24498 { ac_try
='test -s conftest.$ac_objext'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24504 ac_cv_member_struct_tm_tm_zone
=yes
24506 echo "$as_me: failed program was:" >&5
24507 cat conftest.
$ac_ext >&5
24508 ac_cv_member_struct_tm_tm_zone
=no
24510 rm -f conftest.
$ac_objext conftest.
$ac_ext
24512 rm -f conftest.
$ac_objext conftest.
$ac_ext
24514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24515 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24516 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24518 cat >>confdefs.h
<<_ACEOF
24519 #define HAVE_STRUCT_TM_TM_ZONE 1
24525 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24527 cat >>confdefs.h
<<\_ACEOF
24528 #define HAVE_TM_ZONE 1
24532 echo "$as_me:$LINENO: checking for tzname" >&5
24533 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24534 if test "${ac_cv_var_tzname+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 cat >conftest.
$ac_ext <<_ACEOF
24538 #line $LINENO "configure"
24539 #include "confdefs.h"
24541 #ifndef tzname /* For SGI. */
24542 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
24553 rm -f conftest.
$ac_objext conftest
$ac_exeext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24555 (eval $ac_link) 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } &&
24559 { ac_try
='test -s conftest$ac_exeext'
24560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561 (eval $ac_try) 2>&5
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; }; then
24565 ac_cv_var_tzname
=yes
24567 echo "$as_me: failed program was:" >&5
24568 cat conftest.
$ac_ext >&5
24569 ac_cv_var_tzname
=no
24571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24573 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24574 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24575 if test $ac_cv_var_tzname = yes; then
24577 cat >>confdefs.h
<<\_ACEOF
24578 #define HAVE_TZNAME 1
24587 for ac_func
in mblen mbrlen
24589 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24590 echo "$as_me:$LINENO: checking for $ac_func" >&5
24591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24592 if eval "test \"\${$as_ac_var+set}\" = set"; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24595 cat >conftest.
$ac_ext <<_ACEOF
24596 #line $LINENO "configure"
24597 #include "confdefs.h"
24598 /* System header to define __stub macros and hopefully few prototypes,
24599 which can conflict with char $ac_func (); below. */
24600 #include <assert.h>
24601 /* Override any gcc2 internal prototype to avoid an error. */
24605 /* We use char because int might match the return type of a gcc2
24606 builtin and then its argument prototype would still apply. */
24613 /* The GNU C library defines this for functions which it implements
24614 to always fail with ENOSYS. Some functions are actually named
24615 something starting with __ and the normal name is an alias. */
24616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24626 rm -f conftest.
$ac_objext conftest
$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628 (eval $ac_link) 2>&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } &&
24632 { ac_try
='test -s conftest$ac_exeext'
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24638 eval "$as_ac_var=yes"
24640 echo "$as_me: failed program was:" >&5
24641 cat conftest.
$ac_ext >&5
24642 eval "$as_ac_var=no"
24644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24648 if test `eval echo '${'$as_ac_var'}'` = yes; then
24649 cat >>confdefs.h
<<_ACEOF
24650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24657 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
24658 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
24659 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 cat >conftest.
$ac_ext <<_ACEOF
24663 #line $LINENO "configure"
24664 #include "confdefs.h"
24670 static struct tm ac_aggr;
24671 if (ac_aggr.tm_gmtoff)
24677 rm -f conftest.
$ac_objext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679 (eval $ac_compile) 2>&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } &&
24683 { ac_try
='test -s conftest.$ac_objext'
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_member_struct_tm_tm_gmtoff
=yes
24691 echo "$as_me: failed program was:" >&5
24692 cat conftest.
$ac_ext >&5
24693 cat >conftest.
$ac_ext <<_ACEOF
24694 #line $LINENO "configure"
24695 #include "confdefs.h"
24701 static struct tm ac_aggr;
24702 if (sizeof ac_aggr.tm_gmtoff)
24708 rm -f conftest.
$ac_objext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24710 (eval $ac_compile) 2>&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); } &&
24714 { ac_try
='test -s conftest.$ac_objext'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 ac_cv_member_struct_tm_tm_gmtoff
=yes
24722 echo "$as_me: failed program was:" >&5
24723 cat conftest.
$ac_ext >&5
24724 ac_cv_member_struct_tm_tm_gmtoff
=no
24726 rm -f conftest.
$ac_objext conftest.
$ac_ext
24728 rm -f conftest.
$ac_objext conftest.
$ac_ext
24730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
24731 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
24732 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
24734 cat >>confdefs.h
<<\_ACEOF
24735 #define HAVE_TM_GMTOFF 1
24743 for ac_header
in sys
/time.h
24745 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24747 echo "$as_me:$LINENO: checking for $ac_header" >&5
24748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24755 # Is the header compilable?
24756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24758 cat >conftest.
$ac_ext <<_ACEOF
24759 #line $LINENO "configure"
24760 #include "confdefs.h"
24761 $ac_includes_default
24762 #include <$ac_header>
24764 rm -f conftest.
$ac_objext
24765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24766 (eval $ac_compile) 2>&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } &&
24770 { ac_try
='test -s conftest.$ac_objext'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; }; then
24776 ac_header_compiler
=yes
24778 echo "$as_me: failed program was:" >&5
24779 cat conftest.
$ac_ext >&5
24780 ac_header_compiler
=no
24782 rm -f conftest.
$ac_objext conftest.
$ac_ext
24783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24784 echo "${ECHO_T}$ac_header_compiler" >&6
24786 # Is the header present?
24787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24789 cat >conftest.
$ac_ext <<_ACEOF
24790 #line $LINENO "configure"
24791 #include "confdefs.h"
24792 #include <$ac_header>
24794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24795 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24797 grep -v '^ *+' conftest.er1
>conftest.err
24799 cat conftest.err
>&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } >/dev
/null
; then
24802 if test -s conftest.err
; then
24803 ac_cpp_err
=$ac_c_preproc_warn_flag
24810 if test -z "$ac_cpp_err"; then
24811 ac_header_preproc
=yes
24813 echo "$as_me: failed program was:" >&5
24814 cat conftest.
$ac_ext >&5
24815 ac_header_preproc
=no
24817 rm -f conftest.err conftest.
$ac_ext
24818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24819 echo "${ECHO_T}$ac_header_preproc" >&6
24821 # So? What about this header?
24822 case $ac_header_compiler:$ac_header_preproc in
24824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24836 echo "$as_me:$LINENO: checking for $ac_header" >&5
24837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 eval "$as_ac_Header=$ac_header_preproc"
24843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24848 cat >>confdefs.h
<<_ACEOF
24849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24857 cat >>confdefs.h
<<\_ACEOF
24858 #define my_strftime nstrftime
24864 for ac_header
in stdio_ext.h
24866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24868 echo "$as_me:$LINENO: checking for $ac_header" >&5
24869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24876 # Is the header compilable?
24877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24879 cat >conftest.
$ac_ext <<_ACEOF
24880 #line $LINENO "configure"
24881 #include "confdefs.h"
24882 $ac_includes_default
24883 #include <$ac_header>
24885 rm -f conftest.
$ac_objext
24886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24887 (eval $ac_compile) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } &&
24891 { ac_try
='test -s conftest.$ac_objext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_header_compiler
=yes
24899 echo "$as_me: failed program was:" >&5
24900 cat conftest.
$ac_ext >&5
24901 ac_header_compiler
=no
24903 rm -f conftest.
$ac_objext conftest.
$ac_ext
24904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24905 echo "${ECHO_T}$ac_header_compiler" >&6
24907 # Is the header present?
24908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24910 cat >conftest.
$ac_ext <<_ACEOF
24911 #line $LINENO "configure"
24912 #include "confdefs.h"
24913 #include <$ac_header>
24915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24918 grep -v '^ *+' conftest.er1
>conftest.err
24920 cat conftest.err
>&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } >/dev
/null
; then
24923 if test -s conftest.err
; then
24924 ac_cpp_err
=$ac_c_preproc_warn_flag
24931 if test -z "$ac_cpp_err"; then
24932 ac_header_preproc
=yes
24934 echo "$as_me: failed program was:" >&5
24935 cat conftest.
$ac_ext >&5
24936 ac_header_preproc
=no
24938 rm -f conftest.err conftest.
$ac_ext
24939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24940 echo "${ECHO_T}$ac_header_preproc" >&6
24942 # So? What about this header?
24943 case $ac_header_compiler:$ac_header_preproc in
24945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
24957 echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 eval "$as_ac_Header=$ac_header_preproc"
24964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24969 cat >>confdefs.h
<<_ACEOF
24970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24978 for ac_func
in __fpending
24980 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24981 echo "$as_me:$LINENO: checking for $ac_func" >&5
24982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24983 if eval "test \"\${$as_ac_var+set}\" = set"; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 cat >conftest.
$ac_ext <<_ACEOF
24987 #line $LINENO "configure"
24988 #include "confdefs.h"
24989 /* System header to define __stub macros and hopefully few prototypes,
24990 which can conflict with char $ac_func (); below. */
24991 #include <assert.h>
24992 /* Override any gcc2 internal prototype to avoid an error. */
24996 /* We use char because int might match the return type of a gcc2
24997 builtin and then its argument prototype would still apply. */
25004 /* The GNU C library defines this for functions which it implements
25005 to always fail with ENOSYS. Some functions are actually named
25006 something starting with __ and the normal name is an alias. */
25007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25017 rm -f conftest.
$ac_objext conftest
$ac_exeext
25018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25019 (eval $ac_link) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
25023 { ac_try
='test -s conftest$ac_exeext'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; }; then
25029 eval "$as_ac_var=yes"
25031 echo "$as_me: failed program was:" >&5
25032 cat conftest.
$ac_ext >&5
25033 eval "$as_ac_var=no"
25035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25039 if test `eval echo '${'$as_ac_var'}'` = yes; then
25040 cat >>confdefs.h
<<_ACEOF
25041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25045 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
25051 # if HAVE_STDIO_EXT_H
25052 # include <stdio_ext.h>
25055 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25056 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
25057 if test "${ac_cv_have_decl___fpending+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 cat >conftest.
$ac_ext <<_ACEOF
25061 #line $LINENO "configure"
25062 #include "confdefs.h"
25069 char *p = (char *) __fpending;
25076 rm -f conftest.
$ac_objext
25077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25078 (eval $ac_compile) 2>&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } &&
25082 { ac_try
='test -s conftest.$ac_objext'
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; }; then
25088 ac_cv_have_decl___fpending
=yes
25090 echo "$as_me: failed program was:" >&5
25091 cat conftest.
$ac_ext >&5
25092 ac_cv_have_decl___fpending
=no
25094 rm -f conftest.
$ac_objext conftest.
$ac_ext
25096 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25097 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
25098 if test $ac_cv_have_decl___fpending = yes; then
25100 cat >>confdefs.h
<<_ACEOF
25101 #define HAVE_DECL___FPENDING 1
25106 cat >>confdefs.h
<<_ACEOF
25107 #define HAVE_DECL___FPENDING 0
25114 if test $ac_cv_func___fpending = no
; then
25115 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25116 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
25117 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 'fp->_IO_write_ptr - fp->_IO_write_base' \
25126 '# traditional Unix' \
25127 'fp->_ptr - fp->_base' \
25130 'fp->_p - fp->_bf._base' \
25132 '# SCO, Unixware' \
25133 'fp->__ptr - fp->__base' \
25136 'fp->__bufp - fp->__buffer' \
25138 '# old glibc iostream?' \
25139 'fp->_pptr - fp->_pbase' \
25142 '(*fp)->_ptr - (*fp)->_base' \
25144 '# e.g., DGUX R4.11; the info is not available' \
25148 # Skip each embedded comment.
25149 case "$ac_expr" in '#'*) continue;; esac
25151 cat >conftest.
$ac_ext <<_ACEOF
25152 #line $LINENO "configure"
25153 #include "confdefs.h"
25159 FILE *fp = stdin; (void) ($ac_expr);
25164 rm -f conftest.
$ac_objext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25166 (eval $ac_compile) 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
25170 { ac_try
='test -s conftest.$ac_objext'
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; }; then
25179 echo "$as_me: failed program was:" >&5
25180 cat conftest.
$ac_ext >&5
25182 rm -f conftest.
$ac_objext conftest.
$ac_ext
25183 test "$fp_done" = yes && break
25186 ac_cv_sys_pending_output_n_bytes
=$ac_expr
25190 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
25191 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
25193 cat >>confdefs.h
<<_ACEOF
25194 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
25200 for ac_func
in getgroups
25202 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25203 echo "$as_me:$LINENO: checking for $ac_func" >&5
25204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25205 if eval "test \"\${$as_ac_var+set}\" = set"; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25208 cat >conftest.
$ac_ext <<_ACEOF
25209 #line $LINENO "configure"
25210 #include "confdefs.h"
25211 /* System header to define __stub macros and hopefully few prototypes,
25212 which can conflict with char $ac_func (); below. */
25213 #include <assert.h>
25214 /* Override any gcc2 internal prototype to avoid an error. */
25218 /* We use char because int might match the return type of a gcc2
25219 builtin and then its argument prototype would still apply. */
25226 /* The GNU C library defines this for functions which it implements
25227 to always fail with ENOSYS. Some functions are actually named
25228 something starting with __ and the normal name is an alias. */
25229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25239 rm -f conftest.
$ac_objext conftest
$ac_exeext
25240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25241 (eval $ac_link) 2>&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } &&
25245 { ac_try
='test -s conftest$ac_exeext'
25246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247 (eval $ac_try) 2>&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; }; then
25251 eval "$as_ac_var=yes"
25253 echo "$as_me: failed program was:" >&5
25254 cat conftest.
$ac_ext >&5
25255 eval "$as_ac_var=no"
25257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25261 if test `eval echo '${'$as_ac_var'}'` = yes; then
25262 cat >>confdefs.h
<<_ACEOF
25263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25270 # If we don't yet have getgroups, see if it's in -lbsd.
25271 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25272 if test $ac_cv_func_getgroups = no
; then
25273 jm_cv_sys_getgroups_saved_lib
="$LIBS"
25274 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25275 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
25276 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 ac_check_lib_save_LIBS
=$LIBS
25281 cat >conftest.
$ac_ext <<_ACEOF
25282 #line $LINENO "configure"
25283 #include "confdefs.h"
25285 /* Override any gcc2 internal prototype to avoid an error. */
25289 /* We use char because int might match the return type of a gcc2
25290 builtin and then its argument prototype would still apply. */
25300 rm -f conftest.
$ac_objext conftest
$ac_exeext
25301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25302 (eval $ac_link) 2>&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } &&
25306 { ac_try
='test -s conftest$ac_exeext'
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 ac_cv_lib_bsd_getgroups
=yes
25314 echo "$as_me: failed program was:" >&5
25315 cat conftest.
$ac_ext >&5
25316 ac_cv_lib_bsd_getgroups
=no
25318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25319 LIBS
=$ac_check_lib_save_LIBS
25321 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25322 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25323 if test $ac_cv_lib_bsd_getgroups = yes; then
25324 GETGROUPS_LIB
=-lbsd
25327 LIBS
="$jm_cv_sys_getgroups_saved_lib"
25330 # Run the program to test the functionality of the system-supplied
25331 # getgroups function only if there is such a function.
25332 if test $ac_cv_func_getgroups = yes; then
25333 echo "$as_me:$LINENO: checking for working getgroups" >&5
25334 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25335 if test "${jm_cv_func_working_getgroups+set}" = set; then
25336 echo $ECHO_N "(cached) $ECHO_C" >&6
25338 if test "$cross_compiling" = yes; then
25339 jm_cv_func_working_getgroups
=no
25341 cat >conftest.
$ac_ext <<_ACEOF
25342 #line $LINENO "configure"
25343 #include "confdefs.h"
25348 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25349 exit (getgroups (0, 0) == -1 ? 1 : 0);
25353 rm -f conftest
$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355 (eval $ac_link) 2>&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; }; then
25364 jm_cv_func_working_getgroups
=yes
25366 echo "$as_me: program exited with status $ac_status" >&5
25367 echo "$as_me: failed program was:" >&5
25368 cat conftest.
$ac_ext >&5
25369 ( exit $ac_status )
25370 jm_cv_func_working_getgroups
=no
25372 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25376 echo "$as_me:$LINENO: result: $jm_cv_func_working_getgroups" >&5
25377 echo "${ECHO_T}$jm_cv_func_working_getgroups" >&6
25378 if test $jm_cv_func_working_getgroups = no
; then
25379 LIBOBJS
="$LIBOBJS getgroups.$ac_objext"
25381 cat >>confdefs.h
<<\_ACEOF
25382 #define getgroups rpl_getgroups
25388 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25389 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
25390 if test "${ac_cv_sys_largefile_source+set}" = set; then
25391 echo $ECHO_N "(cached) $ECHO_C" >&6
25394 ac_cv_sys_largefile_source
=no
25395 cat >conftest.
$ac_ext <<_ACEOF
25396 #line $LINENO "configure"
25397 #include "confdefs.h"
25407 rm -f conftest.
$ac_objext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25409 (eval $ac_compile) 2>&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } &&
25413 { ac_try
='test -s conftest.$ac_objext'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; }; then
25421 echo "$as_me: failed program was:" >&5
25422 cat conftest.
$ac_ext >&5
25424 rm -f conftest.
$ac_objext conftest.
$ac_ext
25425 cat >conftest.
$ac_ext <<_ACEOF
25426 #line $LINENO "configure"
25427 #include "confdefs.h"
25428 #define _LARGEFILE_SOURCE 1
25438 rm -f conftest.
$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440 (eval $ac_compile) 2>&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } &&
25444 { ac_try
='test -s conftest.$ac_objext'
25445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446 (eval $ac_try) 2>&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; }; then
25450 ac_cv_sys_largefile_source
=1; break
25452 echo "$as_me: failed program was:" >&5
25453 cat conftest.
$ac_ext >&5
25455 rm -f conftest.
$ac_objext conftest.
$ac_ext
25459 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25460 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
25461 if test "$ac_cv_sys_largefile_source" != no
; then
25463 cat >>confdefs.h
<<_ACEOF
25464 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25470 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25471 # in glibc 2.1.3, but that breaks too many other things.
25472 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25473 echo "$as_me:$LINENO: checking for fseeko" >&5
25474 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
25475 if test "${ac_cv_func_fseeko+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25478 cat >conftest.
$ac_ext <<_ACEOF
25479 #line $LINENO "configure"
25480 #include "confdefs.h"
25485 return fseeko && fseeko (stdin, 0, 0);
25490 rm -f conftest.
$ac_objext conftest
$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492 (eval $ac_link) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } &&
25496 { ac_try
='test -s conftest$ac_exeext'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 ac_cv_func_fseeko
=yes
25504 echo "$as_me: failed program was:" >&5
25505 cat conftest.
$ac_ext >&5
25506 ac_cv_func_fseeko
=no
25508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25510 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
25511 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
25512 if test $ac_cv_func_fseeko = yes; then
25514 cat >>confdefs.h
<<\_ACEOF
25515 #define HAVE_FSEEKO 1
25521 for ac_func
in vprintf
25523 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25524 echo "$as_me:$LINENO: checking for $ac_func" >&5
25525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25526 if eval "test \"\${$as_ac_var+set}\" = set"; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 cat >conftest.
$ac_ext <<_ACEOF
25530 #line $LINENO "configure"
25531 #include "confdefs.h"
25532 /* System header to define __stub macros and hopefully few prototypes,
25533 which can conflict with char $ac_func (); below. */
25534 #include <assert.h>
25535 /* Override any gcc2 internal prototype to avoid an error. */
25539 /* We use char because int might match the return type of a gcc2
25540 builtin and then its argument prototype would still apply. */
25547 /* The GNU C library defines this for functions which it implements
25548 to always fail with ENOSYS. Some functions are actually named
25549 something starting with __ and the normal name is an alias. */
25550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25560 rm -f conftest.
$ac_objext conftest
$ac_exeext
25561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25562 (eval $ac_link) 2>&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } &&
25566 { ac_try
='test -s conftest$ac_exeext'
25567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25568 (eval $ac_try) 2>&5
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); }; }; then
25572 eval "$as_ac_var=yes"
25574 echo "$as_me: failed program was:" >&5
25575 cat conftest.
$ac_ext >&5
25576 eval "$as_ac_var=no"
25578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25582 if test `eval echo '${'$as_ac_var'}'` = yes; then
25583 cat >>confdefs.h
<<_ACEOF
25584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25587 echo "$as_me:$LINENO: checking for _doprnt" >&5
25588 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25589 if test "${ac_cv_func__doprnt+set}" = set; then
25590 echo $ECHO_N "(cached) $ECHO_C" >&6
25592 cat >conftest.
$ac_ext <<_ACEOF
25593 #line $LINENO "configure"
25594 #include "confdefs.h"
25595 /* System header to define __stub macros and hopefully few prototypes,
25596 which can conflict with char _doprnt (); below. */
25597 #include <assert.h>
25598 /* Override any gcc2 internal prototype to avoid an error. */
25602 /* We use char because int might match the return type of a gcc2
25603 builtin and then its argument prototype would still apply. */
25610 /* The GNU C library defines this for functions which it implements
25611 to always fail with ENOSYS. Some functions are actually named
25612 something starting with __ and the normal name is an alias. */
25613 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25623 rm -f conftest.
$ac_objext conftest
$ac_exeext
25624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25625 (eval $ac_link) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); } &&
25629 { ac_try
='test -s conftest$ac_exeext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_cv_func__doprnt
=yes
25637 echo "$as_me: failed program was:" >&5
25638 cat conftest.
$ac_ext >&5
25639 ac_cv_func__doprnt
=no
25641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25644 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25645 if test $ac_cv_func__doprnt = yes; then
25647 cat >>confdefs.h
<<\_ACEOF
25648 #define HAVE_DOPRNT 1
25658 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
25659 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
25660 if test "${jm_cv_have_proc_uptime+set}" = set; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 jm_cv_have_proc_uptime
=no
25664 test -f /proc
/uptime \
25665 && test "$cross_compiling" = no \
25666 && cat < /proc
/uptime
>/dev
/null
2>/dev
/null \
25667 && jm_cv_have_proc_uptime
=yes
25669 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
25670 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
25671 if test $jm_cv_have_proc_uptime = yes; then
25673 cat >>confdefs.h
<<\_ACEOF
25674 #define HAVE_PROC_UPTIME 1
25681 for ac_func
in ftruncate
25683 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25684 echo "$as_me:$LINENO: checking for $ac_func" >&5
25685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25686 if eval "test \"\${$as_ac_var+set}\" = set"; then
25687 echo $ECHO_N "(cached) $ECHO_C" >&6
25689 cat >conftest.
$ac_ext <<_ACEOF
25690 #line $LINENO "configure"
25691 #include "confdefs.h"
25692 /* System header to define __stub macros and hopefully few prototypes,
25693 which can conflict with char $ac_func (); below. */
25694 #include <assert.h>
25695 /* Override any gcc2 internal prototype to avoid an error. */
25699 /* We use char because int might match the return type of a gcc2
25700 builtin and then its argument prototype would still apply. */
25707 /* The GNU C library defines this for functions which it implements
25708 to always fail with ENOSYS. Some functions are actually named
25709 something starting with __ and the normal name is an alias. */
25710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25720 rm -f conftest.
$ac_objext conftest
$ac_exeext
25721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25722 (eval $ac_link) 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } &&
25726 { ac_try
='test -s conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 eval "$as_ac_var=yes"
25734 echo "$as_me: failed program was:" >&5
25735 cat conftest.
$ac_ext >&5
25736 eval "$as_ac_var=no"
25738 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25742 if test `eval echo '${'$as_ac_var'}'` = yes; then
25743 cat >>confdefs.h
<<_ACEOF
25744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25748 ftruncate_missing
=yes
25753 if test "$ftruncate_missing" = yes; then
25755 for ac_header
in unistd.h
25757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25759 echo "$as_me:$LINENO: checking for $ac_header" >&5
25760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25767 # Is the header compilable?
25768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25770 cat >conftest.
$ac_ext <<_ACEOF
25771 #line $LINENO "configure"
25772 #include "confdefs.h"
25773 $ac_includes_default
25774 #include <$ac_header>
25776 rm -f conftest.
$ac_objext
25777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25778 (eval $ac_compile) 2>&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } &&
25782 { ac_try
='test -s conftest.$ac_objext'
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; }; then
25788 ac_header_compiler
=yes
25790 echo "$as_me: failed program was:" >&5
25791 cat conftest.
$ac_ext >&5
25792 ac_header_compiler
=no
25794 rm -f conftest.
$ac_objext conftest.
$ac_ext
25795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25796 echo "${ECHO_T}$ac_header_compiler" >&6
25798 # Is the header present?
25799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25801 cat >conftest.
$ac_ext <<_ACEOF
25802 #line $LINENO "configure"
25803 #include "confdefs.h"
25804 #include <$ac_header>
25806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
25809 grep -v '^ *+' conftest.er1
>conftest.err
25811 cat conftest.err
>&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } >/dev
/null
; then
25814 if test -s conftest.err
; then
25815 ac_cpp_err
=$ac_c_preproc_warn_flag
25822 if test -z "$ac_cpp_err"; then
25823 ac_header_preproc
=yes
25825 echo "$as_me: failed program was:" >&5
25826 cat conftest.
$ac_ext >&5
25827 ac_header_preproc
=no
25829 rm -f conftest.err conftest.
$ac_ext
25830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25831 echo "${ECHO_T}$ac_header_preproc" >&6
25833 # So? What about this header?
25834 case $ac_header_compiler:$ac_header_preproc in
25836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
25848 echo "$as_me:$LINENO: checking for $ac_header" >&5
25849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25851 echo $ECHO_N "(cached) $ECHO_C" >&6
25853 eval "$as_ac_Header=$ac_header_preproc"
25855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25860 cat >>confdefs.h
<<_ACEOF
25861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25869 for ac_func
in chsize
25871 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25872 echo "$as_me:$LINENO: checking for $ac_func" >&5
25873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25874 if eval "test \"\${$as_ac_var+set}\" = set"; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 cat >conftest.
$ac_ext <<_ACEOF
25878 #line $LINENO "configure"
25879 #include "confdefs.h"
25880 /* System header to define __stub macros and hopefully few prototypes,
25881 which can conflict with char $ac_func (); below. */
25882 #include <assert.h>
25883 /* Override any gcc2 internal prototype to avoid an error. */
25887 /* We use char because int might match the return type of a gcc2
25888 builtin and then its argument prototype would still apply. */
25895 /* The GNU C library defines this for functions which it implements
25896 to always fail with ENOSYS. Some functions are actually named
25897 something starting with __ and the normal name is an alias. */
25898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25908 rm -f conftest.
$ac_objext conftest
$ac_exeext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25910 (eval $ac_link) 2>&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } &&
25914 { ac_try
='test -s conftest$ac_exeext'
25915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916 (eval $ac_try) 2>&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); }; }; then
25920 eval "$as_ac_var=yes"
25922 echo "$as_me: failed program was:" >&5
25923 cat conftest.
$ac_ext >&5
25924 eval "$as_ac_var=no"
25926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25930 if test `eval echo '${'$as_ac_var'}'` = yes; then
25931 cat >>confdefs.h
<<_ACEOF
25932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25938 LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
25942 echo "$as_me:$LINENO: checking whether rename is broken" >&5
25943 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
25944 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25948 rm -rf conftest.d1 conftest.d2
25949 mkdir conftest.d1 ||
25950 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
25951 echo "$as_me: error: cannot create temporary directory" >&2;}
25952 { (exit 1); exit 1; }; }
25953 if test "$cross_compiling" = yes; then
25954 vb_cv_func_rename_trailing_slash_bug
=yes
25956 cat >conftest.
$ac_ext <<_ACEOF
25957 #line $LINENO "configure"
25958 #include "confdefs.h"
25960 # include <stdio.h>
25964 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
25968 rm -f conftest
$ac_exeext
25969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25970 (eval $ac_link) 2>&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; }; then
25979 vb_cv_func_rename_trailing_slash_bug
=no
25981 echo "$as_me: program exited with status $ac_status" >&5
25982 echo "$as_me: failed program was:" >&5
25983 cat conftest.
$ac_ext >&5
25984 ( exit $ac_status )
25985 vb_cv_func_rename_trailing_slash_bug
=yes
25987 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25990 rm -rf conftest.d1 conftest.d2
25993 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
25994 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
25995 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
25996 LIBOBJS
="$LIBOBJS rename.$ac_objext"
25998 cat >>confdefs.h
<<\_ACEOF
25999 #define RENAME_TRAILING_SLASH_BUG 1
26005 for ac_func
in mkstemp
26007 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26008 echo "$as_me:$LINENO: checking for $ac_func" >&5
26009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26010 if eval "test \"\${$as_ac_var+set}\" = set"; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 cat >conftest.
$ac_ext <<_ACEOF
26014 #line $LINENO "configure"
26015 #include "confdefs.h"
26016 /* System header to define __stub macros and hopefully few prototypes,
26017 which can conflict with char $ac_func (); below. */
26018 #include <assert.h>
26019 /* Override any gcc2 internal prototype to avoid an error. */
26023 /* We use char because int might match the return type of a gcc2
26024 builtin and then its argument prototype would still apply. */
26031 /* The GNU C library defines this for functions which it implements
26032 to always fail with ENOSYS. Some functions are actually named
26033 something starting with __ and the normal name is an alias. */
26034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26044 rm -f conftest.
$ac_objext conftest
$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046 (eval $ac_link) 2>&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } &&
26050 { ac_try
='test -s conftest$ac_exeext'
26051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052 (eval $ac_try) 2>&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; }; then
26056 eval "$as_ac_var=yes"
26058 echo "$as_me: failed program was:" >&5
26059 cat conftest.
$ac_ext >&5
26060 eval "$as_ac_var=no"
26062 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26066 if test `eval echo '${'$as_ac_var'}'` = yes; then
26067 cat >>confdefs.h
<<_ACEOF
26068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26072 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
26077 if test $ac_cv_func_mkstemp = no
; then
26078 utils_cv_func_mkstemp_limitations
=yes
26080 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
26081 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
26082 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 if test "$cross_compiling" = yes; then
26087 utils_cv_func_mkstemp_limitations
=yes
26090 cat >conftest.
$ac_ext <<_ACEOF
26091 #line $LINENO "configure"
26092 #include "confdefs.h"
26094 # include <stdlib.h>
26098 for (i = 0; i < 30; i++)
26100 char template[] = "conftestXXXXXX";
26101 int fd = mkstemp (template);
26110 rm -f conftest
$ac_exeext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26112 (eval $ac_link) 2>&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 utils_cv_func_mkstemp_limitations
=no
26123 echo "$as_me: program exited with status $ac_status" >&5
26124 echo "$as_me: failed program was:" >&5
26125 cat conftest.
$ac_ext >&5
26126 ( exit $ac_status )
26127 utils_cv_func_mkstemp_limitations
=yes
26129 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26134 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
26135 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
26138 if test $utils_cv_func_mkstemp_limitations = yes; then
26139 LIBOBJS
="$LIBOBJS mkstemp.$ac_objext"
26140 LIBOBJS
="$LIBOBJS tempname.$ac_objext"
26142 cat >>confdefs.h
<<\_ACEOF
26143 #define mkstemp rpl_mkstemp
26148 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
26149 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
26150 if test "${ac_cv_func_closedir_void+set}" = set; then
26151 echo $ECHO_N "(cached) $ECHO_C" >&6
26153 if test "$cross_compiling" = yes; then
26154 ac_cv_func_closedir_void
=yes
26156 cat >conftest.
$ac_ext <<_ACEOF
26157 #line $LINENO "configure"
26158 #include "confdefs.h"
26159 $ac_includes_default
26160 #include <$ac_header_dirent>
26161 #ifndef __cplusplus
26168 exit (closedir (opendir (".")) != 0);
26173 rm -f conftest
$ac_exeext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26175 (eval $ac_link) 2>&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; }; then
26184 ac_cv_func_closedir_void
=no
26186 echo "$as_me: program exited with status $ac_status" >&5
26187 echo "$as_me: failed program was:" >&5
26188 cat conftest.
$ac_ext >&5
26189 ( exit $ac_status )
26190 ac_cv_func_closedir_void
=yes
26192 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26195 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
26196 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
26197 if test $ac_cv_func_closedir_void = yes; then
26199 cat >>confdefs.h
<<\_ACEOF
26200 #define CLOSEDIR_VOID 1
26205 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
26206 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
26207 if test "${ac_cv_func_utime_null+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 rm -f conftest.data
; >conftest.data
26211 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
26212 if test "$cross_compiling" = yes; then
26213 ac_cv_func_utime_null
=no
26215 cat >conftest.
$ac_ext <<_ACEOF
26216 #line $LINENO "configure"
26217 #include "confdefs.h"
26218 $ac_includes_default
26223 exit (!(stat ("conftest.data", &s) == 0
26224 && utime ("conftest.data", (long *)0) == 0
26225 && stat ("conftest.data", &t) == 0
26226 && t.st_mtime >= s.st_mtime
26227 && t.st_mtime - s.st_mtime < 120));
26232 rm -f conftest
$ac_exeext
26233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26234 (eval $ac_link) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 ac_cv_func_utime_null
=yes
26245 echo "$as_me: program exited with status $ac_status" >&5
26246 echo "$as_me: failed program was:" >&5
26247 cat conftest.
$ac_ext >&5
26248 ( exit $ac_status )
26249 ac_cv_func_utime_null
=no
26251 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26253 rm -f core core.
* *.core
26255 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
26256 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
26257 if test $ac_cv_func_utime_null = yes; then
26259 cat >>confdefs.h
<<\_ACEOF
26260 #define HAVE_UTIME_NULL 1
26264 rm -f conftest.data
26268 for ac_header
in utime.h
26270 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26272 echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26280 # Is the header compilable?
26281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26283 cat >conftest.
$ac_ext <<_ACEOF
26284 #line $LINENO "configure"
26285 #include "confdefs.h"
26286 $ac_includes_default
26287 #include <$ac_header>
26289 rm -f conftest.
$ac_objext
26290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291 (eval $ac_compile) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
26295 { ac_try
='test -s conftest.$ac_objext'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; }; then
26301 ac_header_compiler
=yes
26303 echo "$as_me: failed program was:" >&5
26304 cat conftest.
$ac_ext >&5
26305 ac_header_compiler
=no
26307 rm -f conftest.
$ac_objext conftest.
$ac_ext
26308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26309 echo "${ECHO_T}$ac_header_compiler" >&6
26311 # Is the header present?
26312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26314 cat >conftest.
$ac_ext <<_ACEOF
26315 #line $LINENO "configure"
26316 #include "confdefs.h"
26317 #include <$ac_header>
26319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26320 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
26322 grep -v '^ *+' conftest.er1
>conftest.err
26324 cat conftest.err
>&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } >/dev
/null
; then
26327 if test -s conftest.err
; then
26328 ac_cpp_err
=$ac_c_preproc_warn_flag
26335 if test -z "$ac_cpp_err"; then
26336 ac_header_preproc
=yes
26338 echo "$as_me: failed program was:" >&5
26339 cat conftest.
$ac_ext >&5
26340 ac_header_preproc
=no
26342 rm -f conftest.err conftest.
$ac_ext
26343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26344 echo "${ECHO_T}$ac_header_preproc" >&6
26346 # So? What about this header?
26347 case $ac_header_compiler:$ac_header_preproc in
26349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
26361 echo "$as_me:$LINENO: checking for $ac_header" >&5
26362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26364 echo $ECHO_N "(cached) $ECHO_C" >&6
26366 eval "$as_ac_Header=$ac_header_preproc"
26368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26373 cat >>confdefs.h
<<_ACEOF
26374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26384 if test $ac_cv_func_utime_null = no
; then
26385 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
26386 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
26387 if test "${ac_cv_func_utimes_null+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26390 rm -f conftest.data
; > conftest.data
26391 if test "$cross_compiling" = yes; then
26392 ac_cv_func_utimes_null
=no
26394 cat >conftest.
$ac_ext <<_ACEOF
26395 #line $LINENO "configure"
26396 #include "confdefs.h"
26398 /* In case stat has been defined to rpl_stat, undef it here. */
26400 #include <sys/types.h>
26401 #include <sys/stat.h>
26404 exit(!(stat ("conftest.data", &s) == 0
26405 && utimes("conftest.data", (long *)0) == 0
26406 && stat("conftest.data", &t) == 0
26407 && t.st_mtime >= s.st_mtime
26408 && t.st_mtime - s.st_mtime < 120));
26411 rm -f conftest
$ac_exeext
26412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26413 (eval $ac_link) 2>&5
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; }; then
26422 ac_cv_func_utimes_null
=yes
26424 echo "$as_me: program exited with status $ac_status" >&5
26425 echo "$as_me: failed program was:" >&5
26426 cat conftest.
$ac_ext >&5
26427 ( exit $ac_status )
26428 ac_cv_func_utimes_null
=no
26430 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26432 rm -f core core.
* *.core
26434 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
26435 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
26437 if test $ac_cv_func_utimes_null = yes; then
26439 cat >>confdefs.h
<<\_ACEOF
26440 #define HAVE_UTIMES_NULL 1
26447 for ac_func
in utime
26449 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_var+set}\" = set"; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 cat >conftest.
$ac_ext <<_ACEOF
26456 #line $LINENO "configure"
26457 #include "confdefs.h"
26458 /* System header to define __stub macros and hopefully few prototypes,
26459 which can conflict with char $ac_func (); below. */
26460 #include <assert.h>
26461 /* Override any gcc2 internal prototype to avoid an error. */
26465 /* We use char because int might match the return type of a gcc2
26466 builtin and then its argument prototype would still apply. */
26473 /* The GNU C library defines this for functions which it implements
26474 to always fail with ENOSYS. Some functions are actually named
26475 something starting with __ and the normal name is an alias. */
26476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26486 rm -f conftest.
$ac_objext conftest
$ac_exeext
26487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26488 (eval $ac_link) 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
26492 { ac_try
='test -s conftest$ac_exeext'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 eval "$as_ac_var=yes"
26500 echo "$as_me: failed program was:" >&5
26501 cat conftest.
$ac_ext >&5
26502 eval "$as_ac_var=no"
26504 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
26506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26508 if test `eval echo '${'$as_ac_var'}'` = yes; then
26509 cat >>confdefs.h
<<_ACEOF
26510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26514 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
26522 if test "X$prefix" = "XNONE"; then
26523 acl_final_prefix
="$ac_default_prefix"
26525 acl_final_prefix
="$prefix"
26527 if test "X$exec_prefix" = "XNONE"; then
26528 acl_final_exec_prefix
='${prefix}'
26530 acl_final_exec_prefix
="$exec_prefix"
26532 acl_save_prefix
="$prefix"
26533 prefix
="$acl_final_prefix"
26534 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
26535 prefix
="$acl_save_prefix"
26538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
26539 if test "${with_gnu_ld+set}" = set; then
26540 withval
="$with_gnu_ld"
26541 test "$withval" = no || with_gnu_ld
=yes
26546 if test "$GCC" = yes; then
26547 # Check if gcc -print-prog-name=ld gives a path.
26548 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26549 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26552 # gcc leaves a trailing carriage return which upsets mingw
26553 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26555 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
26558 # Accept absolute paths.
26559 [\\/]* |
[A-Za-z
]:[\\/]*)
26560 re_direlt
='/[^/][^/]*/\.\./'
26561 # Canonicalize the path of ld
26562 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
26563 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
26564 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
26566 test -z "$LD" && LD
="$ac_prog"
26569 # If it fails, then pretend we aren't using GCC.
26573 # If it is relative, then search for the first ld in PATH.
26574 with_gnu_ld
=unknown
26577 elif test "$with_gnu_ld" = yes; then
26578 echo "$as_me:$LINENO: checking for GNU ld" >&5
26579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26584 if test "${acl_cv_path_LD+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26587 if test -z "$LD"; then
26588 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26589 for ac_dir
in $PATH; do
26590 test -z "$ac_dir" && ac_dir
=.
26591 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
26592 acl_cv_path_LD
="$ac_dir/$ac_prog"
26593 # Check to see if the program is GNU ld. I'd rather use --version,
26594 # but apparently some GNU ld's only accept -v.
26595 # Break only if it was the GNU/non-GNU ld that we prefer.
26596 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
26597 test "$with_gnu_ld" != no
&& break
26599 test "$with_gnu_ld" != yes && break
26605 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
26609 LD
="$acl_cv_path_LD"
26610 if test -n "$LD"; then
26611 echo "$as_me:$LINENO: result: $LD" >&5
26612 echo "${ECHO_T}$LD" >&6
26614 echo "$as_me:$LINENO: result: no" >&5
26615 echo "${ECHO_T}no" >&6
26617 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26618 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26619 { (exit 1); exit 1; }; }
26620 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26621 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26622 if test "${acl_cv_prog_gnu_ld+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26626 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
26627 acl_cv_prog_gnu_ld
=yes
26629 acl_cv_prog_gnu_ld
=no
26632 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26633 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26634 with_gnu_ld
=$acl_cv_prog_gnu_ld
26638 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26639 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26640 if test "${acl_cv_rpath+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
26645 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26647 rm -f .
/conftest.sh
26651 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26652 echo "${ECHO_T}$acl_cv_rpath" >&6
26654 libext
="$acl_cv_libext"
26655 shlibext
="$acl_cv_shlibext"
26656 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
26657 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
26658 hardcode_direct
="$acl_cv_hardcode_direct"
26659 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
26660 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
26661 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
26662 # Check whether --enable-rpath or --disable-rpath was given.
26663 if test "${enable_rpath+set}" = set; then
26664 enableval
="$enable_rpath"
26678 acl_save_prefix
="$prefix"
26679 prefix
="$acl_final_prefix"
26680 acl_save_exec_prefix
="$exec_prefix"
26681 exec_prefix
="$acl_final_exec_prefix"
26683 eval additional_includedir
=\"$includedir\"
26684 eval additional_libdir
=\"$libdir\"
26686 exec_prefix
="$acl_save_exec_prefix"
26687 prefix
="$acl_save_prefix"
26690 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26691 if test "${with_libiconv_prefix+set}" = set; then
26692 withval
="$with_libiconv_prefix"
26694 if test "X$withval" = "Xno"; then
26697 if test "X$withval" = "X"; then
26699 acl_save_prefix
="$prefix"
26700 prefix
="$acl_final_prefix"
26701 acl_save_exec_prefix
="$exec_prefix"
26702 exec_prefix
="$acl_final_exec_prefix"
26704 eval additional_includedir
=\"$includedir\"
26705 eval additional_libdir
=\"$libdir\"
26707 exec_prefix
="$acl_save_exec_prefix"
26708 prefix
="$acl_save_prefix"
26711 additional_includedir
="$withval/include"
26712 additional_libdir
="$withval/lib"
26722 names_already_handled
=
26723 names_next_round
='iconv '
26724 while test -n "$names_next_round"; do
26725 names_this_round
="$names_next_round"
26727 for name
in $names_this_round; do
26729 for n
in $names_already_handled; do
26730 if test "$n" = "$name"; then
26731 already_handled
=yes
26735 if test -z "$already_handled"; then
26736 names_already_handled
="$names_already_handled $name"
26737 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26738 eval value
=\"\
$HAVE_LIB$uppername\"
26739 if test -n "$value"; then
26740 if test "$value" = yes; then
26741 eval value
=\"\
$LIB$uppername\"
26742 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
26743 eval value
=\"\
$LTLIB$uppername\"
26744 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
26753 if test $use_additional = yes; then
26754 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26755 found_dir
="$additional_libdir"
26756 found_so
="$additional_libdir/lib$name.$shlibext"
26757 if test -f "$additional_libdir/lib$name.la"; then
26758 found_la
="$additional_libdir/lib$name.la"
26761 if test -f "$additional_libdir/lib$name.$libext"; then
26762 found_dir
="$additional_libdir"
26763 found_a
="$additional_libdir/lib$name.$libext"
26764 if test -f "$additional_libdir/lib$name.la"; then
26765 found_la
="$additional_libdir/lib$name.la"
26770 if test "X$found_dir" = "X"; then
26771 for x
in $LDFLAGS $LTLIBICONV; do
26773 acl_save_prefix
="$prefix"
26774 prefix
="$acl_final_prefix"
26775 acl_save_exec_prefix
="$exec_prefix"
26776 exec_prefix
="$acl_final_exec_prefix"
26778 exec_prefix
="$acl_save_exec_prefix"
26779 prefix
="$acl_save_prefix"
26783 dir
=`echo "X$x" | sed -e 's/^X-L//'`
26784 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26786 found_so
="$dir/lib$name.$shlibext"
26787 if test -f "$dir/lib$name.la"; then
26788 found_la
="$dir/lib$name.la"
26791 if test -f "$dir/lib$name.$libext"; then
26793 found_a
="$dir/lib$name.$libext"
26794 if test -f "$dir/lib$name.la"; then
26795 found_la
="$dir/lib$name.la"
26801 if test "X$found_dir" != "X"; then
26806 if test "X$found_dir" != "X"; then
26807 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26808 if test "X$found_so" != "X"; then
26809 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
26810 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
26813 for x
in $ltrpathdirs; do
26814 if test "X$x" = "X$found_dir"; then
26819 if test -z "$haveit"; then
26820 ltrpathdirs
="$ltrpathdirs $found_dir"
26822 if test "$hardcode_direct" = yes; then
26823 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
26825 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
26826 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
26828 for x
in $rpathdirs; do
26829 if test "X$x" = "X$found_dir"; then
26834 if test -z "$haveit"; then
26835 rpathdirs
="$rpathdirs $found_dir"
26839 for x
in $LDFLAGS $LIBICONV; do
26841 acl_save_prefix
="$prefix"
26842 prefix
="$acl_final_prefix"
26843 acl_save_exec_prefix
="$exec_prefix"
26844 exec_prefix
="$acl_final_exec_prefix"
26846 exec_prefix
="$acl_save_exec_prefix"
26847 prefix
="$acl_save_prefix"
26849 if test "X$x" = "X-L$found_dir"; then
26854 if test -z "$haveit"; then
26855 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26857 if test "$hardcode_minus_L" != no
; then
26858 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
26860 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
26866 if test "X$found_a" != "X"; then
26867 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
26869 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26872 additional_includedir
=
26873 case "$found_dir" in
26875 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26876 additional_includedir
="$basedir/include"
26879 if test "X$additional_includedir" != "X"; then
26880 if test "X$additional_includedir" != "X/usr/include"; then
26882 if test "X$additional_includedir" = "X/usr/local/include"; then
26883 if test -n "$GCC"; then
26885 linux
*) haveit
=yes;;
26889 if test -z "$haveit"; then
26890 for x
in $CPPFLAGS $INCICONV; do
26892 acl_save_prefix
="$prefix"
26893 prefix
="$acl_final_prefix"
26894 acl_save_exec_prefix
="$exec_prefix"
26895 exec_prefix
="$acl_final_exec_prefix"
26897 exec_prefix
="$acl_save_exec_prefix"
26898 prefix
="$acl_save_prefix"
26900 if test "X$x" = "X-I$additional_includedir"; then
26905 if test -z "$haveit"; then
26906 if test -d "$additional_includedir"; then
26907 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26913 if test -n "$found_la"; then
26914 save_libdir
="$libdir"
26915 case "$found_la" in
26916 */* |
*\\*) .
"$found_la" ;;
26917 *) .
"./$found_la" ;;
26919 libdir
="$save_libdir"
26920 for dep
in $dependency_libs; do
26923 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
26924 if test "X$additional_libdir" != "X/usr/lib"; then
26926 if test "X$additional_libdir" = "X/usr/local/lib"; then
26927 if test -n "$GCC"; then
26929 linux
*) haveit
=yes;;
26933 if test -z "$haveit"; then
26935 for x
in $LDFLAGS $LIBICONV; do
26937 acl_save_prefix
="$prefix"
26938 prefix
="$acl_final_prefix"
26939 acl_save_exec_prefix
="$exec_prefix"
26940 exec_prefix
="$acl_final_exec_prefix"
26942 exec_prefix
="$acl_save_exec_prefix"
26943 prefix
="$acl_save_prefix"
26945 if test "X$x" = "X-L$additional_libdir"; then
26950 if test -z "$haveit"; then
26951 if test -d "$additional_libdir"; then
26952 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26956 for x
in $LDFLAGS $LTLIBICONV; do
26958 acl_save_prefix
="$prefix"
26959 prefix
="$acl_final_prefix"
26960 acl_save_exec_prefix
="$exec_prefix"
26961 exec_prefix
="$acl_final_exec_prefix"
26963 exec_prefix
="$acl_save_exec_prefix"
26964 prefix
="$acl_save_prefix"
26966 if test "X$x" = "X-L$additional_libdir"; then
26971 if test -z "$haveit"; then
26972 if test -d "$additional_libdir"; then
26973 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26980 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
26981 if test "$enable_rpath" != no
; then
26983 for x
in $rpathdirs; do
26984 if test "X$x" = "X$dir"; then
26989 if test -z "$haveit"; then
26990 rpathdirs
="$rpathdirs $dir"
26993 for x
in $ltrpathdirs; do
26994 if test "X$x" = "X$dir"; then
26999 if test -z "$haveit"; then
27000 ltrpathdirs
="$ltrpathdirs $dir"
27005 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27008 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27011 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
27012 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27018 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
27019 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27025 if test "X$rpathdirs" != "X"; then
27026 if test -n "$hardcode_libdir_separator"; then
27028 for found_dir
in $rpathdirs; do
27029 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27031 acl_save_libdir
="$libdir"
27033 eval flag
=\"$hardcode_libdir_flag_spec\"
27034 libdir
="$acl_save_libdir"
27035 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
27037 for found_dir
in $rpathdirs; do
27038 acl_save_libdir
="$libdir"
27039 libdir
="$found_dir"
27040 eval flag
=\"$hardcode_libdir_flag_spec\"
27041 libdir
="$acl_save_libdir"
27042 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
27046 if test "X$ltrpathdirs" != "X"; then
27047 for found_dir
in $ltrpathdirs; do
27048 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27054 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
27055 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
27056 if test "${ac_cv_win_or_dos+set}" = set; then
27057 echo $ECHO_N "(cached) $ECHO_C" >&6
27060 cat >conftest.
$ac_ext <<_ACEOF
27061 #line $LINENO "configure"
27062 #include "confdefs.h"
27067 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
27068 neither MSDOS nor Windows
27074 rm -f conftest.
$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076 (eval $ac_compile) 2>&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); } &&
27080 { ac_try
='test -s conftest.$ac_objext'
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
27086 ac_cv_win_or_dos
=yes
27088 echo "$as_me: failed program was:" >&5
27089 cat conftest.
$ac_ext >&5
27090 ac_cv_win_or_dos
=no
27092 rm -f conftest.
$ac_objext conftest.
$ac_ext
27095 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
27096 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
27098 if test x
"$ac_cv_win_or_dos" = xyes
; then
27099 ac_fs_accepts_drive_letter_prefix
=1
27100 ac_fs_backslash_is_file_name_separator
=1
27102 ac_fs_accepts_drive_letter_prefix
=0
27103 ac_fs_backslash_is_file_name_separator
=0
27110 cat >>confdefs.h
<<_ACEOF
27111 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
27119 cat >>confdefs.h
<<_ACEOF
27120 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
27127 GNU_PACKAGE
="GNU $PACKAGE"
27129 cat >>confdefs.h
<<_ACEOF
27130 #define GNU_PACKAGE "$GNU_PACKAGE"
27136 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
27158 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
27159 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
27160 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 cat >conftest.
$ac_ext <<_ACEOF
27164 #line $LINENO "configure"
27165 #include "confdefs.h"
27166 $ac_includes_default
27167 #include <sys/stat.h>
27173 static struct stat ac_aggr;
27174 if (ac_aggr.st_author)
27180 rm -f conftest.
$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } &&
27186 { ac_try
='test -s conftest.$ac_objext'
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192 ac_cv_member_struct_stat_st_author
=yes
27194 echo "$as_me: failed program was:" >&5
27195 cat conftest.
$ac_ext >&5
27196 cat >conftest.
$ac_ext <<_ACEOF
27197 #line $LINENO "configure"
27198 #include "confdefs.h"
27199 $ac_includes_default
27200 #include <sys/stat.h>
27206 static struct stat ac_aggr;
27207 if (sizeof ac_aggr.st_author)
27213 rm -f conftest.
$ac_objext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27215 (eval $ac_compile) 2>&5
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
27219 { ac_try
='test -s conftest.$ac_objext'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; }; then
27225 ac_cv_member_struct_stat_st_author
=yes
27227 echo "$as_me: failed program was:" >&5
27228 cat conftest.
$ac_ext >&5
27229 ac_cv_member_struct_stat_st_author
=no
27231 rm -f conftest.
$ac_objext conftest.
$ac_ext
27233 rm -f conftest.
$ac_objext conftest.
$ac_ext
27235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
27236 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
27237 if test $ac_cv_member_struct_stat_st_author = yes; then
27239 cat >>confdefs.h
<<_ACEOF
27240 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
27245 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
27246 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
27247 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 cat >conftest.
$ac_ext <<_ACEOF
27251 #line $LINENO "configure"
27252 #include "confdefs.h"
27253 $ac_includes_default
27254 #include <sys/stat.h>
27260 static struct stat ac_aggr;
27261 if (ac_aggr.st_blksize)
27267 rm -f conftest.
$ac_objext
27268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27269 (eval $ac_compile) 2>&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } &&
27273 { ac_try
='test -s conftest.$ac_objext'
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; }; then
27279 ac_cv_member_struct_stat_st_blksize
=yes
27281 echo "$as_me: failed program was:" >&5
27282 cat conftest.
$ac_ext >&5
27283 cat >conftest.
$ac_ext <<_ACEOF
27284 #line $LINENO "configure"
27285 #include "confdefs.h"
27286 $ac_includes_default
27287 #include <sys/stat.h>
27293 static struct stat ac_aggr;
27294 if (sizeof ac_aggr.st_blksize)
27300 rm -f conftest.
$ac_objext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27302 (eval $ac_compile) 2>&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try
='test -s conftest.$ac_objext'
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_cv_member_struct_stat_st_blksize
=yes
27314 echo "$as_me: failed program was:" >&5
27315 cat conftest.
$ac_ext >&5
27316 ac_cv_member_struct_stat_st_blksize
=no
27318 rm -f conftest.
$ac_objext conftest.
$ac_ext
27320 rm -f conftest.
$ac_objext conftest.
$ac_ext
27322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
27323 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
27324 if test $ac_cv_member_struct_stat_st_blksize = yes; then
27326 cat >>confdefs.h
<<_ACEOF
27327 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
27349 echo "$as_me:$LINENO: checking for ino_t" >&5
27350 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
27351 if test "${ac_cv_type_ino_t+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27354 cat >conftest.
$ac_ext <<_ACEOF
27355 #line $LINENO "configure"
27356 #include "confdefs.h"
27357 $ac_includes_default
27363 if (sizeof (ino_t))
27369 rm -f conftest.
$ac_objext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27371 (eval $ac_compile) 2>&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
27375 { ac_try
='test -s conftest.$ac_objext'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; }; then
27381 ac_cv_type_ino_t
=yes
27383 echo "$as_me: failed program was:" >&5
27384 cat conftest.
$ac_ext >&5
27385 ac_cv_type_ino_t
=no
27387 rm -f conftest.
$ac_objext conftest.
$ac_ext
27389 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27390 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
27391 if test $ac_cv_type_ino_t = yes; then
27395 cat >>confdefs.h
<<_ACEOF
27396 #define ino_t unsigned long
27402 echo "$as_me:$LINENO: checking for ssize_t" >&5
27403 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
27404 if test "${ac_cv_type_ssize_t+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27407 cat >conftest.
$ac_ext <<_ACEOF
27408 #line $LINENO "configure"
27409 #include "confdefs.h"
27410 $ac_includes_default
27416 if (sizeof (ssize_t))
27422 rm -f conftest.
$ac_objext
27423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27424 (eval $ac_compile) 2>&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } &&
27428 { ac_try
='test -s conftest.$ac_objext'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; }; then
27434 ac_cv_type_ssize_t
=yes
27436 echo "$as_me: failed program was:" >&5
27437 cat conftest.
$ac_ext >&5
27438 ac_cv_type_ssize_t
=no
27440 rm -f conftest.
$ac_objext conftest.
$ac_ext
27442 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27443 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
27444 if test $ac_cv_type_ssize_t = yes; then
27448 cat >>confdefs.h
<<_ACEOF
27449 #define ssize_t int
27454 echo "$as_me:$LINENO: checking for major_t" >&5
27455 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
27456 if test "${ac_cv_type_major_t+set}" = set; then
27457 echo $ECHO_N "(cached) $ECHO_C" >&6
27459 cat >conftest.
$ac_ext <<_ACEOF
27460 #line $LINENO "configure"
27461 #include "confdefs.h"
27462 $ac_includes_default
27468 if (sizeof (major_t))
27474 rm -f conftest.
$ac_objext
27475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27476 (eval $ac_compile) 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); } &&
27480 { ac_try
='test -s conftest.$ac_objext'
27481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482 (eval $ac_try) 2>&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
27486 ac_cv_type_major_t
=yes
27488 echo "$as_me: failed program was:" >&5
27489 cat conftest.
$ac_ext >&5
27490 ac_cv_type_major_t
=no
27492 rm -f conftest.
$ac_objext conftest.
$ac_ext
27494 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27495 echo "${ECHO_T}$ac_cv_type_major_t" >&6
27496 if test $ac_cv_type_major_t = yes; then
27500 cat >>confdefs.h
<<_ACEOF
27501 #define major_t unsigned int
27506 echo "$as_me:$LINENO: checking for minor_t" >&5
27507 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
27508 if test "${ac_cv_type_minor_t+set}" = set; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27511 cat >conftest.
$ac_ext <<_ACEOF
27512 #line $LINENO "configure"
27513 #include "confdefs.h"
27514 $ac_includes_default
27520 if (sizeof (minor_t))
27526 rm -f conftest.
$ac_objext
27527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27528 (eval $ac_compile) 2>&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } &&
27532 { ac_try
='test -s conftest.$ac_objext'
27533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534 (eval $ac_try) 2>&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ac_cv_type_minor_t
=yes
27540 echo "$as_me: failed program was:" >&5
27541 cat conftest.
$ac_ext >&5
27542 ac_cv_type_minor_t
=no
27544 rm -f conftest.
$ac_objext conftest.
$ac_ext
27546 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27547 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
27548 if test $ac_cv_type_minor_t = yes; then
27552 cat >>confdefs.h
<<_ACEOF
27553 #define minor_t unsigned int
27568 # Assume we'll default to using the included regex.c.
27569 ac_use_included_regex
=yes
27571 # However, if the system regex support is good enough that it passes the
27572 # the following run test, then default to *not* using the included regex.c.
27573 # If cross compiling, assume the test would fail and use the included
27574 # regex.c. The first failing regular expression is from `Spencer ere
27575 # test #75' in grep-2.3.
27576 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
27577 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
27578 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 if test "$cross_compiling" = yes; then
27582 jm_cv_func_working_re_compile_pattern
=no
27584 cat >conftest.
$ac_ext <<_ACEOF
27585 #line $LINENO "configure"
27586 #include "confdefs.h"
27592 static struct re_pattern_buffer regex;
27594 struct re_registers regs;
27595 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
27596 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
27597 /* This should fail with _Invalid character class name_ error. */
27601 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
27602 s = re_compile_pattern ("{1", 2, ®ex);
27607 /* The following example is derived from a problem report
27608 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
27609 s = re_compile_pattern ("[anù]*n", 7, ®ex);
27613 /* This should match, but doesn't for e.g. glibc-2.2.1. */
27614 if (re_match (®ex, "an", 2, 0, ®s) != 2)
27621 rm -f conftest
$ac_exeext
27622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27623 (eval $ac_link) 2>&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
27632 jm_cv_func_working_re_compile_pattern
=yes
27634 echo "$as_me: program exited with status $ac_status" >&5
27635 echo "$as_me: failed program was:" >&5
27636 cat conftest.
$ac_ext >&5
27637 ( exit $ac_status )
27638 jm_cv_func_working_re_compile_pattern
=no
27640 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27643 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
27644 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
27645 if test $jm_cv_func_working_re_compile_pattern = yes; then
27646 ac_use_included_regex
=no
27649 test -n "lib/regex.c" ||
{ { echo "$as_me:$LINENO: error: missing argument" >&5
27650 echo "$as_me: error: missing argument" >&2;}
27651 { (exit 1); exit 1; }; }
27655 # Check whether --with-included-regex or --without-included-regex was given.
27656 if test "${with_included_regex+set}" = set; then
27657 withval
="$with_included_regex"
27658 jm_with_regex
=$withval
27660 jm_with_regex
=$ac_use_included_regex
27662 if test "$jm_with_regex" = yes; then
27663 LIBOBJS
="$LIBOBJS regex.$ac_objext"
27708 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
27713 ac_have_func
=no
# yes means we've found a way to get the load average.
27719 for ac_header
in locale.h unistd.h mach
/mach.h fcntl.h
27721 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27723 echo "$as_me:$LINENO: checking for $ac_header" >&5
27724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27726 echo $ECHO_N "(cached) $ECHO_C" >&6
27728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27731 # Is the header compilable?
27732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27734 cat >conftest.
$ac_ext <<_ACEOF
27735 #line $LINENO "configure"
27736 #include "confdefs.h"
27737 $ac_includes_default
27738 #include <$ac_header>
27740 rm -f conftest.
$ac_objext
27741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27742 (eval $ac_compile) 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
27746 { ac_try
='test -s conftest.$ac_objext'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
27752 ac_header_compiler
=yes
27754 echo "$as_me: failed program was:" >&5
27755 cat conftest.
$ac_ext >&5
27756 ac_header_compiler
=no
27758 rm -f conftest.
$ac_objext conftest.
$ac_ext
27759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27760 echo "${ECHO_T}$ac_header_compiler" >&6
27762 # Is the header present?
27763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27765 cat >conftest.
$ac_ext <<_ACEOF
27766 #line $LINENO "configure"
27767 #include "confdefs.h"
27768 #include <$ac_header>
27770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27771 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
27773 grep -v '^ *+' conftest.er1
>conftest.err
27775 cat conftest.err
>&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } >/dev
/null
; then
27778 if test -s conftest.err
; then
27779 ac_cpp_err
=$ac_c_preproc_warn_flag
27786 if test -z "$ac_cpp_err"; then
27787 ac_header_preproc
=yes
27789 echo "$as_me: failed program was:" >&5
27790 cat conftest.
$ac_ext >&5
27791 ac_header_preproc
=no
27793 rm -f conftest.err conftest.
$ac_ext
27794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27795 echo "${ECHO_T}$ac_header_preproc" >&6
27797 # So? What about this header?
27798 case $ac_header_compiler:$ac_header_preproc in
27800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
27812 echo "$as_me:$LINENO: checking for $ac_header" >&5
27813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27815 echo $ECHO_N "(cached) $ECHO_C" >&6
27817 eval "$as_ac_Header=$ac_header_preproc"
27819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27824 cat >>confdefs.h
<<_ACEOF
27825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27833 for ac_func
in setlocale
27835 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27836 echo "$as_me:$LINENO: checking for $ac_func" >&5
27837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27838 if eval "test \"\${$as_ac_var+set}\" = set"; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27841 cat >conftest.
$ac_ext <<_ACEOF
27842 #line $LINENO "configure"
27843 #include "confdefs.h"
27844 /* System header to define __stub macros and hopefully few prototypes,
27845 which can conflict with char $ac_func (); below. */
27846 #include <assert.h>
27847 /* Override any gcc2 internal prototype to avoid an error. */
27851 /* We use char because int might match the return type of a gcc2
27852 builtin and then its argument prototype would still apply. */
27859 /* The GNU C library defines this for functions which it implements
27860 to always fail with ENOSYS. Some functions are actually named
27861 something starting with __ and the normal name is an alias. */
27862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27872 rm -f conftest.
$ac_objext conftest
$ac_exeext
27873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27874 (eval $ac_link) 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } &&
27878 { ac_try
='test -s conftest$ac_exeext'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 eval "$as_ac_var=yes"
27886 echo "$as_me: failed program was:" >&5
27887 cat conftest.
$ac_ext >&5
27888 eval "$as_ac_var=no"
27890 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27894 if test `eval echo '${'$as_ac_var'}'` = yes; then
27895 cat >>confdefs.h
<<_ACEOF
27896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27903 # By default, expect to find getloadavg.c in $srcdir/.
27904 ac_lib_dir_getloadavg
=$srcdir
27905 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
27906 ac_lib_dir_getloadavg
=$srcdir/lib
27907 # Make sure getloadavg.c is where it belongs, at ./configure-time.
27908 test -f $ac_lib_dir_getloadavg/getloadavg.c \
27909 ||
{ { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
27910 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
27911 { (exit 1); exit 1; }; }
27912 # FIXME: Add an autoconf-time test, too?
27916 # Check for getloadavg, but be sure not to touch the cache variable.
27917 (echo "$as_me:$LINENO: checking for getloadavg" >&5
27918 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
27919 if test "${ac_cv_func_getloadavg+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27922 cat >conftest.
$ac_ext <<_ACEOF
27923 #line $LINENO "configure"
27924 #include "confdefs.h"
27925 /* System header to define __stub macros and hopefully few prototypes,
27926 which can conflict with char getloadavg (); below. */
27927 #include <assert.h>
27928 /* Override any gcc2 internal prototype to avoid an error. */
27932 /* We use char because int might match the return type of a gcc2
27933 builtin and then its argument prototype would still apply. */
27934 char getloadavg ();
27940 /* The GNU C library defines this for functions which it implements
27941 to always fail with ENOSYS. Some functions are actually named
27942 something starting with __ and the normal name is an alias. */
27943 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
27953 rm -f conftest.
$ac_objext conftest
$ac_exeext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955 (eval $ac_link) 2>&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } &&
27959 { ac_try
='test -s conftest$ac_exeext'
27960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961 (eval $ac_try) 2>&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; }; then
27965 ac_cv_func_getloadavg
=yes
27967 echo "$as_me: failed program was:" >&5
27968 cat conftest.
$ac_ext >&5
27969 ac_cv_func_getloadavg
=no
27971 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
27973 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
27974 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
27975 if test $ac_cv_func_getloadavg = yes; then
27980 ) && ac_have_func
=yes
27982 # On HPUX9, an unprivileged user can get load averages through this function.
27984 for ac_func
in pstat_getdynamic
27986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_var+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 cat >conftest.
$ac_ext <<_ACEOF
27993 #line $LINENO "configure"
27994 #include "confdefs.h"
27995 /* System header to define __stub macros and hopefully few prototypes,
27996 which can conflict with char $ac_func (); below. */
27997 #include <assert.h>
27998 /* Override any gcc2 internal prototype to avoid an error. */
28002 /* We use char because int might match the return type of a gcc2
28003 builtin and then its argument prototype would still apply. */
28010 /* The GNU C library defines this for functions which it implements
28011 to always fail with ENOSYS. Some functions are actually named
28012 something starting with __ and the normal name is an alias. */
28013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28023 rm -f conftest.
$ac_objext conftest
$ac_exeext
28024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28025 (eval $ac_link) 2>&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
28029 { ac_try
='test -s conftest$ac_exeext'
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; }; then
28035 eval "$as_ac_var=yes"
28037 echo "$as_me: failed program was:" >&5
28038 cat conftest.
$ac_ext >&5
28039 eval "$as_ac_var=no"
28041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28045 if test `eval echo '${'$as_ac_var'}'` = yes; then
28046 cat >>confdefs.h
<<_ACEOF
28047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28054 # Solaris has libkstat which does not require root.
28056 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28057 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
28058 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 ac_check_lib_save_LIBS
=$LIBS
28062 LIBS
="-lkstat $LIBS"
28063 cat >conftest.
$ac_ext <<_ACEOF
28064 #line $LINENO "configure"
28065 #include "confdefs.h"
28067 /* Override any gcc2 internal prototype to avoid an error. */
28071 /* We use char because int might match the return type of a gcc2
28072 builtin and then its argument prototype would still apply. */
28073 char kstat_open ();
28082 rm -f conftest.
$ac_objext conftest
$ac_exeext
28083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28084 (eval $ac_link) 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
28088 { ac_try
='test -s conftest$ac_exeext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_lib_kstat_kstat_open
=yes
28096 echo "$as_me: failed program was:" >&5
28097 cat conftest.
$ac_ext >&5
28098 ac_cv_lib_kstat_kstat_open
=no
28100 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28101 LIBS
=$ac_check_lib_save_LIBS
28103 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28104 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
28105 if test $ac_cv_lib_kstat_kstat_open = yes; then
28106 cat >>confdefs.h
<<_ACEOF
28107 #define HAVE_LIBKSTAT 1
28110 LIBS
="-lkstat $LIBS"
28114 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
28116 # Some systems with -lutil have (and need) -lkvm as well, some do not.
28117 # On Solaris, -lkvm requires nlist from -lelf, so check that first
28118 # to get the right answer into the cache.
28119 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
28120 if test $ac_have_func = no
; then
28121 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
28122 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
28123 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 ac_check_lib_save_LIBS
=$LIBS
28128 cat >conftest.
$ac_ext <<_ACEOF
28129 #line $LINENO "configure"
28130 #include "confdefs.h"
28132 /* Override any gcc2 internal prototype to avoid an error. */
28136 /* We use char because int might match the return type of a gcc2
28137 builtin and then its argument prototype would still apply. */
28147 rm -f conftest.
$ac_objext conftest
$ac_exeext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28149 (eval $ac_link) 2>&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } &&
28153 { ac_try
='test -s conftest$ac_exeext'
28154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28155 (eval $ac_try) 2>&5
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); }; }; then
28159 ac_cv_lib_elf_elf_begin
=yes
28161 echo "$as_me: failed program was:" >&5
28162 cat conftest.
$ac_ext >&5
28163 ac_cv_lib_elf_elf_begin
=no
28165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28166 LIBS
=$ac_check_lib_save_LIBS
28168 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
28169 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
28170 if test $ac_cv_lib_elf_elf_begin = yes; then
28175 if test $ac_have_func = no
; then
28176 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
28177 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
28178 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 ac_check_lib_save_LIBS
=$LIBS
28183 cat >conftest.
$ac_ext <<_ACEOF
28184 #line $LINENO "configure"
28185 #include "confdefs.h"
28187 /* Override any gcc2 internal prototype to avoid an error. */
28191 /* We use char because int might match the return type of a gcc2
28192 builtin and then its argument prototype would still apply. */
28202 rm -f conftest.
$ac_objext conftest
$ac_exeext
28203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28204 (eval $ac_link) 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); } &&
28208 { ac_try
='test -s conftest$ac_exeext'
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; }; then
28214 ac_cv_lib_kvm_kvm_open
=yes
28216 echo "$as_me: failed program was:" >&5
28217 cat conftest.
$ac_ext >&5
28218 ac_cv_lib_kvm_kvm_open
=no
28220 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28221 LIBS
=$ac_check_lib_save_LIBS
28223 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
28224 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
28225 if test $ac_cv_lib_kvm_kvm_open = yes; then
28229 # Check for the 4.4BSD definition of getloadavg.
28230 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
28231 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
28232 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 ac_check_lib_save_LIBS
=$LIBS
28236 LIBS
="-lutil $LIBS"
28237 cat >conftest.
$ac_ext <<_ACEOF
28238 #line $LINENO "configure"
28239 #include "confdefs.h"
28241 /* Override any gcc2 internal prototype to avoid an error. */
28245 /* We use char because int might match the return type of a gcc2
28246 builtin and then its argument prototype would still apply. */
28247 char getloadavg ();
28256 rm -f conftest.
$ac_objext conftest
$ac_exeext
28257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28258 (eval $ac_link) 2>&5
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); } &&
28262 { ac_try
='test -s conftest$ac_exeext'
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 ac_cv_lib_util_getloadavg
=yes
28270 echo "$as_me: failed program was:" >&5
28271 cat conftest.
$ac_ext >&5
28272 ac_cv_lib_util_getloadavg
=no
28274 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28275 LIBS
=$ac_check_lib_save_LIBS
28277 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
28278 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
28279 if test $ac_cv_lib_util_getloadavg = yes; then
28280 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
28285 if test $ac_have_func = no
; then
28286 # There is a commonly available library for RS/6000 AIX.
28287 # Since it is not a standard part of AIX, it might be installed locally.
28288 ac_getloadavg_LIBS
=$LIBS
28289 LIBS
="-L/usr/local/lib $LIBS"
28290 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
28291 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
28292 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
28293 echo $ECHO_N "(cached) $ECHO_C" >&6
28295 ac_check_lib_save_LIBS
=$LIBS
28296 LIBS
="-lgetloadavg $LIBS"
28297 cat >conftest.
$ac_ext <<_ACEOF
28298 #line $LINENO "configure"
28299 #include "confdefs.h"
28301 /* Override any gcc2 internal prototype to avoid an error. */
28305 /* We use char because int might match the return type of a gcc2
28306 builtin and then its argument prototype would still apply. */
28307 char getloadavg ();
28316 rm -f conftest.
$ac_objext conftest
$ac_exeext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28318 (eval $ac_link) 2>&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); } &&
28322 { ac_try
='test -s conftest$ac_exeext'
28323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28324 (eval $ac_try) 2>&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); }; }; then
28328 ac_cv_lib_getloadavg_getloadavg
=yes
28330 echo "$as_me: failed program was:" >&5
28331 cat conftest.
$ac_ext >&5
28332 ac_cv_lib_getloadavg_getloadavg
=no
28334 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28335 LIBS
=$ac_check_lib_save_LIBS
28337 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
28338 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
28339 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
28340 LIBS
="-lgetloadavg $LIBS"
28342 LIBS
=$ac_getloadavg_LIBS
28347 # Make sure it is really in the library, if we think we found it,
28348 # otherwise set up the replacement function.
28350 for ac_func
in getloadavg
28352 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28353 echo "$as_me:$LINENO: checking for $ac_func" >&5
28354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28355 if eval "test \"\${$as_ac_var+set}\" = set"; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 cat >conftest.
$ac_ext <<_ACEOF
28359 #line $LINENO "configure"
28360 #include "confdefs.h"
28361 /* System header to define __stub macros and hopefully few prototypes,
28362 which can conflict with char $ac_func (); below. */
28363 #include <assert.h>
28364 /* Override any gcc2 internal prototype to avoid an error. */
28368 /* We use char because int might match the return type of a gcc2
28369 builtin and then its argument prototype would still apply. */
28376 /* The GNU C library defines this for functions which it implements
28377 to always fail with ENOSYS. Some functions are actually named
28378 something starting with __ and the normal name is an alias. */
28379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28389 rm -f conftest.
$ac_objext conftest
$ac_exeext
28390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28391 (eval $ac_link) 2>&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try
='test -s conftest$ac_exeext'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; }; then
28401 eval "$as_ac_var=yes"
28403 echo "$as_me: failed program was:" >&5
28404 cat conftest.
$ac_ext >&5
28405 eval "$as_ac_var=no"
28407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28411 if test `eval echo '${'$as_ac_var'}'` = yes; then
28412 cat >>confdefs.h
<<_ACEOF
28413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28417 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
28419 cat >>confdefs.h
<<\_ACEOF
28420 #define C_GETLOADAVG 1
28423 # Figure out what our getloadavg.c needs.
28425 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28426 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
28427 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
28428 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
28432 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
28434 # Is the header compilable?
28435 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
28436 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
28437 cat >conftest.
$ac_ext <<_ACEOF
28438 #line $LINENO "configure"
28439 #include "confdefs.h"
28440 $ac_includes_default
28441 #include <sys/dg_sys_info.h>
28443 rm -f conftest.
$ac_objext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28445 (eval $ac_compile) 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
28449 { ac_try
='test -s conftest.$ac_objext'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 ac_header_compiler
=yes
28457 echo "$as_me: failed program was:" >&5
28458 cat conftest.
$ac_ext >&5
28459 ac_header_compiler
=no
28461 rm -f conftest.
$ac_objext conftest.
$ac_ext
28462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28463 echo "${ECHO_T}$ac_header_compiler" >&6
28465 # Is the header present?
28466 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
28467 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
28468 cat >conftest.
$ac_ext <<_ACEOF
28469 #line $LINENO "configure"
28470 #include "confdefs.h"
28471 #include <sys/dg_sys_info.h>
28473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28476 grep -v '^ *+' conftest.er1
>conftest.err
28478 cat conftest.err
>&5
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); } >/dev
/null
; then
28481 if test -s conftest.err
; then
28482 ac_cpp_err
=$ac_c_preproc_warn_flag
28489 if test -z "$ac_cpp_err"; then
28490 ac_header_preproc
=yes
28492 echo "$as_me: failed program was:" >&5
28493 cat conftest.
$ac_ext >&5
28494 ac_header_preproc
=no
28496 rm -f conftest.err conftest.
$ac_ext
28497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28498 echo "${ECHO_T}$ac_header_preproc" >&6
28500 # So? What about this header?
28501 case $ac_header_compiler:$ac_header_preproc in
28503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
28504 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
28506 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
28508 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
28509 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
28510 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
28511 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
28512 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
28513 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
28515 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
28516 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
28517 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
28522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
28523 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
28526 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
28529 cat >>confdefs.h
<<\_ACEOF
28534 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
28535 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
28536 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 ac_check_lib_save_LIBS
=$LIBS
28541 cat >conftest.
$ac_ext <<_ACEOF
28542 #line $LINENO "configure"
28543 #include "confdefs.h"
28545 /* Override any gcc2 internal prototype to avoid an error. */
28549 /* We use char because int might match the return type of a gcc2
28550 builtin and then its argument prototype would still apply. */
28551 char dg_sys_info ();
28560 rm -f conftest.
$ac_objext conftest
$ac_exeext
28561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28562 (eval $ac_link) 2>&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
28566 { ac_try
='test -s conftest$ac_exeext'
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 ac_cv_lib_dgc_dg_sys_info
=yes
28574 echo "$as_me: failed program was:" >&5
28575 cat conftest.
$ac_ext >&5
28576 ac_cv_lib_dgc_dg_sys_info
=no
28578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28579 LIBS
=$ac_check_lib_save_LIBS
28581 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
28582 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
28583 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
28584 cat >>confdefs.h
<<_ACEOF
28585 #define HAVE_LIBDGC 1
28596 if test "${ac_cv_header_locale_h+set}" = set; then
28597 echo "$as_me:$LINENO: checking for locale.h" >&5
28598 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
28599 if test "${ac_cv_header_locale_h+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28602 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
28603 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
28605 # Is the header compilable?
28606 echo "$as_me:$LINENO: checking locale.h usability" >&5
28607 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
28608 cat >conftest.
$ac_ext <<_ACEOF
28609 #line $LINENO "configure"
28610 #include "confdefs.h"
28611 $ac_includes_default
28612 #include <locale.h>
28614 rm -f conftest.
$ac_objext
28615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28616 (eval $ac_compile) 2>&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try
='test -s conftest.$ac_objext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_header_compiler
=yes
28628 echo "$as_me: failed program was:" >&5
28629 cat conftest.
$ac_ext >&5
28630 ac_header_compiler
=no
28632 rm -f conftest.
$ac_objext conftest.
$ac_ext
28633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28634 echo "${ECHO_T}$ac_header_compiler" >&6
28636 # Is the header present?
28637 echo "$as_me:$LINENO: checking locale.h presence" >&5
28638 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
28639 cat >conftest.
$ac_ext <<_ACEOF
28640 #line $LINENO "configure"
28641 #include "confdefs.h"
28642 #include <locale.h>
28644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28647 grep -v '^ *+' conftest.er1
>conftest.err
28649 cat conftest.err
>&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } >/dev
/null
; then
28652 if test -s conftest.err
; then
28653 ac_cpp_err
=$ac_c_preproc_warn_flag
28660 if test -z "$ac_cpp_err"; then
28661 ac_header_preproc
=yes
28663 echo "$as_me: failed program was:" >&5
28664 cat conftest.
$ac_ext >&5
28665 ac_header_preproc
=no
28667 rm -f conftest.err conftest.
$ac_ext
28668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28669 echo "${ECHO_T}$ac_header_preproc" >&6
28671 # So? What about this header?
28672 case $ac_header_compiler:$ac_header_preproc in
28674 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
28675 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28676 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
28677 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
28679 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
28680 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
28682 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
28684 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
28686 echo "$as_me:$LINENO: checking for locale.h" >&5
28687 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
28688 if test "${ac_cv_header_locale_h+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 ac_cv_header_locale_h
=$ac_header_preproc
28693 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
28694 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
28700 for ac_func
in setlocale
28702 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28703 echo "$as_me:$LINENO: checking for $ac_func" >&5
28704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28705 if eval "test \"\${$as_ac_var+set}\" = set"; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28708 cat >conftest.
$ac_ext <<_ACEOF
28709 #line $LINENO "configure"
28710 #include "confdefs.h"
28711 /* System header to define __stub macros and hopefully few prototypes,
28712 which can conflict with char $ac_func (); below. */
28713 #include <assert.h>
28714 /* Override any gcc2 internal prototype to avoid an error. */
28718 /* We use char because int might match the return type of a gcc2
28719 builtin and then its argument prototype would still apply. */
28726 /* The GNU C library defines this for functions which it implements
28727 to always fail with ENOSYS. Some functions are actually named
28728 something starting with __ and the normal name is an alias. */
28729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28739 rm -f conftest.
$ac_objext conftest
$ac_exeext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28741 (eval $ac_link) 2>&5
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); } &&
28745 { ac_try
='test -s conftest$ac_exeext'
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; }; then
28751 eval "$as_ac_var=yes"
28753 echo "$as_me: failed program was:" >&5
28754 cat conftest.
$ac_ext >&5
28755 eval "$as_ac_var=no"
28757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
28759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28761 if test `eval echo '${'$as_ac_var'}'` = yes; then
28762 cat >>confdefs.h
<<_ACEOF
28763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28770 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
28771 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
28772 # Irix 4.0.5F has the header but not the library.
28773 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
28776 cat >>confdefs.h
<<\_ACEOF
28782 if test $ac_have_func = no
; then
28783 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28784 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
28785 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
28786 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28787 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
28790 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
28792 # Is the header compilable?
28793 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
28794 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
28795 cat >conftest.
$ac_ext <<_ACEOF
28796 #line $LINENO "configure"
28797 #include "confdefs.h"
28798 $ac_includes_default
28799 #include <inq_stats/cpustats.h>
28801 rm -f conftest.
$ac_objext
28802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28803 (eval $ac_compile) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } &&
28807 { ac_try
='test -s conftest.$ac_objext'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; }; then
28813 ac_header_compiler
=yes
28815 echo "$as_me: failed program was:" >&5
28816 cat conftest.
$ac_ext >&5
28817 ac_header_compiler
=no
28819 rm -f conftest.
$ac_objext conftest.
$ac_ext
28820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28821 echo "${ECHO_T}$ac_header_compiler" >&6
28823 # Is the header present?
28824 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
28825 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
28826 cat >conftest.
$ac_ext <<_ACEOF
28827 #line $LINENO "configure"
28828 #include "confdefs.h"
28829 #include <inq_stats/cpustats.h>
28831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28832 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28834 grep -v '^ *+' conftest.er1
>conftest.err
28836 cat conftest.err
>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } >/dev
/null
; then
28839 if test -s conftest.err
; then
28840 ac_cpp_err
=$ac_c_preproc_warn_flag
28847 if test -z "$ac_cpp_err"; then
28848 ac_header_preproc
=yes
28850 echo "$as_me: failed program was:" >&5
28851 cat conftest.
$ac_ext >&5
28852 ac_header_preproc
=no
28854 rm -f conftest.err conftest.
$ac_ext
28855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28856 echo "${ECHO_T}$ac_header_preproc" >&6
28858 # So? What about this header?
28859 case $ac_header_compiler:$ac_header_preproc in
28861 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
28862 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
28864 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28866 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
28867 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
28869 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
28871 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28873 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
28874 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
28875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28878 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
28880 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
28881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
28884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
28887 cat >>confdefs.h
<<\_ACEOF
28892 cat >>confdefs.h
<<\_ACEOF
28901 if test $ac_have_func = no
; then
28902 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28903 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
28904 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
28905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28906 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
28909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
28911 # Is the header compilable?
28912 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
28913 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
28914 cat >conftest.
$ac_ext <<_ACEOF
28915 #line $LINENO "configure"
28916 #include "confdefs.h"
28917 $ac_includes_default
28918 #include <sys/cpustats.h>
28920 rm -f conftest.
$ac_objext
28921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28922 (eval $ac_compile) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); } &&
28926 { ac_try
='test -s conftest.$ac_objext'
28927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 ac_header_compiler
=yes
28934 echo "$as_me: failed program was:" >&5
28935 cat conftest.
$ac_ext >&5
28936 ac_header_compiler
=no
28938 rm -f conftest.
$ac_objext conftest.
$ac_ext
28939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28940 echo "${ECHO_T}$ac_header_compiler" >&6
28942 # Is the header present?
28943 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
28944 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
28945 cat >conftest.
$ac_ext <<_ACEOF
28946 #line $LINENO "configure"
28947 #include "confdefs.h"
28948 #include <sys/cpustats.h>
28950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28953 grep -v '^ *+' conftest.er1
>conftest.err
28955 cat conftest.err
>&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } >/dev
/null
; then
28958 if test -s conftest.err
; then
28959 ac_cpp_err
=$ac_c_preproc_warn_flag
28966 if test -z "$ac_cpp_err"; then
28967 ac_header_preproc
=yes
28969 echo "$as_me: failed program was:" >&5
28970 cat conftest.
$ac_ext >&5
28971 ac_header_preproc
=no
28973 rm -f conftest.err conftest.
$ac_ext
28974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28975 echo "${ECHO_T}$ac_header_preproc" >&6
28977 # So? What about this header?
28978 case $ac_header_compiler:$ac_header_preproc in
28980 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
28981 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
28983 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28985 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
28986 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
28988 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
28990 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
28992 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
28993 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
28994 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
28999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
29000 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
29003 if test $ac_cv_header_sys_cpustats_h = yes; then
29004 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
29013 if test $ac_have_func = no
; then
29015 for ac_header
in mach
/mach.h
29017 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29019 echo "$as_me:$LINENO: checking for $ac_header" >&5
29020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29027 # Is the header compilable?
29028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29030 cat >conftest.
$ac_ext <<_ACEOF
29031 #line $LINENO "configure"
29032 #include "confdefs.h"
29033 $ac_includes_default
29034 #include <$ac_header>
29036 rm -f conftest.
$ac_objext
29037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29038 (eval $ac_compile) 2>&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } &&
29042 { ac_try
='test -s conftest.$ac_objext'
29043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29044 (eval $ac_try) 2>&5
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); }; }; then
29048 ac_header_compiler
=yes
29050 echo "$as_me: failed program was:" >&5
29051 cat conftest.
$ac_ext >&5
29052 ac_header_compiler
=no
29054 rm -f conftest.
$ac_objext conftest.
$ac_ext
29055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056 echo "${ECHO_T}$ac_header_compiler" >&6
29058 # Is the header present?
29059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29061 cat >conftest.
$ac_ext <<_ACEOF
29062 #line $LINENO "configure"
29063 #include "confdefs.h"
29064 #include <$ac_header>
29066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29069 grep -v '^ *+' conftest.er1
>conftest.err
29071 cat conftest.err
>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); } >/dev
/null
; then
29074 if test -s conftest.err
; then
29075 ac_cpp_err
=$ac_c_preproc_warn_flag
29082 if test -z "$ac_cpp_err"; then
29083 ac_header_preproc
=yes
29085 echo "$as_me: failed program was:" >&5
29086 cat conftest.
$ac_ext >&5
29087 ac_header_preproc
=no
29089 rm -f conftest.err conftest.
$ac_ext
29090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29091 echo "${ECHO_T}$ac_header_preproc" >&6
29093 # So? What about this header?
29094 case $ac_header_compiler:$ac_header_preproc in
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29108 echo "$as_me:$LINENO: checking for $ac_header" >&5
29109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 eval "$as_ac_Header=$ac_header_preproc"
29115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29120 cat >>confdefs.h
<<_ACEOF
29121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29131 for ac_header
in nlist.h
29133 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29135 echo "$as_me:$LINENO: checking for $ac_header" >&5
29136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29143 # Is the header compilable?
29144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29146 cat >conftest.
$ac_ext <<_ACEOF
29147 #line $LINENO "configure"
29148 #include "confdefs.h"
29149 $ac_includes_default
29150 #include <$ac_header>
29152 rm -f conftest.
$ac_objext
29153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29154 (eval $ac_compile) 2>&5
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
29158 { ac_try
='test -s conftest.$ac_objext'
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 ac_header_compiler
=yes
29166 echo "$as_me: failed program was:" >&5
29167 cat conftest.
$ac_ext >&5
29168 ac_header_compiler
=no
29170 rm -f conftest.
$ac_objext conftest.
$ac_ext
29171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29172 echo "${ECHO_T}$ac_header_compiler" >&6
29174 # Is the header present?
29175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29177 cat >conftest.
$ac_ext <<_ACEOF
29178 #line $LINENO "configure"
29179 #include "confdefs.h"
29180 #include <$ac_header>
29182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29183 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
29185 grep -v '^ *+' conftest.er1
>conftest.err
29187 cat conftest.err
>&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); } >/dev
/null
; then
29190 if test -s conftest.err
; then
29191 ac_cpp_err
=$ac_c_preproc_warn_flag
29198 if test -z "$ac_cpp_err"; then
29199 ac_header_preproc
=yes
29201 echo "$as_me: failed program was:" >&5
29202 cat conftest.
$ac_ext >&5
29203 ac_header_preproc
=no
29205 rm -f conftest.err conftest.
$ac_ext
29206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29207 echo "${ECHO_T}$ac_header_preproc" >&6
29209 # So? What about this header?
29210 case $ac_header_compiler:$ac_header_preproc in
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
29224 echo "$as_me:$LINENO: checking for $ac_header" >&5
29225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 eval "$as_ac_Header=$ac_header_preproc"
29231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29236 cat >>confdefs.h
<<_ACEOF
29237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29239 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
29240 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
29241 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29244 cat >conftest.
$ac_ext <<_ACEOF
29245 #line $LINENO "configure"
29246 #include "confdefs.h"
29252 static struct nlist ac_aggr;
29253 if (ac_aggr.n_un.n_name)
29259 rm -f conftest.
$ac_objext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29261 (eval $ac_compile) 2>&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } &&
29265 { ac_try
='test -s conftest.$ac_objext'
29266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267 (eval $ac_try) 2>&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); }; }; then
29271 ac_cv_member_struct_nlist_n_un_n_name
=yes
29273 echo "$as_me: failed program was:" >&5
29274 cat conftest.
$ac_ext >&5
29275 cat >conftest.
$ac_ext <<_ACEOF
29276 #line $LINENO "configure"
29277 #include "confdefs.h"
29283 static struct nlist ac_aggr;
29284 if (sizeof ac_aggr.n_un.n_name)
29290 rm -f conftest.
$ac_objext
29291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29292 (eval $ac_compile) 2>&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } &&
29296 { ac_try
='test -s conftest.$ac_objext'
29297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298 (eval $ac_try) 2>&5
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); }; }; then
29302 ac_cv_member_struct_nlist_n_un_n_name
=yes
29304 echo "$as_me: failed program was:" >&5
29305 cat conftest.
$ac_ext >&5
29306 ac_cv_member_struct_nlist_n_un_n_name
=no
29308 rm -f conftest.
$ac_objext conftest.
$ac_ext
29310 rm -f conftest.
$ac_objext conftest.
$ac_ext
29312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
29313 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
29314 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
29316 cat >>confdefs.h
<<_ACEOF
29317 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
29321 cat >>confdefs.h
<<\_ACEOF
29322 #define NLIST_NAME_UNION 1
29336 # Some definitions of getloadavg require that the program be installed setgid.
29337 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
29338 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
29339 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29342 cat >conftest.
$ac_ext <<_ACEOF
29343 #line $LINENO "configure"
29344 #include "confdefs.h"
29345 #include "$ac_lib_dir_getloadavg/getloadavg.c"
29346 #ifdef LDAV_PRIVILEGED
29347 Yowza Am I SETGID yet
29350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29351 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
29352 ac_cv_func_getloadavg_setgid
=yes
29354 ac_cv_func_getloadavg_setgid
=no
29359 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
29360 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
29361 if test $ac_cv_func_getloadavg_setgid = yes; then
29364 cat >>confdefs.h
<<\_ACEOF
29365 #define GETLOADAVG_PRIVILEGED 1
29372 if test $ac_cv_func_getloadavg_setgid = yes; then
29373 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
29374 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
29375 if test "${ac_cv_group_kmem+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29378 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
29379 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
29380 # If we got an error (system does not support symlinks), try without -L.
29381 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
29382 ac_cv_group_kmem
=`echo $ac_ls_output \
29383 | sed -ne 's/[ ][ ]*/ /g;
29384 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
29388 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
29389 echo "${ECHO_T}$ac_cv_group_kmem" >&6
29390 KMEM_GROUP
=$ac_cv_group_kmem
29392 if test "x$ac_save_LIBS" = x
; then
29393 GETLOADAVG_LIBS
=$LIBS
29395 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
29406 for ac_func
in strcasecmp strncasecmp
29408 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409 echo "$as_me:$LINENO: checking for $ac_func" >&5
29410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29411 if eval "test \"\${$as_ac_var+set}\" = set"; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29414 cat >conftest.
$ac_ext <<_ACEOF
29415 #line $LINENO "configure"
29416 #include "confdefs.h"
29417 /* System header to define __stub macros and hopefully few prototypes,
29418 which can conflict with char $ac_func (); below. */
29419 #include <assert.h>
29420 /* Override any gcc2 internal prototype to avoid an error. */
29424 /* We use char because int might match the return type of a gcc2
29425 builtin and then its argument prototype would still apply. */
29432 /* The GNU C library defines this for functions which it implements
29433 to always fail with ENOSYS. Some functions are actually named
29434 something starting with __ and the normal name is an alias. */
29435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29445 rm -f conftest.
$ac_objext conftest
$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447 (eval $ac_link) 2>&5
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); } &&
29451 { ac_try
='test -s conftest$ac_exeext'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 eval "$as_ac_var=yes"
29459 echo "$as_me: failed program was:" >&5
29460 cat conftest.
$ac_ext >&5
29461 eval "$as_ac_var=no"
29463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29467 if test `eval echo '${'$as_ac_var'}'` = yes; then
29468 cat >>confdefs.h
<<_ACEOF
29469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29473 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29479 for ac_func
in dup2
29481 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29482 echo "$as_me:$LINENO: checking for $ac_func" >&5
29483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29484 if eval "test \"\${$as_ac_var+set}\" = set"; then
29485 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 cat >conftest.
$ac_ext <<_ACEOF
29488 #line $LINENO "configure"
29489 #include "confdefs.h"
29490 /* System header to define __stub macros and hopefully few prototypes,
29491 which can conflict with char $ac_func (); below. */
29492 #include <assert.h>
29493 /* Override any gcc2 internal prototype to avoid an error. */
29497 /* We use char because int might match the return type of a gcc2
29498 builtin and then its argument prototype would still apply. */
29505 /* The GNU C library defines this for functions which it implements
29506 to always fail with ENOSYS. Some functions are actually named
29507 something starting with __ and the normal name is an alias. */
29508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29518 rm -f conftest.
$ac_objext conftest
$ac_exeext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29520 (eval $ac_link) 2>&5
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); } &&
29524 { ac_try
='test -s conftest$ac_exeext'
29525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526 (eval $ac_try) 2>&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 eval "$as_ac_var=yes"
29532 echo "$as_me: failed program was:" >&5
29533 cat conftest.
$ac_ext >&5
29534 eval "$as_ac_var=no"
29536 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29540 if test `eval echo '${'$as_ac_var'}'` = yes; then
29541 cat >>confdefs.h
<<_ACEOF
29542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29546 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29553 for ac_func
in gethostname getusershell
29555 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29556 echo "$as_me:$LINENO: checking for $ac_func" >&5
29557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29558 if eval "test \"\${$as_ac_var+set}\" = set"; then
29559 echo $ECHO_N "(cached) $ECHO_C" >&6
29561 cat >conftest.
$ac_ext <<_ACEOF
29562 #line $LINENO "configure"
29563 #include "confdefs.h"
29564 /* System header to define __stub macros and hopefully few prototypes,
29565 which can conflict with char $ac_func (); below. */
29566 #include <assert.h>
29567 /* Override any gcc2 internal prototype to avoid an error. */
29571 /* We use char because int might match the return type of a gcc2
29572 builtin and then its argument prototype would still apply. */
29579 /* The GNU C library defines this for functions which it implements
29580 to always fail with ENOSYS. Some functions are actually named
29581 something starting with __ and the normal name is an alias. */
29582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29592 rm -f conftest.
$ac_objext conftest
$ac_exeext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29594 (eval $ac_link) 2>&5
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } &&
29598 { ac_try
='test -s conftest$ac_exeext'
29599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600 (eval $ac_try) 2>&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; }; then
29604 eval "$as_ac_var=yes"
29606 echo "$as_me: failed program was:" >&5
29607 cat conftest.
$ac_ext >&5
29608 eval "$as_ac_var=no"
29610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29614 if test `eval echo '${'$as_ac_var'}'` = yes; then
29615 cat >>confdefs.h
<<_ACEOF
29616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29620 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29626 for ac_func
in sig2str
29628 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629 echo "$as_me:$LINENO: checking for $ac_func" >&5
29630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29631 if eval "test \"\${$as_ac_var+set}\" = set"; then
29632 echo $ECHO_N "(cached) $ECHO_C" >&6
29634 cat >conftest.
$ac_ext <<_ACEOF
29635 #line $LINENO "configure"
29636 #include "confdefs.h"
29637 /* System header to define __stub macros and hopefully few prototypes,
29638 which can conflict with char $ac_func (); below. */
29639 #include <assert.h>
29640 /* Override any gcc2 internal prototype to avoid an error. */
29644 /* We use char because int might match the return type of a gcc2
29645 builtin and then its argument prototype would still apply. */
29652 /* The GNU C library defines this for functions which it implements
29653 to always fail with ENOSYS. Some functions are actually named
29654 something starting with __ and the normal name is an alias. */
29655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29665 rm -f conftest.
$ac_objext conftest
$ac_exeext
29666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29667 (eval $ac_link) 2>&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } &&
29671 { ac_try
='test -s conftest$ac_exeext'
29672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673 (eval $ac_try) 2>&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; }; then
29677 eval "$as_ac_var=yes"
29679 echo "$as_me: failed program was:" >&5
29680 cat conftest.
$ac_ext >&5
29681 eval "$as_ac_var=no"
29683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29687 if test `eval echo '${'$as_ac_var'}'` = yes; then
29688 cat >>confdefs.h
<<_ACEOF
29689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29693 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29703 for ac_func
in strcspn stpcpy strstr strtol strtoul
29705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29706 echo "$as_me:$LINENO: checking for $ac_func" >&5
29707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29708 if eval "test \"\${$as_ac_var+set}\" = set"; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29711 cat >conftest.
$ac_ext <<_ACEOF
29712 #line $LINENO "configure"
29713 #include "confdefs.h"
29714 /* System header to define __stub macros and hopefully few prototypes,
29715 which can conflict with char $ac_func (); below. */
29716 #include <assert.h>
29717 /* Override any gcc2 internal prototype to avoid an error. */
29721 /* We use char because int might match the return type of a gcc2
29722 builtin and then its argument prototype would still apply. */
29729 /* The GNU C library defines this for functions which it implements
29730 to always fail with ENOSYS. Some functions are actually named
29731 something starting with __ and the normal name is an alias. */
29732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29742 rm -f conftest.
$ac_objext conftest
$ac_exeext
29743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29744 (eval $ac_link) 2>&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
29748 { ac_try
='test -s conftest$ac_exeext'
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 eval "$as_ac_var=yes"
29756 echo "$as_me: failed program was:" >&5
29757 cat conftest.
$ac_ext >&5
29758 eval "$as_ac_var=no"
29760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29764 if test `eval echo '${'$as_ac_var'}'` = yes; then
29765 cat >>confdefs.h
<<_ACEOF
29766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29770 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29776 for ac_func
in strpbrk
29778 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29779 echo "$as_me:$LINENO: checking for $ac_func" >&5
29780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29781 if eval "test \"\${$as_ac_var+set}\" = set"; then
29782 echo $ECHO_N "(cached) $ECHO_C" >&6
29784 cat >conftest.
$ac_ext <<_ACEOF
29785 #line $LINENO "configure"
29786 #include "confdefs.h"
29787 /* System header to define __stub macros and hopefully few prototypes,
29788 which can conflict with char $ac_func (); below. */
29789 #include <assert.h>
29790 /* Override any gcc2 internal prototype to avoid an error. */
29794 /* We use char because int might match the return type of a gcc2
29795 builtin and then its argument prototype would still apply. */
29802 /* The GNU C library defines this for functions which it implements
29803 to always fail with ENOSYS. Some functions are actually named
29804 something starting with __ and the normal name is an alias. */
29805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29815 rm -f conftest.
$ac_objext conftest
$ac_exeext
29816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29817 (eval $ac_link) 2>&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
29821 { ac_try
='test -s conftest$ac_exeext'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; }; then
29827 eval "$as_ac_var=yes"
29829 echo "$as_me: failed program was:" >&5
29830 cat conftest.
$ac_ext >&5
29831 eval "$as_ac_var=no"
29833 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29837 if test `eval echo '${'$as_ac_var'}'` = yes; then
29838 cat >>confdefs.h
<<_ACEOF
29839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29843 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29854 for ac_func
in euidaccess memcmp
rmdir rpmatch strndup strverscmp
29856 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29857 echo "$as_me:$LINENO: checking for $ac_func" >&5
29858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29859 if eval "test \"\${$as_ac_var+set}\" = set"; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 cat >conftest.
$ac_ext <<_ACEOF
29863 #line $LINENO "configure"
29864 #include "confdefs.h"
29865 /* System header to define __stub macros and hopefully few prototypes,
29866 which can conflict with char $ac_func (); below. */
29867 #include <assert.h>
29868 /* Override any gcc2 internal prototype to avoid an error. */
29872 /* We use char because int might match the return type of a gcc2
29873 builtin and then its argument prototype would still apply. */
29880 /* The GNU C library defines this for functions which it implements
29881 to always fail with ENOSYS. Some functions are actually named
29882 something starting with __ and the normal name is an alias. */
29883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29893 rm -f conftest.
$ac_objext conftest
$ac_exeext
29894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29895 (eval $ac_link) 2>&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 (exit $ac_status); } &&
29899 { ac_try
='test -s conftest$ac_exeext'
29900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901 (eval $ac_try) 2>&5
29903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904 (exit $ac_status); }; }; then
29905 eval "$as_ac_var=yes"
29907 echo "$as_me: failed program was:" >&5
29908 cat conftest.
$ac_ext >&5
29909 eval "$as_ac_var=no"
29911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29915 if test `eval echo '${'$as_ac_var'}'` = yes; then
29916 cat >>confdefs.h
<<_ACEOF
29917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29921 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
29927 for ac_func
in atexit
29929 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 echo "$as_me:$LINENO: checking for $ac_func" >&5
29931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29932 if eval "test \"\${$as_ac_var+set}\" = set"; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29935 cat >conftest.
$ac_ext <<_ACEOF
29936 #line $LINENO "configure"
29937 #include "confdefs.h"
29938 /* System header to define __stub macros and hopefully few prototypes,
29939 which can conflict with char $ac_func (); below. */
29940 #include <assert.h>
29941 /* Override any gcc2 internal prototype to avoid an error. */
29945 /* We use char because int might match the return type of a gcc2
29946 builtin and then its argument prototype would still apply. */
29953 /* The GNU C library defines this for functions which it implements
29954 to always fail with ENOSYS. Some functions are actually named
29955 something starting with __ and the normal name is an alias. */
29956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29966 rm -f conftest.
$ac_objext conftest
$ac_exeext
29967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29968 (eval $ac_link) 2>&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } &&
29972 { ac_try
='test -s conftest$ac_exeext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 eval "$as_ac_var=yes"
29980 echo "$as_me: failed program was:" >&5
29981 cat conftest.
$ac_ext >&5
29982 eval "$as_ac_var=no"
29984 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
29986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29988 if test `eval echo '${'$as_ac_var'}'` = yes; then
29989 cat >>confdefs.h
<<_ACEOF
29990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29994 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30000 for ac_func
in getpass
30002 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30003 echo "$as_me:$LINENO: checking for $ac_func" >&5
30004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30005 if eval "test \"\${$as_ac_var+set}\" = set"; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 cat >conftest.
$ac_ext <<_ACEOF
30009 #line $LINENO "configure"
30010 #include "confdefs.h"
30011 /* System header to define __stub macros and hopefully few prototypes,
30012 which can conflict with char $ac_func (); below. */
30013 #include <assert.h>
30014 /* Override any gcc2 internal prototype to avoid an error. */
30018 /* We use char because int might match the return type of a gcc2
30019 builtin and then its argument prototype would still apply. */
30026 /* The GNU C library defines this for functions which it implements
30027 to always fail with ENOSYS. Some functions are actually named
30028 something starting with __ and the normal name is an alias. */
30029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30039 rm -f conftest.
$ac_objext conftest
$ac_exeext
30040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30041 (eval $ac_link) 2>&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } &&
30045 { ac_try
='test -s conftest$ac_exeext'
30046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047 (eval $ac_try) 2>&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 eval "$as_ac_var=yes"
30053 echo "$as_me: failed program was:" >&5
30054 cat conftest.
$ac_ext >&5
30055 eval "$as_ac_var=no"
30057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30061 if test `eval echo '${'$as_ac_var'}'` = yes; then
30062 cat >>confdefs.h
<<_ACEOF
30063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30067 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30074 for ac_func
in strdup
30076 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30077 echo "$as_me:$LINENO: checking for $ac_func" >&5
30078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30079 if eval "test \"\${$as_ac_var+set}\" = set"; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30082 cat >conftest.
$ac_ext <<_ACEOF
30083 #line $LINENO "configure"
30084 #include "confdefs.h"
30085 /* System header to define __stub macros and hopefully few prototypes,
30086 which can conflict with char $ac_func (); below. */
30087 #include <assert.h>
30088 /* Override any gcc2 internal prototype to avoid an error. */
30092 /* We use char because int might match the return type of a gcc2
30093 builtin and then its argument prototype would still apply. */
30100 /* The GNU C library defines this for functions which it implements
30101 to always fail with ENOSYS. Some functions are actually named
30102 something starting with __ and the normal name is an alias. */
30103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30113 rm -f conftest.
$ac_objext conftest
$ac_exeext
30114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30115 (eval $ac_link) 2>&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
30119 { ac_try
='test -s conftest$ac_exeext'
30120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121 (eval $ac_try) 2>&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; }; then
30125 eval "$as_ac_var=yes"
30127 echo "$as_me: failed program was:" >&5
30128 cat conftest.
$ac_ext >&5
30129 eval "$as_ac_var=no"
30131 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30135 if test `eval echo '${'$as_ac_var'}'` = yes; then
30136 cat >>confdefs.h
<<_ACEOF
30137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30141 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30152 for ac_func
in memchr memcpy memmove memrchr memset
30154 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30157 if eval "test \"\${$as_ac_var+set}\" = set"; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30160 cat >conftest.
$ac_ext <<_ACEOF
30161 #line $LINENO "configure"
30162 #include "confdefs.h"
30163 /* System header to define __stub macros and hopefully few prototypes,
30164 which can conflict with char $ac_func (); below. */
30165 #include <assert.h>
30166 /* Override any gcc2 internal prototype to avoid an error. */
30170 /* We use char because int might match the return type of a gcc2
30171 builtin and then its argument prototype would still apply. */
30178 /* The GNU C library defines this for functions which it implements
30179 to always fail with ENOSYS. Some functions are actually named
30180 something starting with __ and the normal name is an alias. */
30181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30191 rm -f conftest.
$ac_objext conftest
$ac_exeext
30192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30193 (eval $ac_link) 2>&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try
='test -s conftest$ac_exeext'
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; }; then
30203 eval "$as_ac_var=yes"
30205 echo "$as_me: failed program was:" >&5
30206 cat conftest.
$ac_ext >&5
30207 eval "$as_ac_var=no"
30209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30213 if test `eval echo '${'$as_ac_var'}'` = yes; then
30214 cat >>confdefs.h
<<_ACEOF
30215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30219 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
30225 for ac_func
in getpagesize
30227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30228 echo "$as_me:$LINENO: checking for $ac_func" >&5
30229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30230 if eval "test \"\${$as_ac_var+set}\" = set"; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30233 cat >conftest.
$ac_ext <<_ACEOF
30234 #line $LINENO "configure"
30235 #include "confdefs.h"
30236 /* System header to define __stub macros and hopefully few prototypes,
30237 which can conflict with char $ac_func (); below. */
30238 #include <assert.h>
30239 /* Override any gcc2 internal prototype to avoid an error. */
30243 /* We use char because int might match the return type of a gcc2
30244 builtin and then its argument prototype would still apply. */
30251 /* The GNU C library defines this for functions which it implements
30252 to always fail with ENOSYS. Some functions are actually named
30253 something starting with __ and the normal name is an alias. */
30254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30264 rm -f conftest.
$ac_objext conftest
$ac_exeext
30265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30266 (eval $ac_link) 2>&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); } &&
30270 { ac_try
='test -s conftest$ac_exeext'
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
30276 eval "$as_ac_var=yes"
30278 echo "$as_me: failed program was:" >&5
30279 cat conftest.
$ac_ext >&5
30280 eval "$as_ac_var=no"
30282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30286 if test `eval echo '${'$as_ac_var'}'` = yes; then
30287 cat >>confdefs.h
<<_ACEOF
30288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30297 # By default, argmatch should fail calling usage (1).
30299 cat >>confdefs.h
<<\_ACEOF
30300 #define ARGMATCH_DIE usage (1)
30304 cat >>confdefs.h
<<\_ACEOF
30305 #define ARGMATCH_DIE_DECL extern void usage ()
30309 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
30310 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
30311 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 ac_cv_func_setvbuf_reversed
=no
30315 cat >conftest.
$ac_ext <<_ACEOF
30316 #line $LINENO "configure"
30317 #include "confdefs.h"
30320 int (setvbuf) (FILE *, int, char *, size_t);
30325 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
30330 rm -f conftest.
$ac_objext conftest
$ac_exeext
30331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30332 (eval $ac_link) 2>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
30336 { ac_try
='test -s conftest$ac_exeext'
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; }; then
30342 cat >conftest.
$ac_ext <<_ACEOF
30343 #line $LINENO "configure"
30344 #include "confdefs.h"
30347 int (setvbuf) (FILE *, int, char *, size_t);
30352 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
30357 rm -f conftest.
$ac_objext conftest
$ac_exeext
30358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359 (eval $ac_link) 2>&5
30361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362 (exit $ac_status); } &&
30363 { ac_try
='test -s conftest$ac_exeext'
30364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365 (eval $ac_try) 2>&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); }; }; then
30369 # It compiles and links either way, so it must not be declared
30370 # with a prototype and most likely this is a K&R C compiler.
30372 if test "$cross_compiling" = yes; then
30373 : # Assume setvbuf is not reversed when cross-compiling.
30375 cat >conftest.
$ac_ext <<_ACEOF
30376 #line $LINENO "configure"
30377 #include "confdefs.h"
30382 /* This call has the arguments reversed.
30383 A reversed system may check and see that the address of buf
30384 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
30386 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
30389 exit (0); /* Non-reversed systems SEGV here. */
30394 rm -f conftest
$ac_exeext
30395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30396 (eval $ac_link) 2>&5
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401 (eval $ac_try) 2>&5
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); }; }; then
30405 ac_cv_func_setvbuf_reversed
=yes
30407 echo "$as_me: program exited with status $ac_status" >&5
30408 echo "$as_me: failed program was:" >&5
30409 cat conftest.
$ac_ext >&5
30410 ( exit $ac_status )
30411 rm -f core core.
* *.core
30413 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30415 ac_cv_func_setvbuf_reversed
=yes
30417 echo "$as_me: failed program was:" >&5
30418 cat conftest.
$ac_ext >&5
30420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30422 echo "$as_me: failed program was:" >&5
30423 cat conftest.
$ac_ext >&5
30425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30427 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
30428 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
30429 if test $ac_cv_func_setvbuf_reversed = yes; then
30431 cat >>confdefs.h
<<\_ACEOF
30432 #define SETVBUF_REVERSED 1
30438 # used by sleep and shred
30439 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30440 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30442 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
30443 # programs in the package would end up linked with that potentially-shared
30444 # library, inducing unnecessary run-time overhead.
30445 fetish_saved_libs
=$LIBS
30447 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
30448 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
30449 if test "${ac_cv_search_clock_gettime+set}" = set; then
30450 echo $ECHO_N "(cached) $ECHO_C" >&6
30453 ac_func_search_save_LIBS
=$LIBS
30454 ac_cv_search_clock_gettime
=no
30455 cat >conftest.
$ac_ext <<_ACEOF
30456 #line $LINENO "configure"
30457 #include "confdefs.h"
30459 /* Override any gcc2 internal prototype to avoid an error. */
30463 /* We use char because int might match the return type of a gcc2
30464 builtin and then its argument prototype would still apply. */
30465 char clock_gettime ();
30474 rm -f conftest.
$ac_objext conftest
$ac_exeext
30475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30476 (eval $ac_link) 2>&5
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); } &&
30480 { ac_try
='test -s conftest$ac_exeext'
30481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30482 (eval $ac_try) 2>&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); }; }; then
30486 ac_cv_search_clock_gettime
='none required'
30488 echo "$as_me: failed program was:" >&5
30489 cat conftest.
$ac_ext >&5
30491 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30492 if test "$ac_cv_search_clock_gettime" = no
; then
30493 for ac_lib
in rt posix4
; do
30494 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30495 cat >conftest.
$ac_ext <<_ACEOF
30496 #line $LINENO "configure"
30497 #include "confdefs.h"
30499 /* Override any gcc2 internal prototype to avoid an error. */
30503 /* We use char because int might match the return type of a gcc2
30504 builtin and then its argument prototype would still apply. */
30505 char clock_gettime ();
30514 rm -f conftest.
$ac_objext conftest
$ac_exeext
30515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30516 (eval $ac_link) 2>&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try
='test -s conftest$ac_exeext'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30526 ac_cv_search_clock_gettime
="-l$ac_lib"; break
30528 echo "$as_me: failed program was:" >&5
30529 cat conftest.
$ac_ext >&5
30531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30534 LIBS
=$ac_func_search_save_LIBS
30537 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
30538 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
30540 if test "$ac_cv_search_clock_gettime" = no
; then :
30543 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
30546 LIBS
="$ac_cv_search_clock_gettime $LIBS"
30547 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
30554 for ac_func
in clock_gettime clock_settime
30556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30557 echo "$as_me:$LINENO: checking for $ac_func" >&5
30558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30559 if eval "test \"\${$as_ac_var+set}\" = set"; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 cat >conftest.
$ac_ext <<_ACEOF
30563 #line $LINENO "configure"
30564 #include "confdefs.h"
30565 /* System header to define __stub macros and hopefully few prototypes,
30566 which can conflict with char $ac_func (); below. */
30567 #include <assert.h>
30568 /* Override any gcc2 internal prototype to avoid an error. */
30572 /* We use char because int might match the return type of a gcc2
30573 builtin and then its argument prototype would still apply. */
30580 /* The GNU C library defines this for functions which it implements
30581 to always fail with ENOSYS. Some functions are actually named
30582 something starting with __ and the normal name is an alias. */
30583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30593 rm -f conftest.
$ac_objext conftest
$ac_exeext
30594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30595 (eval $ac_link) 2>&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); } &&
30599 { ac_try
='test -s conftest$ac_exeext'
30600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601 (eval $ac_try) 2>&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; }; then
30605 eval "$as_ac_var=yes"
30607 echo "$as_me: failed program was:" >&5
30608 cat conftest.
$ac_ext >&5
30609 eval "$as_ac_var=no"
30611 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30615 if test `eval echo '${'$as_ac_var'}'` = yes; then
30616 cat >>confdefs.h
<<_ACEOF
30617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30623 LIBS
=$fetish_saved_libs
30625 for ac_func
in gettimeofday
30627 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30628 echo "$as_me:$LINENO: checking for $ac_func" >&5
30629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30630 if eval "test \"\${$as_ac_var+set}\" = set"; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 cat >conftest.
$ac_ext <<_ACEOF
30634 #line $LINENO "configure"
30635 #include "confdefs.h"
30636 /* System header to define __stub macros and hopefully few prototypes,
30637 which can conflict with char $ac_func (); below. */
30638 #include <assert.h>
30639 /* Override any gcc2 internal prototype to avoid an error. */
30643 /* We use char because int might match the return type of a gcc2
30644 builtin and then its argument prototype would still apply. */
30651 /* The GNU C library defines this for functions which it implements
30652 to always fail with ENOSYS. Some functions are actually named
30653 something starting with __ and the normal name is an alias. */
30654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30664 rm -f conftest.
$ac_objext conftest
$ac_exeext
30665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30666 (eval $ac_link) 2>&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
30670 { ac_try
='test -s conftest$ac_exeext'
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; }; then
30676 eval "$as_ac_var=yes"
30678 echo "$as_me: failed program was:" >&5
30679 cat conftest.
$ac_ext >&5
30680 eval "$as_ac_var=no"
30682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
30684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30686 if test `eval echo '${'$as_ac_var'}'` = yes; then
30687 cat >>confdefs.h
<<_ACEOF
30688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 for ac_header
in string.h stdlib.h
30700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30702 echo "$as_me:$LINENO: checking for $ac_header" >&5
30703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30710 # Is the header compilable?
30711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30713 cat >conftest.
$ac_ext <<_ACEOF
30714 #line $LINENO "configure"
30715 #include "confdefs.h"
30716 $ac_includes_default
30717 #include <$ac_header>
30719 rm -f conftest.
$ac_objext
30720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30721 (eval $ac_compile) 2>&5
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); } &&
30725 { ac_try
='test -s conftest.$ac_objext'
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731 ac_header_compiler
=yes
30733 echo "$as_me: failed program was:" >&5
30734 cat conftest.
$ac_ext >&5
30735 ac_header_compiler
=no
30737 rm -f conftest.
$ac_objext conftest.
$ac_ext
30738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30739 echo "${ECHO_T}$ac_header_compiler" >&6
30741 # Is the header present?
30742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30744 cat >conftest.
$ac_ext <<_ACEOF
30745 #line $LINENO "configure"
30746 #include "confdefs.h"
30747 #include <$ac_header>
30749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30750 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
30752 grep -v '^ *+' conftest.er1
>conftest.err
30754 cat conftest.err
>&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } >/dev
/null
; then
30757 if test -s conftest.err
; then
30758 ac_cpp_err
=$ac_c_preproc_warn_flag
30765 if test -z "$ac_cpp_err"; then
30766 ac_header_preproc
=yes
30768 echo "$as_me: failed program was:" >&5
30769 cat conftest.
$ac_ext >&5
30770 ac_header_preproc
=no
30772 rm -f conftest.err conftest.
$ac_ext
30773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30774 echo "${ECHO_T}$ac_header_preproc" >&6
30776 # So? What about this header?
30777 case $ac_header_compiler:$ac_header_preproc in
30779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30791 echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30796 eval "$as_ac_Header=$ac_header_preproc"
30798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30803 cat >>confdefs.h
<<_ACEOF
30804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30811 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
30812 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
30813 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
30814 echo $ECHO_N "(cached) $ECHO_C" >&6
30816 if test "$cross_compiling" = yes; then
30817 jm_cv_func_gettimeofday_clobber
=yes
30819 cat >conftest.
$ac_ext <<_ACEOF
30820 #line $LINENO "configure"
30821 #include "confdefs.h"
30825 # include <string.h>
30828 #if TIME_WITH_SYS_TIME
30829 # include <sys/time.h>
30832 # if HAVE_SYS_TIME_H
30833 # include <sys/time.h>
30840 # include <stdlib.h>
30848 struct tm saved_lt;
30850 lt = localtime (&t);
30852 gettimeofday (&tv, NULL);
30853 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
30860 rm -f conftest
$ac_exeext
30861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30862 (eval $ac_link) 2>&5
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867 (eval $ac_try) 2>&5
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; }; then
30871 jm_cv_func_gettimeofday_clobber
=no
30873 echo "$as_me: program exited with status $ac_status" >&5
30874 echo "$as_me: failed program was:" >&5
30875 cat conftest.
$ac_ext >&5
30876 ( exit $ac_status )
30877 jm_cv_func_gettimeofday_clobber
=yes
30879 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30883 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
30884 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
30885 if test $jm_cv_func_gettimeofday_clobber = yes; then
30886 LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
30888 cat >>confdefs.h
<<\_ACEOF
30889 #define localtime rpl_localtime
30893 cat >>confdefs.h
<<\_ACEOF
30894 #define gettimeofday rpl_gettimeofday
30898 cat >>confdefs.h
<<\_ACEOF
30899 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
30940 canonicalize_file_name \
30971 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30972 echo "$as_me:$LINENO: checking for $ac_func" >&5
30973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30974 if eval "test \"\${$as_ac_var+set}\" = set"; then
30975 echo $ECHO_N "(cached) $ECHO_C" >&6
30977 cat >conftest.
$ac_ext <<_ACEOF
30978 #line $LINENO "configure"
30979 #include "confdefs.h"
30980 /* System header to define __stub macros and hopefully few prototypes,
30981 which can conflict with char $ac_func (); below. */
30982 #include <assert.h>
30983 /* Override any gcc2 internal prototype to avoid an error. */
30987 /* We use char because int might match the return type of a gcc2
30988 builtin and then its argument prototype would still apply. */
30995 /* The GNU C library defines this for functions which it implements
30996 to always fail with ENOSYS. Some functions are actually named
30997 something starting with __ and the normal name is an alias. */
30998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31008 rm -f conftest.
$ac_objext conftest
$ac_exeext
31009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31010 (eval $ac_link) 2>&5
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); } &&
31014 { ac_try
='test -s conftest$ac_exeext'
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; }; then
31020 eval "$as_ac_var=yes"
31022 echo "$as_me: failed program was:" >&5
31023 cat conftest.
$ac_ext >&5
31024 eval "$as_ac_var=no"
31026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31030 if test `eval echo '${'$as_ac_var'}'` = yes; then
31031 cat >>confdefs.h
<<_ACEOF
31032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31039 am_getline_needs_run_time_check
=no
31040 echo "$as_me:$LINENO: checking for getline" >&5
31041 echo $ECHO_N "checking for getline... $ECHO_C" >&6
31042 if test "${ac_cv_func_getline+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 cat >conftest.
$ac_ext <<_ACEOF
31046 #line $LINENO "configure"
31047 #include "confdefs.h"
31048 /* System header to define __stub macros and hopefully few prototypes,
31049 which can conflict with char getline (); below. */
31050 #include <assert.h>
31051 /* Override any gcc2 internal prototype to avoid an error. */
31055 /* We use char because int might match the return type of a gcc2
31056 builtin and then its argument prototype would still apply. */
31063 /* The GNU C library defines this for functions which it implements
31064 to always fail with ENOSYS. Some functions are actually named
31065 something starting with __ and the normal name is an alias. */
31066 #if defined (__stub_getline) || defined (__stub___getline)
31076 rm -f conftest.
$ac_objext conftest
$ac_exeext
31077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31078 (eval $ac_link) 2>&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } &&
31082 { ac_try
='test -s conftest$ac_exeext'
31083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084 (eval $ac_try) 2>&5
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; }; then
31088 ac_cv_func_getline
=yes
31090 echo "$as_me: failed program was:" >&5
31091 cat conftest.
$ac_ext >&5
31092 ac_cv_func_getline
=no
31094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31096 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
31097 echo "${ECHO_T}$ac_cv_func_getline" >&6
31098 if test $ac_cv_func_getline = yes; then
31099 am_getline_needs_run_time_check
=yes
31101 am_cv_func_working_getline
=no
31104 if test $am_getline_needs_run_time_check = yes; then
31105 echo "$as_me:$LINENO: checking for working getline function" >&5
31106 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
31107 if test "${am_cv_func_working_getline+set}" = set; then
31108 echo $ECHO_N "(cached) $ECHO_C" >&6
31110 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
31111 if test "$cross_compiling" = yes; then
31112 am_cv_func_working_getline
=no
31114 cat >conftest.
$ac_ext <<_ACEOF
31115 #line $LINENO "configure"
31116 #include "confdefs.h"
31118 # include <stdio.h>
31119 # include <sys/types.h>
31120 # include <string.h>
31122 { /* Based on a test program from Karl Heuer. */
31126 FILE *in = fopen ("./conftest.data", "r");
31129 len = getline (&line, &siz, in);
31130 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
31134 rm -f conftest
$ac_exeext
31135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31136 (eval $ac_link) 2>&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141 (eval $ac_try) 2>&5
31143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144 (exit $ac_status); }; }; then
31145 am_cv_func_working_getline
=yes
31147 echo "$as_me: program exited with status $ac_status" >&5
31148 echo "$as_me: failed program was:" >&5
31149 cat conftest.
$ac_ext >&5
31150 ( exit $ac_status )
31151 am_cv_func_working_getline
=no
31153 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31156 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
31157 echo "${ECHO_T}$am_cv_func_working_getline" >&6
31160 if test $am_cv_func_working_getline = no
; then
31161 LIBOBJS
="$LIBOBJS getline.$ac_objext"
31164 if test $am_cv_func_working_getline != yes; then
31166 for ac_func
in getdelim
31168 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31169 echo "$as_me:$LINENO: checking for $ac_func" >&5
31170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31171 if eval "test \"\${$as_ac_var+set}\" = set"; then
31172 echo $ECHO_N "(cached) $ECHO_C" >&6
31174 cat >conftest.
$ac_ext <<_ACEOF
31175 #line $LINENO "configure"
31176 #include "confdefs.h"
31177 /* System header to define __stub macros and hopefully few prototypes,
31178 which can conflict with char $ac_func (); below. */
31179 #include <assert.h>
31180 /* Override any gcc2 internal prototype to avoid an error. */
31184 /* We use char because int might match the return type of a gcc2
31185 builtin and then its argument prototype would still apply. */
31192 /* The GNU C library defines this for functions which it implements
31193 to always fail with ENOSYS. Some functions are actually named
31194 something starting with __ and the normal name is an alias. */
31195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31205 rm -f conftest.
$ac_objext conftest
$ac_exeext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31207 (eval $ac_link) 2>&5
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); } &&
31211 { ac_try
='test -s conftest$ac_exeext'
31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213 (eval $ac_try) 2>&5
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); }; }; then
31217 eval "$as_ac_var=yes"
31219 echo "$as_me: failed program was:" >&5
31220 cat conftest.
$ac_ext >&5
31221 eval "$as_ac_var=no"
31223 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31227 if test `eval echo '${'$as_ac_var'}'` = yes; then
31228 cat >>confdefs.h
<<_ACEOF
31229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31236 echo "$as_me:$LINENO: checking for obstacks" >&5
31237 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
31238 if test "${ac_cv_func_obstack+set}" = set; then
31239 echo $ECHO_N "(cached) $ECHO_C" >&6
31241 cat >conftest.
$ac_ext <<_ACEOF
31242 #line $LINENO "configure"
31243 #include "confdefs.h"
31244 #include "obstack.h"
31248 struct obstack *mem; obstack_free(mem,(char *) 0)
31253 rm -f conftest.
$ac_objext conftest
$ac_exeext
31254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31255 (eval $ac_link) 2>&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } &&
31259 { ac_try
='test -s conftest$ac_exeext'
31260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31261 (eval $ac_try) 2>&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
31265 ac_cv_func_obstack
=yes
31267 echo "$as_me: failed program was:" >&5
31268 cat conftest.
$ac_ext >&5
31269 ac_cv_func_obstack
=no
31271 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31273 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
31274 echo "${ECHO_T}$ac_cv_func_obstack" >&6
31275 if test $ac_cv_func_obstack = yes; then
31277 cat >>confdefs.h
<<\_ACEOF
31278 #define HAVE_OBSTACK 1
31282 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
31286 echo "$as_me:$LINENO: checking for working strtod" >&5
31287 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
31288 if test "${ac_cv_func_strtod+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31291 if test "$cross_compiling" = yes; then
31292 ac_cv_func_strtod
=no
31294 cat >conftest.
$ac_ext <<_ACEOF
31295 #line $LINENO "configure"
31296 #include "confdefs.h"
31303 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
31304 char *string = " +69";
31307 value = strtod (string, &term);
31308 if (value != 69 || term != (string + 4))
31313 /* Under Solaris 2.4, strtod returns the wrong value for the
31314 terminating character under some conditions. */
31315 char *string = "NaN";
31317 strtod (string, &term);
31318 if (term != string && *(term - 1) == 0)
31325 rm -f conftest
$ac_exeext
31326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31327 (eval $ac_link) 2>&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31332 (eval $ac_try) 2>&5
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; }; then
31336 ac_cv_func_strtod
=yes
31338 echo "$as_me: program exited with status $ac_status" >&5
31339 echo "$as_me: failed program was:" >&5
31340 cat conftest.
$ac_ext >&5
31341 ( exit $ac_status )
31342 ac_cv_func_strtod
=no
31344 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31347 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
31348 echo "${ECHO_T}$ac_cv_func_strtod" >&6
31349 if test $ac_cv_func_strtod = no
; then
31350 LIBOBJS
="$LIBOBJS strtod.$ac_objext"
31351 echo "$as_me:$LINENO: checking for pow" >&5
31352 echo $ECHO_N "checking for pow... $ECHO_C" >&6
31353 if test "${ac_cv_func_pow+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.
$ac_ext <<_ACEOF
31357 #line $LINENO "configure"
31358 #include "confdefs.h"
31359 /* System header to define __stub macros and hopefully few prototypes,
31360 which can conflict with char pow (); below. */
31361 #include <assert.h>
31362 /* Override any gcc2 internal prototype to avoid an error. */
31366 /* We use char because int might match the return type of a gcc2
31367 builtin and then its argument prototype would still apply. */
31374 /* The GNU C library defines this for functions which it implements
31375 to always fail with ENOSYS. Some functions are actually named
31376 something starting with __ and the normal name is an alias. */
31377 #if defined (__stub_pow) || defined (__stub___pow)
31387 rm -f conftest.
$ac_objext conftest
$ac_exeext
31388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31389 (eval $ac_link) 2>&5
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); } &&
31393 { ac_try
='test -s conftest$ac_exeext'
31394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395 (eval $ac_try) 2>&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; }; then
31401 echo "$as_me: failed program was:" >&5
31402 cat conftest.
$ac_ext >&5
31405 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31407 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
31408 echo "${ECHO_T}$ac_cv_func_pow" >&6
31410 if test $ac_cv_func_pow = no
; then
31411 echo "$as_me:$LINENO: checking for pow in -lm" >&5
31412 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
31413 if test "${ac_cv_lib_m_pow+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31416 ac_check_lib_save_LIBS
=$LIBS
31418 cat >conftest.
$ac_ext <<_ACEOF
31419 #line $LINENO "configure"
31420 #include "confdefs.h"
31422 /* Override any gcc2 internal prototype to avoid an error. */
31426 /* We use char because int might match the return type of a gcc2
31427 builtin and then its argument prototype would still apply. */
31437 rm -f conftest.
$ac_objext conftest
$ac_exeext
31438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31439 (eval $ac_link) 2>&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
31443 { ac_try
='test -s conftest$ac_exeext'
31444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445 (eval $ac_try) 2>&5
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); }; }; then
31449 ac_cv_lib_m_pow
=yes
31451 echo "$as_me: failed program was:" >&5
31452 cat conftest.
$ac_ext >&5
31455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31456 LIBS
=$ac_check_lib_save_LIBS
31458 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
31459 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
31460 if test $ac_cv_lib_m_pow = yes; then
31463 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
31464 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
31472 # See if linking `seq' requires -lm.
31473 # It does on nearly every system. The single exception (so far) is
31474 # BeOS which has all the math functions in the normal runtime library
31475 # and doesn't have a separate math library.
31479 static double x, y;
31483 cat >conftest.
$ac_ext <<_ACEOF
31484 #line $LINENO "configure"
31485 #include "confdefs.h"
31495 rm -f conftest.
$ac_objext conftest
$ac_exeext
31496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31497 (eval $ac_link) 2>&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } &&
31501 { ac_try
='test -s conftest$ac_exeext'
31502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503 (eval $ac_try) 2>&5
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); }; }; then
31509 echo "$as_me: failed program was:" >&5
31510 cat conftest.
$ac_ext >&5
31511 ac_seq_save_LIBS
="$LIBS"
31513 cat >conftest.
$ac_ext <<_ACEOF
31514 #line $LINENO "configure"
31515 #include "confdefs.h"
31525 rm -f conftest.
$ac_objext conftest
$ac_exeext
31526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31527 (eval $ac_link) 2>&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } &&
31531 { ac_try
='test -s conftest$ac_exeext'
31532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533 (eval $ac_try) 2>&5
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; }; then
31539 echo "$as_me: failed program was:" >&5
31540 cat conftest.
$ac_ext >&5
31542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31543 LIBS
="$ac_seq_save_LIBS"
31546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31549 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
31550 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
31551 if test "${am_cv_langinfo_codeset+set}" = set; then
31552 echo $ECHO_N "(cached) $ECHO_C" >&6
31554 cat >conftest.
$ac_ext <<_ACEOF
31555 #line $LINENO "configure"
31556 #include "confdefs.h"
31557 #include <langinfo.h>
31561 char* cs = nl_langinfo(CODESET);
31566 rm -f conftest.
$ac_objext conftest
$ac_exeext
31567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31568 (eval $ac_link) 2>&5
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); } &&
31572 { ac_try
='test -s conftest$ac_exeext'
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
31578 am_cv_langinfo_codeset
=yes
31580 echo "$as_me: failed program was:" >&5
31581 cat conftest.
$ac_ext >&5
31582 am_cv_langinfo_codeset
=no
31584 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31587 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
31588 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
31589 if test $am_cv_langinfo_codeset = yes; then
31591 cat >>confdefs.h
<<\_ACEOF
31592 #define HAVE_LANGINFO_CODESET 1
31598 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
31599 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
31600 if test "${ac_cv_gnu_library_2_1+set}" = set; then
31601 echo $ECHO_N "(cached) $ECHO_C" >&6
31603 cat >conftest.
$ac_ext <<_ACEOF
31604 #line $LINENO "configure"
31605 #include "confdefs.h"
31607 #include <features.h>
31608 #ifdef __GNU_LIBRARY__
31609 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
31615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31616 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
31617 ac_cv_gnu_library_2_1
=yes
31619 ac_cv_gnu_library_2_1
=no
31626 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
31627 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
31629 GLIBC21
="$ac_cv_gnu_library_2_1"
31637 am_save_CPPFLAGS
="$CPPFLAGS"
31639 for element
in $INCICONV; do
31641 for x
in $CPPFLAGS; do
31643 acl_save_prefix
="$prefix"
31644 prefix
="$acl_final_prefix"
31645 acl_save_exec_prefix
="$exec_prefix"
31646 exec_prefix
="$acl_final_exec_prefix"
31648 exec_prefix
="$acl_save_exec_prefix"
31649 prefix
="$acl_save_prefix"
31651 if test "X$x" = "X$element"; then
31656 if test -z "$haveit"; then
31657 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
31662 echo "$as_me:$LINENO: checking for iconv" >&5
31663 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31664 if test "${am_cv_func_iconv+set}" = set; then
31665 echo $ECHO_N "(cached) $ECHO_C" >&6
31668 am_cv_func_iconv
="no, consider installing GNU libiconv"
31670 cat >conftest.
$ac_ext <<_ACEOF
31671 #line $LINENO "configure"
31672 #include "confdefs.h"
31673 #include <stdlib.h>
31678 iconv_t cd = iconv_open("","");
31679 iconv(cd,NULL,NULL,NULL,NULL);
31685 rm -f conftest.
$ac_objext conftest
$ac_exeext
31686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31687 (eval $ac_link) 2>&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
31691 { ac_try
='test -s conftest$ac_exeext'
31692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31693 (eval $ac_try) 2>&5
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; }; then
31697 am_cv_func_iconv
=yes
31699 echo "$as_me: failed program was:" >&5
31700 cat conftest.
$ac_ext >&5
31702 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31703 if test "$am_cv_func_iconv" != yes; then
31704 am_save_LIBS
="$LIBS"
31705 LIBS
="$LIBS $LIBICONV"
31706 cat >conftest.
$ac_ext <<_ACEOF
31707 #line $LINENO "configure"
31708 #include "confdefs.h"
31709 #include <stdlib.h>
31714 iconv_t cd = iconv_open("","");
31715 iconv(cd,NULL,NULL,NULL,NULL);
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 am_cv_lib_iconv
=yes
31734 am_cv_func_iconv
=yes
31736 echo "$as_me: failed program was:" >&5
31737 cat conftest.
$ac_ext >&5
31739 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31740 LIBS
="$am_save_LIBS"
31744 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31745 echo "${ECHO_T}$am_cv_func_iconv" >&6
31746 if test "$am_cv_func_iconv" = yes; then
31748 cat >>confdefs.h
<<\_ACEOF
31749 #define HAVE_ICONV 1
31753 if test "$am_cv_lib_iconv" = yes; then
31754 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
31755 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
31756 echo "$as_me:$LINENO: result: $LIBICONV" >&5
31757 echo "${ECHO_T}$LIBICONV" >&6
31759 CPPFLAGS
="$am_save_CPPFLAGS"
31766 if test "$am_cv_func_iconv" = yes; then
31767 echo "$as_me:$LINENO: checking for iconv declaration" >&5
31768 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
31769 if test "${am_cv_proto_iconv+set}" = set; then
31770 echo $ECHO_N "(cached) $ECHO_C" >&6
31773 cat >conftest.
$ac_ext <<_ACEOF
31774 #line $LINENO "configure"
31775 #include "confdefs.h"
31777 #include <stdlib.h>
31783 #if defined(__STDC__) || defined(__cplusplus)
31784 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31797 rm -f conftest.
$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799 (eval $ac_compile) 2>&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } &&
31803 { ac_try
='test -s conftest.$ac_objext'
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; }; then
31809 am_cv_proto_iconv_arg1
=""
31811 echo "$as_me: failed program was:" >&5
31812 cat conftest.
$ac_ext >&5
31813 am_cv_proto_iconv_arg1
="const"
31815 rm -f conftest.
$ac_objext conftest.
$ac_ext
31816 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);"
31819 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
31820 echo "$as_me:$LINENO: result: ${ac_t:-
31821 }$am_cv_proto_iconv" >&5
31822 echo "${ECHO_T}${ac_t:-
31823 }$am_cv_proto_iconv" >&6
31825 cat >>confdefs.h
<<_ACEOF
31826 #define ICONV_CONST $am_cv_proto_iconv_arg1
31831 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
31832 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
31833 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
31834 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 if test "$cross_compiling" = yes; then
31838 jm_cv_func_unlink_busy_text
=no
31841 cat >conftest.
$ac_ext <<_ACEOF
31842 #line $LINENO "configure"
31843 #include "confdefs.h"
31851 exit (unlink (argv[0]));
31855 rm -f conftest
$ac_exeext
31856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31857 (eval $ac_link) 2>&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862 (eval $ac_try) 2>&5
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
31866 jm_cv_func_unlink_busy_text
=yes
31868 echo "$as_me: program exited with status $ac_status" >&5
31869 echo "$as_me: failed program was:" >&5
31870 cat conftest.
$ac_ext >&5
31871 ( exit $ac_status )
31872 jm_cv_func_unlink_busy_text
=no
31874 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31879 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
31880 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
31882 if test $jm_cv_func_unlink_busy_text = no
; then
31883 INSTALL
=$ac_install_sh
31887 # These tests are for df.
31891 for ac_func
in listmntent getmntinfo
31893 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31894 echo "$as_me:$LINENO: checking for $ac_func" >&5
31895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31896 if eval "test \"\${$as_ac_var+set}\" = set"; then
31897 echo $ECHO_N "(cached) $ECHO_C" >&6
31899 cat >conftest.
$ac_ext <<_ACEOF
31900 #line $LINENO "configure"
31901 #include "confdefs.h"
31902 /* System header to define __stub macros and hopefully few prototypes,
31903 which can conflict with char $ac_func (); below. */
31904 #include <assert.h>
31905 /* Override any gcc2 internal prototype to avoid an error. */
31909 /* We use char because int might match the return type of a gcc2
31910 builtin and then its argument prototype would still apply. */
31917 /* The GNU C library defines this for functions which it implements
31918 to always fail with ENOSYS. Some functions are actually named
31919 something starting with __ and the normal name is an alias. */
31920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31930 rm -f conftest.
$ac_objext conftest
$ac_exeext
31931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31932 (eval $ac_link) 2>&5
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); } &&
31936 { ac_try
='test -s conftest$ac_exeext'
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
31942 eval "$as_ac_var=yes"
31944 echo "$as_me: failed program was:" >&5
31945 cat conftest.
$ac_ext >&5
31946 eval "$as_ac_var=no"
31948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
31950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31952 if test `eval echo '${'$as_ac_var'}'` = yes; then
31953 cat >>confdefs.h
<<_ACEOF
31954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31965 for ac_header
in mntent.h sys
/param.h sys
/ucred.h sys
/mount.h sys
/fs_types.h
31967 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31969 echo "$as_me:$LINENO: checking for $ac_header" >&5
31970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31972 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31977 # Is the header compilable?
31978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31980 cat >conftest.
$ac_ext <<_ACEOF
31981 #line $LINENO "configure"
31982 #include "confdefs.h"
31983 $ac_includes_default
31984 #include <$ac_header>
31986 rm -f conftest.
$ac_objext
31987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31988 (eval $ac_compile) 2>&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); } &&
31992 { ac_try
='test -s conftest.$ac_objext'
31993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994 (eval $ac_try) 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_header_compiler
=yes
32000 echo "$as_me: failed program was:" >&5
32001 cat conftest.
$ac_ext >&5
32002 ac_header_compiler
=no
32004 rm -f conftest.
$ac_objext conftest.
$ac_ext
32005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32006 echo "${ECHO_T}$ac_header_compiler" >&6
32008 # Is the header present?
32009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32011 cat >conftest.
$ac_ext <<_ACEOF
32012 #line $LINENO "configure"
32013 #include "confdefs.h"
32014 #include <$ac_header>
32016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32019 grep -v '^ *+' conftest.er1
>conftest.err
32021 cat conftest.err
>&5
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); } >/dev
/null
; then
32024 if test -s conftest.err
; then
32025 ac_cpp_err
=$ac_c_preproc_warn_flag
32032 if test -z "$ac_cpp_err"; then
32033 ac_header_preproc
=yes
32035 echo "$as_me: failed program was:" >&5
32036 cat conftest.
$ac_ext >&5
32037 ac_header_preproc
=no
32039 rm -f conftest.err conftest.
$ac_ext
32040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32041 echo "${ECHO_T}$ac_header_preproc" >&6
32043 # So? What about this header?
32044 case $ac_header_compiler:$ac_header_preproc in
32046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32058 echo "$as_me:$LINENO: checking for $ac_header" >&5
32059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32063 eval "$as_ac_Header=$ac_header_preproc"
32065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32070 cat >>confdefs.h
<<_ACEOF
32071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32078 getfsstat_includes
="\
32079 $ac_includes_default
32080 #if HAVE_SYS_PARAM_H
32081 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
32083 #if HAVE_SYS_UCRED_H
32084 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
32086 #if HAVE_SYS_MOUNT_H
32087 # include <sys/mount.h>
32089 #if HAVE_SYS_FS_TYPES_H
32090 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
32093 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
32094 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
32095 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32098 cat >conftest.
$ac_ext <<_ACEOF
32099 #line $LINENO "configure"
32100 #include "confdefs.h"
32101 $getfsstat_includes
32106 static struct fsstat ac_aggr;
32107 if (ac_aggr.f_fstypename)
32113 rm -f conftest.
$ac_objext
32114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32115 (eval $ac_compile) 2>&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
32119 { ac_try
='test -s conftest.$ac_objext'
32120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121 (eval $ac_try) 2>&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; }; then
32125 ac_cv_member_struct_fsstat_f_fstypename
=yes
32127 echo "$as_me: failed program was:" >&5
32128 cat conftest.
$ac_ext >&5
32129 cat >conftest.
$ac_ext <<_ACEOF
32130 #line $LINENO "configure"
32131 #include "confdefs.h"
32132 $getfsstat_includes
32137 static struct fsstat ac_aggr;
32138 if (sizeof ac_aggr.f_fstypename)
32144 rm -f conftest.
$ac_objext
32145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32146 (eval $ac_compile) 2>&5
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); } &&
32150 { ac_try
='test -s conftest.$ac_objext'
32151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152 (eval $ac_try) 2>&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); }; }; then
32156 ac_cv_member_struct_fsstat_f_fstypename
=yes
32158 echo "$as_me: failed program was:" >&5
32159 cat conftest.
$ac_ext >&5
32160 ac_cv_member_struct_fsstat_f_fstypename
=no
32162 rm -f conftest.
$ac_objext conftest.
$ac_ext
32164 rm -f conftest.
$ac_objext conftest.
$ac_ext
32166 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
32167 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
32168 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
32170 cat >>confdefs.h
<<_ACEOF
32171 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
32178 # Determine how to get the list of mounted filesystems.
32179 ac_list_mounted_fs
=
32181 # If the getmntent function is available but not in the standard library,
32182 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
32183 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
32184 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
32185 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
32186 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32189 ac_check_lib_save_LIBS
=$LIBS
32191 cat >conftest.
$ac_ext <<_ACEOF
32192 #line $LINENO "configure"
32193 #include "confdefs.h"
32195 /* Override any gcc2 internal prototype to avoid an error. */
32199 /* We use char because int might match the return type of a gcc2
32200 builtin and then its argument prototype would still apply. */
32210 rm -f conftest.
$ac_objext conftest
$ac_exeext
32211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32212 (eval $ac_link) 2>&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } &&
32216 { ac_try
='test -s conftest$ac_exeext'
32217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32218 (eval $ac_try) 2>&5
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
32222 ac_cv_lib_sun_getmntent
=yes
32224 echo "$as_me: failed program was:" >&5
32225 cat conftest.
$ac_ext >&5
32226 ac_cv_lib_sun_getmntent
=no
32228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32229 LIBS
=$ac_check_lib_save_LIBS
32231 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
32232 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
32233 if test $ac_cv_lib_sun_getmntent = yes; then
32236 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
32237 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
32238 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
32239 echo $ECHO_N "(cached) $ECHO_C" >&6
32241 ac_check_lib_save_LIBS
=$LIBS
32243 cat >conftest.
$ac_ext <<_ACEOF
32244 #line $LINENO "configure"
32245 #include "confdefs.h"
32247 /* Override any gcc2 internal prototype to avoid an error. */
32251 /* We use char because int might match the return type of a gcc2
32252 builtin and then its argument prototype would still apply. */
32262 rm -f conftest.
$ac_objext conftest
$ac_exeext
32263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32264 (eval $ac_link) 2>&5
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } &&
32268 { ac_try
='test -s conftest$ac_exeext'
32269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32270 (eval $ac_try) 2>&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); }; }; then
32274 ac_cv_lib_seq_getmntent
=yes
32276 echo "$as_me: failed program was:" >&5
32277 cat conftest.
$ac_ext >&5
32278 ac_cv_lib_seq_getmntent
=no
32280 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32281 LIBS
=$ac_check_lib_save_LIBS
32283 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
32284 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
32285 if test $ac_cv_lib_seq_getmntent = yes; then
32288 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
32289 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
32290 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
32291 echo $ECHO_N "(cached) $ECHO_C" >&6
32293 ac_check_lib_save_LIBS
=$LIBS
32295 cat >conftest.
$ac_ext <<_ACEOF
32296 #line $LINENO "configure"
32297 #include "confdefs.h"
32299 /* Override any gcc2 internal prototype to avoid an error. */
32303 /* We use char because int might match the return type of a gcc2
32304 builtin and then its argument prototype would still apply. */
32314 rm -f conftest.
$ac_objext conftest
$ac_exeext
32315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32316 (eval $ac_link) 2>&5
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); } &&
32320 { ac_try
='test -s conftest$ac_exeext'
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; }; then
32326 ac_cv_lib_gen_getmntent
=yes
32328 echo "$as_me: failed program was:" >&5
32329 cat conftest.
$ac_ext >&5
32330 ac_cv_lib_gen_getmntent
=no
32332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32333 LIBS
=$ac_check_lib_save_LIBS
32335 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
32336 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
32337 if test $ac_cv_lib_gen_getmntent = yes; then
32346 for ac_func
in getmntent
32348 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32349 echo "$as_me:$LINENO: checking for $ac_func" >&5
32350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32351 if eval "test \"\${$as_ac_var+set}\" = set"; then
32352 echo $ECHO_N "(cached) $ECHO_C" >&6
32354 cat >conftest.
$ac_ext <<_ACEOF
32355 #line $LINENO "configure"
32356 #include "confdefs.h"
32357 /* System header to define __stub macros and hopefully few prototypes,
32358 which can conflict with char $ac_func (); below. */
32359 #include <assert.h>
32360 /* Override any gcc2 internal prototype to avoid an error. */
32364 /* We use char because int might match the return type of a gcc2
32365 builtin and then its argument prototype would still apply. */
32372 /* The GNU C library defines this for functions which it implements
32373 to always fail with ENOSYS. Some functions are actually named
32374 something starting with __ and the normal name is an alias. */
32375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32385 rm -f conftest.
$ac_objext conftest
$ac_exeext
32386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32387 (eval $ac_link) 2>&5
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); } &&
32391 { ac_try
='test -s conftest$ac_exeext'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
32397 eval "$as_ac_var=yes"
32399 echo "$as_me: failed program was:" >&5
32400 cat conftest.
$ac_ext >&5
32401 eval "$as_ac_var=no"
32403 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32407 if test `eval echo '${'$as_ac_var'}'` = yes; then
32408 cat >>confdefs.h
<<_ACEOF
32409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32417 # This test must precede the ones for getmntent because Unicos-9 is
32418 # reported to have the getmntent function, but its support is incompatible
32419 # with other getmntent implementations.
32421 # NOTE: Normally, I wouldn't use a check for system type as I've done for
32422 # `CRAY' below since that goes against the whole autoconf philosophy. But
32423 # I think there is too great a chance that some non-Cray system has a
32424 # function named listmntent to risk the false positive.
32426 if test -z "$ac_list_mounted_fs"; then
32428 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
32429 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
32430 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32433 fu_cv_sys_mounted_cray_listmntent
=no
32434 cat >conftest.
$ac_ext <<_ACEOF
32435 #line $LINENO "configure"
32436 #include "confdefs.h"
32442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32443 $EGREP "yes" >/dev
/null
2>&1; then
32444 test $ac_cv_func_listmntent = yes \
32445 && fu_cv_sys_mounted_cray_listmntent
=yes
32454 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
32455 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
32456 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
32457 ac_list_mounted_fs
=found
32459 cat >>confdefs.h
<<\_ACEOF
32460 #define MOUNTED_LISTMNTENT 1
32466 if test $ac_cv_func_getmntent = yes; then
32468 # This system has the getmntent function.
32469 # Determine whether it's the one-argument variant or the two-argument one.
32471 if test -z "$ac_list_mounted_fs"; then
32472 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
32473 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
32474 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
32475 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32478 cat >conftest.
$ac_ext <<_ACEOF
32479 #line $LINENO "configure"
32480 #include "confdefs.h"
32482 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
32485 #include <mntent.h>
32486 #if !defined MOUNTED
32487 # if defined _PATH_MOUNTED /* GNU libc */
32488 # define MOUNTED _PATH_MOUNTED
32490 # if defined MNT_MNTTAB /* HP-UX. */
32491 # define MOUNTED MNT_MNTTAB
32493 # if defined MNTTABNAME /* Dynix. */
32494 # define MOUNTED MNTTABNAME
32501 struct mntent *mnt = 0; char *table = MOUNTED;
32506 rm -f conftest.
$ac_objext
32507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32508 (eval $ac_compile) 2>&5
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try
='test -s conftest.$ac_objext'
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 fu_cv_sys_mounted_getmntent1
=yes
32520 echo "$as_me: failed program was:" >&5
32521 cat conftest.
$ac_ext >&5
32522 fu_cv_sys_mounted_getmntent1
=no
32524 rm -f conftest.
$ac_objext conftest.
$ac_ext
32527 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
32528 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
32529 if test $fu_cv_sys_mounted_getmntent1 = yes; then
32530 ac_list_mounted_fs
=found
32532 cat >>confdefs.h
<<\_ACEOF
32533 #define MOUNTED_GETMNTENT1 1
32539 if test -z "$ac_list_mounted_fs"; then
32541 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
32542 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
32543 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 cat >conftest.
$ac_ext <<_ACEOF
32547 #line $LINENO "configure"
32548 #include "confdefs.h"
32549 #include <sys/mnttab.h>
32552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32553 $EGREP "getmntent" >/dev
/null
2>&1; then
32554 fu_cv_sys_mounted_getmntent2
=yes
32556 fu_cv_sys_mounted_getmntent2
=no
32562 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
32563 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
32564 if test $fu_cv_sys_mounted_getmntent2 = yes; then
32565 ac_list_mounted_fs
=found
32567 cat >>confdefs.h
<<\_ACEOF
32568 #define MOUNTED_GETMNTENT2 1
32576 if test -z "$ac_list_mounted_fs"; then
32577 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
32578 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
32580 echo "$as_me:$LINENO: checking for getfsstat function" >&5
32581 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
32582 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
32583 echo $ECHO_N "(cached) $ECHO_C" >&6
32585 cat >conftest.
$ac_ext <<_ACEOF
32586 #line $LINENO "configure"
32587 #include "confdefs.h"
32589 #include <sys/types.h>
32590 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
32591 # define FS_TYPE(Ent) ((Ent).f_fstypename)
32593 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
32595 $getfsstat_includes
32600 struct statfs *stats;
32601 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
32602 char *t = FS_TYPE (*stats);
32607 rm -f conftest.
$ac_objext conftest
$ac_exeext
32608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32609 (eval $ac_link) 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } &&
32613 { ac_try
='test -s 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 fu_cv_sys_mounted_getfsstat
=yes
32621 echo "$as_me: failed program was:" >&5
32622 cat conftest.
$ac_ext >&5
32623 fu_cv_sys_mounted_getfsstat
=no
32625 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32628 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
32629 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
32630 if test $fu_cv_sys_mounted_getfsstat = yes; then
32631 ac_list_mounted_fs
=found
32633 cat >>confdefs.h
<<\_ACEOF
32634 #define MOUNTED_GETFSSTAT 1
32640 if test -z "$ac_list_mounted_fs"; then
32642 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
32643 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
32644 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
32645 echo $ECHO_N "(cached) $ECHO_C" >&6
32647 cat >conftest.
$ac_ext <<_ACEOF
32648 #line $LINENO "configure"
32649 #include "confdefs.h"
32650 #include <fshelp.h>
32652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32653 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32655 grep -v '^ *+' conftest.er1
>conftest.err
32657 cat conftest.err
>&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } >/dev
/null
; then
32660 if test -s conftest.err
; then
32661 ac_cpp_err
=$ac_c_preproc_warn_flag
32668 if test -z "$ac_cpp_err"; then
32669 fu_cv_sys_mounted_vmount
=yes
32671 echo "$as_me: failed program was:" >&5
32672 cat conftest.
$ac_ext >&5
32673 fu_cv_sys_mounted_vmount
=no
32675 rm -f conftest.err conftest.
$ac_ext
32678 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
32679 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
32680 if test $fu_cv_sys_mounted_vmount = yes; then
32681 ac_list_mounted_fs
=found
32683 cat >>confdefs.h
<<\_ACEOF
32684 #define MOUNTED_VMOUNT 1
32690 if test -z "$ac_list_mounted_fs"; then
32692 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
32693 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
32694 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32697 cat >conftest.
$ac_ext <<_ACEOF
32698 #line $LINENO "configure"
32699 #include "confdefs.h"
32701 #include <sys/statfs.h>
32702 #include <sys/fstyp.h>
32703 #include <mnttab.h>
32705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32708 grep -v '^ *+' conftest.er1
>conftest.err
32710 cat conftest.err
>&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } >/dev
/null
; then
32713 if test -s conftest.err
; then
32714 ac_cpp_err
=$ac_c_preproc_warn_flag
32721 if test -z "$ac_cpp_err"; then
32722 fu_cv_sys_mounted_fread_fstyp
=yes
32724 echo "$as_me: failed program was:" >&5
32725 cat conftest.
$ac_ext >&5
32726 fu_cv_sys_mounted_fread_fstyp
=no
32728 rm -f conftest.err conftest.
$ac_ext
32731 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
32732 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
32733 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
32734 ac_list_mounted_fs
=found
32736 cat >>confdefs.h
<<\_ACEOF
32737 #define MOUNTED_FREAD_FSTYP 1
32743 if test -z "$ac_list_mounted_fs"; then
32744 # 4.4BSD and DEC OSF/1.
32745 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
32746 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
32747 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32751 test "$ac_cv_func_getmntinfo" = yes \
32752 && fu_cv_sys_mounted_getmntinfo
=yes \
32753 || fu_cv_sys_mounted_getmntinfo
=no
32757 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
32758 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
32759 if test $fu_cv_sys_mounted_getmntinfo = yes; then
32760 ac_list_mounted_fs
=found
32762 cat >>confdefs.h
<<\_ACEOF
32763 #define MOUNTED_GETMNTINFO 1
32769 if test -z "$ac_list_mounted_fs"; then
32771 echo "$as_me:$LINENO: checking for getmnt function" >&5
32772 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
32773 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
32774 echo $ECHO_N "(cached) $ECHO_C" >&6
32776 cat >conftest.
$ac_ext <<_ACEOF
32777 #line $LINENO "configure"
32778 #include "confdefs.h"
32780 #include <sys/fs_types.h>
32781 #include <sys/mount.h>
32783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32786 grep -v '^ *+' conftest.er1
>conftest.err
32788 cat conftest.err
>&5
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); } >/dev
/null
; then
32791 if test -s conftest.err
; then
32792 ac_cpp_err
=$ac_c_preproc_warn_flag
32799 if test -z "$ac_cpp_err"; then
32800 fu_cv_sys_mounted_getmnt
=yes
32802 echo "$as_me: failed program was:" >&5
32803 cat conftest.
$ac_ext >&5
32804 fu_cv_sys_mounted_getmnt
=no
32806 rm -f conftest.err conftest.
$ac_ext
32809 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
32810 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
32811 if test $fu_cv_sys_mounted_getmnt = yes; then
32812 ac_list_mounted_fs
=found
32814 cat >>confdefs.h
<<\_ACEOF
32815 #define MOUNTED_GETMNT 1
32821 if test -z "$ac_list_mounted_fs"; then
32825 for ac_func
in next_dev fs_stat_dev
32827 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32828 echo "$as_me:$LINENO: checking for $ac_func" >&5
32829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32830 if eval "test \"\${$as_ac_var+set}\" = set"; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32833 cat >conftest.
$ac_ext <<_ACEOF
32834 #line $LINENO "configure"
32835 #include "confdefs.h"
32836 /* System header to define __stub macros and hopefully few prototypes,
32837 which can conflict with char $ac_func (); below. */
32838 #include <assert.h>
32839 /* Override any gcc2 internal prototype to avoid an error. */
32843 /* We use char because int might match the return type of a gcc2
32844 builtin and then its argument prototype would still apply. */
32851 /* The GNU C library defines this for functions which it implements
32852 to always fail with ENOSYS. Some functions are actually named
32853 something starting with __ and the normal name is an alias. */
32854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32864 rm -f conftest.
$ac_objext conftest
$ac_exeext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32866 (eval $ac_link) 2>&5
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); } &&
32870 { ac_try
='test -s conftest$ac_exeext'
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 eval "$as_ac_var=yes"
32878 echo "$as_me: failed program was:" >&5
32879 cat conftest.
$ac_ext >&5
32880 eval "$as_ac_var=no"
32882 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
32884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886 if test `eval echo '${'$as_ac_var'}'` = yes; then
32887 cat >>confdefs.h
<<_ACEOF
32888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32895 for ac_header
in fs_info.h
32897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32899 echo "$as_me:$LINENO: checking for $ac_header" >&5
32900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32902 echo $ECHO_N "(cached) $ECHO_C" >&6
32904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32907 # Is the header compilable?
32908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32910 cat >conftest.
$ac_ext <<_ACEOF
32911 #line $LINENO "configure"
32912 #include "confdefs.h"
32913 $ac_includes_default
32914 #include <$ac_header>
32916 rm -f conftest.
$ac_objext
32917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32918 (eval $ac_compile) 2>&5
32920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 (exit $ac_status); } &&
32922 { ac_try
='test -s conftest.$ac_objext'
32923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32924 (eval $ac_try) 2>&5
32926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927 (exit $ac_status); }; }; then
32928 ac_header_compiler
=yes
32930 echo "$as_me: failed program was:" >&5
32931 cat conftest.
$ac_ext >&5
32932 ac_header_compiler
=no
32934 rm -f conftest.
$ac_objext conftest.
$ac_ext
32935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32936 echo "${ECHO_T}$ac_header_compiler" >&6
32938 # Is the header present?
32939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32941 cat >conftest.
$ac_ext <<_ACEOF
32942 #line $LINENO "configure"
32943 #include "confdefs.h"
32944 #include <$ac_header>
32946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32947 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32949 grep -v '^ *+' conftest.er1
>conftest.err
32951 cat conftest.err
>&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); } >/dev
/null
; then
32954 if test -s conftest.err
; then
32955 ac_cpp_err
=$ac_c_preproc_warn_flag
32962 if test -z "$ac_cpp_err"; then
32963 ac_header_preproc
=yes
32965 echo "$as_me: failed program was:" >&5
32966 cat conftest.
$ac_ext >&5
32967 ac_header_preproc
=no
32969 rm -f conftest.err conftest.
$ac_ext
32970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32971 echo "${ECHO_T}$ac_header_preproc" >&6
32973 # So? What about this header?
32974 case $ac_header_compiler:$ac_header_preproc in
32976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
32988 echo "$as_me:$LINENO: checking for $ac_header" >&5
32989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32993 eval "$as_ac_Header=$ac_header_preproc"
32995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33000 cat >>confdefs.h
<<_ACEOF
33001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33008 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
33009 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
33010 if test $ac_cv_header_fs_info_h = yes \
33011 && test $ac_cv_func_next_dev = yes \
33012 && test $ac_cv_func_fs_stat_dev = yes; then
33017 echo "$as_me:$LINENO: result: $fu_result" >&5
33018 echo "${ECHO_T}$fu_result" >&6
33019 if test $fu_result = yes; then
33020 ac_list_mounted_fs
=found
33022 cat >>confdefs.h
<<\_ACEOF
33023 #define MOUNTED_FS_STAT_DEV 1
33029 if test -z "$ac_list_mounted_fs"; then
33031 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
33032 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
33033 if test "${fu_cv_sys_mounted_fread+set}" = set; then
33034 echo $ECHO_N "(cached) $ECHO_C" >&6
33036 cat >conftest.
$ac_ext <<_ACEOF
33037 #line $LINENO "configure"
33038 #include "confdefs.h"
33039 #include <mnttab.h>
33041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
33044 grep -v '^ *+' conftest.er1
>conftest.err
33046 cat conftest.err
>&5
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } >/dev
/null
; then
33049 if test -s conftest.err
; then
33050 ac_cpp_err
=$ac_c_preproc_warn_flag
33057 if test -z "$ac_cpp_err"; then
33058 fu_cv_sys_mounted_fread
=yes
33060 echo "$as_me: failed program was:" >&5
33061 cat conftest.
$ac_ext >&5
33062 fu_cv_sys_mounted_fread
=no
33064 rm -f conftest.err conftest.
$ac_ext
33067 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
33068 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
33069 if test $fu_cv_sys_mounted_fread = yes; then
33070 ac_list_mounted_fs
=found
33072 cat >>confdefs.h
<<\_ACEOF
33073 #define MOUNTED_FREAD 1
33079 if test -z "$ac_list_mounted_fs"; then
33080 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
33081 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
33082 { (exit 1); exit 1; }; }
33083 # FIXME -- no need to abort building the whole package
33084 # Can't build mountlist.c or anything that needs its functions
33087 if test $ac_list_mounted_fs = found
; then
33088 list_mounted_fs
=yes
33096 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
33097 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
33098 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
33099 echo $ECHO_N "(cached) $ECHO_C" >&6
33102 cat >conftest.
$ac_ext <<_ACEOF
33103 #line $LINENO "configure"
33104 #include "confdefs.h"
33106 #include <sys/param.h>
33107 #include <sys/types.h>
33108 #include <sys/mount.h>
33113 struct statfs s; int i = sizeof s.f_fstypename;
33118 rm -f conftest.
$ac_objext
33119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33120 (eval $ac_compile) 2>&5
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
33124 { ac_try
='test -s conftest.$ac_objext'
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; }; then
33130 fu_cv_sys_f_fstypename_in_statfs
=yes
33132 echo "$as_me: failed program was:" >&5
33133 cat conftest.
$ac_ext >&5
33134 fu_cv_sys_f_fstypename_in_statfs
=no
33137 rm -f conftest.
$ac_objext conftest.
$ac_ext
33141 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
33142 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
33144 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
33146 cat >>confdefs.h
<<\_ACEOF
33147 #define HAVE_F_FSTYPENAME_IN_STATFS 1
33155 echo "checking how to get filesystem space usage..."
33156 ac_fsusage_space
=no
33158 # Perform only the link test since it seems there are no variants of the
33159 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
33160 # because that got a false positive on SCO OSR5. Adding the declaration
33161 # of a `struct statvfs' causes this test to fail (as it should) on such
33162 # systems. That system is reported to work fine with STAT_STATFS4 which
33163 # is what it gets when this test fails.
33164 if test $ac_fsusage_space = no
; then
33166 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
33167 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
33168 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
33169 echo $ECHO_N "(cached) $ECHO_C" >&6
33171 cat >conftest.
$ac_ext <<_ACEOF
33172 #line $LINENO "configure"
33173 #include "confdefs.h"
33174 #include <sys/types.h>
33175 #include <sys/statvfs.h>
33179 struct statvfs fsd; statvfs (0, &fsd);
33184 rm -f conftest.
$ac_objext conftest
$ac_exeext
33185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33186 (eval $ac_link) 2>&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } &&
33190 { ac_try
='test -s conftest$ac_exeext'
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 fu_cv_sys_stat_statvfs
=yes
33198 echo "$as_me: failed program was:" >&5
33199 cat conftest.
$ac_ext >&5
33200 fu_cv_sys_stat_statvfs
=no
33202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33204 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
33205 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
33206 if test $fu_cv_sys_stat_statvfs = yes; then
33207 ac_fsusage_space
=yes
33209 cat >>confdefs.h
<<\_ACEOF
33210 #define STAT_STATVFS 1
33216 if test $ac_fsusage_space = no
; then
33217 # DEC Alpha running OSF/1
33218 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
33219 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
33220 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33223 if test "$cross_compiling" = yes; then
33224 fu_cv_sys_stat_statfs3_osf1
=no
33226 cat >conftest.
$ac_ext <<_ACEOF
33227 #line $LINENO "configure"
33228 #include "confdefs.h"
33230 #include <sys/param.h>
33231 #include <sys/types.h>
33232 #include <sys/mount.h>
33237 exit (statfs (".", &fsd, sizeof (struct statfs)));
33240 rm -f conftest
$ac_exeext
33241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33242 (eval $ac_link) 2>&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 fu_cv_sys_stat_statfs3_osf1
=yes
33253 echo "$as_me: program exited with status $ac_status" >&5
33254 echo "$as_me: failed program was:" >&5
33255 cat conftest.
$ac_ext >&5
33256 ( exit $ac_status )
33257 fu_cv_sys_stat_statfs3_osf1
=no
33259 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33263 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
33264 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
33265 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
33266 ac_fsusage_space
=yes
33268 cat >>confdefs.h
<<\_ACEOF
33269 #define STAT_STATFS3_OSF1 1
33275 if test $ac_fsusage_space = no
; then
33277 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
33278 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
33279 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33282 if test "$cross_compiling" = yes; then
33283 fu_cv_sys_stat_statfs2_bsize
=no
33285 cat >conftest.
$ac_ext <<_ACEOF
33286 #line $LINENO "configure"
33287 #include "confdefs.h"
33289 #ifdef HAVE_SYS_PARAM_H
33290 #include <sys/param.h>
33292 #ifdef HAVE_SYS_MOUNT_H
33293 #include <sys/mount.h>
33295 #ifdef HAVE_SYS_VFS_H
33296 #include <sys/vfs.h>
33302 exit (statfs (".", &fsd));
33305 rm -f conftest
$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307 (eval $ac_link) 2>&5
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312 (eval $ac_try) 2>&5
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
33316 fu_cv_sys_stat_statfs2_bsize
=yes
33318 echo "$as_me: program exited with status $ac_status" >&5
33319 echo "$as_me: failed program was:" >&5
33320 cat conftest.
$ac_ext >&5
33321 ( exit $ac_status )
33322 fu_cv_sys_stat_statfs2_bsize
=no
33324 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33328 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
33329 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
33330 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
33331 ac_fsusage_space
=yes
33333 cat >>confdefs.h
<<\_ACEOF
33334 #define STAT_STATFS2_BSIZE 1
33340 if test $ac_fsusage_space = no
; then
33342 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
33343 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
33344 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
33345 echo $ECHO_N "(cached) $ECHO_C" >&6
33347 if test "$cross_compiling" = yes; then
33348 fu_cv_sys_stat_statfs4
=no
33350 cat >conftest.
$ac_ext <<_ACEOF
33351 #line $LINENO "configure"
33352 #include "confdefs.h"
33353 #include <sys/types.h>
33354 #include <sys/statfs.h>
33358 exit (statfs (".", &fsd, sizeof fsd, 0));
33361 rm -f conftest
$ac_exeext
33362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33363 (eval $ac_link) 2>&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33368 (eval $ac_try) 2>&5
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; }; then
33372 fu_cv_sys_stat_statfs4
=yes
33374 echo "$as_me: program exited with status $ac_status" >&5
33375 echo "$as_me: failed program was:" >&5
33376 cat conftest.
$ac_ext >&5
33377 ( exit $ac_status )
33378 fu_cv_sys_stat_statfs4
=no
33380 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33384 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
33385 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
33386 if test $fu_cv_sys_stat_statfs4 = yes; then
33387 ac_fsusage_space
=yes
33389 cat >>confdefs.h
<<\_ACEOF
33390 #define STAT_STATFS4 1
33396 if test $ac_fsusage_space = no
; then
33397 # 4.4BSD and NetBSD
33398 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
33399 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
33400 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33403 if test "$cross_compiling" = yes; then
33404 fu_cv_sys_stat_statfs2_fsize
=no
33406 cat >conftest.
$ac_ext <<_ACEOF
33407 #line $LINENO "configure"
33408 #include "confdefs.h"
33409 #include <sys/types.h>
33410 #ifdef HAVE_SYS_PARAM_H
33411 #include <sys/param.h>
33413 #ifdef HAVE_SYS_MOUNT_H
33414 #include <sys/mount.h>
33420 exit (statfs (".", &fsd));
33423 rm -f conftest
$ac_exeext
33424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33425 (eval $ac_link) 2>&5
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434 fu_cv_sys_stat_statfs2_fsize
=yes
33436 echo "$as_me: program exited with status $ac_status" >&5
33437 echo "$as_me: failed program was:" >&5
33438 cat conftest.
$ac_ext >&5
33439 ( exit $ac_status )
33440 fu_cv_sys_stat_statfs2_fsize
=no
33442 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33446 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
33447 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
33448 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
33449 ac_fsusage_space
=yes
33451 cat >>confdefs.h
<<\_ACEOF
33452 #define STAT_STATFS2_FSIZE 1
33458 if test $ac_fsusage_space = no
; then
33460 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
33461 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
33462 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
33463 echo $ECHO_N "(cached) $ECHO_C" >&6
33465 if test "$cross_compiling" = yes; then
33466 fu_cv_sys_stat_fs_data
=no
33468 cat >conftest.
$ac_ext <<_ACEOF
33469 #line $LINENO "configure"
33470 #include "confdefs.h"
33471 #include <sys/types.h>
33472 #ifdef HAVE_SYS_PARAM_H
33473 #include <sys/param.h>
33475 #ifdef HAVE_SYS_MOUNT_H
33476 #include <sys/mount.h>
33478 #ifdef HAVE_SYS_FS_TYPES_H
33479 #include <sys/fs_types.h>
33483 struct fs_data fsd;
33484 /* Ultrix's statfs returns 1 for success,
33485 0 for not mounted, -1 for failure. */
33486 exit (statfs (".", &fsd) != 1);
33489 rm -f conftest
$ac_exeext
33490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33491 (eval $ac_link) 2>&5
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496 (eval $ac_try) 2>&5
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); }; }; then
33500 fu_cv_sys_stat_fs_data
=yes
33502 echo "$as_me: program exited with status $ac_status" >&5
33503 echo "$as_me: failed program was:" >&5
33504 cat conftest.
$ac_ext >&5
33505 ( exit $ac_status )
33506 fu_cv_sys_stat_fs_data
=no
33508 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33512 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
33513 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
33514 if test $fu_cv_sys_stat_fs_data = yes; then
33515 ac_fsusage_space
=yes
33517 cat >>confdefs.h
<<\_ACEOF
33518 #define STAT_STATFS2_FS_DATA 1
33524 if test $ac_fsusage_space = no
; then
33526 cat >conftest.
$ac_ext <<_ACEOF
33527 #line $LINENO "configure"
33528 #include "confdefs.h"
33529 #include <sys/filsys.h>
33532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33533 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
33535 grep -v '^ *+' conftest.er1
>conftest.err
33537 cat conftest.err
>&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } >/dev
/null
; then
33540 if test -s conftest.err
; then
33541 ac_cpp_err
=$ac_c_preproc_warn_flag
33548 if test -z "$ac_cpp_err"; then
33550 cat >>confdefs.h
<<\_ACEOF
33551 #define STAT_READ_FILSYS 1
33554 ac_fsusage_space
=yes
33556 echo "$as_me: failed program was:" >&5
33557 cat conftest.
$ac_ext >&5
33560 rm -f conftest.err conftest.
$ac_ext
33563 if test $ac_fsusage_space = yes; then
33571 if test $list_mounted_fs = yes && test $space = yes; then
33573 LIBOBJS
="$LIBOBJS fsusage.$ac_objext"
33574 LIBOBJS
="$LIBOBJS mountlist.$ac_objext"
33580 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
33581 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
33582 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
33583 echo $ECHO_N "(cached) $ECHO_C" >&6
33585 cat >conftest.
$ac_ext <<_ACEOF
33586 #line $LINENO "configure"
33587 #include "confdefs.h"
33588 #include <sys/types.h>
33589 #include <termios.h>
33595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33596 $EGREP "yes" >/dev
/null
2>&1; then
33597 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
33599 ac_cv_sys_tiocgwinsz_in_termios_h
=no
33604 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
33605 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
33607 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
33608 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
33609 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
33610 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33613 cat >conftest.
$ac_ext <<_ACEOF
33614 #line $LINENO "configure"
33615 #include "confdefs.h"
33616 #include <sys/types.h>
33617 #include <sys/ioctl.h>
33623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33624 $EGREP "yes" >/dev
/null
2>&1; then
33625 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
33627 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
33632 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
33633 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
33635 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
33637 cat >>confdefs.h
<<\_ACEOF
33638 #define GWINSZ_IN_SYS_IOCTL 1
33644 echo "$as_me:$LINENO: checking POSIX termios" >&5
33645 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
33646 if test "${ac_cv_sys_posix_termios+set}" = set; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33649 cat >conftest.
$ac_ext <<_ACEOF
33650 #line $LINENO "configure"
33651 #include "confdefs.h"
33652 #include <sys/types.h>
33653 #include <unistd.h>
33654 #include <termios.h>
33658 /* SunOS 4.0.3 has termios.h but not the library calls. */
33664 rm -f conftest.
$ac_objext conftest
$ac_exeext
33665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33666 (eval $ac_link) 2>&5
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); } &&
33670 { ac_try
='test -s conftest$ac_exeext'
33671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672 (eval $ac_try) 2>&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; }; then
33676 ac_cv_sys_posix_termios
=yes
33678 echo "$as_me: failed program was:" >&5
33679 cat conftest.
$ac_ext >&5
33680 ac_cv_sys_posix_termios
=no
33682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33684 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
33685 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
33688 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
33689 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
33690 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33693 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
33694 if test $am_cv_sys_posix_termios = yes; then
33695 cat >conftest.
$ac_ext <<_ACEOF
33696 #line $LINENO "configure"
33697 #include "confdefs.h"
33698 #include <termios.h>
33703 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
33708 rm -f conftest.
$ac_objext
33709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33710 (eval $ac_compile) 2>&5
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } &&
33714 { ac_try
='test -s conftest.$ac_objext'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33722 echo "$as_me: failed program was:" >&5
33723 cat conftest.
$ac_ext >&5
33725 rm -f conftest.
$ac_objext conftest.
$ac_ext
33727 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
33728 cat >conftest.
$ac_ext <<_ACEOF
33729 #line $LINENO "configure"
33730 #include "confdefs.h"
33731 #include <sys/ptem.h>
33740 rm -f conftest.
$ac_objext
33741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33742 (eval $ac_compile) 2>&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } &&
33746 { ac_try
='test -s conftest.$ac_objext'
33747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748 (eval $ac_try) 2>&5
33750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751 (exit $ac_status); }; }; then
33754 echo "$as_me: failed program was:" >&5
33755 cat conftest.
$ac_ext >&5
33756 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
33758 rm -f conftest.
$ac_objext conftest.
$ac_ext
33761 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
33762 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
33763 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
33765 cat >>confdefs.h
<<\_ACEOF
33766 #define WINSIZE_IN_PTEM 1
33771 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
33772 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
33773 # enable the work-around code in fsusage.c.
33774 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
33775 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
33776 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33779 cat >conftest.
$ac_ext <<_ACEOF
33780 #line $LINENO "configure"
33781 #include "confdefs.h"
33783 #if !defined(sun) && !defined(__sun)
33784 choke -- this is a workaround for a Sun-specific problem
33786 #include <sys/types.h>
33787 #include <sys/vfs.h>
33791 struct statfs t; long c = *(t.f_spare);
33796 rm -f conftest.
$ac_objext
33797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33798 (eval $ac_compile) 2>&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
33802 { ac_try
='test -s conftest.$ac_objext'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 fu_cv_sys_truncating_statfs
=yes
33810 echo "$as_me: failed program was:" >&5
33811 cat conftest.
$ac_ext >&5
33812 fu_cv_sys_truncating_statfs
=no
33814 rm -f conftest.
$ac_objext conftest.
$ac_ext
33817 if test $fu_cv_sys_truncating_statfs = yes; then
33819 cat >>confdefs.h
<<\_ACEOF
33820 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
33824 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
33825 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
33827 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
33828 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
33829 if test "${utils_cv_localtime_cache+set}" = set; then
33830 echo $ECHO_N "(cached) $ECHO_C" >&6
33832 if test x
$ac_cv_func_tzset = xyes
; then
33833 if test "$cross_compiling" = yes; then
33834 # If we have tzset, assume the worst when cross-compiling.
33835 utils_cv_localtime_cache
=yes
33837 cat >conftest.
$ac_ext <<_ACEOF
33838 #line $LINENO "configure"
33839 #include "confdefs.h"
33842 # include <stdlib.h>
33844 extern char **environ;
33848 for (to = from = environ; (*to = *from); from++)
33849 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
33854 time_t now = time ((time_t *) 0);
33855 int hour_GMT0, hour_unset;
33856 if (putenv ("TZ=GMT0") != 0)
33858 hour_GMT0 = localtime (&now)->tm_hour;
33860 hour_unset = localtime (&now)->tm_hour;
33861 if (putenv ("TZ=PST8") != 0)
33863 if (localtime (&now)->tm_hour == hour_GMT0)
33866 if (localtime (&now)->tm_hour != hour_unset)
33871 rm -f conftest
$ac_exeext
33872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33873 (eval $ac_link) 2>&5
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878 (eval $ac_try) 2>&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); }; }; then
33882 utils_cv_localtime_cache
=no
33884 echo "$as_me: program exited with status $ac_status" >&5
33885 echo "$as_me: failed program was:" >&5
33886 cat conftest.
$ac_ext >&5
33887 ( exit $ac_status )
33888 utils_cv_localtime_cache
=yes
33890 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
33893 # If we lack tzset, report that localtime does not cache TZ,
33894 # since we can't invalidate the cache if we don't have tzset.
33895 utils_cv_localtime_cache
=no
33898 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
33899 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
33900 if test $utils_cv_localtime_cache = yes; then
33902 cat >>confdefs.h
<<\_ACEOF
33903 #define LOCALTIME_CACHE 1
33908 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
33910 for ac_func
in initgroups
33912 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33913 echo "$as_me:$LINENO: checking for $ac_func" >&5
33914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33915 if eval "test \"\${$as_ac_var+set}\" = set"; then
33916 echo $ECHO_N "(cached) $ECHO_C" >&6
33918 cat >conftest.
$ac_ext <<_ACEOF
33919 #line $LINENO "configure"
33920 #include "confdefs.h"
33921 /* System header to define __stub macros and hopefully few prototypes,
33922 which can conflict with char $ac_func (); below. */
33923 #include <assert.h>
33924 /* Override any gcc2 internal prototype to avoid an error. */
33928 /* We use char because int might match the return type of a gcc2
33929 builtin and then its argument prototype would still apply. */
33936 /* The GNU C library defines this for functions which it implements
33937 to always fail with ENOSYS. Some functions are actually named
33938 something starting with __ and the normal name is an alias. */
33939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33949 rm -f conftest.
$ac_objext conftest
$ac_exeext
33950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33951 (eval $ac_link) 2>&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try
='test -s conftest$ac_exeext'
33956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957 (eval $ac_try) 2>&5
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); }; }; then
33961 eval "$as_ac_var=yes"
33963 echo "$as_me: failed program was:" >&5
33964 cat conftest.
$ac_ext >&5
33965 eval "$as_ac_var=no"
33967 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
33969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33971 if test `eval echo '${'$as_ac_var'}'` = yes; then
33972 cat >>confdefs.h
<<_ACEOF
33973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33979 if test $ac_cv_func_initgroups = no
; then
33981 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
33982 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
33983 if test "${ac_cv_lib_os_initgroups+set}" = set; then
33984 echo $ECHO_N "(cached) $ECHO_C" >&6
33986 ac_check_lib_save_LIBS
=$LIBS
33988 cat >conftest.
$ac_ext <<_ACEOF
33989 #line $LINENO "configure"
33990 #include "confdefs.h"
33992 /* Override any gcc2 internal prototype to avoid an error. */
33996 /* We use char because int might match the return type of a gcc2
33997 builtin and then its argument prototype would still apply. */
33998 char initgroups ();
34007 rm -f conftest.
$ac_objext conftest
$ac_exeext
34008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34009 (eval $ac_link) 2>&5
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); } &&
34013 { ac_try
='test -s conftest$ac_exeext'
34014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34015 (eval $ac_try) 2>&5
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); }; }; then
34019 ac_cv_lib_os_initgroups
=yes
34021 echo "$as_me: failed program was:" >&5
34022 cat conftest.
$ac_ext >&5
34023 ac_cv_lib_os_initgroups
=no
34025 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34026 LIBS
=$ac_check_lib_save_LIBS
34028 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
34029 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
34030 if test $ac_cv_lib_os_initgroups = yes; then
34031 cat >>confdefs.h
<<_ACEOF
34032 #define HAVE_LIBOS 1
34042 for ac_func
in syslog
34044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34045 echo "$as_me:$LINENO: checking for $ac_func" >&5
34046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34047 if eval "test \"\${$as_ac_var+set}\" = set"; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34050 cat >conftest.
$ac_ext <<_ACEOF
34051 #line $LINENO "configure"
34052 #include "confdefs.h"
34053 /* System header to define __stub macros and hopefully few prototypes,
34054 which can conflict with char $ac_func (); below. */
34055 #include <assert.h>
34056 /* Override any gcc2 internal prototype to avoid an error. */
34060 /* We use char because int might match the return type of a gcc2
34061 builtin and then its argument prototype would still apply. */
34068 /* The GNU C library defines this for functions which it implements
34069 to always fail with ENOSYS. Some functions are actually named
34070 something starting with __ and the normal name is an alias. */
34071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34081 rm -f conftest.
$ac_objext conftest
$ac_exeext
34082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34083 (eval $ac_link) 2>&5
34085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); } &&
34087 { ac_try
='test -s conftest$ac_exeext'
34088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089 (eval $ac_try) 2>&5
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); }; }; then
34093 eval "$as_ac_var=yes"
34095 echo "$as_me: failed program was:" >&5
34096 cat conftest.
$ac_ext >&5
34097 eval "$as_ac_var=no"
34099 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34103 if test `eval echo '${'$as_ac_var'}'` = yes; then
34104 cat >>confdefs.h
<<_ACEOF
34105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34111 if test $ac_cv_func_syslog = no
; then
34112 # syslog is not in the default libraries. See if it's in some other.
34113 for lib
in bsd socket inet
; do
34114 as_ac_Lib
=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
34115 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
34116 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
34117 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34118 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 ac_check_lib_save_LIBS
=$LIBS
34121 LIBS
="-l$lib $LIBS"
34122 cat >conftest.
$ac_ext <<_ACEOF
34123 #line $LINENO "configure"
34124 #include "confdefs.h"
34126 /* Override any gcc2 internal prototype to avoid an error. */
34130 /* We use char because int might match the return type of a gcc2
34131 builtin and then its argument prototype would still apply. */
34141 rm -f conftest.
$ac_objext conftest
$ac_exeext
34142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34143 (eval $ac_link) 2>&5
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); } &&
34147 { ac_try
='test -s conftest$ac_exeext'
34148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34149 (eval $ac_try) 2>&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); }; }; then
34153 eval "$as_ac_Lib=yes"
34155 echo "$as_me: failed program was:" >&5
34156 cat conftest.
$ac_ext >&5
34157 eval "$as_ac_Lib=no"
34159 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34160 LIBS
=$ac_check_lib_save_LIBS
34162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34163 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34164 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34166 cat >>confdefs.h
<<\_ACEOF
34167 #define HAVE_SYSLOG 1
34170 LIBS
="$LIBS -l$lib"; break
34176 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
34177 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
34178 if test "${utils_cv_func_setpriority+set}" = set; then
34179 echo $ECHO_N "(cached) $ECHO_C" >&6
34181 cat >conftest.
$ac_ext <<_ACEOF
34182 #line $LINENO "configure"
34183 #include "confdefs.h"
34184 #include <sys/time.h>
34185 #include <sys/resource.h>
34189 setpriority(0, 0, 0);
34194 rm -f conftest.
$ac_objext conftest
$ac_exeext
34195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34196 (eval $ac_link) 2>&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); } &&
34200 { ac_try
='test -s conftest$ac_exeext'
34201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202 (eval $ac_try) 2>&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; }; then
34206 utils_cv_func_setpriority
=yes
34208 echo "$as_me: failed program was:" >&5
34209 cat conftest.
$ac_ext >&5
34210 utils_cv_func_setpriority
=no
34212 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34215 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
34216 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
34217 if test $utils_cv_func_setpriority = yes; then
34218 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
34219 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
34220 MAN
="$MAN nice.1 nohup.1"
34222 echo "$as_me:$LINENO: checking for nice function" >&5
34223 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
34224 if test "${utils_cv_func_nice+set}" = set; then
34225 echo $ECHO_N "(cached) $ECHO_C" >&6
34227 cat >conftest.
$ac_ext <<_ACEOF
34228 #line $LINENO "configure"
34229 #include "confdefs.h"
34239 rm -f conftest.
$ac_objext conftest
$ac_exeext
34240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241 (eval $ac_link) 2>&5
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } &&
34245 { ac_try
='test -s conftest$ac_exeext'
34246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 (eval $ac_try) 2>&5
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; }; then
34251 utils_cv_func_nice
=yes
34253 echo "$as_me: failed program was:" >&5
34254 cat conftest.
$ac_ext >&5
34255 utils_cv_func_nice
=no
34257 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34260 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
34261 echo "${ECHO_T}$utils_cv_func_nice" >&6
34262 if test $utils_cv_func_nice = yes; then
34264 cat >>confdefs.h
<<\_ACEOF
34265 #define NICE_PRIORITY 1
34268 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS nice"
34269 OPTIONAL_BIN_ZCRIPTS
="$OPTIONAL_BIN_ZCRIPTS nohup"
34270 MAN
="$MAN nice.1 nohup.1"
34277 if test $ac_cv_header_utmp_h = yes ||
test $ac_cv_header_utmpx_h = yes; then
34278 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS pinky users who"
34279 MAN
="$MAN pinky.1 users.1 who.1"
34283 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
34284 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
34285 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
34286 echo $ECHO_N "(cached) $ECHO_C" >&6
34288 cat >conftest.
$ac_ext <<_ACEOF
34289 #line $LINENO "configure"
34290 #include "confdefs.h"
34291 #include <sys/types.h>
34296 struct utmp ut; ut.ut_host;
34301 rm -f conftest.
$ac_objext conftest
$ac_exeext
34302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34303 (eval $ac_link) 2>&5
34305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); } &&
34307 { ac_try
='test -s conftest$ac_exeext'
34308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34309 (eval $ac_try) 2>&5
34311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); }; }; then
34313 su_cv_func_ut_host_in_utmp
=yes
34315 echo "$as_me: failed program was:" >&5
34316 cat conftest.
$ac_ext >&5
34317 su_cv_func_ut_host_in_utmp
=no
34319 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34322 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
34323 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
34324 if test $su_cv_func_ut_host_in_utmp = yes; then
34327 cat >>confdefs.h
<<\_ACEOF
34328 #define HAVE_UT_HOST 1
34333 if test -z "$have_ut_host"; then
34334 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
34335 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
34336 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34339 cat >conftest.
$ac_ext <<_ACEOF
34340 #line $LINENO "configure"
34341 #include "confdefs.h"
34342 #include <sys/types.h>
34347 struct utmpx ut; ut.ut_host;
34352 rm -f conftest.
$ac_objext conftest
$ac_exeext
34353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34354 (eval $ac_link) 2>&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } &&
34358 { ac_try
='test -s conftest$ac_exeext'
34359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34360 (eval $ac_try) 2>&5
34362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363 (exit $ac_status); }; }; then
34364 su_cv_func_ut_host_in_utmpx
=yes
34366 echo "$as_me: failed program was:" >&5
34367 cat conftest.
$ac_ext >&5
34368 su_cv_func_ut_host_in_utmpx
=no
34370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34373 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
34374 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
34375 if test $su_cv_func_ut_host_in_utmpx = yes; then
34377 cat >>confdefs.h
<<\_ACEOF
34378 #define HAVE_UTMPX_H 1
34382 cat >>confdefs.h
<<\_ACEOF
34383 #define HAVE_UT_HOST 1
34391 for ac_func
in sysctl
34393 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34394 echo "$as_me:$LINENO: checking for $ac_func" >&5
34395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_var+set}\" = set"; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34399 cat >conftest.
$ac_ext <<_ACEOF
34400 #line $LINENO "configure"
34401 #include "confdefs.h"
34402 /* System header to define __stub macros and hopefully few prototypes,
34403 which can conflict with char $ac_func (); below. */
34404 #include <assert.h>
34405 /* Override any gcc2 internal prototype to avoid an error. */
34409 /* We use char because int might match the return type of a gcc2
34410 builtin and then its argument prototype would still apply. */
34417 /* The GNU C library defines this for functions which it implements
34418 to always fail with ENOSYS. Some functions are actually named
34419 something starting with __ and the normal name is an alias. */
34420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34430 rm -f conftest.
$ac_objext conftest
$ac_exeext
34431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34432 (eval $ac_link) 2>&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); } &&
34436 { ac_try
='test -s conftest$ac_exeext'
34437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438 (eval $ac_try) 2>&5
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); }; }; then
34442 eval "$as_ac_var=yes"
34444 echo "$as_me: failed program was:" >&5
34445 cat conftest.
$ac_ext >&5
34446 eval "$as_ac_var=no"
34448 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34452 if test `eval echo '${'$as_ac_var'}'` = yes; then
34453 cat >>confdefs.h
<<_ACEOF
34454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34461 for ac_header
in sys
/sysctl.h
34463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34465 echo "$as_me:$LINENO: checking for $ac_header" >&5
34466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34468 echo $ECHO_N "(cached) $ECHO_C" >&6
34470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34473 # Is the header compilable?
34474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34476 cat >conftest.
$ac_ext <<_ACEOF
34477 #line $LINENO "configure"
34478 #include "confdefs.h"
34479 $ac_includes_default
34480 #include <$ac_header>
34482 rm -f conftest.
$ac_objext
34483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34484 (eval $ac_compile) 2>&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try
='test -s conftest.$ac_objext'
34489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34490 (eval $ac_try) 2>&5
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); }; }; then
34494 ac_header_compiler
=yes
34496 echo "$as_me: failed program was:" >&5
34497 cat conftest.
$ac_ext >&5
34498 ac_header_compiler
=no
34500 rm -f conftest.
$ac_objext conftest.
$ac_ext
34501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34502 echo "${ECHO_T}$ac_header_compiler" >&6
34504 # Is the header present?
34505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34507 cat >conftest.
$ac_ext <<_ACEOF
34508 #line $LINENO "configure"
34509 #include "confdefs.h"
34510 #include <$ac_header>
34512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
34515 grep -v '^ *+' conftest.er1
>conftest.err
34517 cat conftest.err
>&5
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } >/dev
/null
; then
34520 if test -s conftest.err
; then
34521 ac_cpp_err
=$ac_c_preproc_warn_flag
34528 if test -z "$ac_cpp_err"; then
34529 ac_header_preproc
=yes
34531 echo "$as_me: failed program was:" >&5
34532 cat conftest.
$ac_ext >&5
34533 ac_header_preproc
=no
34535 rm -f conftest.err conftest.
$ac_ext
34536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34537 echo "${ECHO_T}$ac_header_preproc" >&6
34539 # So? What about this header?
34540 case $ac_header_compiler:$ac_header_preproc in
34542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
34547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
34554 echo "$as_me:$LINENO: checking for $ac_header" >&5
34555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34557 echo $ECHO_N "(cached) $ECHO_C" >&6
34559 eval "$as_ac_Header=$ac_header_preproc"
34561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34566 cat >>confdefs.h
<<_ACEOF
34567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34574 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
34575 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
34576 if test "${gnulib_cv_have_boot_time+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34580 cat >conftest.
$ac_ext <<_ACEOF
34581 #line $LINENO "configure"
34582 #include "confdefs.h"
34583 $ac_includes_default
34584 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
34585 # include <sys/param.h> /* needed for OpenBSD 3.0 */
34586 # include <sys/sysctl.h>
34588 #ifdef HAVE_UTMPX_H
34589 # include <utmpx.h>
34598 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
34599 /* your system *does* have the infrastructure to determine boot time */
34601 please_tell_us_how_to_determine_boot_time_on_your_system
34608 rm -f conftest.
$ac_objext
34609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34610 (eval $ac_compile) 2>&5
34612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 (exit $ac_status); } &&
34614 { ac_try
='test -s conftest.$ac_objext'
34615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616 (eval $ac_try) 2>&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); }; }; then
34620 gnulib_cv_have_boot_time
=yes
34622 echo "$as_me: failed program was:" >&5
34623 cat conftest.
$ac_ext >&5
34624 gnulib_cv_have_boot_time
=no
34626 rm -f conftest.
$ac_objext conftest.
$ac_ext
34629 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
34630 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
34631 if test $gnulib_cv_have_boot_time = yes; then
34632 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS uptime" MAN
="$MAN uptime.1"
34637 echo "$as_me:$LINENO: checking POSIX termios" >&5
34638 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
34639 if test "${ac_cv_sys_posix_termios+set}" = set; then
34640 echo $ECHO_N "(cached) $ECHO_C" >&6
34642 cat >conftest.
$ac_ext <<_ACEOF
34643 #line $LINENO "configure"
34644 #include "confdefs.h"
34645 #include <sys/types.h>
34646 #include <unistd.h>
34647 #include <termios.h>
34651 /* SunOS 4.0.3 has termios.h but not the library calls. */
34657 rm -f conftest.
$ac_objext conftest
$ac_exeext
34658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34659 (eval $ac_link) 2>&5
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); } &&
34663 { ac_try
='test -s conftest$ac_exeext'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_sys_posix_termios
=yes
34671 echo "$as_me: failed program was:" >&5
34672 cat conftest.
$ac_ext >&5
34673 ac_cv_sys_posix_termios
=no
34675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34677 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
34678 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
34681 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
34682 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
34683 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
34684 echo $ECHO_N "(cached) $ECHO_C" >&6
34686 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
34688 if test $am_cv_sys_posix_termios = yes; then
34689 cat >conftest.
$ac_ext <<_ACEOF
34690 #line $LINENO "configure"
34691 #include "confdefs.h"
34692 #include <sys/types.h>
34693 # include <termios.h>
34699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34700 $EGREP "yes" >/dev
/null
2>&1; then
34701 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
34708 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
34709 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
34712 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
34713 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
34714 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
34715 echo $ECHO_N "(cached) $ECHO_C" >&6
34717 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=no
34719 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
; then
34720 cat >conftest.
$ac_ext <<_ACEOF
34721 #line $LINENO "configure"
34722 #include "confdefs.h"
34723 #include <sys/types.h>
34724 # include <sys/ioctl.h>
34730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34731 $EGREP "yes" >/dev
/null
2>&1; then
34732 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h
=yes
34739 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
34740 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
34741 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
34743 cat >>confdefs.h
<<\_ACEOF
34744 #define GWINSZ_IN_SYS_IOCTL 1
34750 if test $am_cv_sys_posix_termios = yes; then
34751 OPTIONAL_BIN_PROGS
="$OPTIONAL_BIN_PROGS stty" MAN
="$MAN stty.1"
34753 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
34754 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
34755 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
34756 echo $ECHO_N "(cached) $ECHO_C" >&6
34758 cat >conftest.
$ac_ext <<_ACEOF
34759 #line $LINENO "configure"
34760 #include "confdefs.h"
34761 #include <termios.h>
34766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34767 $EGREP "yes" >/dev
/null
2>&1; then
34768 su_cv_sys_termios_needs_xopen_source
=no
34770 cat >conftest.
$ac_ext <<_ACEOF
34771 #line $LINENO "configure"
34772 #include "confdefs.h"
34773 #define _XOPEN_SOURCE
34774 #include <termios.h>
34779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34780 $EGREP "yes" >/dev
/null
2>&1; then
34781 su_cv_sys_termios_needs_xopen_source
=yes
34783 su_cv_sys_termios_needs_xopen_source
=no
34792 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
34793 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
34794 test $su_cv_sys_termios_needs_xopen_source = yes &&
34796 cat >>confdefs.h
<<\_ACEOF
34797 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
34801 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
34802 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
34803 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
34804 echo $ECHO_N "(cached) $ECHO_C" >&6
34806 cat >conftest.
$ac_ext <<_ACEOF
34807 #line $LINENO "configure"
34808 #include "confdefs.h"
34809 #if TERMIOS_NEEDS_XOPEN_SOURCE
34810 #define _XOPEN_SOURCE
34812 #include <sys/types.h>
34813 #include <termios.h>
34817 struct termios t; t.c_line;
34822 rm -f conftest.
$ac_objext conftest
$ac_exeext
34823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34824 (eval $ac_link) 2>&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } &&
34828 { ac_try
='test -s conftest$ac_exeext'
34829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830 (eval $ac_try) 2>&5
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834 su_cv_sys_c_line_in_termios
=yes
34836 echo "$as_me: failed program was:" >&5
34837 cat conftest.
$ac_ext >&5
34838 su_cv_sys_c_line_in_termios
=no
34840 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
34843 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
34844 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
34845 test $su_cv_sys_c_line_in_termios = yes &&
34846 cat >>confdefs.h
<<\_ACEOF
34847 #define HAVE_C_LINE 1
34852 # FIXME: note that this macro appears above, too.
34853 # I'm leaving it here for now. This whole thing needs to be modernized...
34855 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
34856 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
34857 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
34858 echo $ECHO_N "(cached) $ECHO_C" >&6
34860 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=yes
34861 if test $am_cv_sys_posix_termios = yes; then
34862 cat >conftest.
$ac_ext <<_ACEOF
34863 #line $LINENO "configure"
34864 #include "confdefs.h"
34865 #include <termios.h>
34870 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
34875 rm -f conftest.
$ac_objext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34877 (eval $ac_compile) 2>&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); } &&
34881 { ac_try
='test -s conftest.$ac_objext'
34882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883 (eval $ac_try) 2>&5
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; }; then
34889 echo "$as_me: failed program was:" >&5
34890 cat conftest.
$ac_ext >&5
34892 rm -f conftest.
$ac_objext conftest.
$ac_ext
34894 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
34895 cat >conftest.
$ac_ext <<_ACEOF
34896 #line $LINENO "configure"
34897 #include "confdefs.h"
34898 #include <sys/ptem.h>
34907 rm -f conftest.
$ac_objext
34908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34909 (eval $ac_compile) 2>&5
34911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34912 (exit $ac_status); } &&
34913 { ac_try
='test -s conftest.$ac_objext'
34914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34915 (eval $ac_try) 2>&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); }; }; then
34921 echo "$as_me: failed program was:" >&5
34922 cat conftest.
$ac_ext >&5
34923 jm_cv_sys_struct_winsize_needs_sys_ptem_h
=no
34925 rm -f conftest.
$ac_objext conftest.
$ac_ext
34928 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
34929 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
34930 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
34932 cat >>confdefs.h
<<\_ACEOF
34933 #define WINSIZE_IN_PTEM 1
34939 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
34940 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
34941 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
34942 echo $ECHO_N "(cached) $ECHO_C" >&6
34944 jm_cv_sys_tiocgwinsz_needs_termios_h
=no
34946 if test $am_cv_sys_posix_termios = yes; then
34947 cat >conftest.
$ac_ext <<_ACEOF
34948 #line $LINENO "configure"
34949 #include "confdefs.h"
34950 #include <sys/types.h>
34951 # include <termios.h>
34957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34958 $EGREP "yes" >/dev
/null
2>&1; then
34959 jm_cv_sys_tiocgwinsz_needs_termios_h
=yes
34966 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
34967 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
34970 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no
&& \
34971 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no
; then
34972 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
34973 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
34974 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
34975 echo $ECHO_N "(cached) $ECHO_C" >&6
34977 cat >conftest.
$ac_ext <<_ACEOF
34978 #line $LINENO "configure"
34979 #include "confdefs.h"
34980 #include <sys/types.h>
34981 #ifdef WINSIZE_IN_PTEM
34982 # include <sys/stream.h>
34983 # include <sys/ptem.h>
34985 #include <sys/ioctl.h>
34986 #include <sys/tty.h>
34987 #include <sys/pty.h>
34991 int x = TIOCGWINSZ;
34996 rm -f conftest.
$ac_objext conftest
$ac_exeext
34997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34998 (eval $ac_link) 2>&5
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); } &&
35002 { ac_try
='test -s conftest$ac_exeext'
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; }; then
35008 su_cv_sys_tiocgwinsz_in_sys_pty_h
=yes
35010 echo "$as_me: failed program was:" >&5
35011 cat conftest.
$ac_ext >&5
35012 su_cv_sys_tiocgwinsz_in_sys_pty_h
=no
35014 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35017 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
35018 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
35020 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
35022 cat >>confdefs.h
<<\_ACEOF
35023 #define GWINSZ_IN_SYS_PTY 1
35029 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
35030 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
35031 if test "${ac_cv_have_decl_strsignal+set}" = set; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35034 cat >conftest.
$ac_ext <<_ACEOF
35035 #line $LINENO "configure"
35036 #include "confdefs.h"
35037 $ac_includes_default
35042 char *p = (char *) strsignal;
35049 rm -f conftest.
$ac_objext
35050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35051 (eval $ac_compile) 2>&5
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); } &&
35055 { ac_try
='test -s conftest.$ac_objext'
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; }; then
35061 ac_cv_have_decl_strsignal
=yes
35063 echo "$as_me: failed program was:" >&5
35064 cat conftest.
$ac_ext >&5
35065 ac_cv_have_decl_strsignal
=no
35067 rm -f conftest.
$ac_objext conftest.
$ac_ext
35069 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
35070 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
35071 if test $ac_cv_have_decl_strsignal = yes; then
35073 cat >>confdefs.h
<<_ACEOF
35074 #define HAVE_DECL_STRSIGNAL 1
35079 cat >>confdefs.h
<<_ACEOF
35080 #define HAVE_DECL_STRSIGNAL 0
35085 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
35086 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
35087 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
35088 echo $ECHO_N "(cached) $ECHO_C" >&6
35090 cat >conftest.
$ac_ext <<_ACEOF
35091 #line $LINENO "configure"
35092 #include "confdefs.h"
35093 $ac_includes_default
35098 char *p = (char *) strtoimax;
35105 rm -f conftest.
$ac_objext
35106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35107 (eval $ac_compile) 2>&5
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
35111 { ac_try
='test -s conftest.$ac_objext'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117 ac_cv_have_decl_strtoimax
=yes
35119 echo "$as_me: failed program was:" >&5
35120 cat conftest.
$ac_ext >&5
35121 ac_cv_have_decl_strtoimax
=no
35123 rm -f conftest.
$ac_objext conftest.
$ac_ext
35125 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
35126 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
35127 if test $ac_cv_have_decl_strtoimax = yes; then
35129 cat >>confdefs.h
<<_ACEOF
35130 #define HAVE_DECL_STRTOIMAX 1
35135 cat >>confdefs.h
<<_ACEOF
35136 #define HAVE_DECL_STRTOIMAX 0
35141 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
35142 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
35143 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
35144 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 cat >conftest.
$ac_ext <<_ACEOF
35147 #line $LINENO "configure"
35148 #include "confdefs.h"
35149 $ac_includes_default
35153 #ifndef sys_siglist
35154 char *p = (char *) sys_siglist;
35161 rm -f conftest.
$ac_objext
35162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35163 (eval $ac_compile) 2>&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } &&
35167 { ac_try
='test -s conftest.$ac_objext'
35168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 (eval $ac_try) 2>&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; }; then
35173 ac_cv_have_decl_sys_siglist
=yes
35175 echo "$as_me: failed program was:" >&5
35176 cat conftest.
$ac_ext >&5
35177 ac_cv_have_decl_sys_siglist
=no
35179 rm -f conftest.
$ac_objext conftest.
$ac_ext
35181 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
35182 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
35183 if test $ac_cv_have_decl_sys_siglist = yes; then
35185 cat >>confdefs.h
<<_ACEOF
35186 #define HAVE_DECL_SYS_SIGLIST 1
35191 cat >>confdefs.h
<<_ACEOF
35192 #define HAVE_DECL_SYS_SIGLIST 0
35197 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
35198 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
35199 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
35200 echo $ECHO_N "(cached) $ECHO_C" >&6
35202 cat >conftest.
$ac_ext <<_ACEOF
35203 #line $LINENO "configure"
35204 #include "confdefs.h"
35205 $ac_includes_default
35209 #ifndef _sys_siglist
35210 char *p = (char *) _sys_siglist;
35217 rm -f conftest.
$ac_objext
35218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35219 (eval $ac_compile) 2>&5
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); } &&
35223 { ac_try
='test -s conftest.$ac_objext'
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; }; then
35229 ac_cv_have_decl__sys_siglist
=yes
35231 echo "$as_me: failed program was:" >&5
35232 cat conftest.
$ac_ext >&5
35233 ac_cv_have_decl__sys_siglist
=no
35235 rm -f conftest.
$ac_objext conftest.
$ac_ext
35237 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
35238 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
35239 if test $ac_cv_have_decl__sys_siglist = yes; then
35241 cat >>confdefs.h
<<_ACEOF
35242 #define HAVE_DECL__SYS_SIGLIST 1
35247 cat >>confdefs.h
<<_ACEOF
35248 #define HAVE_DECL__SYS_SIGLIST 0
35258 # Check for libypsec.a on Dolphin M88K machines.
35260 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
35261 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
35262 if test "${ac_cv_lib_ypsec_main+set}" = set; then
35263 echo $ECHO_N "(cached) $ECHO_C" >&6
35265 ac_check_lib_save_LIBS
=$LIBS
35266 LIBS
="-lypsec $LIBS"
35267 cat >conftest.
$ac_ext <<_ACEOF
35268 #line $LINENO "configure"
35269 #include "confdefs.h"
35280 rm -f conftest.
$ac_objext conftest
$ac_exeext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35282 (eval $ac_link) 2>&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); } &&
35286 { ac_try
='test -s conftest$ac_exeext'
35287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288 (eval $ac_try) 2>&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); }; }; then
35292 ac_cv_lib_ypsec_main
=yes
35294 echo "$as_me: failed program was:" >&5
35295 cat conftest.
$ac_ext >&5
35296 ac_cv_lib_ypsec_main
=no
35298 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35299 LIBS
=$ac_check_lib_save_LIBS
35301 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
35302 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
35303 if test $ac_cv_lib_ypsec_main = yes; then
35304 cat >>confdefs.h
<<_ACEOF
35305 #define HAVE_LIBYPSEC 1
35308 LIBS
="-lypsec $LIBS"
35313 # m88k running dgux 5.4 needs this
35315 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
35316 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
35317 if test "${ac_cv_lib_ldgc_main+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35320 ac_check_lib_save_LIBS
=$LIBS
35321 LIBS
="-lldgc $LIBS"
35322 cat >conftest.
$ac_ext <<_ACEOF
35323 #line $LINENO "configure"
35324 #include "confdefs.h"
35335 rm -f conftest.
$ac_objext conftest
$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337 (eval $ac_link) 2>&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); } &&
35341 { ac_try
='test -s conftest$ac_exeext'
35342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35343 (eval $ac_try) 2>&5
35345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346 (exit $ac_status); }; }; then
35347 ac_cv_lib_ldgc_main
=yes
35349 echo "$as_me: failed program was:" >&5
35350 cat conftest.
$ac_ext >&5
35351 ac_cv_lib_ldgc_main
=no
35353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35354 LIBS
=$ac_check_lib_save_LIBS
35356 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
35357 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
35358 if test $ac_cv_lib_ldgc_main = yes; then
35359 cat >>confdefs.h
<<_ACEOF
35360 #define HAVE_LIBLDGC 1
35363 LIBS
="-lldgc $LIBS"
35368 # Some programs need to link with -lm. printf does if it uses
35369 # lib/strtod.c which uses pow. And seq uses the math functions,
35370 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
35372 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
35373 # Check for these math functions used by seq.
35374 ac_su_saved_lib
="$LIBS"
35379 for ac_func
in floor modf rint
35381 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35382 echo "$as_me:$LINENO: checking for $ac_func" >&5
35383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35384 if eval "test \"\${$as_ac_var+set}\" = set"; then
35385 echo $ECHO_N "(cached) $ECHO_C" >&6
35387 cat >conftest.
$ac_ext <<_ACEOF
35388 #line $LINENO "configure"
35389 #include "confdefs.h"
35390 /* System header to define __stub macros and hopefully few prototypes,
35391 which can conflict with char $ac_func (); below. */
35392 #include <assert.h>
35393 /* Override any gcc2 internal prototype to avoid an error. */
35397 /* We use char because int might match the return type of a gcc2
35398 builtin and then its argument prototype would still apply. */
35405 /* The GNU C library defines this for functions which it implements
35406 to always fail with ENOSYS. Some functions are actually named
35407 something starting with __ and the normal name is an alias. */
35408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35418 rm -f conftest.
$ac_objext conftest
$ac_exeext
35419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35420 (eval $ac_link) 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } &&
35424 { ac_try
='test -s conftest$ac_exeext'
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 eval "$as_ac_var=yes"
35432 echo "$as_me: failed program was:" >&5
35433 cat conftest.
$ac_ext >&5
35434 eval "$as_ac_var=no"
35436 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35440 if test `eval echo '${'$as_ac_var'}'` = yes; then
35441 cat >>confdefs.h
<<_ACEOF
35442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35448 LIBS
="$ac_su_saved_lib"
35452 for ac_func
in sqrt
35454 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35455 echo "$as_me:$LINENO: checking for $ac_func" >&5
35456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35457 if eval "test \"\${$as_ac_var+set}\" = set"; then
35458 echo $ECHO_N "(cached) $ECHO_C" >&6
35460 cat >conftest.
$ac_ext <<_ACEOF
35461 #line $LINENO "configure"
35462 #include "confdefs.h"
35463 /* System header to define __stub macros and hopefully few prototypes,
35464 which can conflict with char $ac_func (); below. */
35465 #include <assert.h>
35466 /* Override any gcc2 internal prototype to avoid an error. */
35470 /* We use char because int might match the return type of a gcc2
35471 builtin and then its argument prototype would still apply. */
35478 /* The GNU C library defines this for functions which it implements
35479 to always fail with ENOSYS. Some functions are actually named
35480 something starting with __ and the normal name is an alias. */
35481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35491 rm -f conftest.
$ac_objext conftest
$ac_exeext
35492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35493 (eval $ac_link) 2>&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
35497 { ac_try
='test -s conftest$ac_exeext'
35498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 (eval $ac_try) 2>&5
35501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 (exit $ac_status); }; }; then
35503 eval "$as_ac_var=yes"
35505 echo "$as_me: failed program was:" >&5
35506 cat conftest.
$ac_ext >&5
35507 eval "$as_ac_var=no"
35509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35513 if test `eval echo '${'$as_ac_var'}'` = yes; then
35514 cat >>confdefs.h
<<_ACEOF
35515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35521 if test $ac_cv_func_sqrt = no
; then
35522 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
35523 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
35524 if test "${ac_cv_lib_m_sqrt+set}" = set; then
35525 echo $ECHO_N "(cached) $ECHO_C" >&6
35527 ac_check_lib_save_LIBS
=$LIBS
35529 cat >conftest.
$ac_ext <<_ACEOF
35530 #line $LINENO "configure"
35531 #include "confdefs.h"
35533 /* Override any gcc2 internal prototype to avoid an error. */
35537 /* We use char because int might match the return type of a gcc2
35538 builtin and then its argument prototype would still apply. */
35548 rm -f conftest.
$ac_objext conftest
$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550 (eval $ac_link) 2>&5
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); } &&
35554 { ac_try
='test -s conftest$ac_exeext'
35555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556 (eval $ac_try) 2>&5
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); }; }; then
35560 ac_cv_lib_m_sqrt
=yes
35562 echo "$as_me: failed program was:" >&5
35563 cat conftest.
$ac_ext >&5
35564 ac_cv_lib_m_sqrt
=no
35566 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35567 LIBS
=$ac_check_lib_save_LIBS
35569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
35570 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
35571 if test $ac_cv_lib_m_sqrt = yes; then
35579 for ac_func
in fesetround
35581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35582 echo "$as_me:$LINENO: checking for $ac_func" >&5
35583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35584 if eval "test \"\${$as_ac_var+set}\" = set"; then
35585 echo $ECHO_N "(cached) $ECHO_C" >&6
35587 cat >conftest.
$ac_ext <<_ACEOF
35588 #line $LINENO "configure"
35589 #include "confdefs.h"
35590 /* System header to define __stub macros and hopefully few prototypes,
35591 which can conflict with char $ac_func (); below. */
35592 #include <assert.h>
35593 /* Override any gcc2 internal prototype to avoid an error. */
35597 /* We use char because int might match the return type of a gcc2
35598 builtin and then its argument prototype would still apply. */
35605 /* The GNU C library defines this for functions which it implements
35606 to always fail with ENOSYS. Some functions are actually named
35607 something starting with __ and the normal name is an alias. */
35608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35618 rm -f conftest.
$ac_objext conftest
$ac_exeext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35620 (eval $ac_link) 2>&5
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); } &&
35624 { ac_try
='test -s conftest$ac_exeext'
35625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626 (eval $ac_try) 2>&5
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; }; then
35630 eval "$as_ac_var=yes"
35632 echo "$as_me: failed program was:" >&5
35633 cat conftest.
$ac_ext >&5
35634 eval "$as_ac_var=no"
35636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35640 if test `eval echo '${'$as_ac_var'}'` = yes; then
35641 cat >>confdefs.h
<<_ACEOF
35642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35648 if test $ac_cv_func_fesetround = no
; then
35649 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
35650 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
35651 if test "${ac_cv_lib_m_fesetround+set}" = set; then
35652 echo $ECHO_N "(cached) $ECHO_C" >&6
35654 ac_check_lib_save_LIBS
=$LIBS
35656 cat >conftest.
$ac_ext <<_ACEOF
35657 #line $LINENO "configure"
35658 #include "confdefs.h"
35660 /* Override any gcc2 internal prototype to avoid an error. */
35664 /* We use char because int might match the return type of a gcc2
35665 builtin and then its argument prototype would still apply. */
35666 char fesetround ();
35675 rm -f conftest.
$ac_objext conftest
$ac_exeext
35676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677 (eval $ac_link) 2>&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
35681 { ac_try
='test -s conftest$ac_exeext'
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; }; then
35687 ac_cv_lib_m_fesetround
=yes
35689 echo "$as_me: failed program was:" >&5
35690 cat conftest.
$ac_ext >&5
35691 ac_cv_lib_m_fesetround
=no
35693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35694 LIBS
=$ac_check_lib_save_LIBS
35696 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
35697 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
35698 if test $ac_cv_lib_m_fesetround = yes; then
35699 FESETROUND_LIBM
=-lm
35704 # The -lsun library is required for YP support on Irix-4.0.5 systems.
35705 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
35707 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
35708 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
35709 if test "${ac_cv_search_yp_match+set}" = set; then
35710 echo $ECHO_N "(cached) $ECHO_C" >&6
35713 ac_func_search_save_LIBS
=$LIBS
35714 ac_cv_search_yp_match
=no
35715 cat >conftest.
$ac_ext <<_ACEOF
35716 #line $LINENO "configure"
35717 #include "confdefs.h"
35719 /* Override any gcc2 internal prototype to avoid an error. */
35723 /* We use char because int might match the return type of a gcc2
35724 builtin and then its argument prototype would still apply. */
35734 rm -f conftest.
$ac_objext conftest
$ac_exeext
35735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35736 (eval $ac_link) 2>&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); } &&
35740 { ac_try
='test -s conftest$ac_exeext'
35741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742 (eval $ac_try) 2>&5
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); }; }; then
35746 ac_cv_search_yp_match
='none required'
35748 echo "$as_me: failed program was:" >&5
35749 cat conftest.
$ac_ext >&5
35751 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35752 if test "$ac_cv_search_yp_match" = no
; then
35753 for ac_lib
in sun ypsec
; do
35754 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
35755 cat >conftest.
$ac_ext <<_ACEOF
35756 #line $LINENO "configure"
35757 #include "confdefs.h"
35759 /* Override any gcc2 internal prototype to avoid an error. */
35763 /* We use char because int might match the return type of a gcc2
35764 builtin and then its argument prototype would still apply. */
35774 rm -f conftest.
$ac_objext conftest
$ac_exeext
35775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35776 (eval $ac_link) 2>&5
35778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779 (exit $ac_status); } &&
35780 { ac_try
='test -s conftest$ac_exeext'
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; }; then
35786 ac_cv_search_yp_match
="-l$ac_lib"; break
35788 echo "$as_me: failed program was:" >&5
35789 cat conftest.
$ac_ext >&5
35791 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35794 LIBS
=$ac_func_search_save_LIBS
35797 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
35798 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
35800 if test "$ac_cv_search_yp_match" = no
; then :
35803 if test "$ac_cv_search_yp_match" = 'none required'; then :
35806 LIBS
="$ac_cv_search_yp_match $LIBS"
35812 # SysV needs -lsec, older versions of Linux need -lshadow for
35813 # shadow passwords. UnixWare 7 needs -lgen.
35815 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
35816 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
35817 if test "${ac_cv_search_getspnam+set}" = set; then
35818 echo $ECHO_N "(cached) $ECHO_C" >&6
35821 ac_func_search_save_LIBS
=$LIBS
35822 ac_cv_search_getspnam
=no
35823 cat >conftest.
$ac_ext <<_ACEOF
35824 #line $LINENO "configure"
35825 #include "confdefs.h"
35827 /* Override any gcc2 internal prototype to avoid an error. */
35831 /* We use char because int might match the return type of a gcc2
35832 builtin and then its argument prototype would still apply. */
35842 rm -f conftest.
$ac_objext conftest
$ac_exeext
35843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35844 (eval $ac_link) 2>&5
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } &&
35848 { ac_try
='test -s conftest$ac_exeext'
35849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35850 (eval $ac_try) 2>&5
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); }; }; then
35854 ac_cv_search_getspnam
='none required'
35856 echo "$as_me: failed program was:" >&5
35857 cat conftest.
$ac_ext >&5
35859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35860 if test "$ac_cv_search_getspnam" = no
; then
35861 for ac_lib
in shadow sec gen
; do
35862 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
35863 cat >conftest.
$ac_ext <<_ACEOF
35864 #line $LINENO "configure"
35865 #include "confdefs.h"
35867 /* Override any gcc2 internal prototype to avoid an error. */
35871 /* We use char because int might match the return type of a gcc2
35872 builtin and then its argument prototype would still apply. */
35882 rm -f conftest.
$ac_objext conftest
$ac_exeext
35883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35884 (eval $ac_link) 2>&5
35886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887 (exit $ac_status); } &&
35888 { ac_try
='test -s conftest$ac_exeext'
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; }; then
35894 ac_cv_search_getspnam
="-l$ac_lib"; break
35896 echo "$as_me: failed program was:" >&5
35897 cat conftest.
$ac_ext >&5
35899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
35902 LIBS
=$ac_func_search_save_LIBS
35905 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
35906 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
35908 if test "$ac_cv_search_getspnam" = no
; then :
35911 if test "$ac_cv_search_getspnam" = 'none required'; then :
35914 LIBS
="$ac_cv_search_getspnam $LIBS"
35921 for ac_header
in shadow.h
35923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35925 echo "$as_me:$LINENO: checking for $ac_header" >&5
35926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35928 echo $ECHO_N "(cached) $ECHO_C" >&6
35930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35933 # Is the header compilable?
35934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35936 cat >conftest.
$ac_ext <<_ACEOF
35937 #line $LINENO "configure"
35938 #include "confdefs.h"
35939 $ac_includes_default
35940 #include <$ac_header>
35942 rm -f conftest.
$ac_objext
35943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944 (eval $ac_compile) 2>&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
35948 { ac_try
='test -s conftest.$ac_objext'
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
35954 ac_header_compiler
=yes
35956 echo "$as_me: failed program was:" >&5
35957 cat conftest.
$ac_ext >&5
35958 ac_header_compiler
=no
35960 rm -f conftest.
$ac_objext conftest.
$ac_ext
35961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35962 echo "${ECHO_T}$ac_header_compiler" >&6
35964 # Is the header present?
35965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35967 cat >conftest.
$ac_ext <<_ACEOF
35968 #line $LINENO "configure"
35969 #include "confdefs.h"
35970 #include <$ac_header>
35972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35973 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
35975 grep -v '^ *+' conftest.er1
>conftest.err
35977 cat conftest.err
>&5
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); } >/dev
/null
; then
35980 if test -s conftest.err
; then
35981 ac_cpp_err
=$ac_c_preproc_warn_flag
35988 if test -z "$ac_cpp_err"; then
35989 ac_header_preproc
=yes
35991 echo "$as_me: failed program was:" >&5
35992 cat conftest.
$ac_ext >&5
35993 ac_header_preproc
=no
35995 rm -f conftest.err conftest.
$ac_ext
35996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35997 echo "${ECHO_T}$ac_header_preproc" >&6
35999 # So? What about this header?
36000 case $ac_header_compiler:$ac_header_preproc in
36002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
36007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
36014 echo "$as_me:$LINENO: checking for $ac_header" >&5
36015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36017 echo $ECHO_N "(cached) $ECHO_C" >&6
36019 eval "$as_ac_Header=$ac_header_preproc"
36021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36026 cat >>confdefs.h
<<_ACEOF
36027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36035 # Requirements for su.c.
36037 $ac_includes_default
36039 # include <shadow.h>
36042 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
36043 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
36044 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
36045 echo $ECHO_N "(cached) $ECHO_C" >&6
36047 cat >conftest.
$ac_ext <<_ACEOF
36048 #line $LINENO "configure"
36049 #include "confdefs.h"
36055 static struct spwd ac_aggr;
36056 if (ac_aggr.sp_pwdp)
36062 rm -f conftest.
$ac_objext
36063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36064 (eval $ac_compile) 2>&5
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
36068 { ac_try
='test -s conftest.$ac_objext'
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; }; then
36074 ac_cv_member_struct_spwd_sp_pwdp
=yes
36076 echo "$as_me: failed program was:" >&5
36077 cat conftest.
$ac_ext >&5
36078 cat >conftest.
$ac_ext <<_ACEOF
36079 #line $LINENO "configure"
36080 #include "confdefs.h"
36086 static struct spwd ac_aggr;
36087 if (sizeof ac_aggr.sp_pwdp)
36093 rm -f conftest.
$ac_objext
36094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36095 (eval $ac_compile) 2>&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); } &&
36099 { ac_try
='test -s conftest.$ac_objext'
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; }; then
36105 ac_cv_member_struct_spwd_sp_pwdp
=yes
36107 echo "$as_me: failed program was:" >&5
36108 cat conftest.
$ac_ext >&5
36109 ac_cv_member_struct_spwd_sp_pwdp
=no
36111 rm -f conftest.
$ac_objext conftest.
$ac_ext
36113 rm -f conftest.
$ac_objext conftest.
$ac_ext
36115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
36116 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
36117 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
36119 cat >>confdefs.h
<<_ACEOF
36120 #define HAVE_STRUCT_SPWD_SP_PWDP 1
36127 for ac_func
in getspnam
36129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36130 echo "$as_me:$LINENO: checking for $ac_func" >&5
36131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36132 if eval "test \"\${$as_ac_var+set}\" = set"; then
36133 echo $ECHO_N "(cached) $ECHO_C" >&6
36135 cat >conftest.
$ac_ext <<_ACEOF
36136 #line $LINENO "configure"
36137 #include "confdefs.h"
36138 /* System header to define __stub macros and hopefully few prototypes,
36139 which can conflict with char $ac_func (); below. */
36140 #include <assert.h>
36141 /* Override any gcc2 internal prototype to avoid an error. */
36145 /* We use char because int might match the return type of a gcc2
36146 builtin and then its argument prototype would still apply. */
36153 /* The GNU C library defines this for functions which it implements
36154 to always fail with ENOSYS. Some functions are actually named
36155 something starting with __ and the normal name is an alias. */
36156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36166 rm -f conftest.
$ac_objext conftest
$ac_exeext
36167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36168 (eval $ac_link) 2>&5
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); } &&
36172 { ac_try
='test -s conftest$ac_exeext'
36173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36174 (eval $ac_try) 2>&5
36176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177 (exit $ac_status); }; }; then
36178 eval "$as_ac_var=yes"
36180 echo "$as_me: failed program was:" >&5
36181 cat conftest.
$ac_ext >&5
36182 eval "$as_ac_var=no"
36184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36188 if test `eval echo '${'$as_ac_var'}'` = yes; then
36189 cat >>confdefs.h
<<_ACEOF
36190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36197 # SCO-ODT-3.0 is reported to need -lufc for crypt.
36198 # NetBSD needs -lcrypt for crypt.
36199 ac_su_saved_lib
="$LIBS"
36201 echo "$as_me:$LINENO: checking for library containing crypt" >&5
36202 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
36203 if test "${ac_cv_search_crypt+set}" = set; then
36204 echo $ECHO_N "(cached) $ECHO_C" >&6
36207 ac_func_search_save_LIBS
=$LIBS
36208 ac_cv_search_crypt
=no
36209 cat >conftest.
$ac_ext <<_ACEOF
36210 #line $LINENO "configure"
36211 #include "confdefs.h"
36213 /* Override any gcc2 internal prototype to avoid an error. */
36217 /* We use char because int might match the return type of a gcc2
36218 builtin and then its argument prototype would still apply. */
36228 rm -f conftest.
$ac_objext conftest
$ac_exeext
36229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36230 (eval $ac_link) 2>&5
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); } &&
36234 { ac_try
='test -s conftest$ac_exeext'
36235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36236 (eval $ac_try) 2>&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); }; }; then
36240 ac_cv_search_crypt
='none required'
36242 echo "$as_me: failed program was:" >&5
36243 cat conftest.
$ac_ext >&5
36245 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36246 if test "$ac_cv_search_crypt" = no
; then
36247 for ac_lib
in ufc
crypt; do
36248 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
36249 cat >conftest.
$ac_ext <<_ACEOF
36250 #line $LINENO "configure"
36251 #include "confdefs.h"
36253 /* Override any gcc2 internal prototype to avoid an error. */
36257 /* We use char because int might match the return type of a gcc2
36258 builtin and then its argument prototype would still apply. */
36268 rm -f conftest.
$ac_objext conftest
$ac_exeext
36269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36270 (eval $ac_link) 2>&5
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); } &&
36274 { ac_try
='test -s conftest$ac_exeext'
36275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36276 (eval $ac_try) 2>&5
36278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279 (exit $ac_status); }; }; then
36280 ac_cv_search_crypt
="-l$ac_lib"; break
36282 echo "$as_me: failed program was:" >&5
36283 cat conftest.
$ac_ext >&5
36285 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36288 LIBS
=$ac_func_search_save_LIBS
36291 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
36292 echo "${ECHO_T}$ac_cv_search_crypt" >&6
36294 if test "$ac_cv_search_crypt" = no
; then :
36297 if test "$ac_cv_search_crypt" = 'none required'; then :
36300 LIBS
="$ac_cv_search_crypt $LIBS"
36301 LIB_CRYPT
="$ac_cv_search_crypt"
36305 LIBS
="$ac_su_saved_lib"
36311 if test -n "$ac_aux_dir"; then
36312 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
36314 if test -z "$MKINSTALLDIRS"; then
36315 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
36322 # Extract the first word of "msgfmt", so it can be a program name with args.
36323 set dummy msgfmt
; ac_word
=$2
36324 echo "$as_me:$LINENO: checking for $ac_word" >&5
36325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36326 if test "${ac_cv_path_MSGFMT+set}" = set; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36331 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
36334 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
36335 for ac_dir
in $PATH; do
36336 test -z "$ac_dir" && ac_dir
=.
36337 if test -f $ac_dir/$ac_word; then
36338 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
36339 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
36340 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
36346 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
36350 MSGFMT
="$ac_cv_path_MSGFMT"
36351 if test "$MSGFMT" != ":"; then
36352 echo "$as_me:$LINENO: result: $MSGFMT" >&5
36353 echo "${ECHO_T}$MSGFMT" >&6
36355 echo "$as_me:$LINENO: result: no" >&5
36356 echo "${ECHO_T}no" >&6
36359 # Extract the first word of "gmsgfmt", so it can be a program name with args.
36360 set dummy gmsgfmt
; ac_word
=$2
36361 echo "$as_me:$LINENO: checking for $ac_word" >&5
36362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36363 if test "${ac_cv_path_GMSGFMT+set}" = set; then
36364 echo $ECHO_N "(cached) $ECHO_C" >&6
36368 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
36371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
36372 for as_dir
in $PATH
36375 test -z "$as_dir" && as_dir
=.
36376 for ac_exec_ext
in '' $ac_executable_extensions; do
36377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36378 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
36379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36385 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
36389 GMSGFMT
=$ac_cv_path_GMSGFMT
36391 if test -n "$GMSGFMT"; then
36392 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
36393 echo "${ECHO_T}$GMSGFMT" >&6
36395 echo "$as_me:$LINENO: result: no" >&5
36396 echo "${ECHO_T}no" >&6
36400 # Extract the first word of "xgettext", so it can be a program name with args.
36401 set dummy xgettext
; ac_word
=$2
36402 echo "$as_me:$LINENO: checking for $ac_word" >&5
36403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36404 if test "${ac_cv_path_XGETTEXT+set}" = set; then
36405 echo $ECHO_N "(cached) $ECHO_C" >&6
36407 case "$XGETTEXT" in
36409 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
36412 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
36413 for ac_dir
in $PATH; do
36414 test -z "$ac_dir" && ac_dir
=.
36415 if test -f $ac_dir/$ac_word; then
36416 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
36417 (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
36418 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
36424 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
36428 XGETTEXT
="$ac_cv_path_XGETTEXT"
36429 if test "$XGETTEXT" != ":"; then
36430 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
36431 echo "${ECHO_T}$XGETTEXT" >&6
36433 echo "$as_me:$LINENO: result: no" >&5
36434 echo "${ECHO_T}no" >&6
36439 # Extract the first word of "msgmerge", so it can be a program name with args.
36440 set dummy msgmerge
; ac_word
=$2
36441 echo "$as_me:$LINENO: checking for $ac_word" >&5
36442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36443 if test "${ac_cv_path_MSGMERGE+set}" = set; then
36444 echo $ECHO_N "(cached) $ECHO_C" >&6
36446 case "$MSGMERGE" in
36448 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
36451 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
36452 for ac_dir
in $PATH; do
36453 test -z "$ac_dir" && ac_dir
=.
36454 if test -f $ac_dir/$ac_word; then
36455 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
36456 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
36462 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
36466 MSGMERGE
="$ac_cv_path_MSGMERGE"
36467 if test "$MSGMERGE" != ":"; then
36468 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
36469 echo "${ECHO_T}$MSGMERGE" >&6
36471 echo "$as_me:$LINENO: result: no" >&5
36472 echo "${ECHO_T}no" >&6
36476 if test "$GMSGFMT" != ":"; then
36477 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
36478 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
36481 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
36482 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
36483 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
36488 if test "$XGETTEXT" != ":"; then
36489 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
36490 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
36493 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
36494 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
36500 ac_config_commands
="$ac_config_commands default-1"
36518 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
36519 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
36520 # Check whether --enable-nls or --disable-nls was given.
36521 if test "${enable_nls+set}" = set; then
36522 enableval
="$enable_nls"
36527 echo "$as_me:$LINENO: result: $USE_NLS" >&5
36528 echo "${ECHO_T}$USE_NLS" >&6
36536 if test "$USE_NLS" = "yes"; then
36537 gt_use_preinstalled_gnugettext
=no
36544 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
36545 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
36546 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36549 cat >conftest.
$ac_ext <<_ACEOF
36550 #line $LINENO "configure"
36551 #include "confdefs.h"
36552 #include <libintl.h>
36553 extern int _nl_msg_cat_cntr;
36554 extern int *_nl_domain_bindings;
36558 bindtextdomain ("", "");
36559 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
36564 rm -f conftest.
$ac_objext conftest
$ac_exeext
36565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36566 (eval $ac_link) 2>&5
36568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36569 (exit $ac_status); } &&
36570 { ac_try
='test -s conftest$ac_exeext'
36571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36572 (eval $ac_try) 2>&5
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); }; }; then
36576 gt_cv_func_gnugettext1_libc
=yes
36578 echo "$as_me: failed program was:" >&5
36579 cat conftest.
$ac_ext >&5
36580 gt_cv_func_gnugettext1_libc
=no
36582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36584 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
36585 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
36587 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
36593 am_save_CPPFLAGS
="$CPPFLAGS"
36595 for element
in $INCICONV; do
36597 for x
in $CPPFLAGS; do
36599 acl_save_prefix
="$prefix"
36600 prefix
="$acl_final_prefix"
36601 acl_save_exec_prefix
="$exec_prefix"
36602 exec_prefix
="$acl_final_exec_prefix"
36604 exec_prefix
="$acl_save_exec_prefix"
36605 prefix
="$acl_save_prefix"
36607 if test "X$x" = "X$element"; then
36612 if test -z "$haveit"; then
36613 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
36618 echo "$as_me:$LINENO: checking for iconv" >&5
36619 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36620 if test "${am_cv_func_iconv+set}" = set; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 am_cv_func_iconv
="no, consider installing GNU libiconv"
36626 cat >conftest.
$ac_ext <<_ACEOF
36627 #line $LINENO "configure"
36628 #include "confdefs.h"
36629 #include <stdlib.h>
36634 iconv_t cd = iconv_open("","");
36635 iconv(cd,NULL,NULL,NULL,NULL);
36641 rm -f conftest.
$ac_objext conftest
$ac_exeext
36642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36643 (eval $ac_link) 2>&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } &&
36647 { ac_try
='test -s conftest$ac_exeext'
36648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649 (eval $ac_try) 2>&5
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); }; }; then
36653 am_cv_func_iconv
=yes
36655 echo "$as_me: failed program was:" >&5
36656 cat conftest.
$ac_ext >&5
36658 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36659 if test "$am_cv_func_iconv" != yes; then
36660 am_save_LIBS
="$LIBS"
36661 LIBS
="$LIBS $LIBICONV"
36662 cat >conftest.
$ac_ext <<_ACEOF
36663 #line $LINENO "configure"
36664 #include "confdefs.h"
36665 #include <stdlib.h>
36670 iconv_t cd = iconv_open("","");
36671 iconv(cd,NULL,NULL,NULL,NULL);
36677 rm -f conftest.
$ac_objext conftest
$ac_exeext
36678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36679 (eval $ac_link) 2>&5
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); } &&
36683 { ac_try
='test -s conftest$ac_exeext'
36684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685 (eval $ac_try) 2>&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); }; }; then
36689 am_cv_lib_iconv
=yes
36690 am_cv_func_iconv
=yes
36692 echo "$as_me: failed program was:" >&5
36693 cat conftest.
$ac_ext >&5
36695 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
36696 LIBS
="$am_save_LIBS"
36700 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36701 echo "${ECHO_T}$am_cv_func_iconv" >&6
36702 if test "$am_cv_func_iconv" = yes; then
36704 cat >>confdefs.h
<<\_ACEOF
36705 #define HAVE_ICONV 1
36709 if test "$am_cv_lib_iconv" = yes; then
36710 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36711 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
36712 echo "$as_me:$LINENO: result: $LIBICONV" >&5
36713 echo "${ECHO_T}$LIBICONV" >&6
36715 CPPFLAGS
="$am_save_CPPFLAGS"
36727 acl_save_prefix
="$prefix"
36728 prefix
="$acl_final_prefix"
36729 acl_save_exec_prefix
="$exec_prefix"
36730 exec_prefix
="$acl_final_exec_prefix"
36732 eval additional_includedir
=\"$includedir\"
36733 eval additional_libdir
=\"$libdir\"
36735 exec_prefix
="$acl_save_exec_prefix"
36736 prefix
="$acl_save_prefix"
36739 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
36740 if test "${with_libintl_prefix+set}" = set; then
36741 withval
="$with_libintl_prefix"
36743 if test "X$withval" = "Xno"; then
36746 if test "X$withval" = "X"; then
36748 acl_save_prefix
="$prefix"
36749 prefix
="$acl_final_prefix"
36750 acl_save_exec_prefix
="$exec_prefix"
36751 exec_prefix
="$acl_final_exec_prefix"
36753 eval additional_includedir
=\"$includedir\"
36754 eval additional_libdir
=\"$libdir\"
36756 exec_prefix
="$acl_save_exec_prefix"
36757 prefix
="$acl_save_prefix"
36760 additional_includedir
="$withval/include"
36761 additional_libdir
="$withval/lib"
36771 names_already_handled
=
36772 names_next_round
='intl '
36773 while test -n "$names_next_round"; do
36774 names_this_round
="$names_next_round"
36776 for name
in $names_this_round; do
36778 for n
in $names_already_handled; do
36779 if test "$n" = "$name"; then
36780 already_handled
=yes
36784 if test -z "$already_handled"; then
36785 names_already_handled
="$names_already_handled $name"
36786 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36787 eval value
=\"\
$HAVE_LIB$uppername\"
36788 if test -n "$value"; then
36789 if test "$value" = yes; then
36790 eval value
=\"\
$LIB$uppername\"
36791 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
36792 eval value
=\"\
$LTLIB$uppername\"
36793 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
36802 if test $use_additional = yes; then
36803 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36804 found_dir
="$additional_libdir"
36805 found_so
="$additional_libdir/lib$name.$shlibext"
36806 if test -f "$additional_libdir/lib$name.la"; then
36807 found_la
="$additional_libdir/lib$name.la"
36810 if test -f "$additional_libdir/lib$name.$libext"; then
36811 found_dir
="$additional_libdir"
36812 found_a
="$additional_libdir/lib$name.$libext"
36813 if test -f "$additional_libdir/lib$name.la"; then
36814 found_la
="$additional_libdir/lib$name.la"
36819 if test "X$found_dir" = "X"; then
36820 for x
in $LDFLAGS $LTLIBINTL; do
36822 acl_save_prefix
="$prefix"
36823 prefix
="$acl_final_prefix"
36824 acl_save_exec_prefix
="$exec_prefix"
36825 exec_prefix
="$acl_final_exec_prefix"
36827 exec_prefix
="$acl_save_exec_prefix"
36828 prefix
="$acl_save_prefix"
36832 dir
=`echo "X$x" | sed -e 's/^X-L//'`
36833 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36835 found_so
="$dir/lib$name.$shlibext"
36836 if test -f "$dir/lib$name.la"; then
36837 found_la
="$dir/lib$name.la"
36840 if test -f "$dir/lib$name.$libext"; then
36842 found_a
="$dir/lib$name.$libext"
36843 if test -f "$dir/lib$name.la"; then
36844 found_la
="$dir/lib$name.la"
36850 if test "X$found_dir" != "X"; then
36855 if test "X$found_dir" != "X"; then
36856 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
36857 if test "X$found_so" != "X"; then
36858 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
36859 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
36862 for x
in $ltrpathdirs; do
36863 if test "X$x" = "X$found_dir"; then
36868 if test -z "$haveit"; then
36869 ltrpathdirs
="$ltrpathdirs $found_dir"
36871 if test "$hardcode_direct" = yes; then
36872 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
36874 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
36875 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
36877 for x
in $rpathdirs; do
36878 if test "X$x" = "X$found_dir"; then
36883 if test -z "$haveit"; then
36884 rpathdirs
="$rpathdirs $found_dir"
36888 for x
in $LDFLAGS $LIBINTL; do
36890 acl_save_prefix
="$prefix"
36891 prefix
="$acl_final_prefix"
36892 acl_save_exec_prefix
="$exec_prefix"
36893 exec_prefix
="$acl_final_exec_prefix"
36895 exec_prefix
="$acl_save_exec_prefix"
36896 prefix
="$acl_save_prefix"
36898 if test "X$x" = "X-L$found_dir"; then
36903 if test -z "$haveit"; then
36904 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
36906 if test "$hardcode_minus_L" != no
; then
36907 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
36909 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
36915 if test "X$found_a" != "X"; then
36916 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
36918 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
36921 additional_includedir
=
36922 case "$found_dir" in
36924 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36925 additional_includedir
="$basedir/include"
36928 if test "X$additional_includedir" != "X"; then
36929 if test "X$additional_includedir" != "X/usr/include"; then
36931 if test "X$additional_includedir" = "X/usr/local/include"; then
36932 if test -n "$GCC"; then
36934 linux
*) haveit
=yes;;
36938 if test -z "$haveit"; then
36939 for x
in $CPPFLAGS $INCINTL; do
36941 acl_save_prefix
="$prefix"
36942 prefix
="$acl_final_prefix"
36943 acl_save_exec_prefix
="$exec_prefix"
36944 exec_prefix
="$acl_final_exec_prefix"
36946 exec_prefix
="$acl_save_exec_prefix"
36947 prefix
="$acl_save_prefix"
36949 if test "X$x" = "X-I$additional_includedir"; then
36954 if test -z "$haveit"; then
36955 if test -d "$additional_includedir"; then
36956 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
36962 if test -n "$found_la"; then
36963 save_libdir
="$libdir"
36964 case "$found_la" in
36965 */* |
*\\*) .
"$found_la" ;;
36966 *) .
"./$found_la" ;;
36968 libdir
="$save_libdir"
36969 for dep
in $dependency_libs; do
36972 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
36973 if test "X$additional_libdir" != "X/usr/lib"; then
36975 if test "X$additional_libdir" = "X/usr/local/lib"; then
36976 if test -n "$GCC"; then
36978 linux
*) haveit
=yes;;
36982 if test -z "$haveit"; then
36984 for x
in $LDFLAGS $LIBINTL; do
36986 acl_save_prefix
="$prefix"
36987 prefix
="$acl_final_prefix"
36988 acl_save_exec_prefix
="$exec_prefix"
36989 exec_prefix
="$acl_final_exec_prefix"
36991 exec_prefix
="$acl_save_exec_prefix"
36992 prefix
="$acl_save_prefix"
36994 if test "X$x" = "X-L$additional_libdir"; then
36999 if test -z "$haveit"; then
37000 if test -d "$additional_libdir"; then
37001 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
37005 for x
in $LDFLAGS $LTLIBINTL; do
37007 acl_save_prefix
="$prefix"
37008 prefix
="$acl_final_prefix"
37009 acl_save_exec_prefix
="$exec_prefix"
37010 exec_prefix
="$acl_final_exec_prefix"
37012 exec_prefix
="$acl_save_exec_prefix"
37013 prefix
="$acl_save_prefix"
37015 if test "X$x" = "X-L$additional_libdir"; then
37020 if test -z "$haveit"; then
37021 if test -d "$additional_libdir"; then
37022 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
37029 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
37030 if test "$enable_rpath" != no
; then
37032 for x
in $rpathdirs; do
37033 if test "X$x" = "X$dir"; then
37038 if test -z "$haveit"; then
37039 rpathdirs
="$rpathdirs $dir"
37042 for x
in $ltrpathdirs; do
37043 if test "X$x" = "X$dir"; then
37048 if test -z "$haveit"; then
37049 ltrpathdirs
="$ltrpathdirs $dir"
37054 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37057 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37060 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
37061 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
37067 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
37068 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
37074 if test "X$rpathdirs" != "X"; then
37075 if test -n "$hardcode_libdir_separator"; then
37077 for found_dir
in $rpathdirs; do
37078 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
37080 acl_save_libdir
="$libdir"
37082 eval flag
=\"$hardcode_libdir_flag_spec\"
37083 libdir
="$acl_save_libdir"
37084 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
37086 for found_dir
in $rpathdirs; do
37087 acl_save_libdir
="$libdir"
37088 libdir
="$found_dir"
37089 eval flag
=\"$hardcode_libdir_flag_spec\"
37090 libdir
="$acl_save_libdir"
37091 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
37095 if test "X$ltrpathdirs" != "X"; then
37096 for found_dir
in $ltrpathdirs; do
37097 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
37101 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
37102 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
37103 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
37104 echo $ECHO_N "(cached) $ECHO_C" >&6
37106 gt_save_CPPFLAGS
="$CPPFLAGS"
37107 CPPFLAGS
="$CPPFLAGS $INCINTL"
37108 gt_save_LIBS
="$LIBS"
37109 LIBS
="$LIBS $LIBINTL"
37110 cat >conftest.
$ac_ext <<_ACEOF
37111 #line $LINENO "configure"
37112 #include "confdefs.h"
37113 #include <libintl.h>
37114 extern int _nl_msg_cat_cntr;
37119 const char *_nl_expand_alias ();
37123 bindtextdomain ("", "");
37124 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
37129 rm -f conftest.
$ac_objext conftest
$ac_exeext
37130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37131 (eval $ac_link) 2>&5
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); } &&
37135 { ac_try
='test -s conftest$ac_exeext'
37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; }; then
37141 gt_cv_func_gnugettext1_libintl
=yes
37143 echo "$as_me: failed program was:" >&5
37144 cat conftest.
$ac_ext >&5
37145 gt_cv_func_gnugettext1_libintl
=no
37147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37148 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
37149 LIBS
="$LIBS $LIBICONV"
37150 cat >conftest.
$ac_ext <<_ACEOF
37151 #line $LINENO "configure"
37152 #include "confdefs.h"
37153 #include <libintl.h>
37154 extern int _nl_msg_cat_cntr;
37159 const char *_nl_expand_alias ();
37163 bindtextdomain ("", "");
37164 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
37169 rm -f conftest.
$ac_objext conftest
$ac_exeext
37170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37171 (eval $ac_link) 2>&5
37173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37174 (exit $ac_status); } &&
37175 { ac_try
='test -s conftest$ac_exeext'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; }; then
37181 LIBINTL
="$LIBINTL $LIBICONV"
37182 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
37183 gt_cv_func_gnugettext1_libintl
=yes
37186 echo "$as_me: failed program was:" >&5
37187 cat conftest.
$ac_ext >&5
37189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
37191 CPPFLAGS
="$gt_save_CPPFLAGS"
37192 LIBS
="$gt_save_LIBS"
37194 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
37195 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
37198 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
37199 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
37200 && test "$PACKAGE" != gettext; }; then
37201 gt_use_preinstalled_gnugettext
=yes
37210 if test "$gt_use_preinstalled_gnugettext" = "yes" \
37211 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
37213 cat >>confdefs.h
<<\_ACEOF
37214 #define ENABLE_NLS 1
37222 if test "$USE_NLS" = "yes"; then
37224 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
37225 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
37226 echo "$as_me:$LINENO: checking how to link with libintl" >&5
37227 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
37228 echo "$as_me:$LINENO: result: $LIBINTL" >&5
37229 echo "${ECHO_T}$LIBINTL" >&6
37231 for element
in $INCINTL; do
37233 for x
in $CPPFLAGS; do
37235 acl_save_prefix
="$prefix"
37236 prefix
="$acl_final_prefix"
37237 acl_save_exec_prefix
="$exec_prefix"
37238 exec_prefix
="$acl_final_exec_prefix"
37240 exec_prefix
="$acl_save_exec_prefix"
37241 prefix
="$acl_save_prefix"
37243 if test "X$x" = "X$element"; then
37248 if test -z "$haveit"; then
37249 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
37256 cat >>confdefs.h
<<\_ACEOF
37257 #define HAVE_GETTEXT 1
37261 cat >>confdefs.h
<<\_ACEOF
37262 #define HAVE_DCGETTEXT 1
37272 INTLLIBS
="$LIBINTL"
37280 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 old/Makefile old/fileutils/Makefile old/sh-utils/Makefile old/textutils/Makefile"
37282 cat >confcache
<<\_ACEOF
37283 # This file is a shell script that caches the results of configure
37284 # tests run on this system so they can be shared between configure
37285 # scripts and configure runs, see configure's option --config-cache.
37286 # It is not useful on other systems. If it contains results you don't
37287 # want to keep, you may remove or edit it.
37289 # config.status only pays attention to the cache file if you give it
37290 # the --recheck option to rerun configure.
37292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37294 # following values.
37298 # The following way of writing the cache mishandles newlines in values,
37299 # but we know of no workaround that is simple, portable, and efficient.
37300 # So, don't put newlines in cache variables' values.
37301 # Ultrix sh set writes to stderr and can't be redirected directly,
37302 # and sets the high bit in the cache file unless we assign to the vars.
37305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37307 # `set' does not quote correctly, so add quotes (double-quote
37308 # substitution turns \\\\ into \\, and sed turns \\ into \).
37311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37314 # `set' quotes correctly as required by POSIX, so do not add quotes.
37316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37325 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37327 if cmp -s $cache_file confcache
; then :; else
37328 if test -w $cache_file; then
37329 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37330 cat confcache
>$cache_file
37332 echo "not updating unwritable cache $cache_file"
37337 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
37338 # Let make expand exec_prefix.
37339 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
37341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
37342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37343 # trailing colons and then remove the whole line if VPATH becomes empty
37344 # (actually we leave an empty line to preserve line numbers).
37345 if test "x$srcdir" = x.
; then
37346 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
37347 s/:*\$(srcdir):*/:/;
37348 s/:*\${srcdir}:*/:/;
37350 s/^\([^=]*=[ ]*\):*/\1/;
37356 DEFS
=-DHAVE_CONFIG_H
37360 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
37361 # 1. Remove the extension, and $U if already installed.
37362 ac_i
=`echo "$ac_i" |
37363 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37365 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
37366 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
37368 LIBOBJS
=$ac_libobjs
37370 LTLIBOBJS
=$ac_ltlibobjs
37373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37374 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
37375 Usually this means the macro was only invoked conditionally." >&5
37376 echo "$as_me: error: conditional \"AMDEP\" was never defined.
37377 Usually this means the macro was only invoked conditionally." >&2;}
37378 { (exit 1); exit 1; }; }
37380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
37382 Usually this means the macro was only invoked conditionally." >&5
37383 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
37384 Usually this means the macro was only invoked conditionally." >&2;}
37385 { (exit 1); exit 1; }; }
37388 : ${CONFIG_STATUS=./config.status}
37389 ac_clean_files_save
=$ac_clean_files
37390 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
37391 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37392 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37393 cat >$CONFIG_STATUS <<_ACEOF
37395 # Generated by $as_me.
37396 # Run this file to recreate the current configuration.
37397 # Compiler output produced by configure, useful for debugging
37398 # configure, is in config.log if it exists.
37401 SHELL=\${CONFIG_SHELL-$SHELL}
37404 cat >>$CONFIG_STATUS <<\_ACEOF
37405 ## --------------------- ##
37406 ## M4sh Initialization. ##
37407 ## --------------------- ##
37409 # Be Bourne compatible
37410 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
37413 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37414 # is contrary to our usage. Disable this feature.
37415 alias -g '${1+"$@"}'='"$@"'
37416 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
37421 # Support unset when possible.
37422 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37428 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
37429 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
37430 { LANG
=C
; export LANG
; }
37431 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
37432 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
37433 { LC_ALL
=C
; export LC_ALL
; }
37434 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
37435 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
37436 { LC_TIME
=C
; export LC_TIME
; }
37437 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
37438 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
37439 { LC_CTYPE
=C
; export LC_CTYPE
; }
37440 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
37441 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
37442 { LANGUAGE
=C
; export LANGUAGE
; }
37443 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
37444 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
37445 { LC_COLLATE
=C
; export LC_COLLATE
; }
37446 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
37447 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
37448 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
37449 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
37450 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
37451 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
37454 # Required to use basename.
37455 if expr a
: '\(a\)' >/dev
/null
2>&1; then
37461 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
37462 as_basename
=basename
37468 # Name of the executable.
37469 as_me
=`$as_basename "$0" ||
37470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37471 X"$0" : 'X\(//\)$' \| \
37472 X"$0" : 'X\(/\)$' \| \
37473 . : '\(.\)' 2>/dev/null ||
37475 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37476 /^X\/\(\/\/\)$/{ s//\1/; q; }
37477 /^X\/\(\/\).*/{ s//\1/; q; }
37481 # PATH needs CR, and LINENO needs CR and PATH.
37482 # Avoid depending upon Character Ranges.
37483 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37484 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37485 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37486 as_cr_digits
='0123456789'
37487 as_cr_alnum
=$as_cr_Letters$as_cr_digits
37489 # The user is always right.
37490 if test "${PATH_SEPARATOR+set}" != set; then
37491 echo "#! /bin/sh" >conftest.sh
37492 echo "exit 0" >>conftest.sh
37493 chmod +x conftest.sh
37494 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
37503 as_lineno_1
=$LINENO
37504 as_lineno_2
=$LINENO
37505 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
37506 test "x$as_lineno_1" != "x$as_lineno_2" &&
37507 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
37508 # Find who we are. Look in the path if we contain no path at all
37511 *[\\/]* ) as_myself
=$0 ;;
37512 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
37513 for as_dir
in $PATH
37516 test -z "$as_dir" && as_dir
=.
37517 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
37522 # We did not find ourselves, most probably we were run as `sh COMMAND'
37523 # in which case we are not to be found in the path.
37524 if test "x$as_myself" = x
; then
37527 if test ! -f "$as_myself"; then
37528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37530 { (exit 1); exit 1; }; }
37532 case $CONFIG_SHELL in
37534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
37535 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
37538 test -z "$as_dir" && as_dir
=.
37539 for as_base
in sh bash ksh sh5
; do
37542 if ("$as_dir/$as_base" -c '
37543 as_lineno_1=$LINENO
37544 as_lineno_2=$LINENO
37545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37546 test "x$as_lineno_1" != "x$as_lineno_2" &&
37547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
37548 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
37549 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
37550 CONFIG_SHELL
=$as_dir/$as_base
37551 export CONFIG_SHELL
37552 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37561 # uniformly replaced by the line number. The first 'sed' inserts a
37562 # line-number line before each line; the second 'sed' does the real
37563 # work. The second script uses 'N' to pair each line-number line
37564 # with the numbered line, and appends trailing '-' during
37565 # substitution so that $LINENO is not a special case at line end.
37566 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37567 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37568 sed '=' <$as_myself |
37573 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37576 s,^['$as_cr_digits']*\n,,
37577 ' >$as_me.lineno
&&
37578 chmod +x
$as_me.lineno ||
37579 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37581 { (exit 1); exit 1; }; }
37583 # Don't try to exec as it changes $[0], causing all sort of problems
37584 # (the dirname of $[0] is not the place where we might find the
37585 # original and so on. Autoconf is especially sensible to this).
37587 # Exit status is that of the last command.
37592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37593 *c
*,-n*) ECHO_N
= ECHO_C
='
37595 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
37596 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
37599 if expr a
: '\(a\)' >/dev
/null
2>&1; then
37605 rm -f conf$$ conf$$.exe conf$$.
file
37607 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
37608 # We could just check for DJGPP; but this test a) works b) is more generic
37609 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37610 if test -f conf$$.exe
; then
37611 # Don't use ln at all; we don't have any links
37616 elif ln conf$$.
file conf$$
2>/dev
/null
; then
37621 rm -f conf$$ conf$$.exe conf$$.
file
37623 if mkdir
-p .
2>/dev
/null
; then
37629 as_executable_p
="test -f"
37631 # Sed expression to map a string onto a valid CPP name.
37632 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
37634 # Sed expression to map a string onto a valid variable name.
37635 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
37639 # We need space, tab and new line, in precisely that order.
37645 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
37649 # Open the log real soon, to keep \$[0] and so on meaningful, and to
37650 # report actual input values of CONFIG_FILES etc. instead of their
37651 # values after options handling. Logging --version etc. is OK.
37655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37656 ## Running $as_me. ##
37661 This file was extended by GNU coreutils $as_me 0.1.0, which was
37662 generated by GNU Autoconf 2.53b. Invocation command line was
37664 CONFIG_FILES = $CONFIG_FILES
37665 CONFIG_HEADERS = $CONFIG_HEADERS
37666 CONFIG_LINKS = $CONFIG_LINKS
37667 CONFIG_COMMANDS = $CONFIG_COMMANDS
37671 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37675 # Files that config.status was made for.
37676 if test -n "$ac_config_files"; then
37677 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37680 if test -n "$ac_config_headers"; then
37681 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37684 if test -n "$ac_config_links"; then
37685 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37688 if test -n "$ac_config_commands"; then
37689 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37692 cat >>$CONFIG_STATUS <<\_ACEOF
37695 \`$as_me' instantiates files from templates according to the
37696 current configuration.
37698 Usage: $0 [OPTIONS] [FILE]...
37700 -h, --help print this help, then exit
37701 -V, --version print version number, then exit
37702 -d, --debug don't remove temporary files
37703 --recheck update $as_me by reconfiguring in the same conditions
37704 --file=FILE[:TEMPLATE]
37705 instantiate the configuration file FILE
37706 --header=FILE[:TEMPLATE]
37707 instantiate the configuration header FILE
37709 Configuration files:
37712 Configuration headers:
37715 Configuration links:
37718 Configuration commands:
37721 Report bugs to <bug-autoconf@gnu.org>."
37724 cat >>$CONFIG_STATUS <<_ACEOF
37726 GNU coreutils config.status 0.1.0
37727 configured by $0, generated by GNU Autoconf 2.53b,
37728 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37730 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37731 Free Software Foundation, Inc.
37732 This config.status script is free software; the Free Software Foundation
37733 gives unlimited permission to copy, distribute and modify it."
37738 cat >>$CONFIG_STATUS <<\_ACEOF
37739 # If no file are specified by the user, then we need to provide default
37740 # value. By we need to know if files were specified by the user.
37746 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
37747 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
37755 *) # This is not an option, so the user has probably given explicit
37758 ac_need_defaults
=false
;;
37762 # Handling of the options.
37764 cat >>$CONFIG_STATUS <<_ACEOF
37765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37766 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
37767 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
37769 cat >>$CONFIG_STATUS <<\_ACEOF
37770 --version |
--vers* |
-V )
37771 echo "$ac_cs_version"; exit 0 ;;
37773 # Conflict between --help and --header
37774 { { echo "$as_me:$LINENO: error: ambiguous option: $1
37775 Try \`$0 --help' for more information." >&5
37776 echo "$as_me: error: ambiguous option: $1
37777 Try \`$0 --help' for more information." >&2;}
37778 { (exit 1); exit 1; }; };;
37779 --help |
--hel |
-h )
37780 echo "$ac_cs_usage"; exit 0 ;;
37781 --debug |
--d* |
-d )
37783 --file |
--fil |
--fi |
--f )
37785 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
37786 ac_need_defaults
=false
;;
37787 --header |
--heade |
--head |
--hea )
37789 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
37790 ac_need_defaults
=false
;;
37792 # This is an error.
37793 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37794 Try \`$0 --help' for more information." >&5
37795 echo "$as_me: error: unrecognized option: $1
37796 Try \`$0 --help' for more information." >&2;}
37797 { (exit 1); exit 1; }; } ;;
37799 *) ac_config_targets
="$ac_config_targets $1" ;;
37807 cat >>$CONFIG_STATUS <<_ACEOF
37809 # INIT-COMMANDS section.
37812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37813 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
37814 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
37816 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
37817 # Capture the value of LINGUAS because we need it to compute CATALOGS.
37818 LINGUAS="${LINGUAS-%UNSET%}"
37825 cat >>$CONFIG_STATUS <<\_ACEOF
37826 for ac_config_target
in $ac_config_targets
37828 case "$ac_config_target" in
37829 # Handling of arguments.
37830 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
37831 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
37832 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
37833 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
37834 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
37835 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
37836 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
37837 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
37838 "tests/basename/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/basename/Makefile" ;;
37839 "tests/chgrp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chgrp/Makefile" ;;
37840 "tests/chmod/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chmod/Makefile" ;;
37841 "tests/chown/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/chown/Makefile" ;;
37842 "tests/cp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cp/Makefile" ;;
37843 "tests/cut/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cut/Makefile" ;;
37844 "tests/date/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/date/Makefile" ;;
37845 "tests/dd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dd/Makefile" ;;
37846 "tests/dircolors/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/dircolors/Makefile" ;;
37847 "tests/du/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/du/Makefile" ;;
37848 "tests/expr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/expr/Makefile" ;;
37849 "tests/factor/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/factor/Makefile" ;;
37850 "tests/fmt/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/fmt/Makefile" ;;
37851 "tests/head/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/head/Makefile" ;;
37852 "tests/install/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/install/Makefile" ;;
37853 "tests/join/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/join/Makefile" ;;
37854 "tests/ln/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ln/Makefile" ;;
37855 "tests/ls-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls-2/Makefile" ;;
37856 "tests/ls/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/ls/Makefile" ;;
37857 "tests/md5sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/md5sum/Makefile" ;;
37858 "tests/misc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/misc/Makefile" ;;
37859 "tests/mkdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mkdir/Makefile" ;;
37860 "tests/mv/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mv/Makefile" ;;
37861 "tests/od/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/od/Makefile" ;;
37862 "tests/pr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/pr/Makefile" ;;
37863 "tests/rm/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rm/Makefile" ;;
37864 "tests/rmdir/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rmdir/Makefile" ;;
37865 "tests/seq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/seq/Makefile" ;;
37866 "tests/sha1sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sha1sum/Makefile" ;;
37867 "tests/shred/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/shred/Makefile" ;;
37868 "tests/sort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sort/Makefile" ;;
37869 "tests/stty/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/stty/Makefile" ;;
37870 "tests/sum/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/sum/Makefile" ;;
37871 "tests/tac/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tac/Makefile" ;;
37872 "tests/tail-2/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail-2/Makefile" ;;
37873 "tests/tail/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tail/Makefile" ;;
37874 "tests/test/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/test/Makefile" ;;
37875 "tests/touch/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/touch/Makefile" ;;
37876 "tests/tr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tr/Makefile" ;;
37877 "tests/tsort/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/tsort/Makefile" ;;
37878 "tests/unexpand/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/unexpand/Makefile" ;;
37879 "tests/uniq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/uniq/Makefile" ;;
37880 "tests/wc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/wc/Makefile" ;;
37881 "old/Makefile" ) CONFIG_FILES
="$CONFIG_FILES old/Makefile" ;;
37882 "old/fileutils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES old/fileutils/Makefile" ;;
37883 "old/sh-utils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES old/sh-utils/Makefile" ;;
37884 "old/textutils/Makefile" ) CONFIG_FILES
="$CONFIG_FILES old/textutils/Makefile" ;;
37885 "lib/fnmatch.h" ) CONFIG_LINKS
="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch_.h" ;;
37886 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
37887 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
37888 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
37889 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37890 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37891 { (exit 1); exit 1; }; };;
37895 # If the user did not use the arguments to specify the items to instantiate,
37896 # then the envvar interface is used. Set only those that are not.
37897 # We use the long form for the default assignment because of an extremely
37898 # bizarre bug on SunOS 4.1.3.
37899 if $ac_need_defaults; then
37900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
37901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
37902 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
37903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
37906 # Create a temporary directory, and hook for its removal unless debugging.
37909 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37910 trap '{ (exit 1); exit 1; }' 1 2 13 15
37913 # Create a (secure) tmp directory for tmp files.
37916 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
37917 test -n "$tmp" && test -d "$tmp"
37920 tmp
=$TMPDIR/cs$$
-$RANDOM
37921 (umask 077 && mkdir
$tmp)
37924 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
37925 { (exit 1); exit 1; }
37930 cat >>$CONFIG_STATUS <<_ACEOF
37933 # CONFIG_FILES section.
37936 # No need to generate the scripts if there are no CONFIG_FILES.
37937 # This happens for instance when ./config.status config.h
37938 if test -n "\$CONFIG_FILES"; then
37939 # Protect against being on the right side of a sed subst in config.status.
37940 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37941 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37942 s,@SHELL@,$SHELL,;t t
37943 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37944 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37945 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37946 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37947 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37948 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37949 s,@exec_prefix@,$exec_prefix,;t t
37950 s,@prefix@,$prefix,;t t
37951 s,@program_transform_name@,$program_transform_name,;t t
37952 s,@bindir@,$bindir,;t t
37953 s,@sbindir@,$sbindir,;t t
37954 s,@libexecdir@,$libexecdir,;t t
37955 s,@datadir@,$datadir,;t t
37956 s,@sysconfdir@,$sysconfdir,;t t
37957 s,@sharedstatedir@,$sharedstatedir,;t t
37958 s,@localstatedir@,$localstatedir,;t t
37959 s,@libdir@,$libdir,;t t
37960 s,@includedir@,$includedir,;t t
37961 s,@oldincludedir@,$oldincludedir,;t t
37962 s,@infodir@,$infodir,;t t
37963 s,@mandir@,$mandir,;t t
37964 s,@build_alias@,$build_alias,;t t
37965 s,@host_alias@,$host_alias,;t t
37966 s,@target_alias@,$target_alias,;t t
37967 s,@DEFS@,$DEFS,;t t
37968 s,@ECHO_C@,$ECHO_C,;t t
37969 s,@ECHO_N@,$ECHO_N,;t t
37970 s,@ECHO_T@,$ECHO_T,;t t
37971 s,@LIBS@,$LIBS,;t t
37972 s,@build@,$build,;t t
37973 s,@build_cpu@,$build_cpu,;t t
37974 s,@build_vendor@,$build_vendor,;t t
37975 s,@build_os@,$build_os,;t t
37976 s,@host@,$host,;t t
37977 s,@host_cpu@,$host_cpu,;t t
37978 s,@host_vendor@,$host_vendor,;t t
37979 s,@host_os@,$host_os,;t t
37980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37983 s,@PACKAGE@,$PACKAGE,;t t
37984 s,@VERSION@,$VERSION,;t t
37985 s,@ACLOCAL@,$ACLOCAL,;t t
37986 s,@AUTOCONF@,$AUTOCONF,;t t
37987 s,@AUTOMAKE@,$AUTOMAKE,;t t
37988 s,@AUTOHEADER@,$AUTOHEADER,;t t
37989 s,@MAKEINFO@,$MAKEINFO,;t t
37990 s,@AMTAR@,$AMTAR,;t t
37991 s,@install_sh@,$install_sh,;t t
37992 s,@STRIP@,$STRIP,;t t
37993 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37994 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
37996 s,@SET_MAKE@,$SET_MAKE,;t t
37997 s,@PERL@,$PERL,;t t
37999 s,@CFLAGS@,$CFLAGS,;t t
38000 s,@LDFLAGS@,$LDFLAGS,;t t
38001 s,@CPPFLAGS@,$CPPFLAGS,;t t
38002 s,@ac_ct_CC@,$ac_ct_CC,;t t
38003 s,@EXEEXT@,$EXEEXT,;t t
38004 s,@OBJEXT@,$OBJEXT,;t t
38005 s,@DEPDIR@,$DEPDIR,;t t
38006 s,@am__include@,$am__include,;t t
38007 s,@am__quote@,$am__quote,;t t
38008 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
38009 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
38010 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
38011 s,@CCDEPMODE@,$CCDEPMODE,;t t
38012 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
38013 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
38015 s,@EGREP@,$EGREP,;t t
38016 s,@RANLIB@,$RANLIB,;t t
38017 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
38018 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
38019 s,@HELP2MAN@,$HELP2MAN,;t t
38020 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
38021 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
38023 s,@DF_PROG@,$DF_PROG,;t t
38025 s,@ANSI2KNR@,$ANSI2KNR,;t t
38026 s,@LIBOBJS@,$LIBOBJS,;t t
38027 s,@YACC@,$YACC,;t t
38028 s,@ALLOCA@,$ALLOCA,;t t
38029 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
38030 s,@NEED_SETGID@,$NEED_SETGID,;t t
38031 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
38032 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
38033 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
38034 s,@POW_LIB@,$POW_LIB,;t t
38035 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
38036 s,@GLIBC21@,$GLIBC21,;t t
38037 s,@LIBICONV@,$LIBICONV,;t t
38038 s,@LTLIBICONV@,$LTLIBICONV,;t t
38039 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
38040 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
38041 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
38042 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
38043 s,@MSGFMT@,$MSGFMT,;t t
38044 s,@GMSGFMT@,$GMSGFMT,;t t
38045 s,@XGETTEXT@,$XGETTEXT,;t t
38046 s,@MSGMERGE@,$MSGMERGE,;t t
38047 s,@USE_NLS@,$USE_NLS,;t t
38048 s,@INTLLIBS@,$INTLLIBS,;t t
38049 s,@LIBINTL@,$LIBINTL,;t t
38050 s,@LTLIBINTL@,$LTLIBINTL,;t t
38051 s,@POSUB@,$POSUB,;t t
38052 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
38057 cat >>$CONFIG_STATUS <<\_ACEOF
38058 # Split the substitutions into bite-sized pieces for seds with
38059 # small command number limits, like on Digital OSF/1 and HP-UX.
38060 ac_max_sed_lines
=48
38061 ac_sed_frag
=1 # Number of current file.
38062 ac_beg
=1 # First line for current file.
38063 ac_end
=$ac_max_sed_lines # Line after last line for current file.
38066 while $ac_more_lines; do
38067 if test $ac_beg -gt 1; then
38068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
38070 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
38072 if test ! -s $tmp/subs.frag
; then
38073 ac_more_lines
=false
38075 # The purpose of the label and of the branching condition is to
38076 # speed up the sed processing (if there are no `@' at all, there
38077 # is no need to browse any of the substitutions).
38078 # These are the two extra sed commands mentioned above.
38080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
38081 if test -z "$ac_sed_cmds"; then
38082 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
38084 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
38086 ac_sed_frag
=`expr $ac_sed_frag + 1`
38088 ac_end
=`expr $ac_end + $ac_max_sed_lines`
38091 if test -z "$ac_sed_cmds"; then
38094 fi # test -n "$CONFIG_FILES"
38097 cat >>$CONFIG_STATUS <<\_ACEOF
38098 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
38099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38101 - |
*:- |
*:-:* ) # input from stdin
38103 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38104 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
38105 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38106 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
38107 * ) ac_file_in
=$ac_file.
in ;;
38110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38111 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
38112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38113 X"$ac_file" : 'X\(//\)[^/]' \| \
38114 X"$ac_file" : 'X\(//\)$' \| \
38115 X"$ac_file" : 'X\(/\)' \| \
38116 . : '\(.\)' 2>/dev/null ||
38118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38120 /^X\(\/\/\)$/{ s//\1/; q; }
38121 /^X\(\/\).*/{ s//\1/; q; }
38123 { if $as_mkdir_p; then
38128 while test ! -d "$as_dir"; do
38129 as_dirs
="$as_dir $as_dirs"
38130 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
38131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38132 X"$as_dir" : 'X\(//\)[^/]' \| \
38133 X"$as_dir" : 'X\(//\)$' \| \
38134 X"$as_dir" : 'X\(/\)' \| \
38135 . : '\(.\)' 2>/dev/null ||
38137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38139 /^X\(\/\/\)$/{ s//\1/; q; }
38140 /^X\(\/\).*/{ s//\1/; q; }
38143 test ! -n "$as_dirs" || mkdir
$as_dirs
38144 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38146 { (exit 1); exit 1; }; }; }
38150 if test "$ac_dir" != .
; then
38151 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38152 # A "../" for each directory in $ac_dir_suffix.
38153 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38155 ac_dir_suffix
= ac_top_builddir
=
38159 .
) # No --srcdir option. We are building in place.
38161 if test -z "$ac_top_builddir"; then
38164 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
38166 [\\/]* | ?
:[\\/]* ) # Absolute path.
38167 ac_srcdir
=$srcdir$ac_dir_suffix;
38168 ac_top_srcdir
=$srcdir ;;
38169 *) # Relative path.
38170 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
38171 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
38173 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38175 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
38176 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38177 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38178 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38182 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
38183 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
38186 if test x
"$ac_file" != x-
; then
38187 { echo "$as_me:$LINENO: creating $ac_file" >&5
38188 echo "$as_me: creating $ac_file" >&6;}
38191 # Let's still pretend it is `configure' which instantiates (i.e., don't
38192 # use $as_me), people would be surprised to read:
38193 # /* config.h. Generated by config.status. */
38194 if test x
"$ac_file" = x-
; then
38197 configure_input
="$ac_file. "
38199 configure_input
=$configure_input"Generated from `echo $ac_file_in |
38200 sed 's,.*/,,'` by configure."
38202 # First look for the input files in the build tree, otherwise in the
38204 ac_file_inputs
=`IFS=:
38205 for f in $ac_file_in; do
38207 -) echo $tmp/stdin ;;
38209 # Absolute (can't be DOS-style, as IFS=:)
38210 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38211 echo "$as_me: error: cannot find input file: $f" >&2;}
38212 { (exit 1); exit 1; }; }
38215 if test -f "$f"; then
38218 elif test -f "$srcdir/$f"; then
38223 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38224 echo "$as_me: error: cannot find input file: $f" >&2;}
38225 { (exit 1); exit 1; }; }
38228 done` ||
{ (exit 1); exit 1; }
38230 cat >>$CONFIG_STATUS <<_ACEOF
38234 cat >>$CONFIG_STATUS <<\_ACEOF
38236 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
38237 s
,@configure_input@
,$configure_input,;t t
38238 s
,@srcdir@
,$ac_srcdir,;t t
38239 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
38240 s
,@top_srcdir@
,$ac_top_srcdir,;t t
38241 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
38242 s
,@builddir@
,$ac_builddir,;t t
38243 s
,@abs_builddir@
,$ac_abs_builddir,;t t
38244 s
,@top_builddir@
,$ac_top_builddir,;t t
38245 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
38246 s
,@INSTALL@
,$ac_INSTALL,;t t
38247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38249 if test x"$ac_file" != x-; then
38250 mv $tmp/out $ac_file
38258 cat >>$CONFIG_STATUS <<\_ACEOF
38261 # CONFIG_HEADER section.
38264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
38265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
38267 # ac_d sets the value in "#define NAME VALUE" lines.
38268 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38269 ac_dB
='[ ].*$,\1#\2'
38272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38273 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38274 ac_uB
='$,\1#\2define\3'
38278 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
38279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38281 - |
*:- |
*:-:* ) # input from stdin
38283 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38284 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
38285 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38286 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
38287 * ) ac_file_in
=$ac_file.
in ;;
38290 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
38291 echo "$as_me: creating $ac_file" >&6;}
38293 # First look for the input files in the build tree, otherwise in the
38295 ac_file_inputs
=`IFS=:
38296 for f in $ac_file_in; do
38298 -) echo $tmp/stdin ;;
38300 # Absolute (can't be DOS-style, as IFS=:)
38301 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38302 echo "$as_me: error: cannot find input file: $f" >&2;}
38303 { (exit 1); exit 1; }; }
38306 if test -f "$f"; then
38309 elif test -f "$srcdir/$f"; then
38314 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38315 echo "$as_me: error: cannot find input file: $f" >&2;}
38316 { (exit 1); exit 1; }; }
38319 done` ||
{ (exit 1); exit 1; }
38320 # Remove the trailing spaces.
38321 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38325 # Transform confdefs.h into two sed scripts, `conftest.defines' and
38326 # `conftest.undefs', that substitutes the proper values into
38327 # config.h.in to produce config.h. The first handles `#define'
38328 # templates, and the second `#undef' templates.
38329 # And first: Protect against being on the right side of a sed subst in
38330 # config.status. Protect against being in an unquoted here document
38331 # in config.status.
38332 rm -f conftest.defines conftest.undefs
38333 # Using a here document instead of a string reduces the quoting nightmare.
38334 # Putting comments in sed scripts is not portable.
38336 # `end' is used to avoid that the second main sed command (meant for
38337 # 0-ary CPP macros) applies to n-ary macro definitions.
38338 # See the Autoconf documentation for `clear'.
38339 cat >confdef2sed.
sed <<\_ACEOF
38344 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38346 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38349 # If some macros were called several times there might be several times
38350 # the same #defines, which is useless. Nevertheless, we may not want to
38351 # sort them, since we want the *last* AC-DEFINE to be honored.
38352 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38353 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38354 rm -f confdef2sed.sed
38356 # This sed command replaces #undef with comments. This is necessary, for
38357 # example, in the case of _POSIX_SOURCE, which is predefined and required
38358 # on some systems where configure will not decide to define it.
38359 cat >>conftest.undefs <<\_ACEOF
38360 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38363 # Break up conftest.defines because some shells have a limit on the size
38364 # of here documents, and old seds have small limits too (100 cmds).
38365 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38366 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38367 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38368 echo ' :' >>$CONFIG_STATUS
38369 rm -f conftest.tail
38370 while grep . conftest.defines >/dev/null
38372 # Write a limited-size here document to $tmp/defines.sed.
38373 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38374 # Speed up: don't consider the non `#define' lines.
38375 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38376 # Work around the forget-to-reset-the-flag bug.
38377 echo 't clr' >>$CONFIG_STATUS
38378 echo ': clr' >>$CONFIG_STATUS
38379 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
38381 sed -f $tmp/defines.sed $tmp/in >$tmp/out
38383 mv $tmp/out $tmp/in
38385 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
38386 rm -f conftest.defines
38387 mv conftest.
tail conftest.defines
38389 rm -f conftest.defines
38390 echo ' fi # grep' >>$CONFIG_STATUS
38391 echo >>$CONFIG_STATUS
38393 # Break up conftest.undefs because some shells have a limit on the size
38394 # of here documents, and old seds have small limits too (100 cmds).
38395 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38396 rm -f conftest.
tail
38397 while grep . conftest.undefs
>/dev
/null
38399 # Write a limited-size here document to $tmp/undefs.sed.
38400 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38401 # Speed up: don't consider the non
`#undef'
38402 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38403 # Work around the forget-to-reset-the-flag bug.
38404 echo 't clr' >>$CONFIG_STATUS
38405 echo ': clr' >>$CONFIG_STATUS
38406 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38408 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38410 mv $tmp/out $tmp/in
38412 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38413 rm -f conftest.undefs
38414 mv conftest.tail conftest.undefs
38416 rm -f conftest.undefs
38418 cat >>$CONFIG_STATUS <<\_ACEOF
38419 # Let's still pretend it is `configure
' which instantiates (i.e., don't
38420 # use $as_me), people would be surprised to read:
38421 # /* config.h. Generated by config.status. */
38422 if test x
"$ac_file" = x-
; then
38423 echo "/* Generated by configure. */" >$tmp/config.h
38425 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38427 cat $tmp/in >>$tmp/config.h
38429 if test x
"$ac_file" != x-
; then
38430 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
38431 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38432 echo "$as_me: $ac_file is unchanged" >&6;}
38434 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
38435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38436 X"$ac_file" : 'X\(//\)[^/]' \| \
38437 X"$ac_file" : 'X\(//\)$' \| \
38438 X"$ac_file" : 'X\(/\)' \| \
38439 . : '\(.\)' 2>/dev/null ||
38441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38443 /^X\(\/\/\)$/{ s//\1/; q; }
38444 /^X\(\/\).*/{ s//\1/; q; }
38446 { if $as_mkdir_p; then
38451 while test ! -d "$as_dir"; do
38452 as_dirs
="$as_dir $as_dirs"
38453 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
38454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38455 X"$as_dir" : 'X\(//\)[^/]' \| \
38456 X"$as_dir" : 'X\(//\)$' \| \
38457 X"$as_dir" : 'X\(/\)' \| \
38458 . : '\(.\)' 2>/dev/null ||
38460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38462 /^X\(\/\/\)$/{ s//\1/; q; }
38463 /^X\(\/\).*/{ s//\1/; q; }
38466 test ! -n "$as_dirs" || mkdir
$as_dirs
38467 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38469 { (exit 1); exit 1; }; }; }
38472 mv $tmp/config.h
$ac_file
38476 rm -f $tmp/config.h
38478 _am_stamp_count
=`expr ${_am_stamp_count-0} + 1`
38479 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
38480 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38481 X$ac_file : 'X\(//\)[^/]' \| \
38482 X$ac_file : 'X\(//\)$' \| \
38483 X$ac_file : 'X\(/\)' \| \
38484 . : '\(.\)' 2>/dev/null ||
38486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38488 /^X\(\/\/\)$/{ s//\1/; q; }
38489 /^X\(\/\).*/{ s//\1/; q; }
38490 s/.*/./; q'`/stamp-h
$_am_stamp_count
38493 cat >>$CONFIG_STATUS <<\_ACEOF
38496 # CONFIG_LINKS section.
38499 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
38500 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
38501 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38503 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
38504 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
38506 if test ! -r $srcdir/$ac_source; then
38507 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
38508 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
38509 { (exit 1); exit 1; }; }
38513 # Make relative symlinks.
38514 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
38515 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38516 X"$ac_dest" : 'X\(//\)[^/]' \| \
38517 X"$ac_dest" : 'X\(//\)$' \| \
38518 X"$ac_dest" : 'X\(/\)' \| \
38519 . : '\(.\)' 2>/dev/null ||
38521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38523 /^X\(\/\/\)$/{ s//\1/; q; }
38524 /^X\(\/\).*/{ s//\1/; q; }
38526 { if $as_mkdir_p; then
38527 mkdir
-p "$ac_dest_dir"
38529 as_dir
="$ac_dest_dir"
38531 while test ! -d "$as_dir"; do
38532 as_dirs
="$as_dir $as_dirs"
38533 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
38534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38535 X"$as_dir" : 'X\(//\)[^/]' \| \
38536 X"$as_dir" : 'X\(//\)$' \| \
38537 X"$as_dir" : 'X\(/\)' \| \
38538 . : '\(.\)' 2>/dev/null ||
38540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38542 /^X\(\/\/\)$/{ s//\1/; q; }
38543 /^X\(\/\).*/{ s//\1/; q; }
38546 test ! -n "$as_dirs" || mkdir
$as_dirs
38547 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
38548 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
38549 { (exit 1); exit 1; }; }; }
38553 if test "$ac_dest_dir" != .
; then
38554 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
38555 # A "../" for each directory in $ac_dir_suffix.
38556 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38558 ac_dir_suffix
= ac_top_builddir
=
38562 .
) # No --srcdir option. We are building in place.
38564 if test -z "$ac_top_builddir"; then
38567 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
38569 [\\/]* | ?
:[\\/]* ) # Absolute path.
38570 ac_srcdir
=$srcdir$ac_dir_suffix;
38571 ac_top_srcdir
=$srcdir ;;
38572 *) # Relative path.
38573 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
38574 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
38576 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
38578 ac_abs_builddir
=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
38579 ac_abs_top_builddir
=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
38580 ac_abs_srcdir
=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
38581 ac_abs_top_srcdir
=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
38585 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
38586 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
38589 # Try a symlink, then a hard link, then a copy.
38590 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
38591 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
38592 cp -p $srcdir/$ac_source $ac_dest ||
38593 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
38594 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
38595 { (exit 1); exit 1; }; }
38598 cat >>$CONFIG_STATUS <<\_ACEOF
38601 # CONFIG_COMMANDS section.
38603 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
38604 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
38605 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
38606 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
38607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38608 X"$ac_dest" : 'X\(//\)[^/]' \| \
38609 X"$ac_dest" : 'X\(//\)$' \| \
38610 X"$ac_dest" : 'X\(/\)' \| \
38611 . : '\(.\)' 2>/dev/null ||
38613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38615 /^X\(\/\/\)$/{ s//\1/; q; }
38616 /^X\(\/\).*/{ s//\1/; q; }
38620 if test "$ac_dir" != .
; then
38621 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38622 # A "../" for each directory in $ac_dir_suffix.
38623 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38625 ac_dir_suffix
= ac_top_builddir
=
38629 .
) # No --srcdir option. We are building in place.
38631 if test -z "$ac_top_builddir"; then
38634 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
38636 [\\/]* | ?
:[\\/]* ) # Absolute path.
38637 ac_srcdir
=$srcdir$ac_dir_suffix;
38638 ac_top_srcdir
=$srcdir ;;
38639 *) # Relative path.
38640 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
38641 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
38643 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38645 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
38646 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38647 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38648 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38651 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38652 echo "$as_me: executing $ac_dest commands" >&6;}
38654 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
38655 # Strip MF so we end up with the name of the file.
38656 mf
=`echo "$mf" | sed -e 's/:.*$//'`
38657 # Check whether this is an Automake generated Makefile or not.
38658 # We used to match only the files named `Makefile.in', but
38659 # some people rename them; so instead we look at the file content.
38660 # Grep'ing the first line is not enough: some people post-process
38661 # each Makefile.in and add a new line on top of each file to say so.
38662 # So let's grep whole file.
38663 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
38664 dirpart
=`(dirname "$mf") 2>/dev/null ||
38665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38666 X"$mf" : 'X\(//\)[^/]' \| \
38667 X"$mf" : 'X\(//\)$' \| \
38668 X"$mf" : 'X\(/\)' \| \
38669 . : '\(.\)' 2>/dev/null ||
38671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38673 /^X\(\/\/\)$/{ s//\1/; q; }
38674 /^X\(\/\).*/{ s//\1/; q; }
38679 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
38680 # Extract the definition of DEP_FILES from the Makefile without
38682 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
38683 test -z "$DEPDIR" && continue
38684 # When using ansi2knr, U may be empty or an underscore; expand it
38685 U
=`sed -n -e '/^U = / s///p' < "$mf"`
38686 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
38687 # We invoke sed twice because it is the simplest approach to
38688 # changing $(DEPDIR) to its actual value in the expansion.
38689 for file in `sed -n -e '
38690 /^DEP_FILES = .*\\\\$/ {
38699 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
38700 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
38701 # Make sure the directory exists.
38702 test -f "$dirpart/$file" && continue
38703 fdir
=`(dirname "$file") 2>/dev/null ||
38704 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38705 X"$file" : 'X\(//\)[^/]' \| \
38706 X"$file" : 'X\(//\)$' \| \
38707 X"$file" : 'X\(/\)' \| \
38708 . : '\(.\)' 2>/dev/null ||
38710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38712 /^X\(\/\/\)$/{ s//\1/; q; }
38713 /^X\(\/\).*/{ s//\1/; q; }
38715 { if $as_mkdir_p; then
38716 mkdir
-p $dirpart/$fdir
38718 as_dir
=$dirpart/$fdir
38720 while test ! -d "$as_dir"; do
38721 as_dirs
="$as_dir $as_dirs"
38722 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
38723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38724 X"$as_dir" : 'X\(//\)[^/]' \| \
38725 X"$as_dir" : 'X\(//\)$' \| \
38726 X"$as_dir" : 'X\(/\)' \| \
38727 . : '\(.\)' 2>/dev/null ||
38729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38731 /^X\(\/\/\)$/{ s//\1/; q; }
38732 /^X\(\/\).*/{ s//\1/; q; }
38735 test ! -n "$as_dirs" || mkdir
$as_dirs
38736 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
38737 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
38738 { (exit 1); exit 1; }; }; }
38740 # echo "creating $dirpart/$file"
38741 echo '# dummy' > "$dirpart/$file"
38746 for ac_file
in $CONFIG_FILES; do
38747 # Support "outfile[:infile[:infile...]]"
38749 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
38751 # PO directories have a Makefile.in generated from Makefile.in.in.
38752 case "$ac_file" in */Makefile.
in)
38753 # Adjust a relative srcdir.
38754 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
38755 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
38756 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
38757 # In autoconf-2.13 it is called $ac_given_srcdir.
38758 # In autoconf-2.50 it is called $srcdir.
38759 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
38760 case "$ac_given_srcdir" in
38761 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
38762 /*) top_srcdir
="$ac_given_srcdir" ;;
38763 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
38765 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
38766 rm -f "$ac_dir/POTFILES"
38767 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
38768 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
38769 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
38770 # on $ac_dir but don't depend on user-specified configuration
38772 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
38773 # The LINGUAS file contains the set of available languages.
38774 if test -n "$ALL_LINGUAS"; then
38775 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
38777 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
38778 # Hide the ALL_LINGUAS assigment from automake.
38779 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
38781 case "$ac_given_srcdir" in
38783 *) srcdirpre
='$(srcdir)/' ;;
38789 for lang
in $ALL_LINGUAS; do
38790 POFILES
="$POFILES $srcdirpre$lang.po"
38791 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
38792 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
38793 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
38795 # CATALOGS depends on both $ac_dir and the user's LINGUAS
38796 # environment variable.
38798 if test -n "$ALL_LINGUAS"; then
38799 for presentlang
in $ALL_LINGUAS; do
38801 if test "%UNSET%" != "$LINGUAS"; then
38802 desiredlanguages
="$LINGUAS"
38804 desiredlanguages
="$ALL_LINGUAS"
38806 for desiredlang
in $desiredlanguages; do
38807 # Use the presentlang catalog if desiredlang is
38808 # a. equal to presentlang, or
38809 # b. a variant of presentlang (because in this case,
38810 # presentlang can be used as a fallback for messages
38811 # which are not translated in the desiredlang catalog).
38812 case "$desiredlang" in
38813 "$presentlang"*) useit
=yes;;
38816 if test $useit = yes; then
38817 INST_LINGUAS
="$INST_LINGUAS $presentlang"
38822 if test -n "$INST_LINGUAS"; then
38823 for lang
in $INST_LINGUAS; do
38824 CATALOGS
="$CATALOGS $lang.gmo"
38827 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
38828 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"
38829 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
38830 if test -f "$f"; then
38832 *.orig |
*.bak |
*~
) ;;
38833 *) cat "$f" >> "$ac_dir/Makefile" ;;
38845 cat >>$CONFIG_STATUS <<\_ACEOF
38847 { (exit 0); exit 0; }
38849 chmod +x
$CONFIG_STATUS
38850 ac_clean_files
=$ac_clean_files_save
38853 # configure is writing to config.log, and then calls config.status.
38854 # config.status does its own redirection, appending to config.log.
38855 # Unfortunately, on DOS this fails, as config.log is still kept open
38856 # by configure, so config.status won't be able to write to it; its
38857 # output is simply discarded. So we exec the FD to /dev/null,
38858 # effectively closing config.log, so it can be properly (re)opened and
38859 # appended to by config.status. When coming back to configure, we
38860 # need to make the FD available again.
38861 if test "$no_create" != yes; then
38864 $SHELL $CONFIG_STATUS || ac_cs_success
=false
38866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38867 # would make configure fail if this is the last instruction.
38868 $ac_cs_success ||
{ (exit 1); exit 1; }